diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue
index 20a25526..d0d47a1a 100644
--- a/packages/localLife/detail/index.vue
+++ b/packages/localLife/detail/index.vue
@@ -63,7 +63,8 @@
{{ item.comment }}
-
+
@@ -115,7 +116,8 @@
客服
- 快捷买单
+
@@ -139,6 +141,7 @@ export default {
commentList: [],
flag: false,
isShow: false,
+ isDisabled: false,
};
},
onLoad(options) {
@@ -170,7 +173,16 @@ export default {
methods: {
handleQuickPayClick() {
- NavgateTo('../pay/index');
+ if (this.isDisabled) {
+ uni.showToast({
+ title: '支付未开通,升级 VIP 或联系工作人员开通',
+ icon: 'none',
+ duration: 2000
+ });
+
+ } else {
+ NavgateTo('../pay/index');
+ }
},
//获取评论列表
getCommentList() {
@@ -208,6 +220,7 @@ export default {
id: uni.getStorageSync("merchantInfo").id,
}).then(res => {
this.isShow = res.quick_purchase_enabled == 1
+ this.isDisabled = res.level == 1
})
},
@@ -283,7 +296,7 @@ export default {
commentDesc(e) {
NavgateTo(`../UserComment/index?id=${e.id}`)
},
-
+
// 预览图片
previewImage(imageList, currentIndex) {
// 将相对路径转换为完整URL
@@ -291,10 +304,10 @@ export default {
uni.previewImage({
urls: urls,
current: urls[currentIndex],
- success: function(res) {
+ success: function (res) {
console.log('预览成功', res);
},
- fail: function(err) {
+ fail: function (err) {
console.log('预览失败', err);
}
});