Browse Source

评价待测

beibo 5 months ago
parent
commit
6f65496b74

+ 2 - 0
pages/order/detail/index.js

@@ -42,11 +42,13 @@ Page({
42 42
     imType: 'order',
43 43
   },
44 44
   handleInit(event) {
45
+    console.log(event, 666555)
45 46
     const {
46 47
       status
47 48
     } = event.detail;
48 49
   },
49 50
   handleSuccess(event) {
51
+    console.log(event, 676767)
50 52
     const {
51 53
       result
52 54
     } = event.detail;

+ 21 - 19
pages/order/detail/index.ttml

@@ -49,11 +49,11 @@
49 49
       <text class="icon icon-bj"></text>
50 50
       <view class="name">修改信息</view>
51 51
     </view> -->
52
-    <view class="icon-tab" tt:if="{{info.orderStatus == 1 && info.waitPayResult!=1}}"
52
+    <!-- <view class="icon-tab" tt:if="{{info.orderStatus == 1 && info.waitPayResult!=1}}"
53 53
       data-presellStatus="{{query.presellStatus}}" bindtap="cancelOrder">
54 54
       <text class="icon icon-cancel-order"></text>
55 55
       <view class="name">{{query.presellStatus ==2?'取消支付':'取消订单'}}</view>
56
-    </view>
56
+    </view> -->
57 57
     <!-- <view class="icon-tab"
58 58
       tt:if="{{info.orderStatus==2&&info.atype=='0'?false:true&&info.comment && info.comment != ''&&info.comment.modified == 0}}"
59 59
       data-index="1" bindtap="actEvaluate">
@@ -69,13 +69,13 @@
69 69
     <!-- 完成支付 -->
70 70
     <button class="button button-warn share-group" tt:if="{{info.orderStatus == 1}}" bindtap="goPay">继续支付</button>
71 71
     <!-- 活动评价 -->
72
-    <button class="button button-warn share-group"
72
+    <!-- <button class="button button-warn share-group"
73 73
       tt:elif="{{info.waitComment == 1&&info.orderStatus!=3&&info.orderStatus!=4&&(query.otype==0||query.otype==3)}}"
74
-      bindtap="actEvaluate">{{info.atype==1?'商品':'活动'}}评价</button>
74
+      bindtap="actEvaluate">{{info.atype==1?'商品':'活动'}}评价</button> -->
75 75
     <!-- todo: -->
76
-    <!-- <rate-button order-id="xxx" bind:init="handleInit" bind:success="handleSuccess"
77
-      class="button button-warn share-group" style="width: 310rpx;" /> -->
78
-
76
+    <rate-button tt:if="{{info.waitComment == 1||info.waitComment == 2}}" order-id="{{info.outTradeNo}}"
77
+      bind:init="handleInit" bind:success="handleSuccess" class="button button-warn share-group"
78
+      style="width: 310rpx;" />
79 79
     <!-- 追加评价 -->
80 80
     <!-- <button class="button button-warn share-group"
81 81
       tt:elif="{{info.comment&&info.comment.additional == 0&&(query.otype==0||query.otype==3)}}"
@@ -112,10 +112,12 @@
112 112
         <view class="listTitle">{{info.title}}</view>
113 113
         <text class="font12 black">
114 114
           {{info.atype == 0 ? '场次':'颜色'}}:{{info.sessionName}}
115
-          {{info.atype == 0 ? (info.military==1?'排':'套餐'):'尺寸'}}:<block tt:for="{{info.meals}}" tt:for-index="index"
116
-            tt:for-item="infoName" tt:key="index">{{infoName.policyName}}<text
115
+          {{info.atype == 0 ? (info.military==1?'排':'套餐'):'尺寸'}}:<block tt:if="{{info.sessionName!='暂不选择'}}"
116
+            tt:for="{{info.meals}}" tt:for-index="index" tt:for-item="infoName" tt:key="index">
117
+            {{infoName.policyName}}<text
117 118
               tt:if="{{info.military==1}}">({{info.campSex==0?'仅女生可报':(info.campSex==1?'仅男生可报':'不限性别')}})</text>({{infoName.num}})
118 119
           </block>
120
+          <block tt:if="{{info.sessionName=='暂不选择'}}">暂不选择</block>
119 121
         </text>
120 122
       </view>
121 123
     </navigator>
@@ -172,31 +174,31 @@
172 174
         <view class="cell-title">备注</view>
173 175
         <view class="cell-value">{{info.remark}}</view>
174 176
       </view>
175
-      <view class="cell" tt:if="{{info.orderStatus == 2 && info.agreementUrl}}">
177
+      <!-- <view class="cell" tt:if="{{info.orderStatus == 2 && info.agreementUrl}}">
176 178
         <view class="cell-title">旅游电子合同</view>
177 179
         <view class="cell-value">
178 180
           <button plain size="mini" type="warn" data-type="电子合同" bindtap="lookContract" data-url="{{info.agreementUrl}}"
179 181
             class="button button-radius contract button-warn button-border">点击查看</button>
180 182
         </view>
181
-      </view>
183
+      </view> -->
182 184
 
183 185
 
184 186
       <!-- tt:if="{{info.travelPlanUrl!=null}}" -->
185
-      <view class="cell" tt:if="{{info.travelPlanUrl!=null}}">
187
+      <!-- <view class="cell" tt:if="{{info.travelPlanUrl!=null}}">
186 188
         <view class="cell-title">行程单</view>
187 189
         <view class="cell-value">
188 190
           <button plain size="mini" type="warn" data-type="行程单" bindtap="lookContract" data-url="{{info.travelPlanUrl}}"
189 191
             class="button button-radius contract">点击查看</button>
190 192
         </view>
191
-      </view>
192
-      <navigator class="cell ceill-link scan" hover-class="none"
193
+      </view> -->
194
+      <!-- <navigator class="cell ceill-link scan" hover-class="none"
193 195
         url="/pages/order/groupQrcode/index?orderid={{info.orderid}}"
194 196
         tt:if="{{info.orderStatus == 2 && info.sessionQrcode}}">
195 197
         <view class="cell-title">扫码加入活动群</view>
196 198
         <view class="cell-value">
197 199
           <text class="qrCode"></text>
198 200
         </view>
199
-      </navigator>
201
+      </navigator> -->
200 202
       <view class="cell" tt:if="{{info.canRefund && info.atype == 1}}">
201 203
         <view class="cell-title">申请退款</view>
202 204
         <view class="cell-value">
@@ -276,8 +278,8 @@
276 278
         <button size="mini" class="button refund button-plain-gray button-radius"
277 279
           tt:if="{{(item.status == 1 || item.status == 15)&& item.canRefund}}" bindtap="refund"
278 280
           data-password="{{item.password}}" data-status="{{item.status}}" data-index="{{index}}">申请退款</button>
279
-        <button size="mini" class="button cancelRefund button-plain-gray button-radius" tt:if="{{item.status == 6}}"
280
-          bindtap="cancelRefund" data-password="{{item.password}}">取消退款</button>
281
+        <!-- <button size="mini" class="button cancelRefund button-plain-gray button-radius" tt:if="{{item.status == 6}}"
282
+          bindtap="cancelRefund" data-password="{{item.password}}">取消退款</button> -->
281 283
         <!-- <button size="mini" class="button refund button-plain-gray button-radius" tt:if="{{item.changeStatus!=2}}"
282 284
           data-status="{{item.changeStatus}}" data-oid="{{item.oid}}"
283 285
           bindtap="changeMeals">{{item.changeStatus==0?'更换场次':'申请中'}}</button> -->
@@ -286,10 +288,10 @@
286 288
         <!-- <button size="mini" plain type="warn" class="button button-radius" tt:if="{{info.isManyDay == 1 && item.status == 1}}" bindtap="trip" data-refundpwd="{{item.password}}">补充营员信息</button> -->
287 289
         <button size="mini" type="warn" bindtap="scheduling" data-pendingStatus="2" data-oid="{{item.oid}}"
288 290
           data-optionId="{{item.optionId}}" class="button refund button-plain-gray button-radius"
289
-          tt:if="{{info.sessionName=='暂不选择'&&info.idcardCount<info.num}}">选择排期</button>
291
+          tt:if="{{info.sessionName=='暂不选择'&&info.idcardCount<info.num&&item.status==1}}">选择排期</button>
290 292
         <button size="mini" type="warn" bindtap="scheduling" data-pendingStatus="1" data-oid="{{item.oid}}"
291 293
           data-optionId="{{item.optionId}}" class="button refund button-plain-gray button-radius"
292
-          tt:if="{{info.sessionName!='暂不选择'&&info.idcardCount<info.num}}">添加出行人</button>
294
+          tt:if="{{info.sessionName!='暂不选择'&&info.idcardCount<info.num&&item.status==1}}">添加出行人</button>
293 295
       </view>
294 296
     </view>
295 297
   </view>

+ 4 - 4
pages/order/index/order.ttml

@@ -30,8 +30,8 @@
30 30
 <view class="content">
31 31
   <view class="order-card white-bg" tt:for="{{list}}" tt:key="unique">
32 32
     <view style="padding:  20rpx 20rpx 0 20rpx ;">
33
-      <view class="orderItemTop">活动开始时间:{{item.startTime}} <text class="red" style="float: right;"
34
-          tt:if="{{!(item.status == 13 && item.needPayBalance==1)}}">{{item.statusDesc}}</text>
33
+      <view class="orderItemTop">活动开始时间:{{item.startTime=='3000-01-01'?'待定':item.startTime}} <text class="red"
34
+          style="float: right;" tt:if="{{!(item.status == 13 && item.needPayBalance==1)}}">{{item.statusDesc}}</text>
35 35
       </view>
36 36
       <navigator class="order-card-main" hover-class="none"
37 37
         url="/pages/order/detail/index?orderid={{item.orderid}}&otype={{queryData.otype}}&presellStatus={{item.presellStatus}}">
@@ -98,9 +98,9 @@
98 98
           <!-- <text class="badge--fixed" tt:if="{{item.atype == 0}}">+50~100</text> -->
99 99
         </button>
100 100
       </block>
101
-      <button plain size="mini" type="warn" class="button button-radius cancel-refund"
101
+      <!-- <button plain size="mini" type="warn" class="button button-radius cancel-refund"
102 102
         tt:elif="{{item.status == 4 || item.status == 5}}" bindtap="cancelRefund"
103
-        data-orderid="{{item.orderid}}">取消退款</button>
103
+        data-orderid="{{item.orderid}}">取消退款</button> -->
104 104
       <block tt:elif="{{item.status == 15}}"><text>正在积极候补中,关注服务号可第一时间收到候补结果</text>
105 105
         <navigator class="ceill-link"
106 106
           url="/pages/public/swiper/web?url=https://mp.weixin.qq.com/s/MEg6m2PXpNLrBDAet7sfug&title=宝贝走天下"> <button

+ 3 - 2
pages/order/refund/refund.js

@@ -489,7 +489,7 @@ Page({
489 489
           }, ],
490 490
           callbackData: {
491 491
             reason_type: that.data.reasonIndex,
492
-            reason: that.data.defaultText,
492
+            reason: that.data.reason ? that.data.reason : that.data.defaultText,
493 493
             oid: that.data.oid,
494 494
           }, // 透传数据,开发者自定义字段 非必传
495 495
           success: successRes => {
@@ -497,7 +497,8 @@ Page({
497 497
               mask: true
498 498
             });
499 499
             console.log('申请退款成功', successRes, '参数',
500
-              'itemOrderId:', res.data.itemOrderList[0].itemOrderId, 'reason:', that.data.defaultText
500
+              'itemOrderId:', res.data.itemOrderList[0].itemOrderId,
501
+              'reason:', that.data.defaultText
501 502
             );
502 503
           },
503 504
           fail: errRes => {

+ 14 - 14
pages/order/success/index.js

@@ -58,20 +58,20 @@ Page({
58 58
       presellStatus = '';
59 59
     // 定义跳转订单详情页链接
60 60
     let link = '/pages/order/detail/index?orderid=' + this.data.orderid;
61
-    // link = link+'&otype=' + (that.data.btype==0 || that.data.btype == 2)?2:1;
62
-    if (that.data.btype == 0 || that.data.btype == 2 || that.data.btype == 3) {
63
-      link = link + '&otype=2';
64
-    } else {
65
-      link = link + '&otype=1';
66
-    }
67
-    if (that.data.presellOpen != '' && that.data.presellStatus == '') {
68
-      presellStatus = that.data.presellOpen != 0 ? 1 : 0;
69
-      link = link + '&presellStatus=' + presellStatus;
61
+    link = link + '&otype=0' + '&presellStatus=0'
62
+    // if (that.data.btype == 0 || that.data.btype == 2 || that.data.btype == 3) {
63
+    //   link = link + '&otype=2';
64
+    // } else {
65
+    //   link = link + '&otype=1';
66
+    // }
67
+    // if (that.data.presellOpen != '' && that.data.presellStatus == '') {
68
+    //   presellStatus = that.data.presellOpen != 0 ? 1 : 0;
69
+    //   link = link + '&presellStatus=' + presellStatus;
70 70
 
71
-    } else if (that.data.presellStatus != '' && that.data.presellOpen == '') {
72
-      presellStatus = that.data.presellStatus == 1 || that.data.presellStatus == 2 ? 2 : 0;
73
-      link = link + '&presellStatus=' + presellStatus;
74
-    }
71
+    // } else if (that.data.presellStatus != '' && that.data.presellOpen == '') {
72
+    //   presellStatus = that.data.presellStatus == 1 || that.data.presellStatus == 2 ? 2 : 0;
73
+    //   link = link + '&presellStatus=' + presellStatus;
74
+    // }
75 75
     that.setData({
76 76
       link
77 77
     });
@@ -79,7 +79,7 @@ Page({
79 79
       func: "v2/order/detail",
80 80
       data: {
81 81
         "orderid": that.data.orderid,
82
-        // "otype":0,
82
+        "otype": 0,
83 83
         presellStatus: 0
84 84
       }
85 85
     }, function (res) {

+ 10 - 3
project.config.json

@@ -57,8 +57,7 @@
57 57
     },
58 58
     "condition": {
59 59
         "miniprogram": {
60
-            "list": [
61
-                {
60
+            "list": [{
62 61
                     "name": "扫码进入",
63 62
                     "pathName": "pages/activeDetail/activeDetail",
64 63
                     "query": "scene=563af444e0084366be1904ce117f04f6",
@@ -241,5 +240,13 @@
241 240
             ]
242 241
         }
243 242
     },
243
+    "ttPlugins": {
244
+        "dependencies": {
245
+            "microapp-trade-plugin": {
246
+                "version": "1.2.8",
247
+                "isDynamic": true
248
+            }
249
+        }
250
+    },
244 251
     "douyinProjectType": "convert"
245
-}
252
+}