Commit 669af93bf0e47511e24f4c086e48f25f40eb912d

Authored by 后端研发-苏泰源
1 parent 8e692bfb

卡项测试修改

components/diy_serviceCard/diy_serviceCard.wxss
@@ -240,11 +240,12 @@ @@ -240,11 +240,12 @@
240 } 240 }
241 241
242 .zs_t1_x { 242 .zs_t1_x {
  243 + position: absolute;
243 width: 56rpx; 244 width: 56rpx;
244 height: 56rpx; 245 height: 56rpx;
245 - position: relative;  
246 - right: 62rpx;  
247 - top: 6rpx; 246 + /* position: relative; */
  247 + right: 10rpx;
  248 + top: 10rpx;
248 } 249 }
249 250
250 .zs_t1_x1 { 251 .zs_t1_x1 {
@@ -257,19 +258,21 @@ @@ -257,19 +258,21 @@
257 } 258 }
258 259
259 .zs_t1_x2 { 260 .zs_t1_x2 {
  261 + position: absolute;
260 width: 56rpx; 262 width: 56rpx;
261 height: 56rpx; 263 height: 56rpx;
262 - position: relative;  
263 - right: 56rpx;  
264 - top: 0rpx; 264 + /* position: relative; */
  265 + right: 10rpx;
  266 + top: 10rpx;
265 } 267 }
266 268
267 .zs_t1_x3 { 269 .zs_t1_x3 {
  270 + position: absolute;
268 width: 56rpx; 271 width: 56rpx;
269 height: 56rpx; 272 height: 56rpx;
270 - position: relative;  
271 - right: 288rpx;  
272 - top: 234rpx; 273 + /* position: relative; */
  274 + left: 10rpx;
  275 + bottom: 10rpx;
273 } 276 }
274 277
275 /*1列2个*/ 278 /*1列2个*/
packageA/pages/cart2_ser/cart2_ser.js
@@ -464,7 +464,6 @@ Page({ @@ -464,7 +464,6 @@ Page({
464 getApp().showWarning("未找到门店"); 464 getApp().showWarning("未找到门店");
465 return false; 465 return false;
466 } 466 }
467 -  
468 var goods = { 467 var goods = {
469 'card_id': gg.service_id, 468 'card_id': gg.service_id,
470 'itemid': gg.erpItemID, 469 'itemid': gg.erpItemID,
@@ -495,12 +494,12 @@ Page({ @@ -495,12 +494,12 @@ Page({
495 getApp().showWarning("未找到门店"); 494 getApp().showWarning("未找到门店");
496 return false; 495 return false;
497 } 496 }
498 -  
499 var goods = { 497 var goods = {
500 'card_id': th.data.bn_goods.id, 498 'card_id': th.data.bn_goods.id,
501 'itemid': th.data.bn_goods.erpItemID, 499 'itemid': th.data.bn_goods.erpItemID,
502 'qty': gg.goods_num, 500 'qty': gg.goods_num,
503 - 'price': th.data.formData.order_amount, 501 + 'price': th.data.bn_goods.money,
  502 + // 'price': th.data.formData.order_amount,
504 'pickup_id': gg.pick_id, 503 'pickup_id': gg.pick_id,
505 'pickup_keyid': gg.keyid, 504 'pickup_keyid': gg.keyid,
506 }; 505 };
packageA/pages/details_serviceCard/details_serviceCard.js
@@ -18,6 +18,11 @@ Page({ @@ -18,6 +18,11 @@ Page({
18 onLoad: function(options) { 18 onLoad: function(options) {
19 self = this; 19 self = this;
20 this.data.options = options; 20 this.data.options = options;
  21 +
  22 + wx.setNavigationBarTitle({
  23 + title: '订单详情',
  24 + });
  25 +
21 app.isLogin().then(function(data) { 26 app.isLogin().then(function(data) {
22 self.setData({ 27 self.setData({
23 userInfo: data, 28 userInfo: data,
@@ -57,7 +62,7 @@ Page({ @@ -57,7 +62,7 @@ Page({
57 data: data, 62 data: data,
58 }).then(res => { 63 }).then(res => {
59 if (res.data.code == 0) { 64 if (res.data.code == 0) {
60 - console.log('请求成功', res); 65 + // console.log('请求成功', res);
61 this.setData({ 66 this.setData({
62 details: res.data.data.pageData[0], 67 details: res.data.data.pageData[0],
63 }); 68 });
@@ -113,7 +118,7 @@ Page({ @@ -113,7 +118,7 @@ Page({
113 118
114 // 内容复制到剪贴板 119 // 内容复制到剪贴板
115 copy() { 120 copy() {
116 - console.log('点击了复制按钮'); 121 + // console.log('点击了复制按钮');
117 wx.setClipboardData({ 122 wx.setClipboardData({
118 data: this.data.details.order_sn, 123 data: this.data.details.order_sn,
119 success(res) { 124 success(res) {
@@ -416,6 +421,7 @@ Page({ @@ -416,6 +421,7 @@ Page({
416 // 立即支付 421 // 立即支付
417 pay() { 422 pay() {
418 let order_sn = this.data.details.order_sn; 423 let order_sn = this.data.details.order_sn;
  424 + let order_id = this.data.details.order_id;
419 let store_id = app.globalData.setting.stoid; 425 let store_id = app.globalData.setting.stoid;
420 426
421 app.request.post('/api/weshop/order/pay/createRechargeOrder', { 427 app.request.post('/api/weshop/order/pay/createRechargeOrder', {
@@ -428,11 +434,11 @@ Page({ @@ -428,11 +434,11 @@ Page({
428 var n = res.data.data; 434 var n = res.data.data;
429 self.weixinPay(n, function() { 435 self.weixinPay(n, function() {
430 app.showWarning('支付成功'); 436 app.showWarning('支付成功');
431 - // setTimeout(function() {  
432 - // wx.reLaunch({  
433 - // url: '/pages/user/my_service/i_service',  
434 - // })  
435 - // }, 1000) 437 + setTimeout(function() {
  438 + wx.reLaunch({
  439 + url: "/pages/payment/pay_success/pay_success?card=1&order_id=" + order_id,
  440 + })
  441 + }, 1000)
436 }, function() { 442 }, function() {
437 app.showWarning('支付失败'); 443 app.showWarning('支付失败');
438 // setTimeout(function() { 444 // setTimeout(function() {
packageA/pages/goodsInfo/goodsInfo.js
@@ -74,7 +74,7 @@ Page({ @@ -74,7 +74,7 @@ Page({
74 name: "规格参数", 74 name: "规格参数",
75 id: 1 75 id: 1
76 }], 76 }],
77 - activeCategoryId3: 1, 77 + activeCategoryId3: 1, // 点击评价-全部、有图、好评、中评时对应的id
78 categories3: [{ 78 categories3: [{
79 name: "全部", 79 name: "全部",
80 id: 1, 80 id: 1,
@@ -930,6 +930,7 @@ Page({ @@ -930,6 +930,7 @@ Page({
930 user_id: s.globalData.user_id, 930 user_id: s.globalData.user_id,
931 store_id: o.stoid, 931 store_id: o.stoid,
932 add_time: timestamp, 932 add_time: timestamp,
  933 + type: 1,
933 }; 934 };
934 //加入收藏夹就是导购的ID 935 //加入收藏夹就是导购的ID
935 if(getApp().globalData.guide_id){ 936 if(getApp().globalData.guide_id){
@@ -2513,6 +2514,7 @@ Page({ @@ -2513,6 +2514,7 @@ Page({
2513 var req_where = { 2514 var req_where = {
2514 store_id: o.stoid, pageSize: 5, is_show: 1, 2515 store_id: o.stoid, pageSize: 5, is_show: 1,
2515 parent_id: 0, goods_id: th.data.gid, commenttype: tp, 2516 parent_id: 0, goods_id: th.data.gid, commenttype: tp,
  2517 + service_id: this.data.gid,
2516 } 2518 }
2517 if (getApp().globalData.userInfo) { 2519 if (getApp().globalData.userInfo) {
2518 req_where.userId = getApp().globalData.user_id; 2520 req_where.userId = getApp().globalData.user_id;
@@ -2554,7 +2556,11 @@ Page({ @@ -2554,7 +2556,11 @@ Page({
2554 if (lines > 3) cda[ind].seeMore = true; 2556 if (lines > 3) cda[ind].seeMore = true;
2555 2557
2556 await getApp().request.promiseGet("/api/weshop/serviceComment/pageComment", { 2558 await getApp().request.promiseGet("/api/weshop/serviceComment/pageComment", {
2557 - data: { store_id: o.stoid, parent_id: ep.comment_id } 2559 + data: {
  2560 + store_id: o.stoid,
  2561 + parent_id: ep.comment_id,
  2562 + service_id: this.data.gid,
  2563 + }
2558 }).then(res => { 2564 }).then(res => {
2559 if (res.data.data.pageData && res.data.data.pageData.length > 0) { 2565 if (res.data.data.pageData && res.data.data.pageData.length > 0) {
2560 cda[ind].replay_list = res.data.data.pageData; 2566 cda[ind].replay_list = res.data.data.pageData;
@@ -2646,6 +2652,70 @@ Page({ @@ -2646,6 +2652,70 @@ Page({
2646 }); 2652 });
2647 this.requestComments_new(); 2653 this.requestComments_new();
2648 }, 2654 },
  2655 +
  2656 +
  2657 + //显示全部
  2658 + toggleHandler: function (e) {
  2659 + var that = this,
  2660 + index = e.currentTarget.dataset.index;
  2661 + for (var i = 0; i < that.data.comments.length; i++) {
  2662 + if (index == i) {
  2663 + for (var i = 0; i < that.data.comments.length; i++) {
  2664 + that.data.comments[index].auto = true;
  2665 + that.data.comments[index].seeMore = false;
  2666 + }
  2667 + }
  2668 + }
  2669 + that.setData({
  2670 + comments: that.data.comments
  2671 + })
  2672 + },
  2673 +
  2674 + //收起更多
  2675 + toggleContent: function (e) {
  2676 + var that = this,
  2677 + index = e.currentTarget.dataset.index;
  2678 + for (var i = 0; i < that.data.comments.length; i++) {
  2679 + if (index == i) {
  2680 + that.data.comments[index].auto = true;
  2681 + that.data.comments[index].seeMore = true;
  2682 + }
  2683 + }
  2684 + that.setData({
  2685 + comments: that.data.comments
  2686 + })
  2687 + },
  2688 +
  2689 + //--查看评价--
  2690 + look_pj: function () {
  2691 + this.tabComment();
  2692 + this.doScrollTop();
  2693 + },
  2694 +
  2695 + previewCommentImgs_w: function (t) {
  2696 + var e = this.data.comments[t.currentTarget.dataset.cidx].weapp_img;
  2697 + var b = e.slice()
  2698 + for (var i in b) {
  2699 + b[i] = this.data.iurl + e[i];
  2700 + }
  2701 + this.data.show_prew_img = 1;
  2702 + wx.previewImage({
  2703 + current: b[t.currentTarget.dataset.id],
  2704 + urls: b
  2705 + });
  2706 + },
  2707 +
  2708 + previewGoodsCommentImgs: function (t) {
  2709 + var e = this,
  2710 + a = this.data.data.comment[t.currentTarget.dataset.cidx].img;
  2711 + a = a.map(function (t) {
  2712 + return e.data.url + t;
  2713 + }), wx.previewImage({
  2714 + current: a[t.currentTarget.dataset.id],
  2715 + urls: a
  2716 + });
  2717 + this.data.show_prew_img = 1;
  2718 + },
2649 2719
2650 2720
2651 2721
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -205,11 +205,11 @@ @@ -205,11 +205,11 @@
205 205
206 <view wx:if="{{listServiceItem && listServiceItem.length > 0}}"> 206 <view wx:if="{{listServiceItem && listServiceItem.length > 0}}">
207 <view class="card fs28" wx:for="{{listServiceItem}}"> 207 <view class="card fs28" wx:for="{{listServiceItem}}">
208 - <view class="flex ai_c jc_sb">  
209 - <view class="ellipsis-1">{{item.projectName}}({{item.frequency}}次)</view> 208 + <view class="flex ai_c jc_sb" style="height: 88rpx;">
  209 + <view class="ellipsis-2">{{item.projectName}}({{item.frequency}}次)</view>
210 <view class="pdl30"> 210 <view class="pdl30">
211 - <text class="rmb fs36 bold c-red pdr10">{{item.money}}</text>  
212 - <text class="line-del fs22 c-9">{{item.showPrice}}</text> 211 + <text class="rmb fs36 bold c-red pdr10" wx:if="{{item.showPrice}}">{{item.showPrice}}</text>
  212 + <text class="line-del fs22 c-9" wx:if="{{item.vipPrice}}">{{item.vipPrice}}</text>
213 </view> 213 </view>
214 </view> 214 </view>
215 <view class="flex ai_c jc_sb fs24 c-6"> 215 <view class="flex ai_c jc_sb fs24 c-6">
@@ -329,7 +329,7 @@ @@ -329,7 +329,7 @@
329 </view> 329 </view>
330 </view> 330 </view>
331 <view class="xc-pirces"> 331 <view class="xc-pirces">
332 - <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}"> 332 + <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" style="word-break: break-all;">
333 {{item.content?item.content:'此用户没有填写评价。'}} 333 {{item.content?item.content:'此用户没有填写评价。'}}
334 </view> 334 </view>
335 </view> 335 </view>
packageB/pages/user/add_comment/add_comment.js
@@ -25,14 +25,45 @@ Page({ @@ -25,14 +25,45 @@ Page({
25 }, 25 },
26 onLoad: async function (a) { 26 onLoad: async function (a) {
27 var th = this; 27 var th = this;
28 - await getApp().request.promiseGet("/api/weshop/ordergoods/pageGoods", { data:{store_id:os.stoid,goods_id:a.goods_id, order_id:a.order_id}}).then(res => {  
29 -  
30 - if(ut.ajax_ok(res)) {  
31 - a.img = th.data.iurl + res.data.data.pageData[0].original_img;  
32 - a.goods_name = res.data.data.pageData[0].goods_name;  
33 - a.goods_num = res.data.data.pageData[0].goods_num;  
34 - }  
35 - }) 28 + if(a.card == 1) {
  29 + wx.setNavigationBarTitle({
  30 + title: '评价卡项',
  31 + });
  32 + // console.log('card==1');
  33 + await getApp().request.promiseGet('/api/weshop/recharge/user/servicelist/list',{
  34 + data:{
  35 + store_id:os.stoid,
  36 + card_id:a.goods_id,
  37 + order_id:a.order_id,
  38 + },
  39 + }).then(res => {
  40 + // console.log('card===1', res.data);
  41 + if(res.data.code == 0) {
  42 + a.img = th.data.iurl + res.data.data[0].img_url;
  43 + a.goods_name = res.data.data[0].service_name;
  44 + a.goods_num = res.data.data[0].qty;
  45 + };
  46 + // if(ut.ajax_ok(res)) {
  47 + // a.img = th.data.iurl + res.data.data.pageData[0].original_img;
  48 + // a.goods_name = res.data.data.pageData[0].goods_name;
  49 + // a.goods_num = res.data.data.pageData[0].goods_num;
  50 + // }
  51 + });
  52 + } else {
  53 + wx.setNavigationBarTitle({
  54 + title: '评价宝贝',
  55 + });
  56 + // console.log('card==0');
  57 + await getApp().request.promiseGet("/api/weshop/ordergoods/pageGoods", { data:{store_id:os.stoid,goods_id:a.goods_id, order_id:a.order_id}}).then(res => {
  58 +
  59 + if(ut.ajax_ok(res)) {
  60 + a.img = th.data.iurl + res.data.data.pageData[0].original_img;
  61 + a.goods_name = res.data.data.pageData[0].goods_name;
  62 + a.goods_num = res.data.data.pageData[0].goods_num;
  63 + }
  64 + })
  65 + };
  66 +
36 this.setData({ options: a }); 67 this.setData({ options: a });
37 t.getUserInfo(function (e) { 68 t.getUserInfo(function (e) {
38 console.log(e); 69 console.log(e);
@@ -64,9 +95,9 @@ Page({ @@ -64,9 +95,9 @@ Page({
64 }); 95 });
65 }, 96 },
66 checkDeliverRank: function (t) { 97 checkDeliverRank: function (t) {
67 - this.setData({  
68 - deliver_rank: parseInt(t.currentTarget.dataset.i) + 1  
69 - }); 98 + this.setData({
  99 + deliver_rank: parseInt(t.currentTarget.dataset.i) + 1
  100 + });
70 }, 101 },
71 selectPhotos: function (t) { 102 selectPhotos: function (t) {
72 if (this.data.isLongPress) this.data.isLongPress = !1; else { 103 if (this.data.isLongPress) this.data.isLongPress = !1; else {
@@ -88,8 +119,20 @@ Page({ @@ -88,8 +119,20 @@ Page({
88 }, 119 },
89 submitComment: function (i) { 120 submitComment: function (i) {
90 var a = this; 121 var a = this;
91 - if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank)  
92 - return getApp().my_warnning("请先打分",0,a); 122 + let url = '';
  123 + if(this.options.card == 1) {
  124 + this.setData({
  125 + deliver_rank: 5
  126 + });
  127 + if (!a.data.service_rank || !a.data.goods_rank)
  128 + return getApp().my_warnning("请先打分",0,a);
  129 + } else {
  130 + if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank)
  131 + return getApp().my_warnning("请先打分",0,a);
  132 + };
  133 +
  134 +
  135 +
93 // if(a.data.content=="") 136 // if(a.data.content=="")
94 // return getApp().my_warnning("请填写评价内容",0,a); 137 // return getApp().my_warnning("请填写评价内容",0,a);
95 138
@@ -114,18 +157,26 @@ Page({ @@ -114,18 +157,26 @@ Page({
114 if(a.data.is_anonymous){ 157 if(a.data.is_anonymous){
115 p_data['is_anonymous']=1; 158 p_data['is_anonymous']=1;
116 } 159 }
  160 + if(this.data.options.card == 1) {
  161 + // delete p_data.goods_id;
  162 + p_data['service_id'] = this.data.options.goods_id;
  163 + url = '/api/weshop/serviceComment/savecomment';
  164 + } else {
  165 + url = '/api/weshop/comment/savecomment';
  166 + };
  167 +
117 168
118 - e.post("/api/weshop/comment/savecomment", { 169 + e.post(url, {
119 data:p_data, 170 data:p_data,
120 - success: function (a) {  
121 - if(a.data.code==0){ 171 + success: function (res) {
  172 + if(res.data.code==0){
122 wx.setStorageSync("user:comment:update", !0), t.showSuccess("评论成功", function () { 173 wx.setStorageSync("user:comment:update", !0), t.showSuccess("评论成功", function () {
123 // wx.navigateBack(); 174 // wx.navigateBack();
124 var url = i.currentTarget.dataset.url; 175 var url = i.currentTarget.dataset.url;
125 getApp().goto(url); 176 getApp().goto(url);
126 }); 177 });
127 }else{ 178 }else{
128 - getApp().my_warnning(a.data.msg,0,a); 179 + getApp().my_warnning(res.data.msg,0,a);
129 } 180 }
130 } 181 }
131 }); 182 });
packageB/pages/user/add_comment/add_comment.json
1 { 1 {
2 - "navigationBarTitleText": "评价宝贝",  
3 "enablePullDownRefresh": false, 2 "enablePullDownRefresh": false,
4 "usingComponents": { 3 "usingComponents": {
5 "warn": "/components/long_warn/long_warn" 4 "warn": "/components/long_warn/long_warn"
packageB/pages/user/add_comment/add_comment.wxml
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 30
31 <!-- 商品评价信息 --> 31 <!-- 商品评价信息 -->
32 <view class="addComment"> 32 <view class="addComment">
33 - <textarea class="fs24" placeholder="已经收到商品,快跟大家分享一下宝贝吧!" bindinput="txtInpt" placeholder-class="fs24" maxlength="500" value="{{content}}"></textarea> 33 + <textarea class="fs24" placeholder="已经收到商品,快跟大家分享一下宝贝吧!" bindinput="txtInpt" placeholder-class="fs24" maxlength="500" value="{{content}}" />
34 <view class="flex addimages"> 34 <view class="flex addimages">
35 <!-- 评论图片集合 --> 35 <!-- 评论图片集合 -->
36 <view class="images"> 36 <view class="images">
@@ -74,8 +74,9 @@ @@ -74,8 +74,9 @@
74 </view> 74 </view>
75 </view> 75 </view>
76 </view> 76 </view>
77 -  
78 - <view class="score-item flex-vertical"> 77 + <!-- 卡项订单不用给予物流服务评价 -->
  78 + <view class="score-item flex-vertical" wx:if="{{!options.card}}">
  79 + <!-- <view class="score-item flex-vertical"> -->
79 <view class="fs24">物流服务</view> 80 <view class="fs24">物流服务</view>
80 <view class="stars flex-vertical"> 81 <view class="stars flex-vertical">
81 <view class="flex-vertical" bindtap="checkDeliverRank" data-i="{{index}}" wx:for="{{5}}" wx:key="{{index}}"> 82 <view class="flex-vertical" bindtap="checkDeliverRank" data-i="{{index}}" wx:for="{{5}}" wx:key="{{index}}">
@@ -106,7 +107,12 @@ @@ -106,7 +107,12 @@
106 </view> 107 </view>
107 108
108 <view class="Submission flex-level "> 109 <view class="Submission flex-level ">
109 - <view class="fs30 flex-level white " bindtap="submitComment" data-url="/packageB/pages/user/view_comment/view_comment?goods_id={{goods_id}}&order_id={{order_id}}">提交评价</view> 110 + <block>
  111 + <!-- 卡项订单 -->
  112 + <view class="fs30 flex-level white " bindtap="submitComment" data-url="/packageB/pages/user/view_comment/view_comment?card=1&goods_id={{options.goods_id}}&order_id={{order_id}}" wx:if="{{options.card == 1}}">提交评价</view>
  113 + <!-- 其他订单 -->
  114 + <view class="fs30 flex-level white " bindtap="submitComment" data-url="/packageB/pages/user/view_comment/view_comment?goods_id={{goods_id}}&order_id={{order_id}}" wx:else>提交评价</view>
  115 + </block>
110 </view> 116 </view>
111 </view> 117 </view>
112 118
packageB/pages/user/comment/comment.js
@@ -12,6 +12,8 @@ var t = function(t) { @@ -12,6 +12,8 @@ var t = function(t) {
12 os = e.globalData.setting; 12 os = e.globalData.setting;
13 var regeneratorRuntime = require('../../../../utils/runtime.js'); 13 var regeneratorRuntime = require('../../../../utils/runtime.js');
14 14
  15 +
  16 +
15 Page({ 17 Page({
16 data: { 18 data: {
17 url: e.globalData.setting.url, 19 url: e.globalData.setting.url,
@@ -28,24 +30,29 @@ Page({ @@ -28,24 +30,29 @@ Page({
28 status: 1 30 status: 1
29 }], 31 }],
30 activeStatus: 0, 32 activeStatus: 0,
31 - comments: null, 33 + comments: [],
32 currentPage: 1, 34 currentPage: 1,
33 isloaded: 0, 35 isloaded: 0,
34 order_id:0, 36 order_id:0,
35 is_no_more:0, 37 is_no_more:0,
36 }, 38 },
  39 +
37 onLoad: function(t) { 40 onLoad: function(t) {
38 var e = void 0 === t.status ? this.data.activeStatus : t.status; 41 var e = void 0 === t.status ? this.data.activeStatus : t.status;
39 this.data.order_id=t.order_id; 42 this.data.order_id=t.order_id;
40 - 43 + this.setData({
  44 + options: t,
  45 + });
41 //a.init(this, "", "comments"), 46 //a.init(this, "", "comments"),
42 //this.requestComments(e); 47 //this.requestComments(e);
43 this.requestComments_new(e); 48 this.requestComments_new(e);
44 }, 49 },
  50 +
45 onShow: function() { 51 onShow: function() {
46 wx.getStorageSync("user:comment:update") && (wx.setStorageSync("user:comment:update", !1), 52 wx.getStorageSync("user:comment:update") && (wx.setStorageSync("user:comment:update", !1),
47 this.resetData(), this.requestComments_new(this.data.activeStatus)); 53 this.resetData(), this.requestComments_new(this.data.activeStatus));
48 }, 54 },
  55 +
49 changeTab: function(t) { 56 changeTab: function(t) {
50 var e = this; 57 var e = this;
51 if (this.data.activeStatus == t.currentTarget.dataset.status) 58 if (this.data.activeStatus == t.currentTarget.dataset.status)
@@ -54,23 +61,34 @@ Page({ @@ -54,23 +61,34 @@ Page({
54 }, 61 },
55 62
56 requestComments_new:async function(t){ 63 requestComments_new:async function(t){
57 - var e = this, th = e, n = os.url + "/api/weshop/comment/list?page=" + e.data.currentPage; 64 + var e = this, th = e;
  65 + let n = '';
  66 + if(this.data.options.card == 1) { // 卡项订单
  67 + n = os.url + '/api/weshop/serviceComment/list?page=' + this.data.currentPage;
  68 + } else {
  69 + n = os.url + '/api/weshop/comment/list?page=' + this.data.currentPage;
  70 + };
  71 +
58 this.setData({ 72 this.setData({
59 - activeStatus: t 73 + activeStatus: t, // t为tabIndex
60 }); 74 });
61 75
62 - if(e.data.order_id) n+="&order_id="+e.data.order_id; 76 + if(this.data.order_id) n+="&order_id="+e.data.order_id;
63 var rq_data={store_id: os.stoid, user_id: oo.user_id}; 77 var rq_data={store_id: os.stoid, user_id: oo.user_id};
64 if (t!= 2) {rq_data['is_comment']=t;} 78 if (t!= 2) {rq_data['is_comment']=t;}
65 79
66 var rs_data=null,com_data=this.data.comments; 80 var rs_data=null,com_data=this.data.comments;
67 await getApp().request.promiseGet(n,{data:rq_data}).then(res=>{ 81 await getApp().request.promiseGet(n,{data:rq_data}).then(res=>{
68 - e.data.currentPage++ 82 + e.data.currentPage++;
69 if(res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ 83 if(res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
70 rs_data=res.data.data.pageData; 84 rs_data=res.data.data.pageData;
71 }else{ 85 }else{
72 - th.setData({ is_no_more: 1, })  
73 - } 86 + th.setData({is_no_more: 1, comments: null});
  87 + };
  88 + if(res.data.data && res.data.data.total <= res.data.data.pageSize) {
  89 + // console.log('res======>>>', res.data.data);
  90 + th.setData({ is_no_more: 1, });
  91 + };
74 }) 92 })
75 93
76 if(rs_data){ 94 if(rs_data){
@@ -94,7 +112,7 @@ Page({ @@ -94,7 +112,7 @@ Page({
94 th.setData({ comments: com_data }) 112 th.setData({ comments: com_data })
95 } 113 }
96 114
97 - th.setData({isloaded: 1,}) 115 + th.setData({isloaded: 1,});
98 }, 116 },
99 117
100 onReachBottom: function() { 118 onReachBottom: function() {
@@ -130,6 +148,7 @@ Page({ @@ -130,6 +148,7 @@ Page({
130 _errObj[_errImg] = os.imghost + "/public/images/default_goods_image_240.gif"; 148 _errObj[_errImg] = os.imghost + "/public/images/default_goods_image_240.gif";
131 th.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; 149 th.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
132 }, 150 },
  151 +
133 //预览图片 152 //预览图片
134 previewImg: function(e) { 153 previewImg: function(e) {
135 var index = e.currentTarget.dataset.index; 154 var index = e.currentTarget.dataset.index;
packageB/pages/user/comment/comment.wxml
1 <wxs module="filter" src="../../../../utils/filter.wxs"></wxs> 1 <wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
2 <view class="container"> 2 <view class="container">
  3 + <!-- tabbar -->
3 <view class="type-navbar padding"> 4 <view class="type-navbar padding">
4 <view class="type-box fs28 type-navbar-item {{activeStatus==item.status?'type-item-on':''}}" data-status="{{item.status}}" wx:for="{{categories}}" wx:key="{{index}}"> 5 <view class="type-box fs28 type-navbar-item {{activeStatus==item.status?'type-item-on':''}}" data-status="{{item.status}}" wx:for="{{categories}}" wx:key="{{index}}">
5 <view class="title_width" bindtap="changeTab" data-status="{{item.status}}">{{item.name}}</view> 6 <view class="title_width" bindtap="changeTab" data-status="{{item.status}}">{{item.name}}</view>
6 </view> 7 </view>
7 -  
8 </view> 8 </view>
9 9
10 <!-- 无评价 --> 10 <!-- 无评价 -->
11 - <view class="noCollection" wx:if="{{(!comments||comments.length==0) && isloaded}}"> 11 + <!-- <view class="noCollection" wx:if="{{(!comments||comments.length==0) && isloaded}}"> -->
  12 + <view class="noCollection" wx:if="{{!comments}}" data-c="{{comments}}">
12 <view class="flex-level"> 13 <view class="flex-level">
13 <image src="{{iurl}}/miniapp/images/comment.png"></image> 14 <image src="{{iurl}}/miniapp/images/comment.png"></image>
14 </view> 15 </view>
@@ -21,41 +22,44 @@ @@ -21,41 +22,44 @@
21 </view> 22 </view>
22 23
23 <!-- 待评价栏 --> 24 <!-- 待评价栏 -->
24 - <view class="stay_evaluate" wx:if="{{comments.length>0}}" wx:for="{{comments}}">  
25 - 25 + <view class="stay_evaluate" wx:if="{{comments && comments.length>0}}" wx:for="{{comments}}">
26 <!-- 商品编号和状态 --> 26 <!-- 商品编号和状态 -->
27 <view class="Commodity_number flex-vertical-between fs26 padding border_bottom"> 27 <view class="Commodity_number flex-vertical-between fs26 padding border_bottom">
28 <!--商品编号 --> 28 <!--商品编号 -->
29 - <view>订单编号:{{item.order_sn}}</view> 29 + <block>
  30 + <!-- 卡项订单 -->
  31 + <view wx:if="{{options.card == 1}}">订单编号:{{item.service_sn}}</view>
  32 + <view wx:else>订单编号:{{item.order_sn}}</view>
  33 + </block>
30 <!-- 商品评价状态 --> 34 <!-- 商品评价状态 -->
31 <view class="xc-wc">{{item.comment_id>0?'已评价':'待评价'}}</view> 35 <view class="xc-wc">{{item.comment_id>0?'已评价':'待评价'}}</view>
32 </view> 36 </view>
33 37
34 - <!-- 商品详情集合 -->  
35 - <view class="detail_commoditys"> 38 + <!-- 商品详情集合 - 卡项订单 -->
  39 + <view class="detail_commoditys" wx:if="{{options.card == 1}}">
36 <!-- 单个商品 --> 40 <!-- 单个商品 -->
37 <view> 41 <view>
38 - <navigator class="detail_commodity flex-vertical padding border_bottom" url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id}}"> 42 + <navigator class="detail_commodity flex-vertical padding border_bottom" url="{{'/packageA/pages/goodsInfo/goodsInfo?goods_id='+item.goods_id}}">
39 <!-- 商品图片 --> 43 <!-- 商品图片 -->
40 - <image src="{{item.original_img}}" binderror="bind_bnerr2" data-errorimg="comments[{{index}}].original_img"></image> 44 + <image src="{{iurl + item.img_url}}" binderror="bind_bnerr2" data-errorimg="comments[{{index}}].original_img"></image>
41 <!-- 商品内容 --> 45 <!-- 商品内容 -->
42 <view class="Commodity_content"> 46 <view class="Commodity_content">
43 <view class="Commodity_goods"> 47 <view class="Commodity_goods">
44 <!-- 商品名称 --> 48 <!-- 商品名称 -->
45 - <view class="goods_name ellipsis-2 fs26">{{item.goods_name}}</view> 49 + <view class="goods_name ellipsis-2 fs26">{{item.service_name}}</view>
46 <!-- 商品规格 --> 50 <!-- 商品规格 -->
47 - <view class="Commodity_spec fs20"> 51 + <!-- <view class="Commodity_spec fs20">
48 <view class="flex-center">{{item.goods_color+item.goods_spec.length>-1?item.goods_color+item.goods_spec:'规格1'}}</view> 52 <view class="flex-center">{{item.goods_color+item.goods_spec.length>-1?item.goods_color+item.goods_spec:'规格1'}}</view>
49 - </view> 53 + </view> -->
50 </view> 54 </view>
51 <!-- 商品价格数量 --> 55 <!-- 商品价格数量 -->
52 <view class="Commodity_money flex-vertical-between baseline"> 56 <view class="Commodity_money flex-vertical-between baseline">
53 <!-- 商品价格 --> 57 <!-- 商品价格 -->
54 <view class="flex-vertical xc-wc baseline"> 58 <view class="flex-vertical xc-wc baseline">
55 <view class="fs20">¥</view> 59 <view class="fs20">¥</view>
56 - <view class="fs30">{{filter.toFix(item.goods_price,2)}}</view> 60 + <view class="fs30">{{filter.toFix(item.price,2)}}</view>
57 </view> 61 </view>
58 - <view class="fs26">x{{item.goods_num}}</view> 62 + <view class="fs26">x{{item.qty}}</view>
59 63
60 </view> 64 </view>
61 </view> 65 </view>
@@ -72,9 +76,7 @@ @@ -72,9 +76,7 @@
72 <!-- 评价内容 --> 76 <!-- 评价内容 -->
73 <view class="Comment_content ellipsis-2 fs24">{{item.content.length>0?item.content:'此用户没有填写评论'}}</view> 77 <view class="Comment_content ellipsis-2 fs24">{{item.content.length>0?item.content:'此用户没有填写评论'}}</view>
74 <view class="Comment_images flex"> 78 <view class="Comment_images flex">
75 - <image wx:if="{{item.source_type==0 && aitem.length>10}}" data-index="{{index}}" src="{{iurl+aitem}}" wx:for="{{item.img}}" wx:for-item="aitem" wx:for-index="i" data-sindex="{{i}}" data-name="img"></image>  
76 - <image wx:if="{{item.source_type==1 && aitem.length>10}}" src="{{iurl+aitem}}" wx:for-index="i" data-index="{{index}}" wx:for="{{item.weapp_img}}" wx:for-item="aitem" data-sindex="{{i}}" data-name="weapp_img"></image>  
77 - 79 + <image src="{{aitem}}" wx:for-index="i" data-index="{{index}}" wx:for="{{item.weapp_img}}" wx:for-item="aitem" data-sindex="{{i}}" data-name="weapp_img"></image>
78 </view> 80 </view>
79 81
80 <!-- 商家回复 --> 82 <!-- 商家回复 -->
@@ -95,31 +97,122 @@ @@ -95,31 +97,122 @@
95 <view class="commodity_evaluate flex jc_sb padding baseline fs26"> 97 <view class="commodity_evaluate flex jc_sb padding baseline fs26">
96 <!-- 商品数量 --> 98 <!-- 商品数量 -->
97 <view class="commodity_smy flex"> 99 <view class="commodity_smy flex">
98 - <view>共{{item.goods_num}}件商品</view> 100 + <view>共{{item.qty}}件商品</view>
99 <!-- 商品总价格 --> 101 <!-- 商品总价格 -->
100 <view class="flex commodity_money"> 102 <view class="flex commodity_money">
101 <view>合计:</view> 103 <view>合计:</view>
102 <view class="flex baseline xc-wc"> 104 <view class="flex baseline xc-wc">
103 <view class="fs24">¥</view> 105 <view class="fs24">¥</view>
104 - <view>{{filter.toFix(item.goods_price,2)}}</view> 106 + <view>{{filter.toFix(item.price,2)}}</view>
105 </view> 107 </view>
106 </view> 108 </view>
107 </view> 109 </view>
108 <view class="flex"> 110 <view class="flex">
109 - <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level View_evaluation fs24" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}"> 111 + <!-- <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level View_evaluation fs24" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">
110 <view>查看订单</view> 112 <view>查看订单</view>
111 - </navigator> 113 + </navigator> -->
112 114
113 - <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level comment_go" url="/packageB/pages/user/view_comment/view_comment?goods_id={{item.goods_id}}&order_id={{item.order_id}}"> 115 + <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level comment_go" url="/packageB/pages/user/view_comment/view_comment?card=1&goods_id={{item.card_id}}&order_id={{item.order_id}}">
114 <view>查看评价</view> 116 <view>查看评价</view>
115 </navigator> 117 </navigator>
116 118
117 - <navigator wx:if="{{!item.comment_id}}" bindtap="comment" data-recid="{{item.rec_id}}" class="commodity_To_evaluate flex-level comment_go" url="{{item.comment_id>0?'/packageB/pages/user/add_comment/add_comment?goods_id={{item.goods_id}}&order_id={{item.order_id}}':''}}"> 119 + <navigator wx:if="{{!item.comment_id}}" bindtap="comment" data-recid="{{item.rec_id}}" class="commodity_To_evaluate flex-level comment_go" url="/packageB/pages/user/add_comment/add_comment?card=1&goods_id={{item.card_id}}&order_id={{item.order_id}}&price={{item.price}}">
118 <view class="fs24">去评价</view> 120 <view class="fs24">去评价</view>
119 </navigator> 121 </navigator>
120 </view> 122 </view>
121 </view> 123 </view>
122 </view> 124 </view>
  125 +
  126 + <!-- 商品详情集合 -->
  127 + <view class="detail_commoditys" wx:else>
  128 + <!-- 单个商品 -->
  129 + <view>
  130 + <navigator class="detail_commodity flex-vertical padding border_bottom" url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id}}">
  131 + <!-- 商品图片 -->
  132 + <image src="{{item.original_img}}" binderror="bind_bnerr2" data-errorimg="comments[{{index}}].original_img"></image>
  133 + <!-- 商品内容 -->
  134 + <view class="Commodity_content">
  135 + <view class="Commodity_goods">
  136 + <!-- 商品名称 -->
  137 + <view class="goods_name ellipsis-2 fs26">{{item.goods_name}}</view>
  138 + <!-- 商品规格 -->
  139 + <view class="Commodity_spec fs20">
  140 + <view class="flex-center">{{item.goods_color+item.goods_spec.length>-1?item.goods_color+item.goods_spec:'规格1'}}</view>
  141 + </view>
  142 + </view>
  143 + <!-- 商品价格数量 -->
  144 + <view class="Commodity_money flex-vertical-between baseline">
  145 + <!-- 商品价格 -->
  146 + <view class="flex-vertical xc-wc baseline">
  147 + <view class="fs20">¥</view>
  148 + <view class="fs30">{{filter.toFix(item.goods_price,2)}}</view>
  149 + </view>
  150 + <view class="fs26">x{{item.goods_num}}</view>
  151 +
  152 + </view>
  153 + </view>
  154 + </navigator>
  155 + <!-- 评论信息 -->
  156 + <view class="Commodity_evaluation padding border_bottom" wx:if="{{item.comment_id>0}}">
  157 + <!-- 评价星级 -->
  158 + <view class="starss flex fs26">
  159 + <view class="commen">评价:</view>
  160 + <view class="stars">
  161 + <image src="{{imaitem>=item.deliver_rank?iurl+'/miniapp/images/StarswhiteUnCk.png':iurl+'/miniapp/images/StarsredCk.png'}}" data-ind="{{imaitem}}" data-oo="{{item.deliver_rank}}" wx:for="{{5}}" wx:for-index="imaitem" wx:for-item="{{item_start}}"></image>
  162 + </view>
  163 + </view>
  164 + <!-- 评价内容 -->
  165 + <view class="Comment_content ellipsis-2 fs24">{{item.content.length>0?item.content:'此用户没有填写评论'}}</view>
  166 + <view class="Comment_images flex">
  167 + <image wx:if="{{item.source_type==0 && aitem.length>10}}" data-index="{{index}}" src="{{iurl+aitem}}" wx:for="{{item.img}}" wx:for-item="aitem" wx:for-index="i" data-sindex="{{i}}" data-name="img"></image>
  168 + <image wx:if="{{item.source_type==1 && aitem.length>10}}" src="{{iurl+aitem}}" wx:for-index="i" data-index="{{index}}" wx:for="{{item.weapp_img}}" wx:for-item="aitem" data-sindex="{{i}}" data-name="weapp_img"></image>
  169 +
  170 + </view>
  171 +
  172 + <!-- 商家回复 -->
  173 + <view class="reply rel" wx:if="{{item.replay_list}}">
  174 + <view class="line_bulge"></view>
  175 + <view class="shop-reply fs26">店家回复: </view>
  176 + <view class="shop-font fs24" wx:for="{{item.replay_list}}" wx:for-item="r_item" wx:key="{{index}}">
  177 + {{r_item.content}}
  178 + </view>
  179 + </view>
  180 +
  181 +
  182 + <!-- 评价时间 -->
  183 + <view class="fs24 xc-ash comment_addtime flex-vertical">{{item.comment_addtime}}</view>
  184 + </view>
  185 + </view>
  186 + <!-- 去评价 -->
  187 + <view class="commodity_evaluate flex jc_sb padding baseline fs26">
  188 + <!-- 商品数量 -->
  189 + <view class="commodity_smy flex">
  190 + <view>共{{item.goods_num}}件商品</view>
  191 + <!-- 商品总价格 -->
  192 + <view class="flex commodity_money">
  193 + <view>合计:</view>
  194 + <view class="flex baseline xc-wc">
  195 + <view class="fs24">¥</view>
  196 + <view>{{filter.toFix(item.goods_price,2)}}</view>
  197 + </view>
  198 + </view>
  199 + </view>
  200 + <view class="flex">
  201 + <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level View_evaluation fs24" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">
  202 + <view>查看订单</view>
  203 + </navigator>
  204 +
  205 + <navigator wx:if="{{item.comment_id}}" class="commodity_To_evaluate flex-level comment_go" url="/packageB/pages/user/view_comment/view_comment?goods_id={{item.goods_id}}&order_id={{item.order_id}}">
  206 + <view>查看评价</view>
  207 + </navigator>
  208 +
  209 + <navigator wx:if="{{!item.comment_id}}" bindtap="comment" data-recid="{{item.rec_id}}" class="commodity_To_evaluate flex-level comment_go" url="{{item.comment_id>0?'/packageB/pages/user/add_comment/add_comment?goods_id={{item.goods_id}}&order_id={{item.order_id}}':''}}">
  210 + <view class="fs24">去评价</view>
  211 + </navigator>
  212 + </view>
  213 + </view>
  214 + </view>
  215 +
123 </view> 216 </view>
124 217
125 <view class="get_bottom fs26" wx:if="{{comments.length>0 && is_no_more}}">已经加载到底部</view> 218 <view class="get_bottom fs26" wx:if="{{comments.length>0 && is_no_more}}">已经加载到底部</view>
packageB/pages/user/view_comment/view_comment.js
@@ -28,7 +28,8 @@ Page({ @@ -28,7 +28,8 @@ Page({
28 var th = this; 28 var th = this;
29 th.setData({ 29 th.setData({
30 goods_id: options.goods_id, 30 goods_id: options.goods_id,
31 - order_id: options.order_id 31 + order_id: options.order_id,
  32 + options: options,
32 }) 33 })
33 th.query_comment(); 34 th.query_comment();
34 }, 35 },
@@ -41,10 +42,17 @@ Page({ @@ -41,10 +42,17 @@ Page({
41 }, 42 },
42 query_comment: function() { 43 query_comment: function() {
43 var th = this; 44 var th = this;
  45 + let url = '';
44 wx.showLoading({ 46 wx.showLoading({
45 title: '加载中' 47 title: '加载中'
46 }) 48 })
47 - var url = "/api/weshop/comment/list"; 49 +
  50 + if(this.data.options.card == 1) { // 卡项订单
  51 + url = `/api/weshop/serviceComment/list?card_id=${this.data.goods_id}`;
  52 + } else {
  53 + url = '/api/weshop/comment/list';
  54 + }
  55 +
48 getApp().request.promiseGet(url, { 56 getApp().request.promiseGet(url, {
49 data: { 57 data: {
50 store_id: a.stoid, 58 store_id: a.stoid,
packageB/pages/user/view_comment/view_comment.wxml
1 <view class="commoditymax" wx:for="{{comment}}" wx:if="{{index==0}}" wx:for-item="item"> 1 <view class="commoditymax" wx:for="{{comment}}" wx:if="{{index==0}}" wx:for-item="item">
2 <!-- 商品评价 --> 2 <!-- 商品评价 -->
3 <view class='commodity'> 3 <view class='commodity'>
4 - <!-- 商品信息 -->  
5 - <navigator class='information flex-vertical' url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id}}"> 4 + <!-- 卡项 -->
  5 + <navigator class='information flex-vertical' url="{{'/packageA/pages/goodsInfo/goodsInfo?goods_id='+options.goods_id}}" wx:if="{{options.card == 1}}">
  6 + <image src="{{iurl+item.img_url}}" binderror="bind_bnerr2" data-errorimg="item.img_url"></image>
  7 + <view class="goods_name xc-black">
  8 + <!-- 商品名称 -->
  9 + <view class='ellipsis-2 fs32'>{{item.service_name}}</view>
  10 +
  11 + <!-- 商品价格,数量 -->
  12 + <view class='flex jc_sb balin'>
  13 + <!-- 价格 -->
  14 + <view class='flex-vertical balin'>
  15 + <view class="fs24">¥</view>
  16 + <view class="fs35">{{item.price}}</view>
  17 + </view>
  18 +
  19 + <!-- 商品数量 -->
  20 + <view class='sum flex-vertical balin xc-black'>
  21 + <view class="fs24">x</view>
  22 + <view class="fs28">{{item.qty}}</view>
  23 + </view>
  24 +
  25 + </view>
  26 +
  27 + </view>
  28 +
  29 + </navigator>
  30 +
  31 + <!-- 其他商品 -->
  32 + <navigator class='information flex-vertical' url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id}}" wx:else>
6 <image src="{{iurl+item.original_img}}" binderror="bind_bnerr2" data-errorimg="item.original_img"></image> 33 <image src="{{iurl+item.original_img}}" binderror="bind_bnerr2" data-errorimg="item.original_img"></image>
7 <view class="goods_name xc-black"> 34 <view class="goods_name xc-black">
8 <!-- 商品名称 --> 35 <!-- 商品名称 -->
9 - <view class='ellipsis-2 fs32'>{{item.goods_name}}</view> 36 + <view class='ellipsis-2 fs32'>{{item.goods_name}}</view>
  37 +
10 <!-- 商品价格,数量 --> 38 <!-- 商品价格,数量 -->
11 <view class='flex jc_sb balin'> 39 <view class='flex jc_sb balin'>
12 <!-- 价格 --> 40 <!-- 价格 -->
@@ -35,8 +63,16 @@ @@ -35,8 +63,16 @@
35 <!-- 评论图片集合 --> 63 <!-- 评论图片集合 -->
36 <view class="images"> 64 <view class="images">
37 <block wx:if="{{item.weapp_img!=''}}"> 65 <block wx:if="{{item.weapp_img!=''}}">
38 - <image class="rel" catchtap="previewImg" data-index="{{index}}" src="{{iurl+item}}" wx:for="{{item.weapp_img}}" lazy-load="true">  
39 - </image> 66 + <!-- 卡项 -->
  67 + <block wx:if="{{options.card == 1}}" >
  68 + <image class="rel" catchtap="previewImg" data-index="{{index}}" src="{{item}}" wx:for="{{item.weapp_img}}" lazy-load="true"></image>
  69 + </block>
  70 +
  71 + <!-- 其他商品 -->
  72 + <block wx:else>
  73 + <image class="rel" catchtap="previewImg" data-index="{{index}}" src="{{iurl+item}}" wx:for="{{item.weapp_img}}" lazy-load="true"></image>
  74 + </block>
  75 +
40 </block> 76 </block>
41 <block wx:else> 77 <block wx:else>
42 <image wx:if="{{item.img!=''}}" class="rel" catchtap="previewImg" data-index="{{index}}" src="{{iurl+item}}" wx:for="{{item.img}}" lazy-load="true"> 78 <image wx:if="{{item.img!=''}}" class="rel" catchtap="previewImg" data-index="{{index}}" src="{{iurl+item}}" wx:for="{{item.img}}" lazy-load="true">
@@ -68,7 +104,7 @@ @@ -68,7 +104,7 @@
68 </view> 104 </view>
69 </view> 105 </view>
70 106
71 - <view class="score-item flex-vertical"> 107 + <view class="score-item flex-vertical" wx:if="{{!options.card}}">
72 <view class="fs24">物流服务</view> 108 <view class="fs24">物流服务</view>
73 <view class="stars flex-vertical"> 109 <view class="stars flex-vertical">
74 <view class="flex-vertical" wx:for="{{5}}" wx:for-item="deliver" wx:for-index="deliver"> 110 <view class="flex-vertical" wx:for="{{5}}" wx:for-item="deliver" wx:for-index="deliver">
@@ -91,14 +127,17 @@ @@ -91,14 +127,17 @@
91 </view> 127 </view>
92 </view> 128 </view>
93 <!-- 是否匿名评价 --> 129 <!-- 是否匿名评价 -->
94 -<view class="Whether" wx:if="{{comment.length>0}}">  
95 - <view class="Submission flex-level ">  
96 - <view class="fs30 flex-level white " bindtap="goto" data-url="/packageB/pages/user/comment/comment">评价其他</view>  
97 - </view>  
98 - <view class="flex-level" wx:if="{{is_act}}">  
99 - <view class="fs30 flex-level white receive" data-url="/pages/giftpack/evaluategift/evaluategift?actId={{actId}}&orderNumber={{order_id}}&orderGoodsId={{goods_id}}&giftBagId={{giftBagId}}" bindtap="goto">点击领取礼品</view>  
100 - </view>  
101 -</view> 130 +<block wx:if="{{!options.card}}">
  131 + <view class="Whether" wx:if="{{comment.length>0}}">
  132 + <view class="Submission flex-level ">
  133 + <view class="fs30 flex-level white " bindtap="goto" data-url="/packageB/pages/user/comment/comment">评价其他</view>
  134 + </view>
  135 + <view class="flex-level" wx:if="{{is_act}}">
  136 + <view class="fs30 flex-level white receive" data-url="/pages/giftpack/evaluategift/evaluategift?actId={{actId}}&orderNumber={{order_id}}&orderGoodsId={{goods_id}}&giftBagId={{giftBagId}}" bindtap="goto">点击领取礼品</view>
  137 + </view>
  138 + </view>
  139 +</block>
  140 +
102 141
103 <!-- 引入提示组件 --> 142 <!-- 引入提示组件 -->
104 <warn id="warn"></warn> 143 <warn id="warn"></warn>
packageB/pages/user/view_comment/view_comment.wxss
@@ -69,11 +69,12 @@ page{ @@ -69,11 +69,12 @@ page{
69 margin-bottom: 15rpx; 69 margin-bottom: 15rpx;
70 } 70 }
71 .comment{ 71 .comment{
72 - overflow: hidden; 72 + word-break: break-all;
  73 + /* overflow: hidden;
73 text-overflow: ellipsis; 74 text-overflow: ellipsis;
74 display: -webkit-box; 75 display: -webkit-box;
75 -webkit-box-orient: vertical; 76 -webkit-box-orient: vertical;
76 - -webkit-line-clamp: 3; 77 + -webkit-line-clamp: 3; */
77 } 78 }
78 .addComment .addimages .images { 79 .addComment .addimages .images {
79 height: 140rpx; 80 height: 140rpx;