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

@ -7,3 +7,9 @@ export const API_USER_URL = 'http://39.103.180.196:9012';
// export const API_BASE_URL = 'https://portal-api.macrozheng.com'; // 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