You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.4 KiB
105 lines
2.4 KiB
<template>
|
|
<view class="u-page">
|
|
|
|
<view class="content">
|
|
<image src="../../static/images/logo.png" mode=""></image>
|
|
<view class="loginTab">
|
|
<u-subsection :list="list" :current="current" @change="sectionChange" active-color="#5fd9ee"></u-subsection>
|
|
</view>
|
|
<phone-verify v-if="current == 0"/>
|
|
<password-login v-if="current == 1"> </password-login>
|
|
<password-login-logistics v-if="current == 2"> </password-login-logistics>
|
|
</view>
|
|
<view class="tui-protocol" hover-class="opcity" :hover-stay-time="150">
|
|
点击"登录"即表示已同意
|
|
<text class="tui-protocol-red" @tap="protocol">《用户协议》</text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
mapGetters
|
|
} from 'vuex'
|
|
import passwordLoginLogistics from "../../components/password-login-logistics/password-login-logistics.vue";
|
|
import passwordLogin from "../../components/password-login/password-login.vue";
|
|
export default {
|
|
data() {
|
|
return {
|
|
list: [{
|
|
name: '验证码登录'
|
|
}, {
|
|
name: '账号密码登录'
|
|
}, {
|
|
name: '物流公司登录'
|
|
}],
|
|
current: 1
|
|
}
|
|
},
|
|
onLoad() {
|
|
uni.clearStorageSync()
|
|
},
|
|
components:{passwordLoginLogistics,passwordLogin},
|
|
methods: {
|
|
sectionChange(index) {
|
|
this.current = index;
|
|
},
|
|
// 获取昵称、头像等信息
|
|
// getUserProfile() {
|
|
// common.getUserProfile().then(res => {
|
|
// if (res) {
|
|
// this.isShowUserInfo = false;
|
|
// }
|
|
// })
|
|
// },
|
|
// 手机号快捷登录
|
|
getPhoneNumber(e) {
|
|
// common.getPhoneNumber(e).then(res => {
|
|
// if (res) {
|
|
// uni.showToast({
|
|
// title: '登录成功',
|
|
// icon: 'success'
|
|
// })
|
|
// setTimeout(() => {
|
|
// this.noSignIn();
|
|
// }, 1300)
|
|
// }
|
|
// })
|
|
},
|
|
protocol() {
|
|
uni.navigateTo({
|
|
url: '/pages/common/protocol/protocol'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.content {
|
|
image {
|
|
width: 300upx;
|
|
height: 300upx;
|
|
display: block;
|
|
margin: 0 auto;
|
|
margin-top: 200upx;
|
|
}
|
|
.loginTab {
|
|
margin: 0 50upx ;
|
|
margin-top: 50upx;
|
|
}
|
|
}
|
|
.tui-protocol {
|
|
color: #333;
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
width: 100%;
|
|
margin-top: 29rpx;
|
|
.tui-protocol-red {
|
|
color: $u-primary;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|