jufubao-base 1.0.158-beta4 → 1.0.159-beta1

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 (50) hide show
  1. package/package.json +1 -1
  2. package/src/common/authorize.js +201 -70
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +4 -4
  4. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +2 -1
  5. package/src/components/JfbBaseBack/JfbBaseBack.vue +7 -6
  6. package/src/components/JfbBaseCard/JfbBaseCard.vue +4 -1
  7. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +54 -24
  8. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -14
  9. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +313 -394
  10. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +1 -1
  11. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +4 -5
  12. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -0
  13. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +21 -19
  14. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -2
  15. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +1 -1
  16. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +20 -16
  17. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +1 -1
  18. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +1 -1
  19. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +7 -1
  20. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +34 -18
  21. package/src/components/JfbBaseEntry/Attr.js +22 -0
  22. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +76 -13
  23. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +27 -18
  24. package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
  25. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +2 -2
  26. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +1 -1
  27. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +3 -3
  28. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +13 -0
  29. package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +52 -37
  30. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +2 -1
  31. package/src/components/JfbBaseNotice/Attr.js +0 -2
  32. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +30 -10
  33. package/src/components/JfbBaseNotice/XdNoticeBar.vue +17 -1
  34. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +2 -2
  35. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +1 -1
  36. package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
  37. package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
  38. package/src/components/JfbBasePosterBigSmall/Attr.js +1 -4
  39. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +191 -67
  40. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
  41. package/src/components/JfbBasePosterType/FourScreen.vue +156 -18
  42. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
  43. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -1
  44. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +2 -1
  45. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +8 -7
  46. package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
  47. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +4 -13
  48. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +5 -4
  49. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +2 -2
  50. package/src/mixins/colorCardMixins.js +1 -1
@@ -10,37 +10,10 @@
10
10
  :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-card-detail-entry__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
13
+ <view class="jfb-base-card-detail-entry__edit-icon" @click="delEdit">删除</view>
16
14
  </view>
17
15
  <!-- #endif -->
18
16
  <view class="jfb-base-card-detail-entry__body" v-if="info!==null">
19
- <!-- <view class="card-list" :style="{
20
- background: headerBg['color'],
21
- backgroundSize: '100%'
22
- }">
23
- <view class="card-list-warp" :style="{backgroundImage: `url(${headerBg['image']})`}">
24
- <view class="card-list__title"><view>{{info['card_type_name']}}</view></view>
25
- <div class="card-list__content">
26
- <view>
27
- <text>券号:</text>
28
- <text>{{info.card_number}}</text>
29
- </view>
30
- </div>
31
- <view class="card-list__date">
32
- <text>有效期:</text>
33
- <text>{{info.end_time}}</text>
34
- </view>
35
- <view class="card-list__yue">
36
- <text>余额:</text>
37
- <text>{{info.card_point}} {{ info.unit }}</text>
38
- </view>
39
- <view class="card-list__other" v-if="info.other_card_point && info.card_point_type === 2">
40
- <view><text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text></view>
41
- </view>
42
- </view>
43
- </view> -->
44
17
  <view class="qrcode_card">
45
18
  <view class="jfb-base-card-detail-entry__body-qrcode">
46
19
  <view class="barcode_wrap">
@@ -55,13 +28,13 @@
55
28
  ></image>
56
29
  <image v-if="isBrandLogo" class="logo-icon" :src="brandLogo"></image>
57
30
  </view>
58
- <!-- <view :style="{marginTop: '20rpx'}" v-if="timeStr">消费二维码,有效期为{{ info["card_qrcode_expire"] / 60 }}分钟</view> -->
59
31
  <view v-if="timeStr">{{ timeStr }}后自动刷新</view>
60
32
  <view class="refresh_wrap" @click="handleRefresh">
61
- <xd-font-icon icon="iconshuaxin"
33
+ <xd-font-icon
34
+ icon="iconshuaxin"
62
35
  style="margin-right: 24rpx;"
63
- size="28"></xd-font-icon> 刷新二维码
64
- </view>
36
+ size="28"
37
+ ></xd-font-icon> 刷新二维码</view>
65
38
  </view>
66
39
  <view class="card_info">
67
40
  <view class="card_type">{{ info['card_type_name'] }}</view>
