|
|
|
@ -29,8 +29,8 @@
|
|
|
|
|
</label>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="login_icon">
|
|
|
|
|
<image class="wechat" src="@/static/icons/icon_wechat.png"></image>
|
|
|
|
|
<image class="apple" src="@/static/icons/icon_apple.png"></image>
|
|
|
|
|
<image class="wechat" v-if="useWechatLogin" @click="loginByWechat" src="@/static/icons/icon_wechat.png"></image>
|
|
|
|
|
<image class="apple" v-if="useAppleLogin" @click="loginByApple" src="@/static/icons/icon_apple.png"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<check-code :data="showData" @closeModal="closeModal" @login="doLogin" @regetCode="regetCode" v-if="isShowCode"
|
|
|
|
@ -54,6 +54,8 @@
|
|
|
|
|
import CheckCode from './components/checkCode.vue'
|
|
|
|
|
import CheckArea from './components/checkArea.vue'
|
|
|
|
|
import rule from '@/utils/rule.js'
|
|
|
|
|
import { USE_WECHAT_LOGIN, USE_APPLE_LOGIN } from '@/utils/appConfig.js';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -86,7 +88,11 @@
|
|
|
|
|
checkData: {
|
|
|
|
|
areaList: [],
|
|
|
|
|
checkedCode: '+86'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 微信登录(暂未实现)
|
|
|
|
|
useWechatLogin: USE_WECHAT_LOGIN,
|
|
|
|
|
// 苹果登录(暂未实现)
|
|
|
|
|
useAppleLogin: USE_APPLE_LOGIN,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -157,8 +163,6 @@
|
|
|
|
|
},
|
|
|
|
|
regetCode() {
|
|
|
|
|
this.isLogining = true
|
|
|
|
|
this.isShowCode = true
|
|
|
|
|
return
|
|
|
|
|
sendsms({
|
|
|
|
|
mobile: this.mobile,
|
|
|
|
|
deviceId: this.deviceId
|
|
|
|
@ -223,7 +227,20 @@
|
|
|
|
|
checkedCode(item) {
|
|
|
|
|
this.checkData.checkedCode = item.countryCode
|
|
|
|
|
this.isShowAreaCheck = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
loginByWechat() {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '功能开发中……',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
loginByApple() {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '功能开发中……',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|