|
@@ -6,12 +6,20 @@
|
|
<u-image src="/static/logo.png" width="140" height="140" ></u-image>
|
|
<u-image src="/static/logo.png" width="140" height="140" ></u-image>
|
|
</view>
|
|
</view>
|
|
<view class="login-btns">
|
|
<view class="login-btns">
|
|
- <u-button shape="circle" :custom-style="wxButton" class="login-btn" type="success" :hair-line="false" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
|
|
|
|
- 微信登录
|
|
|
|
|
|
+ <u-button
|
|
|
|
+ shape="circle"
|
|
|
|
+ :custom-style="wxButton"
|
|
|
|
+ class="login-btn"
|
|
|
|
+ type="success"
|
|
|
|
+ :hair-line="false"
|
|
|
|
+ :open-type="tyYd?'getPhoneNumber':''"
|
|
|
|
+ @click="getCheckYd"
|
|
|
|
+ @getphonenumber="getPhoneNumber">
|
|
|
|
+ 手机号快捷登录
|
|
</u-button>
|
|
</u-button>
|
|
<u-gap height="30"></u-gap>
|
|
<u-gap height="30"></u-gap>
|
|
<u-button shape="circle" :custom-style="phoneButton" class="login-btn" @click="phoneLogin" type="primary">
|
|
<u-button shape="circle" :custom-style="phoneButton" class="login-btn" @click="phoneLogin" type="primary">
|
|
- 手机号码登录
|
|
|
|
|
|
+ 手机验证码登录
|
|
</u-button>
|
|
</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -21,7 +29,10 @@
|
|
</u-button>
|
|
</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view @click="toYs">登录即代表同意<text>隐私政策</text>和<text>服务条款</text></view>
|
|
|
|
|
|
+ <view class="xieyi" style="display: flex;align-items: center;padding:50upx 0;justify-content: center;font-size: 24rpx;">
|
|
|
|
+ <u-checkbox v-model="tyYd" :label-size="24">登录代表您已同意</u-checkbox>
|
|
|
|
+ <text style="margin-left: -20rpx;" @click="toYs()">隐私政策、服务条款</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -35,6 +46,7 @@
|
|
return {
|
|
return {
|
|
path: '/pages/index/index',
|
|
path: '/pages/index/index',
|
|
lanuch: false,
|
|
lanuch: false,
|
|
|
|
+ tyYd: false,
|
|
code: '',
|
|
code: '',
|
|
url:'', // 二维码参数
|
|
url:'', // 二维码参数
|
|
wxButton: {
|
|
wxButton: {
|
|
@@ -78,6 +90,15 @@
|
|
url: '/pages/agreement/agreement'
|
|
url: '/pages/agreement/agreement'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getCheckYd(){
|
|
|
|
+ if(!this.tyYd){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "请阅读并同意隐私政策、服务条款",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getPhoneNumber(e) {
|
|
getPhoneNumber(e) {
|
|
let _this = this
|
|
let _this = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|