|
@@ -18,7 +18,8 @@
|
|
|
<view class="merchant-msg">
|
|
|
<img :src="configData.logo_url" />
|
|
|
<view class="name">
|
|
|
- {{configData.site_name}}
|
|
|
+ <!-- {{configData.site_name}} -->
|
|
|
+ 君子堂
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="wechat-login">
|
|
@@ -27,17 +28,18 @@
|
|
|
<button hover-class="none" @click="wechatLogin" class="bg-color btn1">授权登录</button>
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef MP -->
|
|
|
- <template v-if="configData.wechat_auth_switch">
|
|
|
- <button hover-class="none" v-if="bindPhone" open-type="getPhoneNumber" @getphonenumber="getphonenumber"
|
|
|
+ <!-- <template v-if="configData.wechat_auth_switch"> -->
|
|
|
+ <template>
|
|
|
+ <button hover-class="none" open-type="getPhoneNumber" @getphonenumber="getphonenumber"
|
|
|
class="bg-color btn1">授权登录</button>
|
|
|
- <button hover-class="none" v-else-if="!bindPhone" @tap="getAuthLogin"
|
|
|
+ <!-- <button hover-class="none" @tap="getAuthLogin"
|
|
|
class="bg-color btn1">授权登录</button>
|
|
|
- <button hover-class="none" v-else-if="mp_is_new" @tap="userLogin"
|
|
|
+ <button hover-class="none" @tap="userLogin"
|
|
|
class="bg-color btn1">授权登录</button>
|
|
|
- <button v-else-if="canUseGetUserProfile && code" hover-class="none" @tap="getUserProfile"
|
|
|
+ <button hover-class="none" @tap="getUserProfile"
|
|
|
class="bg-color btn1">授权登录</button>
|
|
|
- <button v-else hover-class="none" open-type="getUserInfo" @getuserinfo="setUserInfo"
|
|
|
- class="bg-color btn1">授权登录</button>
|
|
|
+ <button open-type="getUserInfo" @getuserinfo="setUserInfo"
|
|
|
+ class="bg-color btn1">授权登录</button> -->
|
|
|
</template>
|
|
|
<button v-if="configData.phone_auth_switch" hover-class="none" @click="phoneLogin" class="btn2">手机号登录</button>
|
|
|
<!-- #endif -->
|
|
@@ -135,7 +137,7 @@
|
|
|
privacyAgreementPopup
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.colorData();
|
|
|
+ // this.colorData();
|
|
|
let loginBg = [
|
|
|
this.imgHost+'/statics/images/login-bg-1.jpg',
|
|
|
this.imgHost+'/statics/images/login-bg-2.jpg',
|
|
@@ -187,7 +189,7 @@
|
|
|
// .then(code => {
|
|
|
// this.code = code
|
|
|
// })
|
|
|
- this.userLogin();
|
|
|
+ // this.userLogin();
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
const {
|