fix: 隐藏微信、Apple登录

pull/1/head
hu-qi 6 months ago
parent 6f7e9dbf19
commit 8f35075b87
Signed by: huqi
GPG Key ID: B66F8F763A3A3251

@ -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'
})
},
},
}

@ -6,4 +6,10 @@ export const API_USER_URL = 'http://39.103.180.196:9012';
// export const API_BASE_URL = 'https://portal-api.macrozheng.com';
//是否启用支付宝支付
export const USE_ALIPAY = true;
export const USE_ALIPAY = true;
// 是否启用微信登录
export const USE_WECHAT_LOGIN = false;
// 是否启用Apple登录
export const USE_APPLE_LOGIN = false;
Loading…
Cancel
Save