jufubao-base 1.0.110-beta2 → 1.0.113-beta2

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 (56) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +18 -37
  3. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +17 -37
  4. package/src/components/JfbBaseConDialog/Api.js +0 -35
  5. package/src/components/JfbBaseConDialog/Attr.js +0 -13
  6. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -169
  7. package/src/components/JfbBaseConList/Attr.js +0 -11
  8. package/src/components/JfbBaseConList/JfbBaseConList.vue +19 -49
  9. package/src/components/JfbBaseConList/Mock.js +5 -19
  10. package/src/components/JfbBasePay/Api.js +2 -3
  11. package/src/components/JfbBasePay/JfbBasePay.vue +18 -28
  12. package/src/components/JfbBasePoster/JfbBasePoster.vue +2 -2
  13. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +1 -4
  14. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +0 -197
  15. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -60
  16. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -106
  17. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -227
  18. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  19. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  20. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
  21. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -60
  22. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  23. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -265
  24. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  25. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  26. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
  27. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -60
  28. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -106
  29. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -172
  30. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  31. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  32. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
  33. package/src/components/JfbBaseSaasHome/Api.js +0 -60
  34. package/src/components/JfbBaseSaasHome/Attr.js +0 -106
  35. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -285
  36. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
  37. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
  38. package/src/components/JfbBaseSaasHome/Mock.js +0 -5
  39. package/src/components/JfbBaseSaasLogin/Api.js +0 -26
  40. package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
  41. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -353
  42. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
  43. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
  44. package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
  45. package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -60
  46. package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -106
  47. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -140
  48. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  49. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  50. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
  51. package/src/components/JfbBaseSaasNewsList/Api.js +0 -60
  52. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -106
  53. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -155
  54. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  55. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  56. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
@@ -16,14 +16,15 @@
16
16
  <view class="jfb-base-con-list__edit-icon" @click="delEdit">删除</view>
17
17
  </view>
18
18
  <!-- #endif -->
19
- <view class="jfb-base-con-list__body" v-if="done" :style="{
20
- backgroundImage: `url(${background})`,
21
- backgroundSize: '100%',
22
- backgroundRepeat: 'no-repeat',
23
- minHeight: `${layoutInfo.bodyMinHeightRpx}rpx`,
24
- }">
19
+ <view class="jfb-base-con-list__body" v-if="done">
25
20
  <view
26
21
  v-if="couponList&&couponList.length > 0"
22
+ :style="{
23
+ backgroundImage: `url(${background})`,
24
+ backgroundSize: '100%',
25
+ backgroundRepeat: 'no-repeat',
26
+ height: `${layoutInfo.bodyMinHeightRpx}rpx`,
27
+ }"
27
28
  >
28
29
  <view class="jfb-base-con-list__body-content">
29
30
  <view class="jfb-base-con-list__body-content-header">
@@ -40,7 +41,7 @@
40
41
  <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
41
42
  </view>
42
43
  </view>
43
- <view v-if="can_take === 'Y' && has_times === 'Y'" class="jfb-base-con-list__body-content-list">
44
+ <view class="jfb-base-con-list__body-content-list">
44
45
  <view v-for="(item, index) in couponList" :key="index">
45
46
  <view
46
47
  class="jfb-base-con-list__body-content-list-item"
@@ -105,27 +106,24 @@
105
106
  <view></view>
106
107
 
107
108
  <xd-button
109
+ v-if="item.can_take_num !== 'Y'"
108
110
  size="small"
109
- :disabled="item.can_take_num !=='Y' && item.remain_card_count == 0"
111
+ :disabled="item.remain_card_count == 0"
110
112
  @click="getCoupont(item)"
111
113
  type="primary"
112
- style="width: 170rpx;height: 60rpx;"
113
114
  :style="item.btn"
114
115
  :color="item.infoColor"
115
- >{{ item.btn_txt }}</xd-button>
116
+ >领取</xd-button
117
+ >
116
118
  </view>
117
119
  </view>
118
120
  </view>
119
121
  </view>
120
122
  </view>
121
- <view v-else class="jfb-base-con-list__body-content-list" style="padding-bottom: 60rpx;">
122
- <image mode="widthFix" :src="used_up_url"></image>
123
- </view>
123
+ <view class="jfb-base-con-list__body-content-foot"
124
+ >可在我的-我的票券进行查看</view
125
+ >
124
126
  </view>
125
- <view class="jfb-base-con-list__body-content-foot"
126
- @click="toCoupon"
127
- >查看已领票券</view
128
- >
129
127
  </view>
130
128
  <view
131
129
  v-else