@@ -73,53 +46,47 @@
73
46
  </view>
74
47
  </view>
75
48
  </view>
76
-
77
49
  <view
78
- v-if="info.site_entry_settings&&info.site_entry_settings.length>0"
79
- class="jfb-base-card-detail-entry__body-business"
50
+ v-if="info.site_entry_settings&&info.site_entry_settings.length>0"
51
+ class="jfb-base-card-detail-entry__body-business"
80
52
  >
81
- <view
82
- class="jfb-base-card-detail-entry__body-business-title"
83
- >
84
- 进入业务板块
85
- </view>
86
- <view style="display:flex;align-content:center;justify-content:flex-start">
87
- <view class="jfb-base-card-detail-entry__body-business-content">
88
- <view
89
- class="jfb-base-card-detail-entry__body-business-content-item"
90
- @click="handleBindLogin(item)"
91
- v-for="(item,index) in info.site_entry_settings"
92
- :key="index">
93
- <view><image :src="item.image_url"></image></view>
94
- <view>{{item.entry_name}}</view>
53
+ <view class="jfb-base-card-detail-entry__body-business-title">进入业务板块</view>
54
+ <view style="display:flex;align-content:center;justify-content:flex-start">
55
+ <view class="jfb-base-card-detail-entry__body-business-content">
56
+ <view
57
+ class="jfb-base-card-detail-entry__body-business-content-item"
58
+ @click="handleBindLogin(item)"
59
+ v-for="(item,index) in info.site_entry_settings"
60
+ :key="index"
61
+ >
62
+ <view><image :src="item.image_url"></image></view>
63
+ <view>{{item.entry_name}}</view>
64
+ </view>
65
+ </view>
95
66
  </view>
96
67
  </view>
97
- </view>
98
- </view>
99
- <view :style="{height: '100rpx'}"></view>
100
- <!-- 靠底支付 -->
101
- <view class="fixe_bottom" :style="prod_bottom">
102
- <view v-if="0">
103
- <xd-button size="small" type="primary" width="100%">消费记录</xd-button>
104
- </view>
105
- <view v-if="info.is_exchange==='Y'">
106
- <xd-button
107
- width="100%"
108
- @click="handleToShift"
109
- size="small"
110
- type="primary"
111
- >券转换</xd-button>
112
- </view>
113
- <view v-if="isShowUnbind">
114
- <xd-button
115
- width="100%"
116
- @click="handleUnBindCard"
117
- size="small"
118
- type="primary">
119
- 解除绑定
120
- </xd-button>
121
- </view>
68
+ <view :style="{height: '100rpx'}"></view>
69
+ <!-- 靠底支付 -->
70
+ <view class="fixe_bottom" :style="prod_bottom">
71
+ <view v-if="0">
72
+ <xd-button size="small" type="primary" width="100%">消费记录</xd-button>
122
73
  </view>
74
+ <view v-if="info.is_exchange==='Y'">
75
+ <xd-button
76
+ width="100%"
77
+ @click="handleToShift"
78
+ size="small"
79
+ type="primary"
80
+ >券转换</xd-button>
81
+ </view>
82
+ <view v-if="isShowUnbind">
83
+ <xd-button
84
+ width="100%"
85
+ @click="handleUnBindCard"
86
+ size="small"
87
+ type="primary">解除绑定</xd-button>
88
+ </view>
89
+ </view>
123
90
  </view>
124
91
  </view>
125
92
  </template>
