diff --git a/api/v2local.js b/api/v2local.js
index 76eaeead..b9f2affb 100644
--- a/api/v2local.js
+++ b/api/v2local.js
@@ -2,6 +2,7 @@ export const apiArr = {
getMerChantCateList:"/api/v2/wechat/merchant-cate-crud/list", //商家分类
getMerchantList:"/api/v2/wechat/merchant-info-crud/page",//商家列表
createComment:"/api/v2/wechat/merchant-evaluation-crud/creat",//创建用户评价
+ getMerchantInfo:"/api/v2/wechat/merchant-info-crud/info",//获取商家信息详情
getMerchantComment:"/api/v2/wechat/merchant-evaluation-crud/page",//获取商家评价
merChantCommentLike:"/api/v2/wechat/merchant-evaluation-like-crud/creat",//点赞
merChantCommentUnlike:"/api/v2/wechat/merchant-evaluation-like-crud/del",//取消点赞
diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue
index 5dc2d0fe..d282a308 100644
--- a/packages/localLife/detail/index.vue
+++ b/packages/localLife/detail/index.vue
@@ -97,7 +97,7 @@
点评
- 快捷买单
+ 快捷买单
@@ -120,6 +120,7 @@ export default {
page_size: 10,
commentList: [],
flag: false,
+ isShow: false,
};
},
onLoad(options) {
@@ -130,6 +131,7 @@ export default {
this.flag = false
this.commentList = []
this.getCommentList()
+ this.getMerchantInfo()
},
onReachBottom() {
if (this.flag) {
@@ -154,10 +156,19 @@ export default {
} else {
this.flag = false;
}
+ this.isShow = res.rows[0].merchant_info.quick_purchase_enabled == 1
this.commentList = this.commentList.concat(res.rows);
})
},
+ getMerchantInfo(){
+ request(apiArr.getMerchantInfo, "POST", {
+ id:uni.getStorageSync("merchantInfo").id,
+ }).then(res => {
+ this.isShow = res.quick_purchase_enabled == 1
+ })
+ },
+
//店铺详情
detail_msg() {
NavgateTo('../detail_msg/index')