From 9608876b2eb34f0c88f759e9f26aee89a6d77e7a Mon Sep 17 00:00:00 2001
From: yvan.ni <765199919@qq.com>
Date: Fri, 27 Sep 2019 15:21:25 +0800
Subject: [PATCH] 商品详情页评价图片,添加评价,评价列表
---
pages/goods/goodsInfo/goodsInfo.js | 14 ++++++++++----
pages/goods/goodsInfo/goodsInfo.wxml | 12 +++++++++---
pages/user/add_comment/add_comment.wxml | 82 ++++++++++++++++------------------------------------------------------------------
pages/user/add_comment/add_comment.wxss | 139 +++++++++++++------------------------------------------------------------------------------------------------------------------------------
pages/user/comment/comment.wxml | 4 ++--
5 files changed, 50 insertions(+), 201 deletions(-)
diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js
index 79a85d6..fae518e 100644
--- a/pages/goods/goodsInfo/goodsInfo.js
+++ b/pages/goods/goodsInfo/goodsInfo.js
@@ -385,8 +385,9 @@ Page({
if(fir_com){
for(var ind in fir_com){
- if(fir_com[ind].head_pic=="") fir_com[ind].head_pic= ee.data.iurl+"/miniapp/images/hui_hear_pic.png";
- if (fir_com[ind].img) fir_com[ind].img = ut.unserialize(fir_com[ind].img);
+ if(fir_com[ind].head_pic=="") fir_com[ind].head_pic= ee.data.iurl+"/miniapp/images/hui_hear_pic.png";
+ if (fir_com[ind].img) fir_com[ind].img = ut.unserialize(fir_com[ind].img);
+ if (fir_com[ind].weapp_img) fir_com[ind].weapp_img = JSON.parse(fir_com[ind].weapp_img);
}
}
@@ -774,6 +775,7 @@ Page({
data: updata,
success: function(t) {
getApp().my_warnning('加入购物车成功', 1, th,450);
+ th.closeSpecModal();
}
});
} else {
@@ -781,6 +783,7 @@ Page({
data: newd,
success: function(t) {
getApp().my_warnning('加入购物车成功', 1, th,450);
+ th.closeSpecModal();
}
});
}
@@ -1349,6 +1352,9 @@ Page({
if(res.data.data.pageData && res.data.data.pageData.length>0){
cda[ind].replay_list=res.data.data.pageData;
}
+ if(ep.weapp_img!="" && ut.isString(ep.weapp_img)){
+ cda[ind].weapp_img=JSON.parse(ep.weapp_img);
+ }
})
}
}
@@ -2712,7 +2718,7 @@ Page({
// 选择门店
choice_store:function(ee){
var th=this;
- var ind=ee.currentTarget.dataset.ind;
+ //var ind=ee.currentTarget.dataset.ind;
var bconfig = th.data.bconfig;
if (bconfig.is_sort_storage){
@@ -2744,7 +2750,7 @@ Page({
})
}
this.setData({
- open_ind_store: ind,
+ //open_ind_store: ind,
store:1,
openSpecModal: !1,
openSpecModal_pt: !1
diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml
index 9355b84..32aa281 100644
--- a/pages/goods/goodsInfo/goodsInfo.wxml
+++ b/pages/goods/goodsInfo/goodsInfo.wxml
@@ -387,7 +387,8 @@
-
+
+
@@ -621,8 +622,13 @@
-
-
+
+
+
+
+
diff --git a/pages/user/add_comment/add_comment.wxml b/pages/user/add_comment/add_comment.wxml
index 40be451..fb9c1c1 100644
--- a/pages/user/add_comment/add_comment.wxml
+++ b/pages/user/add_comment/add_comment.wxml
@@ -1,63 +1,12 @@
-
-
-
-
-
+
-
-
+
+
- {{options.goods_name}}我弄饭v的v哦女v绝我弄饭v的v哦女v绝望愤怒冻死我弄饭v的v哦女v绝望愤怒冻死望愤怒冻死
+ {{options.goods_name}}
@@ -76,14 +25,12 @@
-
+