@@ -177,83 +144,64 @@ export default {
177
144
  shift_url: "",
178
145
 
179
146
  //品牌logo
180
- brandLogo:
181
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsSAAALEgHS3X78AAAAAXNSR0IArs4c6QAADe5JREFUaEPdmQl0FFW6x3+3qqvTSxKSzgYkJEHZBEVQQFAWAfFlEBHJqMjiqCOyH/T5xsHRAXTwCTo6TzYFUVkUNxBmUAT1MQiIIJsog4AiEEMW0h0CWXqrundOdQIHfCqEp8ixzsnJOd23bn+/+v+/797vluBXcolfCQcXNEhuWlrDg2VlJWfzsC9IkGY+X2LEENt0TWtmSTmtoDQw4UwwFwxITmpqI6WrW4A+wLW6rsWjQKEISj2+tLS0+sdgfnGQpunpGZaw5uqa1t8O1JLyK2A30N9w6CJqWmsKSgM2nLxgQbIzUvvpmlghlUIq9YgutRdP5ER2Q18bIWl16Ej50jPZyv7+F1PEhnA69BUR0/xnGMeNZ7KOHWxWSkomDukrLD36xXfhfhEQuxoJg2Ip1apDJf7ffDeo3NxclwxW9UHJ9giRIqBMoapAPKXrmsOS6tG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CC",
147
+ //#ifdef H5
148
+ brandLogo: '//img.jufubao.cn/common/jufubao_logo.png?v=1.0.0',
149
+ //#endif
150
+ //#ifdef MP-WEIXIN
151
+ brandLogo:'https://img.jufubao.cn/common/jufubao_logo.png?v=1.0.0',
152
+ //#endif
182
153
  isBrandLogo: false,
183
-
184
154
  isShowUnbind: false, //是否启动绑定按钮
185
155
  headerBg: {},
186
156
  };
187
157
  },
188
158
  watch: {
189
- container(value) {
190
- this.init(value);
159
+ container(value,oldValue) {
160
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
161
+ if (this.$configProject['isPreview']) this.init(value)
191
162
  },
192
163
  },
193
164
  computed: {
194
- ...mapState(["brandInfo"]),
195
- jfbAuthorize: (state) => state.jfbAuthorize,
165
+ ...mapState(["brandInfo",'jfbAuthorize']),
166
+
196
167
  prod_bottom() {
197
- return this.fixedStyle({height: 0, zIndex: 111});
198
- },
168
+ return this.fixedStyle({height: 0, zIndex: 111});
169
+ },
170
+ },
171
+ created() {
172
+ this.init(this.container)
199
173
  },
