xiaoe_mp_npm 1.1.22-test02 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +2 -2
  2. package/miniprogram_dist/GoodsItem/index.js +65 -1
  3. package/miniprogram_dist/GoodsItem/index.scss +17 -0
  4. package/miniprogram_dist/GoodsItem/index.wxml +12 -1
  5. package/miniprogram_dist/GoodsItem/index.wxss +64 -0
  6. package/miniprogram_dist/LiveGoodsList/index.js +77 -1
  7. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +16 -0
  8. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +49 -23
  9. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +15 -13
  10. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxss +116 -92
  11. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +7 -0
  12. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +2 -0
  13. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +7 -0
  14. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +1 -1
  15. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +1 -0
  16. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxss +0 -4
  17. package/miniprogram_dist/Task/TaskPopup/index.js +7 -0
  18. package/miniprogram_dist/Task/TaskPopup/index.wxml +1 -0
  19. package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +4 -4
  20. package/miniprogram_dist/Task/TaskQuizPopup/index.js +26 -0
  21. package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +1 -1
  22. package/miniprogram_dist/TeacherGoodsList/index.js +115 -11
  23. package/miniprogram_dist/TeacherGoodsList/index.scss +1 -5
  24. package/miniprogram_dist/TeacherGoodsList/index.wxml +77 -52
  25. package/miniprogram_dist/TeacherGoodsList/index.wxss +0 -5
  26. package/miniprogram_dist/common/api/liveGoodsList.js +7 -0
  27. package/package.json +1 -1
  28. package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +2 -2
  29. package/src/GoodsItem/index.js +65 -1
  30. package/src/GoodsItem/index.scss +17 -0
  31. package/src/GoodsItem/index.wxml +12 -1
  32. package/src/GoodsItem/index.wxss +1 -1
  33. package/src/LiveGoodsList/Header/index.wxss +1 -1
  34. package/src/LiveGoodsList/index.js +77 -1
  35. package/src/Task/TaskPopup/component/TaskItem/index.js +16 -0
  36. package/src/Task/TaskPopup/component/TaskItem/index.scss +49 -23
  37. package/src/Task/TaskPopup/component/TaskItem/index.wxml +15 -13
  38. package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -1
  39. package/src/Task/TaskPopup/component/TaskList/index.js +7 -0
  40. package/src/Task/TaskPopup/component/TaskList/index.wxml +2 -0
  41. package/src/Task/TaskPopup/component/TaskType/index.js +7 -0
  42. package/src/Task/TaskPopup/component/TaskType/index.scss +1 -1
  43. package/src/Task/TaskPopup/component/TaskType/index.wxml +1 -0
  44. package/src/Task/TaskPopup/component/TaskType/index.wxss +1 -1
  45. package/src/Task/TaskPopup/index.js +7 -0
  46. package/src/Task/TaskPopup/index.wxml +1 -0
  47. package/src/Task/TaskQuizPopup/components/quizContent/index.js +4 -4
  48. package/src/Task/TaskQuizPopup/index.js +26 -0
  49. package/src/Task/TaskQuizPopup/index.wxml +1 -1
  50. package/src/TeacherGoodsList/index.js +115 -11
  51. package/src/TeacherGoodsList/index.scss +1 -5
  52. package/src/TeacherGoodsList/index.wxml +77 -52
  53. package/src/TeacherGoodsList/index.wxss +1 -1
  54. package/src/common/api/liveGoodsList.js +7 -0
@@ -219,8 +219,8 @@ Component({
219
219
  prePayInfo: {}, // 批价信息
220
220
  payResult: {}, // 支付接口返回信息
221
221
  assertNeedCollectInfo: {},
222
- infoIsLoadSuc: true,//信息采集加载状态
223
- needCollect: true, //信息采集状态二次确认
222
+ infoIsLoadSuc: false,//信息采集加载状态
223
+ needCollect: false, //信息采集状态二次确认
224
224
  successCallbackParams: {}, // 支付成功回调参数
225
225
  waitInformation: true, // 是否是第一次批价,用来第一次批价等信息采集接口返回
226
226
  setTime: null, // 计时器
@@ -105,6 +105,7 @@ Component({
105
105
  preheating,
106
106
  isSeckill,
107
107
  checked,
108
+ inputValue: newVal.order_weight,
108
109
  isExplainDisabled: false,
109
110
  }, () => {
110
111
  const isSoldOut = +newVal.is_sell_out === 1;
@@ -237,6 +238,14 @@ Component({
237
238
  type: Boolean,
238
239
  value: false
239
240
  },
241
+ isGoToSort: {
242
+ type: Boolean,
243
+ value: false
244
+ },
245
+ goodsTotal: {
246
+ type: Number,
247
+ value: 0
248
+ },
240
249
  },
241
250
 
242
251
  lifetimes: {
@@ -275,6 +284,8 @@ Component({
275
284
  skillNowTime: 0, // 秒杀活动对比的当前时间
276
285
  hideBubble: false,
277
286
  customStyle: 'top: 16rpx;margin-left: 4rpx;',
287
+ inputValue: '', // 排序输入值
288
+ isEdit: false, // 是否点击编辑框
278
289
  isExplainDisabled: false,
279
290
  disableExplainTimer: null,
280
291
  },
@@ -1438,6 +1449,59 @@ Component({
1438
1449
  })
1439
1450
  },
1440
1451
  })
1452
+ },
1453
+ onInput(e) {
1454
+ this.setData({
1455
+ inputValue: e.detail.value.replace(/\D/g, ''),
1456
+ })
1457
+ },
1458
+ saveInput() {
1459
+ this.setData({
1460
+ isEdit: false,
1461
+ })
1462
+ // 非法情况
1463
+ if (this.data.inputValue > this.data.goodsTotal || (Number(this.data.inputValue) === 0 && this.data.inputValue !== "")) {
1464
+ if (this.data.inputValue > this.data.goodsTotal) {
1465
+ wx.showToast({
1466
+ title: '最大序号' + this.data.goodsTotal,
1467
+ icon: 'none'
1468
+ });
1469
+ } else {
1470
+ wx.showToast({
1471
+ title: '最小序号' + 1,
1472
+ icon: 'none'
1473
+ });
1474
+ }
1475
+ this.setData({
1476
+ inputValue: this.data.goodsItem.order_weight
1477
+ });
1478
+ } else {
1479
+ //为空时
1480
+ if (this.data.inputValue === "") {
1481
+ this.setData({
1482
+ inputValue: this.data.goodsItem.order_weight
1483
+ });
1484
+ return;
1485
+ }
1486
+ if (this.data.goodsItem.order_weight === Number(this.data.inputValue)) return;
1487
+ let changeItem = JSON.parse(JSON.stringify(this.data.goodsItem));
1488
+ changeItem.order_weight = Number(this.data.inputValue);
1489
+ this.triggerEvent("resort", {
1490
+ changeItem,
1491
+ failCB: () => {
1492
+ this.setData({
1493
+ inputValue: this.data.goodsItem.order_weight
1494
+ });
1495
+ }
1496
+ });
1497
+ }
1498
+ },
1499
+ // 是否点击编辑框
1500
+ editgoodsIndex() {
1501
+ this.setData({
1502
+ isEdit: true,
1503
+ })
1441
1504
  }
1442
- }
1505
+ },
1506
+
1443
1507
  })
