Compare commits

..

No commits in common. "59666731cc45c6505161b561e94c33c178136a3a" and "0fc9c9883c7221e73952810e8faf342645df44e5" have entirely different histories.

5 changed files with 15 additions and 1626 deletions

26
App.vue
View File

@ -1,18 +1,18 @@
<script> <script>
import tabBar from "./util/tabbar"; import tabBar from './util/tabbar'
export default { export default {
onLaunch: function() { onLaunch: function() {
uni.hideTabBar(); uni.hideTabBar()
uni.setStorageSync("tabBar", tabBar); uni.setStorageSync('tabBar', tabBar)
}, },
onShow: function() { onShow: function() {
console.log("App Show"); console.log('App Show')
}, },
onHide: function() { onHide: function() {
console.log("App Hide"); console.log('App Hide')
} }
}; }
</script> </script>
<style lang="scss"> <style lang="scss">

1538
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +0,0 @@
{
"dependencies": {
"sass-loader": "^13.3.2"
}
}

View File

@ -1,46 +1,9 @@
<template> <template>
<view class="main"> <view>123</view>
<image src="@/static/image/logo.png" mode="scaleToFill" class="logo" />
<button
class="btn"
v-if="isShow"
open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber"
>点击登录</button>
<button class="btn" v-if="isLogoutShow" @click="login">点击登录</button>
</view>
</template> </template>
<script> <script>
export default { export default {};
data() {
return {
code: "",
openId: "",
isShow: false,
isLogoutShow: false
};
},
methods: {
async getPhoneNumber(e) {
if (e.detail.errMsg == "getPhoneNumber:ok") {
//
let res = await this.$api.user.loginToken({
wxPhoneCode: e.detail.code,
openid: this.openId
});
if (res.status == 0) {
uni.setStorageSync("token", res.data.token);
// uni.redirectTo({
// url: "../home/index"
// });
}
} else {
this.$common.msgToast("请不要拒绝哟~重新点击登录");
}
}
}
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -50,35 +13,4 @@ page {
background-attachment: fixed; background-attachment: fixed;
height: 100vh; height: 100vh;
} }
.main {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.logo {
width: 237rpx;
height: 390rpx;
}
.btn {
background: transparent;
width: 200rpx;
position: fixed;
bottom: 15%;
color: red;
left: 50%;
transform: translateX(-50%);
font-size: 30rpx;
transition: all 1s;
animation: jump 1s ease-in-out infinite alternate;
}
@keyframes jump {
from {
bottom: 16%;
}
to {
bottom: 15%;
}
}
}
</style> </style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB