jufubao-base 1.0.232-beta5 → 1.0.232-beta7

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 (53) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +18 -30
  3. package/src/components/JfbBaseBalance/Attr.js +292 -24
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +253 -32
  5. package/src/components/JfbBaseBalance/Mock.js +5 -9
  6. package/src/components/JfbBaseCodeOpenVip/Api.js +17 -39
  7. package/src/components/JfbBaseCodeOpenVip/Attr.js +19 -0
  8. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +52 -23
  9. package/src/components/JfbBaseConsumpCode/Api.js +94 -19
  10. package/src/components/JfbBaseConsumpCode/Attr.js +13 -0
  11. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +397 -93
  12. package/src/components/JfbBaseConsumpCode/Mock.js +18 -9
  13. package/src/components/JfbBaseOpenVip/Api.js +11 -40
  14. package/src/components/JfbBaseOpenVip/Attr.js +4 -4
  15. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +68 -25
  16. package/src/components/JfbBaseOpenVip/Mock.js +16 -9
  17. package/src/components/JfbBaseOpenVip/XdVipList.vue +44 -6
  18. package/src/components/JfbBaseOpenVipDetail/Api.js +17 -39
  19. package/src/components/JfbBaseOpenVipDetail/Attr.js +16 -27
  20. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +108 -23
  21. package/src/components/JfbBasePersonalData/Api.js +9 -41
  22. package/src/components/JfbBasePersonalData/Attr.js +1 -37
  23. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +43 -21
  24. package/src/components/JfbBasePointsCard/Api.js +4 -44
  25. package/src/components/JfbBasePointsCard/Attr.js +8 -44
  26. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +24 -107
  27. package/src/components/JfbBasePointsCard/Mock.js +1 -9
  28. package/src/components/JfbBasePointsDetail/Api.js +25 -0
  29. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +66 -20
  30. package/src/components/JfbBasePointsDetail/Mock.js +2 -9
  31. package/src/components/JfbBaseSavingDetail/Api.js +12 -29
  32. package/src/components/JfbBaseSavingDetail/Attr.js +44 -22
  33. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +593 -29
  34. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  35. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  36. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  37. package/src/components/JfbBaseShare/Api.js +5 -43
  38. package/src/components/JfbBaseShare/JfbBaseShare.vue +13 -12
  39. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -20
  40. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +5 -0
  41. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -1
  42. package/src/components/JfbBaseWithDrawAgain/Api.js +13 -30
  43. package/src/components/JfbBaseWithDrawAgain/Attr.js +70 -26
  44. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +255 -32
  45. package/src/components/JfbBaseWithDrawAgain/Mock.js +6 -9
  46. package/src/components/JfbBaseWithDrawRecord/Api.js +4 -43
  47. package/src/components/JfbBaseWithDrawRecord/Attr.js +56 -25
  48. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +157 -35
  49. package/src/components/JfbBaseWithDrawRecord/Mock.js +3 -9
  50. package/src/components/JfbBaseWithdraw/Api.js +20 -30
  51. package/src/components/JfbBaseWithdraw/Attr.js +304 -24
  52. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +166 -32
  53. package/src/components/JfbBaseWithdraw/Mock.js +2 -8
@@ -1,13 +1,22 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
-
5
- getConsumpByIdFilmSquate:{},
6
-
7
- updateConsumpFilmPaiqiDate:{},
8
-
9
- removeConsumpFilmAddress:{},
10
-
11
- addConsumpFilmcart:{},
12
-
4
+
5
+ getConsumpCode: { "payment_code": "h.161.v71913434717194", "expiration_time": 1744971193, "expiration_sec": 60, "temp_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "confirm_notice": false, "notice": "", "cash_order_id": "", "code_url": "\/common\/v1\/image\/qrcode?code_content=h.161.v71913434717194&size=240", "plus_discount": 0, "is_st_flow": "张三", "barcode_url": "\/common\/v1\/image\/barcode?code_content=h.161.v71913434717194", "shop_name": "六九豆浆饺子(石门市场店)", "request_id": "52ebf80c255ebcb5" },
6
+
7
+ getConsumpCodeScanStatus: { "status": "P", "message": "", "order_data": "{\"total_amount\":\"0\",\"pay_expire_time\":\"0\",\"message\":\"\",\"status\":\"P\",\"cash_order_id\":\"\",\"user_id\":\"5000358\",\"channel_order_id\":\"\",\"cart_order_id\":\"\"}", "seconds": 0, "request_id": "a54ac53ad31312d6" },
8
+
9
+ getConsumpListUserPayChannel: { "list": [{ "channel_provider_id": "1rRq74ACKJj5nIx5CgLpb", "channel_provider_name": "微信", "channel_code": "wxpay", "channel_logo": "https:\/\/jfb-public-images.oss-cn-qingdao.aliyuncs.com\/system-paychannel-logo-wxpay.png?x-oss-process=style\/200_200" }], "request_id": "e142d26c3d24c060" },
10
+
11
+ batchConsumpUseCardCreated: { "request_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "request_id": "e17499843ece44b1" },
12
+
13
+ getConsumpAsyncSubmitStatus: { "hand_status": "U", "hand_status_msg": "异步下单中", "order_id": "", "pay_order_id": "", "need_pay_price": "0", "request_id": "fddff0af4216825d" },
14
+
15
+ getConsumpShopList: { "namespaces": [{ "label": "蛋糕(勿改)", "value": "cake" }], "brands": [{ "label": "测试1111", "value": 14, "icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png" }, { "label": "品牌jls0519", "value": 100003, "icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg" }], "list": [{ "brand_id": 14, "brand_name": "测试1111", "brand_type": "MA", "business_status": "CLOSED", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "42km", "distance_conversion": "41.9km", "default_consume_type": "CV", "consume_type": ["CV"], "is_support_jhd": true, "address": "顺义区东六环与顺于路交叉口东150米", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "(010)89430806", "resource_shop_id": 8003489, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAzNDg5LCJzaG9wX2lkIjoxMTUzNTIwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "六九豆浆饺子(石门市场店)", "shop_icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png", "shop_id": 1153520, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.630756", "latitude": "40.134773" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "55km", "distance_conversion": "54.8km", "default_consume_type": "", "consume_type": [""], "is_support_jhd": false, "address": "东城区东直门街道东城区东直门内南大街4号(东直门内第一个十字路口东南角)", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "64034959", "resource_shop_id": 8000077, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc3LCJzaG9wX2lkIjoxMDIzNTMwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "东直门[2]", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1023530, "shop_tags": [], "stars": 0, "time_slot_name": "09:00-18:00", "business_code": "", "longitude": "116.44373384708321", "latitude": "39.94636369444035" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "56km", "distance_conversion": "55.5km", "default_consume_type": "JHD", "consume_type": ["JHD"], "is_support_jhd": true, "address": "东城区建国门街道北京inn", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "18843854566", "resource_shop_id": 8000078, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc4LCJzaG9wX2lkIjoxMDM3MjY2LCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "a加盟商-185", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1037266, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.43814998003319", "latitude": "39.9280800962547" }], "total_size": 3, "next_page_token": "", "request_id": "fa91f05cff4b280b" },
16
+
17
+ getConsumpSettleMainInfo: { "shop_id": 1037266, "shop_logo": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_name": "a加盟商-185", "shop_brand": 100003, "shop_partner_name": "A加盟商-余额测试", "settle_tag_list": [{ "label": "幸福西饼、goodlike品牌", "value": 262, "price": 0, "price_yuan": "0.00", "is_static_price": false, "icon_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230728\/70f4dd90cdf2681e71ccf41d332d71a0.jpeg" }], "request_id": "a4a6cfe9db905597" },
18
+
19
+ getConsumpBaseUserInfo: { "user_name": "", "user_code": "WuE5Wotf08", "nickname": "张三", "real_name": "", "head_url": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/AOqEDeiaxss8GR4jD1GicIgyqWSOZV8xN23Iw3DOzFjVBzTFbdv21X7u9ZASQJYsTNm07XSq6ebzp4K4qu1JT26qGZ0qYFMe1nHdQjFZib83Fg\/132", "province_code": "", "city_code": "", "province_name": "", "city_name": "", "sex": "1", "sex_name": "男", "birthday_date": "2025-04-16", "phone_number": "177****7945", "show_user_name": "张三", "user_level": "VIP", "vip_expire_time": 1776157293, "request_id": "f1dbb1c0bb8da893" },
20
+
21
+ addConsumpCashierTempOrderData: { "cart_order_id": "c08f38347ec8bc5b", "request_id": "779bf62e988587ce" }
13
22
  }
@@ -6,53 +6,24 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Open
10
- mapFnName: 'getOpenByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getBaseUserInfo',
10
+ title: '获取用户信息',
11
+ path: '/passport/v1/user/get',
12
+ params: {},
13
13
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
- },
18
- isConsole: true,
19
- disabled: true,
20
- },
21
- {
22
- //设置方法名字当别忘记加上【模块名字】:Open
23
- mapFnName: 'updateOpenFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
26
- isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
14
  isConsole: true,
32
15
  disabled: true,
33
16
  },
34
17
  {
35
- //设置方法名字当别忘记加上【模块名字】:Open
36
- mapFnName: 'removeOpenFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
18
+ mapFnName: "getVipList",
19
+ title: "会员中心 - 会员卡列表",
20
+ path: "/member/v1/:namespace/vip-card",
39
21
  isRule: false,
40
22
  params: {
41
- film_id: ['电影id', 'Number', '必选'],
23
+ namespace: ['业务线', 'String', true],
24
+ is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
42
25
  },
43
26
  isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Open
48
- mapFnName: 'addOpenFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
54
- },
55
- isConsole: true,
56
- disabled: true,
57
- },
27
+ disabled: true
28
+ }
58
29
  ];
@@ -233,12 +233,12 @@ export default {
233
233
  notice: '',
234
234
  },
235
235
  {
236
- label: '支付跳转路径:',
236
+ label: '会员详情路径:',
237
237
  ele: 'xd-select-pages-path',
238
- valueKey: 'payPath',
238
+ valueKey: 'vipDetailPath',
239
239
  groupKey:'advanced',
240
- placeholder: '请选择支付跳转路径',
241
- value: data['payPath'] || null,
240
+ placeholder: '请选择会员详情路径',
241
+ value: data['vipDetailPath'] || null,
242
242
  setting: {
243
243
  router: XdBus.getParentApi('getPagesTree'),
244
244
  },
@@ -16,15 +16,18 @@
16
16
  <view class="jfb-base-open-vip__body" :style="[bodyStyle]">
17
17
  <!-- 用户信息 -->
18
18
  <view class="u_header">
19
- <view class="u_avatar"></view>
19
+ <view class="u_avatar">
20
+ <image :src="uInfo.head_url" mode="aspectFill"></image>
21
+ </view>
20
22
  <view class="u_info">
21
23
  <view class="u_info-top">
22
- <view class="vip_name">黑白灰</view>
23
- <view v-if="0" class="vip_level">普通用户</view>
24
- <view v-else class="vip_level plus">PLUS会员</view>
24
+ <view class="vip_name">{{ uInfo.show_user_name }}</view>
25
+ <view v-if="isVip" class="vip_level plus">PLUS会员</view>
26
+ <view v-else class="vip_level">普通用户</view>
25
27
  </view>
26
28
  <view class="u_sub">
27
- <view>138****7353</view>
29
+ <view v-if="isVip">已省xx</view>
30
+ <view v-else>{{ uInfo.phone_number }}</view>
28
31
  </view>
29
32
  </view>
30
33
  <view class="buy_btn" @click="showDrawer=true">立即续费</view>
@@ -37,7 +40,9 @@
37
40
  <view class="vip_box-title">PLUS会员</view>
38
41
  <view>开通享受更多权益</view>
39
42
  </view>
40
- <view class="vip_logo"></view>
43
+ <view class="vip_logo">
44
+ <image :src="siteLogo" mode="aspectFill"></image>
45
+ </view>
41
46
  </view>
42
47
  <view class="vip_banner">
43
48
  <view class="banner_item" v-for="i in 4" :key="i">
@@ -61,12 +66,18 @@
61
66
  </view>
62
67
  </view>
63
68
  </view>
64
-
65
- <xd-vip-list @handlePrivacy="handlePrivacy"></xd-vip-list>
69
+
70
+ <xd-vip-list :list="vipCardList"
71
+ @handlePrivacy="handlePrivacy"
72
+ @toVipDetail="toVipDetail"
73
+ ></xd-vip-list>
66
74
 
67
75
  <xd-down-drawer :show.sync="showDrawer" height="480rpx">
68
76
  <view class="drawer_title">立即续费</view>
69
- <xd-vip-list @handlePrivacy="handlePrivacy"></xd-vip-list>
77
+ <xd-vip-list :list="vipCardList"
78
+ @handlePrivacy="handlePrivacy"
79
+ @toVipDetail="toVipDetail"
80
+ ></xd-vip-list>
70
81
  </xd-down-drawer>
71
82
 
72
83
  </view>
@@ -83,6 +94,7 @@
83
94
  import { getContainerPropsValue } from "@/utils/xd.base";
84
95
  import componentsMixins from "@/mixins/componentsMixins";
85
96
  import extsMixins from "@/mixins/extsMixins";
97
+ import getServiceUrl from "@/common/getServiceUrl"
86
98
 
87
99
  export default {
88
100
  name: "JfbBaseOpenVip",
@@ -100,8 +112,13 @@
100
112
  closeMask: true,
101
113
 
102
114
  showDrawer: false,
115
+ uInfo: {},
116
+ xnamespace: "",
117
+ vipCardList: [],
118
+
119
+ siteLogo: "",
103
120
  //todo
104
- payPath: "",
121
+ vipDetailPath: "",
105
122
  }
106
123
  },
107
124
  computed: {
@@ -110,6 +127,9 @@
110
127
  minHeight: this.layoutInfo.bodyMinHeightRpx + "rpx",
111
128
  '--main-color': this.mainColor
112
129
  }
130
+ },
131
+ isVip(){
132
+ return this.uInfo.user_level === 'VIP';
113
133
  }
114
134
  },
115
135
  watch: {
@@ -120,28 +140,39 @@
120
140
  },
121
141
  created() {
122
142
  this.init(this.container);
123
-
143
+ this.siteLogo = getServiceUrl(this.projectAttr['site_logo']);
124
144
  //todo
125
145
  },
126
146
  methods: {
127
147
  onJfbLoad(options) {
128
-
129
- // jfbRootExec('baiduUserLogin', {
130
-
131
- // vm: this,// data: {
132
-
133
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
134
-
135
- // }
136
-
137
- // }).then().catch()
148
+ this.setNameSpace(options);
149
+ this.p_getBaseUserInfo();
150
+ this.p_getVipList();
138
151
  },
139
152
  /**
140
153
  * @description 监听事件变化
141
154
  * @param container {object} 业务组件对象自己
142
155
  */
143
156
  init(container) {
144
- this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
157
+ this.vipDetailPath = getContainerPropsValue(container, 'content.vipDetailPath', {value: "/system/system/vipdetail"}).value;
158
+ },
159
+ p_getBaseUserInfo(){
160
+ jfbRootExec("getBaseUserInfo", {
161
+ vm: this,
162
+ data: {}
163
+ }).then(res => {
164
+ this.uInfo = res;
165
+ })
166
+ },
167
+ p_getVipList(){
168
+ jfbRootExec("getVipList", {
169
+ vm: this,
170
+ data: {
171
+ namespace: this.xnamespace,
172
+ }
173
+ }).then(res => {
174
+ this.vipCardList = res.list;
175
+ })
145
176
  },
146
177
  handlePrivacy(code){
147
178
  let params = `page_id=${this.pageAttr["page_id"]}`;
@@ -150,8 +181,13 @@
150
181
  url: `/pages/content/content?${params}`
151
182
  })
152
183
  },
184
+ toVipDetail(vip_card_id){
185
+ this.$xdUniHelper.navigateTo({
186
+ url: `${this.vipDetailPath}?vip_card_id=${vip_card_id}`
187
+ })
188
+ },
153
189
  onJfbScroll(options) {
154
- console.log('event.onJfbScroll', options)
190
+ // console.log('event.onJfbScroll', options)
155
191
  },