@@ -182,9 +180,6 @@ export default {
182
180
  activity_id: "",
183
181
  background: "",
184
182
  app_coupon_url: "",
185
- used_up_url: "",
186
- can_take: "",
187
- has_times: "",
188
183
  method: "entry",
189
184
  maxTime: 5, //最长轮询2的N次方(秒)
190
185
  date: 2, //时间底数
@@ -193,9 +188,6 @@ export default {
193
188
  order_num: null,
194
189
  done: false,
195
190
  message: "",
196
- options: {},
197
-
198
- collectedPath: "",
199
191
  };
200
192
  },
201
193
  computed: {
@@ -221,13 +213,11 @@ export default {
221
213
  init(value) {
222
214
  this.contentBackground = '#FFF8F8';
223
215
  this.iconColor = '#FF4D4A';
224
- this.collectedPath = getContainerPropsValue(value, "content.collectedPath", {value: ''}).value;
225
216
  },
226
217
  getList() {
227
218
  jfbRootExec("getCouponList", {
228
219
  vm: this,
229
220
  data: {
230
- ...this.options,
231
221
  distribution_method: this.method,
232
222
  namespace: this.pageBusinessCode,
233
223
  activity_id: this.activity_id,
@@ -235,22 +225,16 @@ export default {
235
225
  })
236
226
  .then((res) => {
237
227
  this.background = getServiceUrl(res.background);
238
- this.used_up_url = res.used_up_url && getServiceUrl(res.used_up_url);
239
- this.can_take = res.can_take;
240
- this.has_times = res.has_times;
241
-
242
228
  this.couponList =
243
229
  res.list &&
244
230
  res.list.length > 0 &&
245
231
  res.list.map((item) => {
246
- let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
247
- item.btn_txt = mapArr[item.can_take_num];
248
232
  if (item.can_take_num === "Y" || item.can_take_num === "P") {
249
233
  //按钮样式
250
234
  item.btn = res.app_coupon_button_bg_url
251
235
  ? {
252
236
  backgroundImage: `url(${getServiceUrl(
253
- item.can_take_num === "Y" ? res.app_coupon_button_see_url : res.app_coupon_button_bg_url
237
+ res.app_coupon_button_bg_url
254
238
  )})`,
255
239
  backgroundSize: "100%",
256
240
  backgroundRepeat: "no-repeat",
@@ -304,21 +288,11 @@ export default {
304
288
  console.log(err, "err");
305
289
  });
306
290
  },
307
- toCoupon(){
308
- this.$xdUniHelper.navigateTo({
309
- url: this.collectedPath,
310
- });
311
- },
312
291
  getCoupont(item) {
313
- if(item.can_take_num === "Y") {
314
- this.toCoupon();
315
- return;
316
- }
317
292
  this.$xdShowLoading({});
318
293
  jfbRootExec("getAllCoupon", {
319
294
  vm: this,
320
295
  data: {
321
- ...this.options,
322
296
  distribution_method: this.method,
323
297
  namespace: this.pageBusinessCode,
324
298
  activity_id: this.activity_id,
@@ -350,13 +324,11 @@ export default {
350
324
  jfbRootExec("getCouponResult", {
351
325
  vm: this,
352
326
  data: {
353
- ...this.options,
354
327
  tmp_order_number: this.order_num,
355
328
  },
356
329
  })
357
330
  .then((res) => {
358
331
  if (res.status_type === "success") {
359
- this.order_num = null;
360
332
  this.$xdHideLoading();
361
333
  this.$xdAlert({
362
334
  content: "领取成功",
@@ -426,7 +398,6 @@ export default {
426
398
  // },
427
399
  onJfbLoad(options) {
428
400
  console.log(this.pageBusinessCode, "pageNamespace");
429
- this.options = options;
430
401
  this.activity_id = options.activity_id;
431
402
  this.method = options.distribution_method
432
403
  ? options.distribution_method
@@ -467,9 +438,6 @@ export default {
467
438
  &__body {
468
439
  position: relative;
469
440
  overflow-y: auto;
470
- padding-top: 220rpx;
471
- box-sizing: border-box;
472
- background-color: #FAFAFA;
473
441
  .empty_data {
474
442
  text-align: center;
475
443
  color: #999999;
@@ -487,6 +455,8 @@ export default {
487
455
  border-radius: unit(20, rpx);
488
456
  background: #fff;
489
457
  padding: unit(34, rpx);
458
+ position: relative;
459
+ top: unit(164, rpx);
490
460
  margin-right: auto;
491
461
  margin-left: auto;
492
462
  width: unit(650, rpx);
@@ -564,7 +534,7 @@ export default {
564
534
  color: #a6a6a6;
565
535
  font-size: unit(24, rpx);
566
536
  text-align: center;
567
- margin: unit(40, rpx) 0;
537
+ margin-top: unit(40, rpx);
568
538
  }
569
539
  }
570
540
  }
@@ -1,25 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- getCouponList: {
5
- "list":[
6
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
7
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
8
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
9
- ],
10
- "background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
11
- "used_up_url": "",
12
- "has_times": "Y",
13
- "can_take":"Y",
14
- "message":"",
15
- "app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
16
- "app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
17
- "app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
18
- "app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
19
- "app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
20
- "rule":"<p>打发&middot;</p>",
21
- "request_id":"a2603f2a480485f4"
22
- },
4
+ getCouponList: {"list":[
5
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
6
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
7
+ {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
8
+ ],"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg","can_take":"Y","message":"","app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg","app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg","app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png","app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg","request_id":"a2603f2a480485f4"},
23
9
  getAllCoupon: {
24
10
  "request_id": "5987aa28c709d4ef"
25
11
  }
@@ -23,10 +23,9 @@ module.exports = [
23
23
  disabled: true,
24
24
  },
25
25
  {
26
- mapFnName: 'getBaseOrderStatus', //自定义方法名字(必选)
26
+ mapFnName: 'getBaseOrderDetail', //自定义方法名字(必选)
27
27
  title: '获取订单详情',
28
- // path: '/order/v1/order/detail',
29
- path: "/order/v1/order/pay-status",
28
+ path: '/order/v1/order/detail',
30
29
  isRule: false,
31
30
  params: {
32
31
  main_order_id: ['id', 'Number', '必选'],
@@ -297,29 +297,23 @@ export default {
297
297
  return time;
298
298
  },
299
299
  p_getBaseOrderDetail(){
300
- return new Promise((resolve, reject) => {
301
- jfbRootExec("getBaseOrderStatus", {
302
- vm: this,
303
- data: {
304
- main_order_id: this.main_order_id,
305
- }
306
- }).then(res => {
307
- let { is_can_pay, can_pay_message } = res.can_pay_info
308
- this.is_can_pay = is_can_pay;
309
- this.can_pay_message = can_pay_message;
310
- if(is_can_pay !== "Y"){
311
- uni.showToast({
312
- title: can_pay_message,
313
- icon: 'none',
314
- duration: 3000
315
- });
316
- reject();
317
- // this.$xdNavigateBack()
318
- }
319
- resolve();
320
- }).catch(err => {
321
- reject();
322
- })
300
+ jfbRootExec("getBaseOrderDetail", {
301
+ vm: this,
302
+ data: {
303
+ main_order_id: this.main_order_id,
304
+ }
305
+ }).then(res => {
306
+ let { is_can_pay, can_pay_message } = res.can_pay_info
307
+ this.is_can_pay = is_can_pay;
308
+ this.can_pay_message = can_pay_message;
309
+ if(is_can_pay !== "Y"){
310
+ uni.showToast({
311
+ title: can_pay_message,
312
+ icon: 'none',
313
+ duration: 3000
314
+ });
315
+ // this.$xdNavigateBack()
316
+ }
323
317
  })
324
318
  },
325
319
  p_getPayOrderDetail() {
@@ -364,12 +358,8 @@ export default {
364
358
  });
365
359
  },
366
360
  //第三方支付
367
- async doThirdPay() {
361
+ doThirdPay() {
368
362
  if (this.$configProject.isPreview) return;
369
-
370
- if(this.type !== 'recharge') {
371
- await this.p_getBaseOrderDetail();
372
- }
373
363
  const {channel_provider_id, order_id, payInfo} = this;
374
364
  let {login_providers = []} = this.projectAttr;
375
365
  console.log(this.projectAttr)
@@ -183,7 +183,7 @@
183
183
  let cell = this.posterType === '2' ? 2: (this.posterType === '3' ? 3 : 4);
184
184
  let spacing = Math.floor((cell - 1) * this.padding * this.$rpxNum);
185
185
  let padding = 0;
186
- if(this.$xdUniHelper.isEmpty(this.background)) padding = 20;
186
+ if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) padding = 20;
187
187
  let addPadding = ((this.bgImagePadding.right !== null? this.bgImagePadding.right:padding) +
188
188
  (this.bgImagePadding.left !== null? this.bgImagePadding.left : padding)) * this.$rpxNum;
189
189
  let viewWidth = uni.getSystemInfoSync().safeArea.width - ((this.mS.right || 0) + (this.mS.left || 0)) * this.$rpxNum - addPadding - spacing;
@@ -285,7 +285,7 @@
285
285
  outPadding(){
286
286
  try {
287
287
  let defaultvalue = 0;
288
- if(this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20
288
+ if(this.background === 'none' || this.$xdUniHelper.isEmpty(this.background)) defaultvalue = 20
289
289
  console.log(this.bgImagePadding,'this.paddingthis.paddingthis.padding');
290
290
  let padding = `${this.bgImagePadding.top !== null ? this.bgImagePadding.top : defaultvalue}rpx`;
291
291
  padding = `${padding} ${this.bgImagePadding.right !== null ? this.bgImagePadding.right : defaultvalue}rpx`;
@@ -321,7 +321,7 @@ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
321
321
  import XdDailog from "@/components/XdDailog/XdDailog";
322
322
  import XdButton from "@/components/XdButton/XdButton";
323
323
  import XdUnit from "@/components/XdUnit/XdUnit";
324
- import { jfbRootExec, jfbRootFnExec } from "@/utils/xd.event";
324
+ import { jfbRootExec } from "@/utils/xd.event";
325
325
  import JfbBaseSuccessMixin from "./JfbBaseSuccessMixin";
326
326
  import componentsMixins from "@/mixins/componentsMixins";
327
327
  import extsMixins from "@/mixins/extsMixins";
@@ -495,9 +495,6 @@ export default {
495
495
  },
496
496
  })
497
497
  .then((res) => {
498
- if(res.status.status_type === 'success') {
499
- jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {order_number: this.order_id});
500
- }
501
498
  this.handleOrderResolve(res);
502
499
  })
503
500
  .catch((err) => {
@@ -1,197 +0,0 @@
1
- <template>
2
- <view class="xd-cou-card-bind">
3
- <view class="ticket_box" :style="{
4
- backgroundImage: dialogBackground
5
- }">
6
- <view class="ticket_list">
7
- <view class="ticket_item" :class="item.can_take_num"
8
- v-for="(item,i) in uiList" :key="i"
9
- :style="{backgroundImage: item.backgroundImage}"
10
- >
11
- <view class="ticket_names">
12
- <view class="name_main">{{item.prize_type}}</view>
13
- <view class="name_sub">{{item.prize_name}}</view>
14
- </view>
15
- <view class="name_tit">{{item.prize_name}}</view>
16
- <xd-font-icon class="ticket_icon" :icon="item.icon"></xd-font-icon>
17
- <view class="btn">
18
- <xd-button
19
- size="small"
20
- type="primary"
21
- :disabled="item.remain_card_count == 0"
22
- :style="{
23
- backgroundImage: item.btnImage
24
- }"
25
- @click="getCoupont(item)"
26
- >{{item.btn_txt}}</xd-button>
27
- </view>
28
- </view>
29
- </view>
30
- </view>
31
-
32
- <xd-font-icon
33
- @click="handleClose"
34
- class="dialog_close"
35
- icon="iconguanbi_xian"
36
- color="#fff"
37
- size="64"
38
- ></xd-font-icon>
39
- </view>
40
- </template>
41
- <script>
42
- import XdButton from "@/components/XdButton/XdButton";
43
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
44
- import getServiceUrl from "@/common/getServiceUrl";
45
- export default{
46
- name: "XdCouCardBind",
47
- components: {
48
- XdButton,
49
- XdFontIcon
50
- },
51
- props: {
52
- list: {
53
- type: Array,
54
- default(){
55
- return []
56
- }
57
- },
58
- setting: {}
59
- },
60
- computed: {
61
- uiList(){
62
- return this.list.map(item => {
63
- let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
64
- item.btn_txt = mapArr[item.can_take_num];
65
- if(item.can_take_num === "Y" || item.can_take_num === "P"){
66
- item.backgroundImage = `url(${getServiceUrl(this.setting.app_coupon_url)})`;
67
- item.btnImage = `url(${getServiceUrl(this.setting.app_coupon_button_bg_url)})`;
68
- item.icon = item.can_take_num === "Y" ? "iconyilingqu" : "icondailingqu";
69
- }else if(item.can_take_num === "N"){
70
- item.backgroundImage = `url(${getServiceUrl(this.setting.app_coupon_invalid_url)})`;
71
- item.btnImage = "";
72
- item.icon = "iconyifawan";
73
- }
74
- return item;
75
- })
76
- },
77
- dialogBackground(){
78
- return `url(${getServiceUrl(this.setting.background)})`;
79
- }
80
- },
81
- data(){
82
- return {
83
-
84
- }
85
- },
86
- methods: {
87
- //领取优惠券
88
- getCoupont(item){
89
- if(item.can_take_num === "P"){
90
- this.$emit("getCoupont", item);
91
- }
92
- },
93
- handleClose(){
94
- this.$emit("closeDialog");
95
- }
96
- }
97
- }
98
- </script>
99
-
100
- <style lang="less" scoped>
101
- @ticketHeight: 180rpx;
102
- @bgHeight: @ticketHeight - 40rpx;
103
- .xd-cou-card-bind{
104
- width: 600rpx;
105
- max-height: 900rpx;
106
- padding-bottom: 80rpx;
107
- .ticket_box{
108
- background-color: #fff;
109
- background-size: 100% auto;
110
- background-repeat: no-repeat;
111
- padding-top: 200rpx;
112
- border-radius: 20rpx;
113
- box-sizing: border-box;
114
- padding-bottom: 20rpx;
115
- }
116
-
117
- .ticket_item{
118
- display: flex;
119
- position: relative;
120
- width: 540rpx;
121
- height: @ticketHeight;
122
- margin: 20rpx auto;
123
- border-radius: 20rpx;
124
- padding: 30rpx;
125
- box-sizing: border-box;
126
- background: #EEEEEE url("//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg") no-repeat;
127
- background-size: auto @bgHeight;
128
- background-position: 30rpx center;
129
-
130
- &.P,
131
- &.Y{
132
-
133
- }
134
- &.N{
135
- .ticket_names{
136
- .name_main{
137
- color: #BBBBBB;
138
- }
139
- }
140
- .ticket_icon{
141
- color: #D6D6D6;
142
-
143
- }
144
- .btn{
145
- .xd-button{
146
- background-color: #DDDDDD !important;
147
- color: #999999 !important;
148
- }
149
- }
150
- }
151
- .name_tit{
152
- font-size: 28rpx;
153
- margin-left: 20rpx;
154
- }
155
- .ticket_names{
156
- width: 168rpx;
157
- height: 120rpx;
158
- text-align: center;
159
- font-size: 28rpx;
160
- .name_main{
161
- margin-bottom: 26rpx;
162
- margin-top: 20rpx;
163
- color: #fb5b3f;
164
- }
165
- .name_sub{
166
- font-size: 24rpx;
167
- color: #FFFFFF;
168
- }
169
- }
170
- .ticket_icon{
171
- font-size: 80rpx !important;
172
- position: absolute;
173
- top: 0;
174
- right: 0;
175
- }
176
- .btn{
177
- position: absolute;
178
- right: 20rpx;
179
- bottom: 20rpx;
180
- .xd-button{
181
- height: 30rpx;
182
- width: 100rpx;
183
- font-size: 28rpx;
184
- background-size: cover !important;
185
- background-color: #fb5b3f;
186
- }
187
- }
188
-
189
- }
190
- .dialog_close{
191
- position: absolute;
192
- bottom: 0rpx;
193
- left: 50%;
194
- transform: translateX(-50%);
195
- }
196
- }
197
- </style>
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description API模型
5
- * 建议:Ffff=>模块 Xxxx=>自定义名字
6
- * 获取单记录(getByIdFfffXxxx)
7
- * 获取列表记录(getByListFfffXxxx)
8
- * 添加列表记录(addFfffXxxxx)
9
- * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
- * 更新列表记录(updateFfffXxxxx)
11
- * @type {*[]}
12
- */
13
- module.exports = [
14
- {
15
- mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
16
- title: '获取电影广场列表',
17
- path: '/api/account/film/list-film-square',
18
- isRule: false,
19
- params: {
20
- last_key: ['当前页', 'Number', '必选'],
21
- page_size: ['每页数量', 'Number', '必选'],
22
- },
23
- isConsole: true,
24
- disabled: true,
25
- },
26
- {
27
- mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
- title: '更新排期',
29
- path: '/api/account/film/paiqi-date',
30
- isRule: false,
31
- params: {
32
- film_id: ['电影id', 'Number', '必选'],
33
- cinema_id: ['影院id', 'Number', '必选'],
34
- },
35
- isConsole: true,
36
- disabled: true,
37
- },
38
- {
39
- mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
- title: '删除我的配送地址',
41
- path: '/api/account/film/paiqi-date',
42
- isRule: false,
43
- params: {
44
- film_id: ['电影id', 'Number', '必选'],
45
- },
46
- isConsole: true,
47
- disabled: true,
48
- },
49
- {
50
- mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
- title: '添加购物车',
52
- path: '/api/account/film/paiqi-date',
53
- isRule: false,
54
- params: {
55
- film_id: ['电影id', 'Number', '必选'],
56
- },
57
- isConsole: true,
58
- disabled: true,
59
- },
60
- ];