200
- created() {},
201
174
  methods: {
202
175
  onJfbLoad(options) {
203
- console.log(options,'optionsoptionsoptionsoptions');
204
176
  if (options["x-params"]) {
205
177
  try {
206
178
  let params = JSON.parse(Base64.decode(options["x-params"]));
207
179
  this.brandLogo = params["qrcode_logo"];
180
+
208
181
  } catch (e) {
209
182
  console.warn(options["x-params"]);
210
183
  }
211
184
  }
212
185
 
213
- this.$nextTick(() => {
214
- this.card_number = options.card_number;
215
- this.init();
216
-
217
- // if (card_number) {
218
- // this.card_number = card_number;
219
- // if (this.brandInfo['is_enable_pay_password'] === 'N') {
220
- // this.init();
221
- // } else if (this.brandInfo['is_enable_pay_password'] === 'Y' && this.userInfo['has_user_set_password'] === 'N') {
222
- // this.editShow = true
223
- // this.pwdTitle = '您还未设置支付密码,请设置您的平台支付密码'
224
- // } else if (this.brandInfo['is_enable_pay_password'] === 'Y' && this.userInfo['has_user_set_password'] === 'Y') {
225
- // this.show = true
226
- // this.textList = [
227
- // {
228
- // label: '查看卡详情',
229
- // },
230
- // {
231
- // label: '请输入支付密码',
232
- // }
233
- // ]
234
- // }
235
- // this.first = true;
236
- // } else {
237
- // setTimeout(() => {
238
- // this.$xdUniHelper.navigateTo({
239
- // url: `/pages/index/index`
240
- // }, false)
241
- // }, 2000)
242
- // }
243
- });
186
+ this.card_number = options.card_number;
187
+ this.dataInit();
244
188
  },
245
- /**
246
- * @description 监听事件变化
247
- * @param container {object} 业务组件对象自己
248
- */
249
- init() {
189
+
190
+ dataInit(){
250
191
  this.detail();
251
192
  this.refrush();
252
193
  if(this.$configProject.isPreview) {
253
194
  this.timeStr = "01分19秒"
254
195
  }
255
- this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
256
- this.shift_url = getContainerPropsValue( this.container, "content.shift_url", { value: "" }).value;
196
+ },
197
+
198
+ /**
199
+ * @description 监听事件变化
200
+ * @param container {object} 业务组件对象自己
201
+ */
202
+ init(container) {
203
+ this.backUrl = getContainerPropsValue(container, "content.back_url", { value: "" }).value;
204
+ this.shift_url = getContainerPropsValue(container, "content.shift_url", { value: "" }).value;
257
205
  },
258
206
  /**
259
207
  * @description 获取卡详情
@@ -307,7 +255,6 @@ export default {
307
255
  handleRefresh(){
308
256
  clearInterval(this.timeer);
309
257
  this.detail();
310
- // this.refrush();
311
258
  },
312
259
  refrush() {
313
260
  if (this.stopTimer) return;
@@ -317,8 +264,7 @@ export default {
317
264
  return;
318
265
  }
319
266
  this.time++;
320
- let time =
321
- this.time >= 5 ? 32 * 1000 : Math.pow(this.date, this.time) * 1000;
267
+ let time = this.time >= 5 ? 32 * 1000 : Math.pow(this.date, this.time) * 1000;
322
268
  this.refrushTimeer = setTimeout(() => {
323
269
  jfbRootExec("getCardYueEntry", {
324
270
  vm: this,
@@ -327,9 +273,8 @@ export default {
327
273
  },
328
274
  })
329
275
  .then((res) => {
330
- //res[4]['value'] = this.$xdUniHelper.random(20,30);
331
276
  let refrushInfo = this.$xdUniHelper.cloneDeep(this.info);
332
- if (res && res !== null && Object.keys(res).length > 0) {
277
+ if (res && Object.keys(res).length > 0) {
333
278
  if (res.card_point) {
334
279
  refrushInfo.card_point = this.$xdUniHelper.divisionFloatNumber(
335
280
  res.card_point,
@@ -352,36 +297,37 @@ export default {
352
297
  .catch();
353
298
  }, time);
354
299
  },
355
- /**
300
+ /**
356
301
  * @description 已绑定卡登录
357
- * @param item
302
+ * @param entry
358
303
  */
359
- handleBindLogin(entry) {
304
+ handleBindLogin(entry) {
360
305
  //卡券登录
361
306
  this.$xdShowLoading({});
362
307
  jfbRootExec("detailLoginEntryCardBind", {
363
- vm: this,
364
- data: { card_number: this.info["card_number"] },
365
- })
366
- .then((res) => {
367
- this.$xdHideLoading();
368
- //#ifdef MP-WEIXIN
369
- if (this.jfbAuthorize !== null) {
370
- this.jfbAuthorize.setCardToken(res);
371
- this.handleToApp(entry);
372
- }
373
- //#endif
374
- if (this.$configProject.isPreview) {
375
- console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
376
- }
308
+ vm: this,
309
+ data: { card_number: this.info["card_number"] },
310
+ })
311
+ .then((res) => {
312
+ this.$xdHideLoading();
377
313
 
378
- else {
379
- this.handleToApp(entry);
380
- }
381
- })
382
- .catch((res) => {
383
- this.$xdHideLoading();
384
- });
314
+ //#ifdef MP-WEIXIN
315
+ if (this.jfbAuthorize !== null) {
316
+ this.jfbAuthorize.setCardToken(res);
317
+ this.handleToApp(entry);
318
+ }
319
+ //#endif
320
+ if (this.$configProject.isPreview) {
321
+ console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
322
+ }
323
+
324
+ else {
325
+ this.handleToApp(entry);
326
+ }
327
+ })
328
+ .catch((res) => {
329
+ this.$xdHideLoading();
330
+ });
385
331
  },
386
332
  toApp(url){
387
333
  this.$xdUniHelper.redirectTo({
@@ -426,7 +372,7 @@ export default {
426
372
  },
427
373
  handlePwdOnSubmit(val) {
428
374
  this.password = val;
429
- this.init();
375
+ this.dataInit();
430
376
  },
431
377
 
432
378
  handleOnForget() {
@@ -439,7 +385,7 @@ export default {
439
385
  },
440
386
  handleUnBindCard() {
441
387
  this.$xdConfirm({
442
- $vm: this,
388
+ styles: this.styles,
443
389
  content: "您确定要解除绑定票券吗",
444
390
  title: "系统提示",
445
391
  width: "80%",
@@ -495,7 +441,7 @@ export default {
495
441
  },
496
442
  handleToShift() {
497
443
  this.$xdUniHelper.navigateTo({
498
- url: `${this.shift_url}?card_number=${this.info["card_number"]}`,
444
+ url: `${this.shift_url}?card_number=${this.info["card_number"]}`,
499
445
  });
500
446
  },
501
447
  onJfbBack(options) {
@@ -507,6 +453,7 @@ export default {
507
453
  }
508
454
  this.$xdUniHelper.navigateBack();
509
455
  },
456
+
510
457
  onJfbUnload() {
511
458
  this.timeStr = ""
512
459
  if (this.timeer) {
@@ -516,39 +463,9 @@ export default {
516
463
  clearTimeout(this.refrushTimeer);
517
464
  }
518
465
  },
519
- onJfbScroll(options) {
520
- console.log("event.onJfbScroll", options);
521
- },
522
- onJfbReachBottom(options) {
523
- console.log("event.onJfbReachBottom", options);
524
- },
466
+
525
467
  onJfbShow(options) {
526
- console.log("event.onJfbShow", options);
527
468
  this.onJfbLoad(options)
528
- // if (this.first) {
529
- // if (this.brandInfo["is_enable_pay_password"] === "N") {
530
- // this.init();
531
- // } else if (
532
- // this.brandInfo["is_enable_pay_password"] === "Y" &&
533
- // this.userInfo["has_user_set_password"] === "N"
534
- // ) {
535
- // this.editShow = true;
536
- // this.pwdTitle = "您还未设置支付密码,请设置您的平台支付密码";
537
- // } else if (
538
- // this.brandInfo["is_enable_pay_password"] === "Y" &&
539
- // this.userInfo["has_user_set_password"] === "Y"
540
- // ) {
541
- // this.show = true;
542
- // this.textList = [
543
- // {
544
- // label: "查看卡详情",
545
- // },
546
- // {
547
- // label: "请输入支付密码",
548
- // },
549
- // ];
550
- // }
551
- // }
552
469
  },
553
470
  onJfbHide(options) {
554
471
  this.timeStr = ""
@@ -610,215 +527,215 @@ export default {
610
527
  }
611
528
  padding: unit(26, rpx);
612
529
  .card-list {
613
- overflow: hidden;
614
- border-radius: unit(16, rpx);
615
- margin-bottom: unit(30, rpx);
616
-
617
- &:last-child {
618
- margin-bottom: 0;
619
- }
620
-
621
-
622
- &__title {
623
- height: unit(56, rpx);
624
- display: flex;
625
- justify-content: flex-start;
626
- align-items: center;
530
+ overflow: hidden;
531
+ border-radius: unit(16, rpx);
532
+ margin-bottom: unit(30, rpx);
627
533
 
628
- & > view {
629
- padding: 0 unit(80, rpx);
630
- font-size: unit(24, rpx);
631
- line-height: unit(56, rpx);
632
- background: rgba(102, 102, 102, 0.4);
633
- color: #fff;
634
- border-radius: 0 0 unit(16, rpx) 0;
635
- }
534
+ &:last-child {
535
+ margin-bottom: 0;
536
+ }
636
537
 
637
- }
638
538
 
639
- &__content {
640
- padding: unit(10, rpx) unit(40, rpx) 0;
641
- height: unit(86, rpx);
642
- display: flex;
643
- justify-content: space-between;
644
- align-items: center;
645
-
646
- & > view:first-child {
647
- font-size: unit(36, rpx);
648
- line-height: unit(86, rpx);
649
- color: #fff;
650
- font-weight: 700;
651
- }
539
+ &__title {
540
+ height: unit(56, rpx);
541
+ display: flex;
542
+ justify-content: flex-start;
543
+ align-items: center;
652
544
 
653
- & > view:nth-child(2) {
654
- font-size: unit(24, rpx);
655
- display: flex;
656
- justify-content: space-between;
657
- align-items: center;
658
- flex-flow: wrap;
659
- flex-direction: column;
660
- color: #fff;
661
- }
662
- }
545
+ & > view {
546
+ padding: 0 unit(80, rpx);
547
+ font-size: unit(24, rpx);
548
+ line-height: unit(56, rpx);
549
+ background: rgba(102, 102, 102, 0.4);
550
+ color: #fff;
551
+ border-radius: 0 0 unit(16, rpx) 0;
552
+ }
663
553
 
664
- &__date {
665
- padding: 0 unit(40, rpx);
666
- font-size: unit(28, rpx);
667
- line-height: unit(32, rpx);
668
- color: #fff;
669
- }
554
+ }
670
555
 
671
- &__yue {
672
- padding: unit(10, rpx) unit(40, rpx) 0;
673
- font-size: unit(28, rpx);
674
- line-height: unit(32, rpx);
675
- color: #fff;
556
+ &__content {
557
+ padding: unit(10, rpx) unit(40, rpx) 0;
558
+ height: unit(86, rpx);
559
+ display: flex;
560
+ justify-content: space-between;
561
+ align-items: center;
676
562
 
677
- & > text:nth-child(2) {
678
- font-weight: 700;
679
- }
680
- }
563
+ & > view:first-child {
564
+ font-size: unit(36, rpx);
565
+ line-height: unit(86, rpx);
566
+ color: #fff;
567
+ font-weight: 700;
568
+ }
681
569
 
682
- &__other {
683
- display: flex;
684
- justify-content: flex-start;
685
- align-items: center;
686
- padding: unit(20, rpx) unit(40, rpx) 0;
687
- margin-top: unit(0, rpx);
688
-
689
- & > view {
690
- border-radius:unit(8, rpx);
691
- background: rgba(255, 255, 255, 0.2);
692
- height: unit(48, rpx);
693
- line-height: unit(48, rpx);
694
- display: flex;
695
- justify-content: flex-start;
696
- align-items: center;
697
- font-weight: 400;
698
- font-size: unit(24, rpx);
699
- padding: 0 unit(20, rpx);
700
- color: #fff;
701
- }
570
+ & > view:nth-child(2) {
571
+ font-size: unit(24, rpx);
572
+ display: flex;
573
+ justify-content: space-between;
574
+ align-items: center;
575
+ flex-flow: wrap;
576
+ flex-direction: column;
577
+ color: #fff;
578
+ }
579
+ }
702
580
 
581
+ &__date {
582
+ padding: 0 unit(40, rpx);
583
+ font-size: unit(28, rpx);
584
+ line-height: unit(32, rpx);
585
+ color: #fff;
586
+ }
703
587
 
704
- }
588
+ &__yue {
589
+ padding: unit(10, rpx) unit(40, rpx) 0;
590
+ font-size: unit(28, rpx);
591
+ line-height: unit(32, rpx);
592
+ color: #fff;
705
593
 
706
- &__nodata {
707
- padding: unit(20, rpx) unit(40, rpx) 0;
708
- margin-top: unit(0, rpx);
709
- color: #fff;
710
- font-size: unit(28, rpx);
711
- }
594
+ & > text:nth-child(2) {
595
+ font-weight: 700;
596
+ }
597
+ }
712
598
 
713
- &__entry {
714
- padding: unit(20, rpx) unit(40, rpx) 0;
715
- & > view {
716
- line-height: unit(64, rpx);
717
- text-align: center;
718
- font-size: unit(26, rpx);
719
- border-radius: unit(32, rpx);
720
- background: rgba(255, 255, 255, 1);
721
- box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
722
- font-weight: 500;
723
- }
724
- }
599
+ &__other {
600
+ display: flex;
601
+ justify-content: flex-start;
602
+ align-items: center;
603
+ padding: unit(20, rpx) unit(40, rpx) 0;
604
+ margin-top: unit(0, rpx);
725
605
 
726
- &__entrys {
727
- margin: unit(20, rpx) unit(20, rpx) 0;
728
- padding: unit(30, rpx);
729
- border-radius: unit(16, rpx);
730
- background: rgba(255, 255, 255, 1);
731
- box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
606
+ & > view {
607
+ border-radius:unit(8, rpx);
608
+ background: rgba(255, 255, 255, 0.2);
609
+ height: unit(48, rpx);
610
+ line-height: unit(48, rpx);
611
+ display: flex;
612
+ justify-content: flex-start;
613
+ align-items: center;
614
+ font-weight: 400;
615
+ font-size: unit(24, rpx);
616
+ padding: 0 unit(20, rpx);
617
+ color: #fff;
618
+ }
732
619
 
733
- &-title {
734
- display: flex;
735
- justify-content: space-between;
736
- align-items: center;
737
620
 
621
+ }
738
622
 
739
- & > view:first-child {
623
+ &__nodata {
624
+ padding: unit(20, rpx) unit(40, rpx) 0;
625
+ margin-top: unit(0, rpx);
626
+ color: #fff;
740
627
  font-size: unit(28, rpx);
741
- font-weight: 500;
742
- flex: 1;
743
628
  }
744
629
 
745
- & > view:nth-child(2) {
746
- display: flex;
747
- justify-content: flex-start;
748
- align-items: center;
749
- flex-shrink: 0;
750
- font-size: unit(20, rpx);
751
- color: #999;
630
+ &__entry {
631
+ padding: unit(20, rpx) unit(40, rpx) 0;
632
+ & > view {
633
+ line-height: unit(64, rpx);
634
+ text-align: center;
635
+ font-size: unit(26, rpx);
636
+ border-radius: unit(32, rpx);
637
+ background: rgba(255, 255, 255, 1);
638
+ box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
639
+ font-weight: 500;
640
+ }
752
641
  }
753
- }
754
-
755
- &-scroll {
756
642
 
757
- }
643
+ &__entrys {
644
+ margin: unit(20, rpx) unit(20, rpx) 0;
645
+ padding: unit(30, rpx);
646
+ border-radius: unit(16, rpx);
647
+ background: rgba(255, 255, 255, 1);
648
+ box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
758
649
 
759
- &-item {
760
- display: flex;
761
- justify-content: flex-start;
762
- align-items: center;
763
- flex-flow: nowrap;
764
- margin-left: unit(-14, rpx);
765
- padding-top: unit(20, rpx);
650
+ &-title {
651
+ display: flex;
652
+ justify-content: space-between;
653
+ align-items: center;
766
654
 
767
- & > view {
768
- width: unit(120, rpx);
769
- margin-right: unit(10, rpx);
770
- flex-shrink: 0;
771
- display: flex;
772
- justify-content: center;
773
- flex-direction: column;
774
- align-items: center;
775
655
 
776
- & > view:first-child {
777
- width: unit(76, rpx);
778
- height: unit(76, rpx);
779
- overflow: hidden;
656
+ & > view:first-child {
657
+ font-size: unit(28, rpx);
658
+ font-weight: 500;
659
+ flex: 1;
660
+ }
780
661
 
781
- & > image {
782
- height: 100%;
783
- width: 100%;
662
+ & > view:nth-child(2) {
663
+ display: flex;
664
+ justify-content: flex-start;
665
+ align-items: center;
666
+ flex-shrink: 0;
667
+ font-size: unit(20, rpx);
668
+ color: #999;
784
669
  }
785
670
  }
786
671
 
787
- & > view:nth-child(2) {
788
- margin-top: unit(10, rpx);
789
- font-size: unit(24, rpx);
790
- line-height: unit(36, rpx);
791
- margin-bottom: unit(10, rpx);
672
+ &-scroll {
673
+
792
674
  }
793
675
 
794
- & > view:nth-child(3) {
676
+ &-item {
795
677
  display: flex;
796
678
  justify-content: flex-start;
797
679
  align-items: center;
798
- flex-shrink: 0;
799
- font-size: unit(20, rpx);
800
- color: #999;
801
- }
680
+ flex-flow: nowrap;
681
+ margin-left: unit(-14, rpx);
682
+ padding-top: unit(20, rpx);
683
+
684
+ & > view {
685
+ width: unit(120, rpx);
686
+ margin-right: unit(10, rpx);
687
+ flex-shrink: 0;
688
+ display: flex;
689
+ justify-content: center;
690
+ flex-direction: column;
691
+ align-items: center;
692
+
693
+ & > view:first-child {
694
+ width: unit(76, rpx);
695
+ height: unit(76, rpx);
696
+ overflow: hidden;
697
+
698
+ & > image {
699
+ height: 100%;
700
+ width: 100%;
701
+ }
702
+ }
802
703
 
803
- &:last-child {
804
- margin-right: 0;
805
- }
704
+ & > view:nth-child(2) {
705
+ margin-top: unit(10, rpx);
706
+ font-size: unit(24, rpx);
707
+ line-height: unit(36, rpx);
708
+ margin-bottom: unit(10, rpx);
709
+ }
806
710
 
807
- }
711
+ & > view:nth-child(3) {
712
+ display: flex;
713
+ justify-content: flex-start;
714
+ align-items: center;
715
+ flex-shrink: 0;
716
+ font-size: unit(20, rpx);
717
+ color: #999;
718
+ }
808
719
 
720
+ &:last-child {
721
+ margin-right: 0;
722
+ }
809
723
 
810
- }
811
- }
724
+ }
812
725
 
813
- &-warp {
814
- width: unit(700, rpx);
815
- // min-height: unit(290, rpx);
816
- position: relative;
817
- border-radius: unit(16, rpx);
818
- background-size: 100%;
819
- padding-bottom: unit(20, rpx);
820
- }
821
- }
726
+
727
+ }
728
+ }
729
+
730
+ &-warp {
731
+ width: unit(700, rpx);
732
+ // min-height: unit(290, rpx);
733
+ position: relative;
734
+ border-radius: unit(16, rpx);
735
+ background-size: 100%;
736
+ padding-bottom: unit(20, rpx);
737
+ }
738
+ }
822
739
 
823
740
  &-qrcode {
824
741
  text-align: center;
@@ -917,54 +834,56 @@ export default {
917
834
  }
918
835
 
919
836
  &-content {
920
- display: flex;
921
- justify-content: flex-start;
922
- align-items: center;
923
- flex-flow: wrap;
924
- padding-left: unit(30, rpx);
925
-
926
- & > view {
927
- width: unit(120, rpx);
928
- margin-right: unit(10, rpx);
929
- flex-shrink: 0;
930
837
  display: flex;
931
- justify-content: center;
932
- flex-direction: column;
838
+ justify-content: flex-start;
933
839
  align-items: center;
840
+ flex-flow: wrap;
841
+ padding-left: unit(30, rpx);
934
842
 
935
- & > view:first-child {
936
- width: unit(76, rpx);
937
- height: unit(76, rpx);
938
- overflow: hidden;
843
+ & > view {
844
+ width: unit(120, rpx);
845
+ margin-right: unit(10, rpx);
846
+ flex-shrink: 0;
847
+ display: flex;
848
+ justify-content: center;
849
+ flex-direction: column;
850
+ align-items: center;
939
851
 
940
- & > image {
941
- height: 100%;
942
- width: 100%;
852
+ & > view:first-child {
853
+ width: unit(76, rpx);
854
+ height: unit(76, rpx);
855
+ overflow: hidden;
856
+
857
+ & > image {
858
+ height: 100%;
859
+ width: 100%;
860
+ }
943
861
  }
944
- }
945
862
 
946
- & > view:nth-child(2) {
947
- margin-top: unit(10, rpx);
948
- font-size: unit(24, rpx);
949
- line-height: unit(36, rpx);
950
- margin-bottom: unit(10, rpx);
951
- }
863
+ & > view:nth-child(2) {
864
+ margin-top: unit(10, rpx);
865
+ font-size: unit(24, rpx);
866
+ line-height: unit(36, rpx);
867
+ height: unit(36, rpx);
868
+ overflow: hidden;
869
+ margin-bottom: unit(10, rpx);
870
+ }
952
871
 
953
- & > view:nth-child(3) {
954
- display: flex;
955
- justify-content: flex-start;
956
- align-items: center;
957
- flex-shrink: 0;
958
- font-size: unit(20, rpx);
959
- color: #999;
960
- }
872
+ & > view:nth-child(3) {
873
+ display: flex;
874
+ justify-content: flex-start;
875
+ align-items: center;
876
+ flex-shrink: 0;
877
+ font-size: unit(20, rpx);
878
+ color: #999;
879
+ }
961
880
 
962
- &:last-child {
963
- margin-right: 0;
881
+ &:last-child {
882
+ margin-right: 0;
883
+ }
964
884
  }
965
885
  }
966
886
  }
967
- }
968
887
 
969
888
  .fixe_bottom{
970
889
  display: flex;