156
192
  onJfbReachBottom(options) {
157
193
  console.log('event.onJfbReachBottom', options)
@@ -190,9 +226,13 @@
190
226
  .u_avatar{
191
227
  width: 120rpx;
192
228
  height: 120rpx;
193
- background-color: #f00;
194
229
  border-radius: 120rpx;
195
230
  margin-right: 24rpx;
231
+ overflow: hidden;
232
+ image{
233
+ width: 100%;
234
+ height: 100%;
235
+ }
196
236
  }
197
237
  .u_info{
198
238
  flex:1;
@@ -261,7 +301,10 @@
261
301
  .vip_logo{
262
302
  width: 104rpx;
263
303
  height: 104rpx;
264
- background-color: #E8A841;
304
+ image{
305
+ width: 100%;
306
+ height: 100%;
307
+ }
265
308
  }
266
309
  }
267
310
 
@@ -1,13 +1,20 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
-
5
- getOpenByIdFilmSquate:{},
6
-
7
- updateOpenFilmPaiqiDate:{},
8
-
9
- removeOpenFilmAddress:{},
10
-
11
- addOpenFilmcart:{},
12
-
4
+ getBaseUserInfo: {
5
+ "user_name": "15801505541",
6
+ "user_code": "97SJSG667V",
7
+ "nickname": "草鸡无敌飞侠",
8
+ "real_name": "",
9
+ "head_url": "https://sandbox-img.jufubao.cn//uploads/20230217/dc6f1817ae3714814328fcff55925d00.jpg?x-oss-process=style/size8",
10
+ "province_code": "",
11
+ "city_code": "",
12
+ "province_name": "",
13
+ "city_name": "",
14
+ "sex": "",
15
+ "sex_name": "未知",
16
+ "birthday_date": "",
17
+ "phone_number": "15801505541",
18
+ "request_id": "44cf5b8402ff7c2e"
19
+ }
13
20
  }
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <view class="xd_vip_wrap">
3
3
  <view class="vip_list">
4
- <view class="vip_item" :class="{active: i==1}" v-for="i in 6" :key="i">
5
- <view class="vip_name">1日体验</view>
6
- <view class="vip_price">10.00</view>
4
+ <view class="vip_item" :class="{active: item.vip_card_id===vip_card_id}" v-for="item in uiList" :key="item.vip_card_id">
5
+ <view class="vip_name">{{ item.product_name}}</view>
6
+ <view class="vip_price">{{ $xdUniHelper.divisionFloatNumber(item.sale_price, 100) }}</view>
7
7
  </view>
8
8
  </view>
9
9
  <view class="vip_pay">
10
- <xd-button type="primary" width="600rpx">立即支付¥148/年</xd-button>
10
+ <view class="pay_btn" @click="toVipDetail">立即支付 <xd-unit style="margin-left: 16rpx;" :price="curVipCard.sale_price" :isOld="false" colorNew="#FFFFFF"></xd-unit></view>
11
11
  <view class="vip_tip">开通视为同意<text @click.stop="handlePrivacy('privacy_service')">《共享PLUS会员用户协议》</text></view>
12
12
  </view>
13
13
  </view>
@@ -15,18 +15,45 @@
15
15
 
16
16
  <script>
17
17
  import XdButton from "@/components/XdButton/XdButton.vue"
18
+ import XdUnit from "@/components/XdUnit/XdUnit.vue"
18
19
  export default {
19
20
  components: {
20
- XdButton
21
+ XdButton,
22
+ XdUnit
23
+ },
24
+ props: {
25
+ list: {
26
+ type: Array,
27
+ default(){
28
+ return []
29
+ }
30
+ }
31
+ },
32
+ watch: {
33
+ list(val){
34
+ this.vip_card_id = val[0].vip_card_id || ''
35
+ this.uiList = val
36
+ }
37
+ },
38
+ computed: {
39
+ curVipCard(){
40
+ return this.uiList.find(item => item.vip_card_id === this.vip_card_id) || {}
41
+ }
21
42
  },
22
43
  data(){
23
44
  return {
24
-
45
+ uiList: [],
46
+ vip_card_id: ''
25
47
  }
26
48
  },
27
49
  methods: {
28
50
  handlePrivacy(type){
29
51
  this.$emit('handlePrivacy', type)
52
+ },
53
+ toVipDetail(){
54
+ if(this.vip_card_id){
55
+ this.$emit('toVipDetail', this.vip_card_id)
56
+ }
30
57
  }
31
58
  }
32
59
  }
