Commit f65b7012163a99e94e5549ee99b8f70aee9a02a4

Authored by 后端研发-苏明海
2 parents a3120cbe 540644d5

Merge branch 'test' into 'qa'

Test

See merge request !585
packageA/pages/activity_share/activity_share.js
@@ -159,7 +159,7 @@ Page({ @@ -159,7 +159,7 @@ Page({
159 imageUrl: img, 159 imageUrl: img,
160 }; 160 };
161 th.setData({share_hidden:1}); 161 th.setData({share_hidden:1});
162 - th.insert_act_share(title,lbid); 162 + th.insert_act_share(title,lbid,6);
163 return ob; 163 return ob;
164 }else{ 164 }else{
165 //---秒杀,拼团,促销--- 165 //---秒杀,拼团,促销---
@@ -180,13 +180,17 @@ Page({ @@ -180,13 +180,17 @@ Page({
180 imageUrl: img, 180 imageUrl: img,
181 }; 181 };
182 th.setData({share_hidden:1,share_good:null}); 182 th.setData({share_hidden:1,share_good:null});
183 - 183 +
  184 + var ind=3;//秒杀活动分享
  185 + if(item.prom_type==6){
  186 + ind=4;
  187 + }
184 //插入活动 188 //插入活动
185 if(item.prom_type==3){ 189 if(item.prom_type==3){
186 var hui_active=this.data.hui_active; 190 var hui_active=this.data.hui_active;
187 - th.insert_act_share(hui_active.name,hui_active.id);  
188 - }else{  
189 - th.insert_act_share(item.title,item.id); 191 + th.insert_act_share(hui_active.name,hui_active.id,5);
  192 + }else{
  193 + th.insert_act_share(item.title,item.id,ind);
190 } 194 }
191 195
192 return ob; 196 return ob;
@@ -1111,13 +1115,13 @@ Page({ @@ -1111,13 +1115,13 @@ Page({
1111 }, 1115 },
1112 1116
1113 //-- 推送活动分享 -- 1117 //-- 推送活动分享 --
1114 - insert_act_share:function(title,actid){ 1118 + insert_act_share:function(title,actid,ind){
1115 var th = this; 1119 var th = this;
1116 var url="/api/weshop/sharetypeList/save"; 1120 var url="/api/weshop/sharetypeList/save";
1117 var req_data={ 1121 var req_data={
1118 shareActId:actid, 1122 shareActId:actid,
1119 shareActName:title, 1123 shareActName:title,
1120 - shareType:3, 1124 + shareType:ind,
1121 shareUserId:th.data.first_leader, 1125 shareUserId:th.data.first_leader,
1122 shareStaffId:th.data.StaffId, 1126 shareStaffId:th.data.StaffId,
1123 shareStorageId:th.data.StorageId, 1127 shareStorageId:th.data.StorageId,
@@ -1129,7 +1133,18 @@ Page({ @@ -1129,7 +1133,18 @@ Page({
1129 data:req_data, 1133 data:req_data,
1130 success:function(){} 1134 success:function(){}
1131 }) 1135 })
1132 - 1136 +
  1137 + //收入线下数据
  1138 + req_data.userId=th.data.first_leader;
  1139 + delete req_data.shareUserId;
  1140 +
  1141 + //插入数据
  1142 + getApp().request.post('/api/weshop/MdShareType/saveShare',{
  1143 + data:req_data,
  1144 + success:function(){}
  1145 + })
  1146 +
  1147 +
1133 } 1148 }
1134 1149
1135 1150
packageA/pages/goods_share/goods_share.js
@@ -836,6 +836,15 @@ Page({ @@ -836,6 +836,15 @@ Page({
836 } 836 }
837 }) 837 })
838 838
  839 + //收入线下数据
  840 + req_data.userId=th.data.first_leader;
  841 + delete req_data.shareUserId;
  842 + //插入数据
  843 + getApp().request.post('/api/weshop/MdShareType/saveShare',{
  844 + data:req_data,
  845 + success:function(){}
  846 + })
  847 +
839 } 848 }
840 849
841 850
packageA/pages/live_share/live_share.js
@@ -202,7 +202,7 @@ Page({ @@ -202,7 +202,7 @@ Page({
202 var req_data={ 202 var req_data={
203 shareActId:actid, 203 shareActId:actid,
204 shareActName:title, 204 shareActName:title,
205 - shareType:4, 205 + shareType:7,
206 shareUserId:th.data.first_leader, 206 shareUserId:th.data.first_leader,
207 shareStaffId:th.data.StaffId, 207 shareStaffId:th.data.StaffId,
208 shareStorageId:th.data.StorageId, 208 shareStorageId:th.data.StorageId,
@@ -215,6 +215,15 @@ Page({ @@ -215,6 +215,15 @@ Page({
215 success:function(){} 215 success:function(){}
216 }) 216 })
217 217
  218 + //收入线下数据
  219 + req_data.userId=th.data.first_leader;
  220 + delete req_data.shareUserId;
  221 + //插入数据
  222 + getApp().request.post('/api/weshop/MdShareType/saveShare',{
  223 + data:req_data,
  224 + success:function(){}
  225 + })
  226 +
218 } 227 }
219 228
220 229
packageA/pages/quan/quan.js
@@ -196,6 +196,15 @@ Page({ @@ -196,6 +196,15 @@ Page({
196 data:req_data, 196 data:req_data,
197 success:function(){} 197 success:function(){}
198 }) 198 })
  199 +
  200 + //收入线下数据
  201 + req_data.userId=th.data.first_leader;
  202 + delete req_data.shareUserId;
  203 + //插入数据
  204 + getApp().request.post('/api/weshop/MdShareType/saveShare',{
  205 + data:req_data,
  206 + success:function(){}
  207 + })
199 208
200 } 209 }
201 210
packageA/pages/quan_list/quan_list.js
@@ -108,6 +108,10 @@ Page({ @@ -108,6 +108,10 @@ Page({
108 'store_id': os.stoid, 108 'store_id': os.stoid,
109 'type': 5 109 'type': 5
110 }; 110 };
  111 + //-- 导购ID --
  112 + if(getApp().globalData.guide_id){
  113 + pdata.guide_id=getApp().globalData.guide_id;
  114 + }
111 var app = getApp(), 115 var app = getApp(),
112 th = this; 116 th = this;
113 app.request.post("/api/weshop/couponList/saveCouponList", { 117 app.request.post("/api/weshop/couponList/saveCouponList", {
packageA/pages/quan_pro/quan_pro.js
@@ -102,6 +102,12 @@ Page({ @@ -102,6 +102,12 @@ Page({
102 'store_id': os.stoid, 102 'store_id': os.stoid,
103 'type': 5 103 'type': 5
104 }; 104 };
  105 +
  106 + //-- 分享导购ID --
  107 + if(getApp().globalData.guide_id){
  108 + pdata.guide_id=getApp().globalData.guide_id;
  109 + }
  110 +
105 var app = getApp(), 111 var app = getApp(),
106 th = this; 112 th = this;
107 app.request.post("/api/weshop/couponList/saveCouponList", { 113 app.request.post("/api/weshop/couponList/saveCouponList", {
pages/cart/cart2/cart2.js
@@ -3136,9 +3136,9 @@ Page({ @@ -3136,9 +3136,9 @@ Page({
3136 } 3136 }
3137 //如果有设置不包邮商品 3137 //如果有设置不包邮商品
3138 if(no_by_data && no_by_data.goods_list && gift_freight_free){ 3138 if(no_by_data && no_by_data.goods_list && gift_freight_free){
3139 - if(th.check_by_goods(no_by_data.goods_list)){ 3139 + if(th.check_by_goods(no_by_data.goods_list,good.goods_id)){
3140 gift_freight_free=0; 3140 gift_freight_free=0;
3141 - th.data.is_no_by[th.data.bn_pick]=1; 3141 + //th.data.is_no_by[th.data.bn_pick]=1;
3142 } 3142 }
3143 } 3143 }
3144 var t_shipping_price= 3144 var t_shipping_price=
@@ -3174,7 +3174,6 @@ Page({ @@ -3174,7 +3174,6 @@ Page({
3174 } 3174 }
3175 } 3175 }
3176 return is_use; 3176 return is_use;
3177 -  
3178 }, 3177 },
3179 //检查是不是有其他门店的订单在选择了包邮券 3178 //检查是不是有其他门店的订单在选择了包邮券
3180 check_other_use_by:function (iter,pkid) { 3179 check_other_use_by:function (iter,pkid) {
pages/giftpack/giftpacklist/giftpacklist.js
@@ -100,6 +100,12 @@ Page({ @@ -100,6 +100,12 @@ Page({
100 "userId": d.user_id, //用户ID 100 "userId": d.user_id, //用户ID
101 "buyFrom": 2 101 "buyFrom": 2
102 }; 102 };
  103 +
  104 + //-- 分享导购要记录 --
  105 + if(getApp().globalData.guide_id){
  106 + json.guide_id=getApp().globalData.guide_id;
  107 + }
  108 +
103 var data = JSON.stringify(json); 109 var data = JSON.stringify(json);
104 var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert"; 110 var url = that.url + "/api/weshop/marketing/buy/receive/gift/record/insert";
105 111
pages/goods/categoryList/categoryList.js
@@ -164,7 +164,7 @@ Page({ @@ -164,7 +164,7 @@ Page({
164 //--- 判断是等级会员,且在有效期范围内 --- 164 //--- 判断是等级会员,且在有效期范围内 ---
165 if (user.card_field && now < end) { 165 if (user.card_field && now < end) {
166 var card_name = ob.name_map.get(user.card_field); 166 var card_name = ob.name_map.get(user.card_field);
167 - if (card_name.length > 4) card_name = card_name.substring(0, 4); 167 + //if (card_name.length > 4) card_name = card_name.substring(0, 4);
168 th.setData({ card_field: user.card_field, card_name: card_name, card_list: ob.card_list }); 168 th.setData({ card_field: user.card_field, card_name: card_name, card_list: ob.card_list });
169 } 169 }
170 } 170 }
@@ -344,9 +344,9 @@ Page({ @@ -344,9 +344,9 @@ Page({
344 for(var i=0;i<arr.length;i++){ 344 for(var i=0;i<arr.length;i++){
345 arr[i]['items']['is_show_class'] = false; 345 arr[i]['items']['is_show_class'] = false;
346 var mobile_name = arr[i]['items']['name'] 346 var mobile_name = arr[i]['items']['name']
347 - if(mobile_name.length > 4){  
348 - arr[i]['items']['name'] = mobile_name.substring(0, 4)  
349 - } 347 + //if(mobile_name.length > 4){
  348 + //arr[i]['items']['name'] = mobile_name.substring(0, 4)
  349 + //}
350 } 350 }
351 if(t.data.is_show_pl==1 && t.data.is_show_pp != 1 && t.data.is_show_gb != 1){ 351 if(t.data.is_show_pl==1 && t.data.is_show_pp != 1 && t.data.is_show_gb != 1){
352 arr[0]['items']['is_show_class'] = true; 352 arr[0]['items']['is_show_class'] = true;
pages/goods/categoryList/categoryList.wxml
@@ -435,7 +435,7 @@ @@ -435,7 +435,7 @@
435 <block wx:if="{{item[card_field]>0}}"> 435 <block wx:if="{{item[card_field]>0}}">
436 <view class="flex ai_and"> 436 <view class="flex ai_and">
437 <view class="price">¥{{item[card_field]}}</view> 437 <view class="price">¥{{item[card_field]}}</view>
438 - <view class="card_bg"> 438 + <view class="card_bg ellipsis-1">
439 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> 439 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
440 <view class="card_name">{{card_name}}</view> 440 <view class="card_name">{{card_name}}</view>
441 </view> 441 </view>
@@ -463,9 +463,9 @@ @@ -463,9 +463,9 @@
463 <view class="comment flex jc_sb"> 463 <view class="comment flex jc_sb">
464 <view class="flex ai-center"> 464 <view class="flex ai-center">
465 <view class="">¥{{g_filter.get_card_price(item,card_list,0)}}</view> 465 <view class="">¥{{g_filter.get_card_price(item,card_list,0)}}</view>
466 - <view class="card_bg flex ai-center"> 466 + <view class="card_bg ellipsis-1">
467 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> 467 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
468 - <text>{{g_filter.get_card_price(item,card_list,1)}}</text> 468 + <view class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</view>
469 </view> 469 </view>
470 </view> 470 </view>
471 </view> 471 </view>
pages/goods/goodsInfo/goodsInfo.js
@@ -297,8 +297,7 @@ Page({ @@ -297,8 +297,7 @@ Page({
297 gid=gid_str[0]; 297 gid=gid_str[0];
298 if(gid_str.length>1){ 298 if(gid_str.length>1){
299 first_leader=gid_str[1]; 299 first_leader=gid_str[1];
300 - }  
301 - 300 + }
302 //-- 如果有room_id的获取 -- 301 //-- 如果有room_id的获取 --
303 if(gid_str.length>2 && gid_str[2]){ 302 if(gid_str.length>2 && gid_str[2]){
304 room_id=gid_str[2]; 303 room_id=gid_str[2];
@@ -1813,7 +1812,15 @@ Page({ @@ -1813,7 +1812,15 @@ Page({
1813 //如果是积分购的时候 1812 //如果是积分购的时候
1814 if(th.data.prom_type==4){ 1813 if(th.data.prom_type==4){
1815 var name = th.data.prom_act.name; 1814 var name = th.data.prom_act.name;
1816 - ob.title=name; 1815 + //-- 积分购的 --
  1816 + var pri0 = th.data.prom_act.addmoney;
  1817 + var integral=th.data.prom_act.integral;
  1818 + var text="";
  1819 + if(integral){text=integral+"积分"; }
  1820 + if(pri0 && integral){ text+="+";}
  1821 + if(pri0){ text+="¥"+pri0;}
  1822 +
  1823 + ob.title= text+" "+name;
1817 } 1824 }
1818 1825
1819 return ob; 1826 return ob;
pages/goods/goodsList/goodsList.js
@@ -163,7 +163,7 @@ Page({ @@ -163,7 +163,7 @@ Page({
163 this.data.requestUrl = t; 163 this.data.requestUrl = t;
164 164
165 //不是商品分组的,不是默认排序的 165 //不是商品分组的,不是默认排序的
166 - if(t.indexOf("group_id")==-1 || e.data.tabname!="goods_id" ){ 166 + if(t.indexOf("group_id")==-1 || e.data.tabname!="sort" ){
167 t += "&orderField=" + e.data.tabname; 167 t += "&orderField=" + e.data.tabname;
168 t += "&orderType=" + e.data.adname; 168 t += "&orderType=" + e.data.adname;
169 } 169 }
pages/goods/goodsList/goodsList.wxml
@@ -15,8 +15,8 @@ @@ -15,8 +15,8 @@
15 </view> 15 </view>
16 16
17 <view class="nav"> 17 <view class="nav">
18 - <navigator bindtap="changeTab" class="nav-item" data-href="goods_id" data-ad="{{adname}}">综合  
19 - <view class="ico-dg" wx:if="{{tabname=='goods_id'}}"> 18 + <navigator bindtap="changeTab" class="nav-item" data-href="sort" data-ad="{{adname}}">综合
  19 + <view class="ico-dg" wx:if="{{tabname=='sort'}}">
20 <image class="wh100" src="{{iurl}}/miniapp/images/dg.png" wx:if="{{adname=='desc'}}"></image> 20 <image class="wh100" src="{{iurl}}/miniapp/images/dg.png" wx:if="{{adname=='desc'}}"></image>
21 <image class="wh100" src="{{iurl}}/miniapp/images/up_s.png" wx:if="{{adname=='asc'}}"></image> 21 <image class="wh100" src="{{iurl}}/miniapp/images/up_s.png" wx:if="{{adname=='asc'}}"></image>
22 </view> 22 </view>
pages/goods/goodsList/goodsList.wxss
@@ -193,8 +193,9 @@ @@ -193,8 +193,9 @@
193 } */ 193 } */
194 194
195 .card_name { 195 .card_name {
196 - position: relative;  
197 - top: -4rpx; 196 + position: relative;
  197 + top: -3rpx;
  198 + display: inline-block;
198 } 199 }
199 200
200 201
pages/goods/search/search.wxml
1 <wxs module="g_filter" src="g_filter.wxs"></wxs> 1 <wxs module="g_filter" src="g_filter.wxs"></wxs>
2 <view class="container"> 2 <view class="container">
3 <view class="nav"> 3 <view class="nav">
4 - <navigator bindtap="changeTab" class="nav-item" data-href="goods_id" data-ad="{{adname}}">综合  
5 - <view class="ico-dg" wx:if="{{tabname=='goods_id'}}"> 4 + <navigator bindtap="changeTab" class="nav-item" data-href="sort" data-ad="{{adname}}">综合
  5 + <view class="ico-dg" wx:if="{{tabname=='sort'}}">
6 <image class="wh100" src="{{url}}/miniapp/images/dg.png" wx:if="{{adname=='desc'}}"></image> 6 <image class="wh100" src="{{url}}/miniapp/images/dg.png" wx:if="{{adname=='desc'}}"></image>
7 <image class="wh100" src="{{url}}/miniapp/images/up_s.png" wx:if="{{adname=='asc'}}"></image> 7 <image class="wh100" src="{{url}}/miniapp/images/up_s.png" wx:if="{{adname=='asc'}}"></image>
8 </view> 8 </view>
pages/index/index/index.js
@@ -80,6 +80,10 @@ Page({ @@ -80,6 +80,10 @@ Page({
80 onLoad: async function(tt) { 80 onLoad: async function(tt) {
81 var th = this; 81 var th = this;
82 var first_leader=tt.first_leader; 82 var first_leader=tt.first_leader;
  83 + if(!first_leader && tt.scene){
  84 + first_leader= decodeURIComponent(tt.scene);
  85 + }
  86 +
83 if(first_leader){ 87 if(first_leader){
84 //-- user_id代过来免登陆 -- 88 //-- user_id代过来免登陆 --
85 getApp().globalData.first_leader=first_leader; 89 getApp().globalData.first_leader=first_leader;
@@ -90,7 +94,9 @@ Page({ @@ -90,7 +94,9 @@ Page({
90 } 94 }
91 }) 95 })
92 } 96 }
93 - 97 +
  98 +
  99 +
94 //看一下商家是否开通了权益 100 //看一下商家是否开通了权益
95 //--初始化是否有打勾-- 101 //--初始化是否有打勾--
96 getApp().request.promiseGet("/api/weshop/users/grade/vip/init/get", { 102 getApp().request.promiseGet("/api/weshop/users/grade/vip/init/get", {
pages/order/refund_order/refund_order.js
@@ -56,11 +56,10 @@ Page({ @@ -56,11 +56,10 @@ Page({
56 }, 56 },
57 57
58 //------提交退款申请------- 58 //------提交退款申请-------
59 - refundOrder: function(e) {  
60 -  
61 - if(!this.data.back_money){  
62 - return false;  
63 - } 59 + refundOrder: function(e) {
  60 + //if(!this.data.back_money){
  61 + // return false;
  62 + //}
64 if(this.data.isloading) return false; 63 if(this.data.isloading) return false;
65 this.data.isloading=1; 64 this.data.isloading=1;
66 var th = this; 65 var th = this;
pages/togoin/togoin.js
@@ -55,7 +55,11 @@ Page({ @@ -55,7 +55,11 @@ Page({
55 head_pic: app.clear_word(app.globalData.getu.avatarUrl) 55 head_pic: app.clear_word(app.globalData.getu.avatarUrl)
56 }; 56 };
57 57
58 - 58 + //-- 导购会员ID --
  59 + if(getApp().globalData.guide_id){
  60 + dd.guide_id=getApp().globalData.guide_id;
  61 + }
  62 +
59 getApp().request.get("/api/weshop/users/openidandkey", { 63 getApp().request.get("/api/weshop/users/openidandkey", {
60 data: dd, 64 data: dd,
61 success: function (e) { 65 success: function (e) {
@@ -114,8 +118,12 @@ Page({ @@ -114,8 +118,12 @@ Page({
114 //--如果有邀请人的时候-- 118 //--如果有邀请人的时候--
115 if(th.data.first_leader){ 119 if(th.data.first_leader){
116 dd.first_leader=th.data.first_leader; 120 dd.first_leader=th.data.first_leader;
117 - }  
118 - 121 + }
  122 + //-- 导购会员ID --
  123 + if(getApp().globalData.guide_id){
  124 + dd.guide_id=getApp().globalData.guide_id;
  125 + }
  126 +
119 console.log(dd); 127 console.log(dd);
120 app.request.get("/api/weshop/users/thirdLogin", { 128 app.request.get("/api/weshop/users/thirdLogin", {
121 data: dd, 129 data: dd,
pages/user/return_goods_info/fil.wxs 0 → 100644
  1 +function is_cancle(word){
  2 + if(word.indexOf('客户取消')!==-1){
  3 + return true;
  4 + }
  5 + return false;
  6 +}
  7 +module.exports = {
  8 + is_cancle:is_cancle
  9 +}
0 \ No newline at end of file 10 \ No newline at end of file
pages/user/return_goods_info/return_goods_info.js
@@ -10,7 +10,7 @@ Page({ @@ -10,7 +10,7 @@ Page({
10 url: r.url, 10 url: r.url,
11 resourceUrl: r.imghost, 11 resourceUrl: r.imghost,
12 return_goods: null, 12 return_goods: null,
13 - goods: null 13 + goods: null,
14 }, 14 },
15 onLoad: function(e) { 15 onLoad: function(e) {
16 if (e.order_id!=undefined){ 16 if (e.order_id!=undefined){
@@ -130,16 +130,27 @@ Page({ @@ -130,16 +130,27 @@ Page({
130 }); 130 });
131 }, 131 },
132 cancelReturn: function() { 132 cancelReturn: function() {
133 - var e = this, t = this.data.return_goods.id; 133 + var e = this,
  134 + id = this.data.return_goods.id;
134 wx.showModal({ 135 wx.showModal({
135 title: "确定取消售后服务?", 136 title: "确定取消售后服务?",
136 success: function(r) { 137 success: function(r) {
137 - r.confirm && o.post("/api/order/return_goods_cancel", { 138 + r.confirm && o.put("/api/weshop/order/returngoods/update", {
138 data: { 139 data: {
139 - id: t 140 + id: id,
  141 + store_id:os.stoid,
  142 + status:3,
  143 + remark:'客户取消'
140 }, 144 },
141 success: function(r) { 145 success: function(r) {
142 - wx.setStorageSync("user:return_goods_list:update", !0), e.requestReturnGoods(t); 146 + if(r.data.code==0){
  147 + getApp().showWarning('取消成功');
  148 + setTimeout(function(){
  149 + wx.setStorageSync("user:return_goods_list:update", !0), e.requestReturnGoods(id);
  150 + },1000)
  151 + }
  152 +
  153 +
143 } 154 }
144 }); 155 });
145 } 156 }
pages/user/return_goods_info/return_goods_info.wxml
1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs> 1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs>
  2 +<wxs module="fil" src="fil.wxs"></wxs>
2 <view class="order-mes"> 3 <view class="order-mes">
3 <view class="order-name"> 4 <view class="order-name">
4 <view>订单编号:{{return_goods.order_sn}}</view> 5 <view>订单编号:{{return_goods.order_sn}}</view>
@@ -54,12 +55,12 @@ @@ -54,12 +55,12 @@
54 </view> 55 </view>
55 <view class="apply-state"> 56 <view class="apply-state">
56 <view class="state-item"> 57 <view class="state-item">
57 - <view class="item-wrap"> 58 + <view wx:if="{{return_goods.status==0}}" class="item-wrap">
58 <view class="state-title">您的服务单已申请成功,等待售后审核中</view> 59 <view class="state-title">您的服务单已申请成功,等待售后审核中</view>
59 <view class="state-time">{{return_goods.addTimeFormat}}</view> 60 <view class="state-time">{{return_goods.addTimeFormat}}</view>
60 - <view class="state-user">操作人:系统</view> 61 + <view class="state-user">操作人:客户</view>
61 </view> 62 </view>
62 - <view class="item-wrap" wx:if="{{return_goods.status==2}}"> 63 + <view class="item-wrap" wx:if="{{return_goods.status==1}}">
63 <view class="state-title">亲爱的客户,您的服务正在处理中</view> 64 <view class="state-title">亲爱的客户,您的服务正在处理中</view>
64 <view class="state-time">{{filters.format_time(return_goods.handle_time,1)}}</view> 65 <view class="state-time">{{filters.format_time(return_goods.handle_time,1)}}</view>
65 <view class="state-user">操作人:卖家</view> 66 <view class="state-user">操作人:卖家</view>
@@ -70,8 +71,19 @@ @@ -70,8 +71,19 @@
70 <view class="state-user">操作人:卖家</view> 71 <view class="state-user">操作人:卖家</view>
71 </view> 72 </view>
72 <view class="item-wrap" wx:if="{{return_goods.status==3}}"> 73 <view class="item-wrap" wx:if="{{return_goods.status==3}}">
73 - <view class="state-title">亲爱的客户,商家已经拒绝退款</view>  
74 - <view class="state-user">操作人:卖家</view> 74 + <block wx:if="{{fil.is_cancle(return_goods.remark)}}">
  75 + <view class="state-title">亲爱的客户,你已取消退款</view>
  76 + <view class="state-user" >操作人:客户</view>
  77 + </block>
  78 + <block wx:else>
  79 + <view class="state-title">亲爱的客户,商家已经拒绝退款</view>
  80 + <view class="state-user" >操作人:卖家</view>
  81 + </block>
75 </view> 82 </view>
76 </view> 83 </view>
  84 +
  85 + <view bindtap='cancelReturn' wx:if="{{return_goods.status==0 || return_goods.status==1}}" class="btn-wrap">
  86 + <view class="submit-btn">取消退款</view>
  87 + </view>
  88 +
77 </view> 89 </view>
pages/user/return_goods_info/return_goods_info.wxss
@@ -143,3 +143,17 @@ @@ -143,3 +143,17 @@
143 .state-time { 143 .state-time {
144 padding-bottom: 20rpx; 144 padding-bottom: 20rpx;
145 } 145 }
  146 +
  147 +.btn-wrap {
  148 + padding: 20rpx 0;
  149 +}
  150 +.submit-btn {
  151 + width: 320rpx;
  152 + height: 80rpx;
  153 + line-height: 80rpx;
  154 + text-align: center;
  155 + background-color: #f15353;
  156 + color: #fff;
  157 + margin: auto;
  158 +}
  159 +.cred{color: #f15353}
146 \ No newline at end of file 160 \ No newline at end of file
pages/user/return_goods_list/fil.wxs 0 → 100644
  1 +function set_word(word){
  2 + if(word.indexOf('客户取消')!==-1){
  3 + return '客户取消';
  4 + }
  5 + return '卖家已经拒绝退款';
  6 +}
  7 +module.exports = {
  8 + set_word:set_word
  9 +}
0 \ No newline at end of file 10 \ No newline at end of file
pages/user/return_goods_list/return_goods_list.js
@@ -92,16 +92,28 @@ Page({ @@ -92,16 +92,28 @@ Page({
92 }); 92 });
93 }, 93 },
94 cancelReturn: function(t) { 94 cancelReturn: function(t) {
95 - var e = this, s = t.currentTarget.dataset.id; 95 + var e = this,
  96 + s = t.currentTarget.dataset.id;
96 wx.showModal({ 97 wx.showModal({
97 title: "确定取消售后服务?", 98 title: "确定取消售后服务?",
98 success: function(t) { 99 success: function(t) {
99 - t.confirm && r.post("/api/order/return_goods_cancel", { 100 + t.confirm && r.put("/api/weshop/order/returngoods/update", {
100 data: { 101 data: {
101 - id: s 102 + id: s,
  103 + store_id:os.stoid,
  104 + status:3,
  105 + remark:'客户取消'
102 }, 106 },
103 success: function(t) { 107 success: function(t) {
104 - e.resetData(), e.requestReturnGoods(); 108 + if(t.data.code==0){
  109 +
  110 + getApp().showWarning('取消成功');
  111 + setTimeout(function(){
  112 + e.resetData(), e.requestReturnGoods();
  113 + },1000);
  114 + }
  115 +
  116 +
105 } 117 }
106 }); 118 });
107 } 119 }
pages/user/return_goods_list/return_goods_list.wxml
  1 +<wxs module="fil" src="fil.wxs"></wxs>
1 <view class="container"> 2 <view class="container">
2 <view class="return-box" wx:for="{{list}}" wx:key="{{index}}"> 3 <view class="return-box" wx:for="{{list}}" wx:key="{{index}}">
3 <view class="item"> 4 <view class="item">
@@ -7,7 +8,8 @@ @@ -7,7 +8,8 @@
7 <block wx:if="{{item.status==0}}">已申请成功,待售后审核中</block> 8 <block wx:if="{{item.status==0}}">已申请成功,待售后审核中</block>
8 <block wx:elif="{{item.status==1}}">处理中</block> 9 <block wx:elif="{{item.status==1}}">处理中</block>
9 <block wx:elif="{{item.status==2}}">退款完成</block> 10 <block wx:elif="{{item.status==2}}">退款完成</block>
10 - <block wx:elif="{{item.status==3}}">卖家已经拒绝退款</block> 11 + <block wx:elif="{{item.status==3}}">{{fil.set_word(item.remark)}}</block>
  12 +
11 <image class="wh100 arrow" src="{{iurl}}/miniapp/images/icon-arrowdown.png"></image> 13 <image class="wh100 arrow" src="{{iurl}}/miniapp/images/icon-arrowdown.png"></image>
12 </navigator> 14 </navigator>
13 <view class="item return-goods" wx:for="{{item.goodslist}}" wx:for-item="goods"> 15 <view class="item return-goods" wx:for="{{item.goodslist}}" wx:for-item="goods">
@@ -19,7 +21,7 @@ @@ -19,7 +21,7 @@
19 </view> 21 </view>
20 <navigator class="return-btn" url="/pages/user/return_goods_info/return_goods_info?id={{item.id}}">进度查询</navigator> 22 <navigator class="return-btn" url="/pages/user/return_goods_info/return_goods_info?id={{item.id}}">进度查询</navigator>
21 <!-- <view bindtap="receiveOrder" class="return-btn" data-id="{{item.id}}" hidden="{{!(item.status==2&&item.type==1)}}">确认收货</view> --> 23 <!-- <view bindtap="receiveOrder" class="return-btn" data-id="{{item.id}}" hidden="{{!(item.status==2&&item.type==1)}}">确认收货</view> -->
22 - <!-- <view bindtap="cancelReturn" class="return-btn" data-id="{{item.id}}" hidden="{{!(item.status!=-2&&item.status<1)}}">取消申请</view> --> 24 + <view bindtap="cancelReturn" class="return-btn" data-id="{{item.id}}" wx:if="{{item.status<=1}}">取消申请</view>
23 </view> 25 </view>
24 <view class="no-data" wx:if="{{!list||list.length==0}}"> 26 <view class="no-data" wx:if="{{!list||list.length==0}}">
25 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> 27 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
pages/user/userqy/userqy.js
@@ -169,7 +169,7 @@ Page({ @@ -169,7 +169,7 @@ Page({
169 var item=th.data.qy_list[ind]; 169 var item=th.data.qy_list[ind];
170 if(item.ishas==undefined || !item.ishas){ 170 if(item.ishas==undefined || !item.ishas){
171 var qt_txt = th.selectComponent("#pop_txt"); //组件的id 171 var qt_txt = th.selectComponent("#pop_txt"); //组件的id
172 - var ob={title:"温馨提示",content:"当前会员暂无此权益"}; 172 + var ob={title:"温馨提示",content:"您当前会员等级暂无此权益"};
173 qt_txt.open(ob); 173 qt_txt.open(ob);
174 return false; 174 return false;
175 } 175 }
@@ -177,7 +177,7 @@ Page({ @@ -177,7 +177,7 @@ Page({
177 if(th.data.click_gradeId!=null && th.data.click_gradeId!=th.data.gradeId){ 177 if(th.data.click_gradeId!=null && th.data.click_gradeId!=th.data.gradeId){
178 var qt_txt = th.selectComponent("#pop_txt"); //组件的id 178 var qt_txt = th.selectComponent("#pop_txt"); //组件的id
179 179
180 - var text="当前会员暂无此权益"; 180 + var text="您当前会员等级暂无此权益";
181 if(th.data.this_curr_id>th.data.currentItemId){ 181 if(th.data.this_curr_id>th.data.currentItemId){
182 text="【"+th.data.backClass[th.data.currentItemId].GradeName+"】专享,您当前是【"+th.data.backClass[th.data.this_curr_id].GradeName+"】"; 182 text="【"+th.data.backClass[th.data.currentItemId].GradeName+"】专享,您当前是【"+th.data.backClass[th.data.this_curr_id].GradeName+"】";
183 } 183 }