@@ -16,6 +16,23 @@ $deviceWidth: 750;
16
16
  .main-card{
17
17
  display: flex;
18
18
  flex-direction: row;
19
+ align-items: center;
20
+
21
+ .editor {
22
+ border: vmin(2) solid #e5e5e5;
23
+ width: vmin(80);
24
+ flex-shrink: 0;
25
+ border-radius: vmin(8);
26
+ margin-right: vmin(16);
27
+ .input {
28
+ padding: vmin(8) vmin(16);
29
+ text-align: center;
30
+ }
31
+ .changeborder {
32
+ border: vmin(2) solid #1472ff;
33
+ border-radius: vmin(8);
34
+ }
35
+ }
19
36
  .left {
20
37
  position: relative;
21
38
  width: vmin(224);
@@ -11,7 +11,7 @@
11
11
  <wxs src="./index.wxs" module="goodsItemTools" />
12
12
  <view class="goods-item {{isSpecifyGoods ? 'lottery-goods-item' : ''}}" bind:tap="cardToDetails" style="{{style}}">
13
13
  <!-- 讲解中商品 新增气泡 -->
14
- <goods-bubble
14
+ <goods-bubble
15
15
  wx:if="{{ isShowBubble }}"
16
16
  id="goodsBubble"
17
17
  goodsId="{{ goodsItem.id }}"
@@ -27,6 +27,17 @@
27
27
  distributionPattern="{{ goodsDistributionPattern }}"
28
28
  />
29
29
  <view class="main-card">
30
+ <view class="editor" wx:if="{{isGoToSort}}">
31
+ <input
32
+ type="text"
33
+ inputmode="numeric"
34
+ value="{{inputValue}}"
35
+ bindinput="onInput"
36
+ bindblur="saveInput"
37
+ bindfocus="editgoodsIndex"
38
+ class="input {{isEdit ? 'changeborder' : ''}}"
39
+ />
40
+ </view>
30
41
  <view class="left">
31
42
  <!-- 该封面组件是鹅直播上的全局组件 -->
32
43
  <imagePoster borderRadius="{{imageRadius}}" src="{{filterSrc}}" />
@@ -30,6 +30,22 @@
30
30
  .goods-item .main-card {
31
31
  display: flex;
32
32
  flex-direction: row;
33
+ align-items: center;
34
+ }
35
+ .goods-item .main-card .editor {
36
+ border: 0.26667vmin solid #e5e5e5;
37
+ width: 10.66667vmin;
38
+ flex-shrink: 0;
39
+ border-radius: 1.06667vmin;
40
+ margin-right: 2.13333vmin;
41
+ }
42
+ .goods-item .main-card .editor .input {
43
+ padding: 1.06667vmin 2.13333vmin;
44
+ text-align: center;
45
+ }
46
+ .goods-item .main-card .editor .changeborder {
47
+ border: 0.26667vmin solid #1472ff;
48
+ border-radius: 1.06667vmin;
33
49
  }
34
50
  .goods-item .main-card .left {
35
51
  position: relative;
@@ -758,6 +774,22 @@
758
774
  .goods-item .main-card {
759
775
  display: flex;
760
776
  flex-direction: row;
777
+ align-items: center;
778
+ }
779
+ .goods-item .main-card .editor {
780
+ border: 0.13021vmin solid #e5e5e5;
781
+ width: 5.20833vmin;
782
+ flex-shrink: 0;
783
+ border-radius: 0.52083vmin;
784
+ margin-right: 1.04167vmin;
785
+ }
786
+ .goods-item .main-card .editor .input {
787
+ padding: 0.52083vmin 1.04167vmin;
788
+ text-align: center;
789
+ }
790
+ .goods-item .main-card .editor .changeborder {
791
+ border: 0.13021vmin solid #1472ff;
792
+ border-radius: 0.52083vmin;
761
793
  }
762
794
  .goods-item .main-card .left {
763
795
  position: relative;
@@ -1487,6 +1519,22 @@
1487
1519
  .goods-item .main-card {
1488
1520
  display: flex;
1489
1521
  flex-direction: row;
1522
+ align-items: center;
1523
+ }
1524
+ .goods-item .main-card .editor {
1525
+ border: 0.15873vmin solid #e5e5e5;
1526
+ width: 6.34921vmin;
1527
+ flex-shrink: 0;
1528
+ border-radius: 0.63492vmin;
1529
+ margin-right: 1.26984vmin;
1530
+ }
1531
+ .goods-item .main-card .editor .input {
1532
+ padding: 0.63492vmin 1.26984vmin;
1533
+ text-align: center;
1534
+ }
1535
+ .goods-item .main-card .editor .changeborder {
1536
+ border: 0.15873vmin solid #1472ff;
1537
+ border-radius: 0.63492vmin;
1490
1538
  }
1491
1539
  .goods-item .main-card .left {
1492
1540
  position: relative;
@@ -2216,6 +2264,22 @@
2216
2264
  .goods-item .main-card {
2217
2265
  display: flex;
2218
2266
  flex-direction: row;
2267
+ align-items: center;
2268
+ }
2269
+ .goods-item .main-card .editor {
2270
+ border: 0.13021vmin solid #e5e5e5;
2271
+ width: 5.20833vmin;
2272
+ flex-shrink: 0;
2273
+ border-radius: 0.52083vmin;
2274
+ margin-right: 1.04167vmin;
2275
+ }
2276
+ .goods-item .main-card .editor .input {
2277
+ padding: 0.52083vmin 1.04167vmin;
2278
+ text-align: center;
2279
+ }
2280
+ .goods-item .main-card .editor .changeborder {
2281
+ border: 0.13021vmin solid #1472ff;
2282
+ border-radius: 0.52083vmin;
2219
2283
  }
2220
2284
  .goods-item .main-card .left {
2221
2285
  position: relative;
@@ -293,6 +293,9 @@ Component({
293
293
  const vmin = ($rpx) => {
294
294
  return `${$rpx * 100 / 750}vmin`;
295
295
  }
296
+ if (data.isFullScreen) {
297
+ contentStyle += `height: calc(100% - ${vmin(200)});`
298
+ }
296
299
  if (data.tagGroupList.length > 0) {
297
300
  contentStyle += `height: calc(100% - ${data.isFullScreen ? vmin(288) : vmin(220)});`
298
301
  }
@@ -438,7 +441,11 @@ Component({
438
441
  is_preheat: msgData[key],
439
442
  resource_ids: msgData.goods_info?.resource_ids || [],
440
443
  }
441
- break
444
+ break;
445
+ case "order_list":
446
+ type = 'goodsOrderWeightHandler'
447
+ marketInfo = msgData[key]
448
+ break;
442
449
  default:
443
450
  break
444
451
  }
@@ -620,6 +627,12 @@ Component({
620
627
  })
621
628
  this.formatData(this.data.goodsInfo)
622
629
  break
630
+ case 'goodsOrderWeightHandler':
631
+ for(let i = 0; i < marketInfo.length; i++) {
632
+ let changeItem = marketInfo[i];
633
+ stuFormatItem(changeItem);
634
+ this.goodsListResort(changeItem);
635
+ }
623
636
  default:
624
637
  break
625
638
  }
@@ -631,6 +644,69 @@ Component({
631
644
  })
632
645
  }
633
646
  },
647
+ goodsListResort(changItem) {
648
+ const goodsInfo = this.data.goodsInfo;
649
+ const hasSameGoods = goodsInfo.findIndex(
650
+ (item) => item.id === changItem.id && item.order_weight === changItem.order_weight
651
+ );
652
+ if (hasSameGoods > -1) return;
653
+
654
+ let length = 200; // b端最大添加200条数据,故临时写,后续有优化统一更改
655
+ let tempList = [];
656
+ let truelength = goodsInfo.length;
657
+
658
+ // 1.创建一个完整长度的虚拟数据
659
+ for (let i = 0; i < length; i++) {
660
+ let tempgood = goodsInfo.find((item) => item.order_weight === i + 1);
661
+ // 若该商品被隐藏了,插入该商品
662
+ if (tempgood === undefined && changItem.old_order_weight === i + 1) {
663
+ tempgood = changItem;
664
+ truelength = truelength + 1;
665
+ }
666
+ tempList.push(tempgood ? JSON.parse(JSON.stringify(tempgood)) : { order_weight: i + 1 });
667
+ }
668
+
669
+ // 2.通过 id 找出原数据的 index
670
+ const oldIndex = tempList.findIndex((item) => item.id === changItem.id);
671
+
672
+ // 3.根据列表是否已有该数据进行插入还是更改位置
673
+ if (oldIndex === -1) {
674
+ // 插入数据到对应位置
675
+ tempList.splice(changItem.order_weight - 1, 0, changItem);
676
+ } else {
677
+ // 找目标插入位置 index(在当前视觉排序下,根据 newOrder 找位置)
678
+ let newIndex = tempList.findIndex(
679
+ (item, index) => index !== oldIndex && item.order_weight === changItem.order_weight
680
+ );
681
+ // 操作更改序号位置移动
682
+ tempList.splice(oldIndex, 1);
683
+ tempList.splice(newIndex, 0, changItem);
684
+ }
685
+
686
+ // 4.重排 order_weight
687
+ tempList.forEach((item, index) => {
688
+ item.order_weight = index + 1;
689
+ });
690
+
691
+ // 5.恢复排序
692
+ const newGoodsInfo = tempList
693
+ .filter((item) => item.id)
694
+ .filter(
695
+ (item) =>
696
+ this.data.total === goodsInfo.length || // 如果加载完了,全部展示
697
+ (this.data.total !== goodsInfo.length &&
698
+ item.order_weight <= goodsInfo[goodsInfo.length - 1].order_weight) // 未加载完成展示当前最大order_weight内的商品
699
+ )
700
+ .filter((item, index) => index < truelength);
701
+
702
+ this.setData({
703
+ goodsInfo: newGoodsInfo
704
+ }, () => {
705
+ this.setData({
706
+ formExplainingGoods: newGoodsInfo.find((item) => item.id === this.data.formExplainingGoods.id),
707
+ })
708
+ });
709
+ },
634
710
  sendNewMsg() {
635
711
  this.triggerEvent('sendNewMsg')
636
712
  },
@@ -197,6 +197,13 @@ Component({
197
197
  return {}
198
198
  },
199
199
  },
200
+ taskConf: {
201
+ type: Object,
202
+ value: () => ({
203
+ is_hide_countdown: 0, // 0-显示倒计时 1-隐藏倒计时
204
+ is_hide_time: 0, // 0-显示任务时间 1-隐藏任务时间
205
+ })
206
+ }
200
207
  },
201
208
  data: {
202
209
  activeNames: ['1'],
@@ -214,6 +221,15 @@ Component({
214
221
  },
215
222
  },
216
223
  computed: {
224
+ // 是否显示任务时间
225
+ visibleTaskTime({ taskConf, taskItem, listType }) {
226
+ // 打开隐藏时间开关 + 未到开始时间的任务,才隐藏任务时间
227
+ const isValidTaskConfig = !(taskConf?.is_hide_time && +taskItem.join_state === 0 && taskItem.state !== 2)
228
+ // 只在任务列表中做处理
229
+ const isValidListType = listType === 'task' || listType === 'error'
230
+
231
+ return isValidTaskConfig && isValidListType
232
+ },
217
233
  // 是否是正在开始的拉新任务
218
234
  isSharingTaskStatus({ isInOrder, taskItem }) {
219
235
  const { task_module, join_state, progress, state, task_condition, task_type } = taskItem
@@ -66,8 +66,8 @@ $deviceWidth: 750;
66
66
  display: flex;
67
67
  align-items: center;
68
68
  image {
69
- width: vmin(40);
70
- height: vmin(40);
69
+ width: 100%;
70
+ height: 100%;
71
71
  }
72
72
  }
73
73
 
@@ -75,10 +75,10 @@ $deviceWidth: 750;
75
75
  width: vmin(4);
76
76
  height: calc(100% - #{vmin(40)});
77
77
  background-color: #e5e5e5;
78
- position: absolute;
79
- top: vmin(40);
80
- left: 50%;
81
- transform: translateX(-50%);
78
+ //position: absolute;
79
+ //top: vmin(40);
80
+ //left: 50%;
81
+ //transform: translateX(-50%);
82
82
  z-index: 1;
83
83
  }
84
84
 
@@ -94,22 +94,25 @@ $deviceWidth: 750;
94
94
  align-self: flex-end;
95
95
  }
96
96
 
97
- .task-desc-btn {
98
- flex-shrink: 0;
99
- align-self: flex-end;
100
- margin-left: vmin(8);
101
- }
97
+ //.task-desc-btn {
98
+ // flex-shrink: 0;
99
+ // align-self: flex-end;
100
+ // margin-left: vmin(8);
101
+ //}
102
102
  }
103
103
 
104
104
  .left {
105
105
  flex: 1;
106
- margin-bottom: vmin(64);
106
+ padding-bottom: vmin(64);
107
+ overflow: hidden;
107
108
 
108
109
  .first {
109
- line-height: vmin(40);
110
+ line-height: 1.4;
110
111
  display: flex;
112
+ flex-wrap: wrap;
111
113
  align-items: center;
112
114
  .title {
115
+ margin-right: vmin(16);
113
116
  font-size: vmin(28);
114
117
  font-weight: 500;
115
118
  color: #333333;
@@ -118,17 +121,19 @@ $deviceWidth: 750;
118
121
  max-width: vmin(290);
119
122
  }
120
123
  .reward {
121
- margin-left: vmin(16);
124
+ margin-top: vmin(8);
125
+ min-width: 100%;
122
126
  color: #ff5429;
123
127
  font-size: vmin(24);
124
128
  display: flex;
125
129
  align-items: center;
126
130
  .reward-img {
131
+ margin-right: vmin(8);
127
132
  width: vmin(24);
128
133
  height: vmin(24);
129
134
  }
130
135
  .reward-text {
131
- margin-left: vmin(8);
136
+ //margin-left: vmin(8);
132
137
  word-wrap: break-word;
133
138
  word-break: break-all;
134
139
  }
@@ -137,28 +142,33 @@ $deviceWidth: 750;
137
142
 
138
143
  .time {
139
144
  margin-top: vmin(8);
140
- font-size: vmin(24);
145
+ //font-size: vmin(24);
141
146
  color: #999999;
142
- line-height: vmin(32);
147
+ //line-height: vmin(32);
143
148
  }
144
149
 
145
150
  .task-tip {
146
151
  margin-top: vmin(8);
147
- font-size: vmin(24);
152
+ //font-size: vmin(24);
148
153
  color: #ff5429;
154
+ display: flex;
155
+ flex-wrap: wrap;
149
156
  font-family: 'PingFang SC';
150
- line-height: vmin(32);
151
- align-items: center;
157
+ //line-height: vmin(32);
158
+ //align-items: center;
152
159
  .warning-text {
160
+ width: 100%;
153
161
  }
154
162
  .finish-text {
155
163
  display: inline-block;
156
164
  color: #999999;
165
+ // margin-right: vmin(20);
166
+ width: 100%;
157
167
  }
158
168
  .show-answer {
159
169
  display: inline-flex;
160
170
  align-items: center;
161
- margin-left: vmin(20);
171
+ //margin-left: vmin(20);
162
172
  font-style: normal;
163
173
  font-weight: 400;
164
174
  line-height: vmin(32);
@@ -181,18 +191,34 @@ $deviceWidth: 750;
181
191
  align-items: center;
182
192
  }
183
193
 
194
+ .right {
195
+ //padding-bottom: vmin(64);
196
+ &.task-desc-btn {
197
+ flex-shrink: 0;
198
+ align-self: center;
199
+ margin-left: vmin(8);
200
+ width: vmin(144);
201
+ height: vmin(56);
202
+ font-size: vmin(24);
203
+ }
204
+ &.right_reset {
205
+ padding-bottom: vmin(32) !important;
206
+ }
207
+ }
208
+
184
209
  .btn {
185
210
  // padding: 0.12rem 0.36rem;
186
- width: vmin(144);
211
+ width: 100%;
187
212
  height: vmin(56);
188
213
  background: linear-gradient(270deg, #ff9720 0%, #ff4040 100%);
189
214
  border-radius: vmin(72);
190
215
  color: #ffffff;
191
216
  font-weight: 500;
192
- font-size: vmin(24);
217
+ //font-size: vmin(24);
193
218
  display: flex;
194
219
  justify-content: center;
195
220
  align-items: center;
221
+ text-align: center;
196
222
  line-height: vmin(32);
197
223
 
198
224
  &.reward-btn {
@@ -57,7 +57,7 @@
57
57
  <view class="task-desc-box">
58
58
  <view class="task-desc-content">
59
59
  <!-- 任务时间 -->
60
- <view class="time" wx:if="{{listType === 'task' || listType === 'error'}}">
60
+ <view class="time" wx:if="{{visibleTaskTime}}">
61
61
  任务时间:{{taskItem.show_start_at}} 至 {{taskItem.show_end_at}}
62
62
  </view>
63
63
 
@@ -112,12 +112,15 @@
112
112
  进度: {{ taskItem.task_progress || 0 }} / {{ taskItem.reward_frequency }}
113
113
  </view>
114
114
  </view>
115
+ </view>
116
+ </view>
115
117
 
116
- <view class="task-desc-btn">
117
- <!-- 右侧按钮 -->
118
- <view class="btn-wrapper {{ taskIdx === taskLength - 1 ? 'un-bottom' : '' }}">
119
- <view wx:if="{{ isShowButton }}">
120
- <instant-withdraw
118
+ <!-- 右侧按钮 -->
119
+ <view class="right task-desc-btn {{ taskIdx === taskLength - 1 || !taskLength ? 'right_reset' : '' }}">
120
+ <!-- 右侧按钮 -->
121
+ <view class="btn-wrapper {{ taskIdx === taskLength - 1 ? 'un-bottom' : '' }}">
122
+ <view wx:if="{{ isShowButton }}">
123
+ <instant-withdraw
121
124
  customClass="have_reward"
122
125
  buttonText="{{ButtonText}}"
123
126
  unableBtn="{{unableBtn}}"
@@ -128,18 +131,17 @@
128
131
  alive_room_url="{{ roomInfo.alive_room_url }}"
129
132
  task_id="{{ taskItem.id }}"
130
133
  bind:success="successWithDraw"
131
- ></instant-withdraw>
132
- </view>
133
- <view
134
+ ></instant-withdraw>
135
+ </view>
136
+ <view
134
137
  wx:else
135
138
  class="btn {{listType === 'reward' && 'reward-btn'}} {{(listType==='task' && (taskItem.join_state === 2 || taskItem.join_state === 3 || taskItem.join_state === 0 || taskItem.state === 2))&&'gray-btn'}} {{getFailStatus && 'orange-btn'}}"
136
139
  catch:tap="btnClick"
137
- >
138
- {{btnText}}
139
- </view>
140
- </view>
140
+ >
141
+ {{btnText}}
141
142
  </view>
142
143
  </view>
143
144
  </view>
145
+
144
146
  </view>
145
147
  </view>