@@ -70,6 +97,17 @@
70
97
  }
71
98
  .vip_pay{
72
99
  padding: 24rpx 0 50rpx;
100
+ .pay_btn{
101
+ width: 600rpx;
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+ height: 80rpx;
106
+ background-color: var(--main-color);
107
+ color: #FFFFFF;
108
+ margin: 0 auto;
109
+ border-radius: 80rpx;
110
+ }
73
111
  }
74
112
  .vip_tip{
75
113
  text-align: center;
@@ -6,53 +6,31 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Open
10
- mapFnName: 'getOpenByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: "getVipConfirm",
10
+ title: "获取vip确认信息",
11
+ path: "/member/v1/:xnamespace/order/confirm",
13
12
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
13
+ data: {
14
+ vip_card_id: ["vip卡id", "Number", "必选"],
15
+ xnamespace: ['业务线', 'String', '必选']
17
16
  },
18
17
  isConsole: true,
19
18
  disabled: true,
20
19
  },
21
20
  {
22
- //设置方法名字当别忘记加上【模块名字】:Open
23
- mapFnName: 'updateOpenFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
21
+ mapFnName: "createVipOrder",
22
+ title: "创建VIP订单",
23
+ path: "/member/v1/order/submit",
26
24
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
25
+ data: {
26
+ business_code: ['业务编码', 'String', '必选'],
27
+ product_id: ['商品id', 'Number', '必选'],
28
+ notify_provider_id: ['notify_provider_id', 'Number', '可选'],
29
+ selected_card_list_json: ['已使用的卡券数据', 'array', '可选'],
30
+ selected_wallet_list_json: ['已使用的钱包数据', 'array', '可选'],
31
+ need_pay_price: ['需要支付的价格', 'Number', '可选']
30
32
  },
31
33
  isConsole: true,
32
34
  disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Open
36
- mapFnName: 'removeOpenFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Open
48
- mapFnName: 'addOpenFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
54
- },
55
- isConsole: true,
56
- disabled: true,
57
- },
35
+ }
58
36
  ];
@@ -8,39 +8,28 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '背景颜色:',
12
- ele: 'xd-color',
13
- valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
17
- },
18
- {
19
- label: '选中路径:',
20
- groupKey:'advanced',
21
- className: 'input100',
11
+ label: '支付页面路径:',
22
12
  ele: 'xd-select-pages-path',
23
- valueKey: 'select-pages-path',
24
- value: data['select-pages-path'] || null,
13
+ valueKey: 'payPath',
14
+ groupKey:'advanced',
15
+ placeholder: '请选择支付页面路径',
16
+ value: data['payPath'] || null,
25
17
  setting: {
26
- router: XdBus.getParentApi('getPagesTree')
18
+ router: XdBus.getParentApi('getPagesTree'),
27
19
  },
28
- },
29
- data.bgColor && {
30
- label: '高度:',
31
- ele: 'el-input',
32
- groupKey:'style',
33
- type: 'number',
34
- valueKey: 'height',
35
- value: data.height || 100,
36
- placeholder: '请输入占位框高度,单位像素,默认:10px',
37
- className: 'input60',
20
+ inline: false,
38
21
  },
39
22
  {
40
- label: '', //label
23
+ label: '支付成功路径:',
24
+ ele: 'xd-select-pages-path',
25
+ valueKey: 'paySuccessPath',
41
26
  groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
27
+ placeholder: '请选择支付成功路径',
28
+ value: data['paySuccessPath'] || null,
29
+ setting: {
30
+ router: XdBus.getParentApi('getPagesTree'),
31
+ },
32
+ inline: false,
44
33
  },
45
34
  ].filter(i=>i)
46
35
  },