1 登录时,删除微信环境;

master
santaner 1 year ago
parent 180b316598
commit 5c622aa21e
  1. 5
      components/Authorize.vue
  2. 8
      libs/login.js
  3. 26
      pages/goods_details/index.vue
  4. 9
      pages/news_details/index.vue
  5. 3
      pages/users/user_info/index.vue
  6. 6
      pages/users/user_modify_mes/index.vue

@ -38,8 +38,9 @@
<!-- #endif -->
<!-- #ifdef H5 -->
<button class="item grant" @tap="toWecahtAuth">
<text v-if="isWeixin" class="text">去授权</text>
<text v-else class="text">去登录</text>
<!-- <text v-if="isWeixin" class="text">去授权</text> -->
<!-- <text v-else class="text">去登录</text> -->
<text class="text">去登录</text>
</button>
<!-- #endif -->
</view>

@ -50,9 +50,9 @@ export function toLogin(push, pathLogin) {
pathLogin = '/page/users/login/index'
Cache.set('login_back_url', path);
// #ifdef H5
if (isWeixin()) {
auth.oAuth();
} else {
// if (isWeixin()) {
// auth.oAuth();
// } else {
if (path !== pathLogin) {
push ? uni.navigateTo({
url: '/pages/users/login/index'
@ -60,7 +60,7 @@ export function toLogin(push, pathLogin) {
url: '/pages/users/login/index'
});
}
}
// }
// #endif
// #ifdef APP-PLUS

@ -589,7 +589,6 @@
},
onLoad(options) {
let that = this
alert(that.isLogin);
if (options.spid) {
app.globalData.spid = options.spid;
that.currSpid = options.spid
@ -1082,12 +1081,12 @@
})
}).catch(err => {
//
return that.$util.Tips({
title: err
}, {
tab: 3,
url: 1
});
// return that.$util.Tips({
// title: err
// }, {
// tab: 3,
// url: 1
// });
})
},
getPayConfigs:function(){
@ -1101,12 +1100,17 @@
uni.setStorageSync('pay_image_2',this.pay_image[1]);
}).catch(err => {
//
return that.$util.Tips({
// return that.$util.Tips({
// title: err
// });
that.$util.Tips({
title: err
}, {
tab: 3,
url: 1
});
setTimeout(() => {
uni.navigateTo({
url: '/pages/users/login/index'
})
}, 1000);
})
},
infoScroll: function() {

@ -110,9 +110,12 @@
title: '未登录'
});
setTimeout(() => {
uni.navigateBack({
delta: 1
});
// uni.navigateBack({
// delta: 1
// });
uni.navigateTo({
url: '/pages/users/login/index'
})
}, 1000);
}else{
getArticleDetails(that.id).then(res => {

@ -143,7 +143,8 @@
<!--#endif-->
</view>
<!-- #ifdef H5 -->
<view class="logOut acea-row row-center-wrapper" @click="outLogin" v-if="!this.$wechat.isWeixin()">退出登录</view>
<!-- <view class="logOut acea-row row-center-wrapper" @click="outLogin" v-if="!this.$wechat.isWeixin()">退出登录</view> -->
<view class="logOut acea-row row-center-wrapper" @click="outLogin">退出登录</view>
<!-- #endif -->
<!-- #ifdef MP || APP-PLUS -->
<view class="logOut acea-row row-center-wrapper" @click="outLogin">退出登录</view>

@ -19,7 +19,11 @@
</view>
<view class='item acea-row row-between-wrapper'>
<view class='name'>推荐人</view>
<view class='input'><input placeholder="请输入推荐人电话" placeholder-class='placeholder' name="spread_phone" :value="realInfo.spread_phone"></input></view>
<view class='input'>
<input placeholder="请输入推荐人电话" placeholder-class='placeholder' name="spread_phone" :value="realInfo.spread_phone" v-if="realInfo.spread_phone" disabled></input>
<input placeholder="请输入推荐人电话" placeholder-class='placeholder' name="spread_phone" :value="realInfo.spread_phone" v-else></input>
</view>
</view>
<view class="btn-submit">
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >确认</button>

Loading…
Cancel
Save