更新
This commit is contained in:
parent
f0d75a0ae0
commit
fc75cc723f
@ -6,7 +6,7 @@
|
|||||||
<image class="image" :src='routine_logo' mode="aspectFit"></image>
|
<image class="image" :src='routine_logo' mode="aspectFit"></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!--#ifdef H5-->
|
<!--#ifdef H5-->
|
||||||
<text v-if="isWeixin" class='title'>授权提醒</text>
|
<text v-if="isWeixin" class='title'>{{isPay?'付款提醒':'授权提醒'}}</text>
|
||||||
<text v-else class='title'>{{title}}</text>
|
<text v-else class='title'>{{title}}</text>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
<!--#ifdef APP-PLUS-->
|
<!--#ifdef APP-PLUS-->
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<text class='title'>{{title}}</text>
|
<text class='title'>{{title}}</text>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
<!--#ifdef H5-->
|
<!--#ifdef H5-->
|
||||||
<text v-if="isWeixin" class='tip'>请授权头像等信息,以便为您提供更好的服务!</text>
|
<text v-if="isWeixin" class='tip'>{{ isPay ? payInfo : '请授权头像等信息,以便为您提供更好的服务!'}}</text>
|
||||||
<text v-else class='tip'>{{info}}</text>
|
<text v-else class='tip'>{{info}}</text>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
<!--#ifdef APP-PLUS-->
|
<!--#ifdef APP-PLUS-->
|
||||||
@ -26,7 +26,8 @@
|
|||||||
<text class='tip'>{{info}}</text>
|
<text class='tip'>{{info}}</text>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
<view class='bottom flex'>
|
<view class='bottom flex'>
|
||||||
<text class='item' @click='close'>随便逛逛</text>
|
<text v-if="isPay" class='item' @click='toWecahtAuth'>取消</text>
|
||||||
|
<text v-else class='item' @click='close'>随便逛逛</text>
|
||||||
<!-- #ifdef MP -->
|
<!-- #ifdef MP -->
|
||||||
<button class="item grant" hover-class="none" @tap="getUserProfile"><text
|
<button class="item grant" hover-class="none" @tap="getUserProfile"><text
|
||||||
class="text">去授权</text></button>
|
class="text">去授权</text></button>
|
||||||
@ -38,7 +39,7 @@
|
|||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<button class="item grant" @tap="toWecahtAuth">
|
<button class="item grant" @tap="toWecahtAuth">
|
||||||
<text v-if="isWeixin" class="text">去授权</text>
|
<text v-if="isWeixin" class="text">{{isPay?'去支付':'去授权'}}</text>
|
||||||
<text v-else class="text">去登录</text>
|
<text v-else class="text">去登录</text>
|
||||||
</button>
|
</button>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
@ -89,7 +90,11 @@
|
|||||||
isShowAuth: {
|
isShowAuth: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
},
|
||||||
|
isPay:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
@ -102,11 +107,13 @@
|
|||||||
info: '请登录,将为您提供更好的服务!',
|
info: '请登录,将为您提供更好的服务!',
|
||||||
//#ifdef H5
|
//#ifdef H5
|
||||||
isWeixin: this.$wechat.isWeixin(),
|
isWeixin: this.$wechat.isWeixin(),
|
||||||
|
// isWeixin: false, // 关闭微信公众号授权登录
|
||||||
//#endif
|
//#endif
|
||||||
//#ifdef MP
|
//#ifdef MP
|
||||||
title: '授权提醒',
|
title: '授权提醒',
|
||||||
info: '请授权头像等信息,以便为您提供更好的服务!',
|
info: '请授权头像等信息,以便为您提供更好的服务!',
|
||||||
//#endif
|
//#endif
|
||||||
|
payInfo: '',
|
||||||
canUseGetUserProfile: false,
|
canUseGetUserProfile: false,
|
||||||
code: null,
|
code: null,
|
||||||
top: 0,
|
top: 0,
|
||||||
@ -145,6 +152,9 @@
|
|||||||
this.editModal = false
|
this.editModal = false
|
||||||
},
|
},
|
||||||
// #endif
|
// #endif
|
||||||
|
setPayInfo(e){
|
||||||
|
this.payInfo = e;
|
||||||
|
},
|
||||||
setAuthStatus() {
|
setAuthStatus() {
|
||||||
//#ifdef MP
|
//#ifdef MP
|
||||||
Routine.authorize().then(res => {
|
Routine.authorize().then(res => {
|
||||||
@ -192,7 +202,7 @@
|
|||||||
url: '/pages/users/login/login_copy'
|
url: '/pages/users/login/login_copy'
|
||||||
})
|
})
|
||||||
// console.log(22);
|
// console.log(22);
|
||||||
return
|
return;
|
||||||
let self = this;
|
let self = this;
|
||||||
Routine.getUserProfile()
|
Routine.getUserProfile()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@ -232,7 +242,6 @@
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@ -316,6 +325,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.Popup .bottom .item {
|
.Popup .bottom .item {
|
||||||
|
flex: 1;
|
||||||
width: 250rpx;
|
width: 250rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
@ -342,7 +352,7 @@
|
|||||||
|
|
||||||
.Popup .bottom .item.grant {
|
.Popup .bottom .item.grant {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-color: #E93323;
|
background-color: #40ae36;
|
||||||
/* background-color: var(--view-theme); */
|
/* background-color: var(--view-theme); */
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -48,7 +48,7 @@ export function toLogin(push, pathLogin) {
|
|||||||
// #endif
|
// #endif
|
||||||
if (!pathLogin)
|
if (!pathLogin)
|
||||||
pathLogin = '/page/users/login/login_copy'
|
pathLogin = '/page/users/login/login_copy'
|
||||||
Cache.set('login_back_url', path);
|
Cache.set('login_back_url', path);
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
if (isWeixin()) {
|
if (isWeixin()) {
|
||||||
if (Cache.get('WECHAT_APPID')) {
|
if (Cache.get('WECHAT_APPID')) {
|
||||||
|
4
main.js
4
main.js
@ -19,12 +19,14 @@ import skeleton from './components/skeleton/index.vue'
|
|||||||
import BaseMoney from './components/BaseMoney.vue';
|
import BaseMoney from './components/BaseMoney.vue';
|
||||||
import loadmore from './components/loadmore';
|
import loadmore from './components/loadmore';
|
||||||
import Loading from './components/Loading.vue';
|
import Loading from './components/Loading.vue';
|
||||||
import barcode from "@/components/barcode.vue"
|
import barcode from "@/components/barcode.vue";
|
||||||
|
import Authorize from "@/components/Authorize.vue";
|
||||||
Vue.component('skeleton', skeleton)
|
Vue.component('skeleton', skeleton)
|
||||||
Vue.component('BaseMoney', BaseMoney)
|
Vue.component('BaseMoney', BaseMoney)
|
||||||
Vue.component('loadmore', loadmore)
|
Vue.component('loadmore', loadmore)
|
||||||
Vue.component('Loading', Loading)
|
Vue.component('Loading', Loading)
|
||||||
Vue.component('barcode', barcode)
|
Vue.component('barcode', barcode)
|
||||||
|
Vue.component('Authorize', Authorize)
|
||||||
Vue.prototype.$util = util;
|
Vue.prototype.$util = util;
|
||||||
Vue.prototype.$Cache = Cache;
|
Vue.prototype.$Cache = Cache;
|
||||||
Vue.prototype.$eventHub = new Vue();
|
Vue.prototype.$eventHub = new Vue();
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "惠农生活",
|
"name" : "惠农生活",
|
||||||
"appid" : "__UNI__3A527D1",
|
"appid" : "__UNI__3A527D1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "2.0.02",
|
"versionName" : "2.0.03",
|
||||||
"versionCode" : 2002,
|
"versionCode" : 2003,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -416,6 +416,7 @@
|
|||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!--套餐产品弹窗-->
|
<!--套餐产品弹窗-->
|
||||||
<discounts-goods ref="discounts" :id="id" :uid="uid"></discounts-goods>
|
<discounts-goods ref="discounts" :id="id" :uid="uid"></discounts-goods>
|
||||||
|
<Authorize :isShowAuth="isShowAuth" :isGoIndex="false" @authColse="isShowAuth=false"></Authorize>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -590,6 +591,7 @@
|
|||||||
currentPage: false,
|
currentPage: false,
|
||||||
homeTop: 59,
|
homeTop: 59,
|
||||||
sale_type: 1, //1-普通商品, 2-批发商品
|
sale_type: 1, //1-普通商品, 2-批发商品
|
||||||
|
isShowAuth: false,
|
||||||
selectNavList: [{
|
selectNavList: [{
|
||||||
name: '首页',
|
name: '首页',
|
||||||
icon: 'icon-shouye8',
|
icon: 'icon-shouye8',
|
||||||
@ -1473,7 +1475,8 @@
|
|||||||
*/
|
*/
|
||||||
goBuy: function(e) {
|
goBuy: function(e) {
|
||||||
if (this.isLogin === false) {
|
if (this.isLogin === false) {
|
||||||
toLogin()
|
// toLogin()
|
||||||
|
this.isShowAuth = true;
|
||||||
} else {
|
} else {
|
||||||
this.goCat(true);
|
this.goCat(true);
|
||||||
}
|
}
|
||||||
|
@ -171,6 +171,7 @@
|
|||||||
<!-- 组件 -->
|
<!-- 组件 -->
|
||||||
<addcartWindow :attr="attr" :isShow='1' :iSplus='1' :destri='1' @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
|
<addcartWindow :attr="attr" :isShow='1' :iSplus='1' :destri='1' @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
|
||||||
@goCat="goCat" @attrVal="attrVal" id='product-window'></addcartWindow>
|
@goCat="goCat" @attrVal="attrVal" id='product-window'></addcartWindow>
|
||||||
|
<Authorize :isShowAuth="isShowAuth"></Authorize>
|
||||||
<!--自定义底部tab栏-->
|
<!--自定义底部tab栏-->
|
||||||
<customTab :newData="newData" :activeRouter="activeRouter"></customTab>
|
<customTab :newData="newData" :activeRouter="activeRouter"></customTab>
|
||||||
</view>
|
</view>
|
||||||
@ -293,7 +294,8 @@
|
|||||||
userInfo: {},
|
userInfo: {},
|
||||||
mer_info: {
|
mer_info: {
|
||||||
mer_settlement_agree_status: 0
|
mer_settlement_agree_status: 0
|
||||||
}
|
},
|
||||||
|
isShowAuth: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: configMap({
|
computed: configMap({
|
||||||
@ -334,7 +336,8 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
toLogin()
|
// toLogin()
|
||||||
|
this.isShowAuth = true;
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user