jufubao-base 1.0.232-beta4 → 1.0.232-beta6

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 (46) 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 +250 -32
  5. package/src/components/JfbBaseCodeOpenVip/Api.js +17 -39
  6. package/src/components/JfbBaseCodeOpenVip/Attr.js +19 -0
  7. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +54 -25
  8. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +2 -2
  9. package/src/components/JfbBaseOpenVip/Api.js +11 -40
  10. package/src/components/JfbBaseOpenVip/Attr.js +4 -4
  11. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +69 -26
  12. package/src/components/JfbBaseOpenVip/Mock.js +16 -9
  13. package/src/components/JfbBaseOpenVip/XdVipList.vue +44 -6
  14. package/src/components/JfbBaseOpenVipDetail/Api.js +17 -39
  15. package/src/components/JfbBaseOpenVipDetail/Attr.js +16 -27
  16. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +110 -25
  17. package/src/components/JfbBasePersonalData/Api.js +9 -41
  18. package/src/components/JfbBasePersonalData/Attr.js +1 -37
  19. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +119 -32
  20. package/src/components/JfbBasePointsCard/Api.js +4 -44
  21. package/src/components/JfbBasePointsCard/Attr.js +0 -48
  22. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +24 -107
  23. package/src/components/JfbBasePointsCard/Mock.js +1 -9
  24. package/src/components/JfbBasePointsDetail/Api.js +25 -0
  25. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +65 -20
  26. package/src/components/JfbBasePointsDetail/Mock.js +2 -8
  27. package/src/components/JfbBaseSavingDetail/Api.js +12 -29
  28. package/src/components/JfbBaseSavingDetail/Attr.js +44 -22
  29. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +593 -29
  30. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  31. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  32. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  33. package/src/components/JfbBaseShare/Api.js +5 -43
  34. package/src/components/JfbBaseShare/JfbBaseShare.vue +14 -13
  35. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -20
  36. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +5 -0
  37. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +6 -2
  38. package/src/components/JfbBaseWithDrawAgain/Api.js +13 -30
  39. package/src/components/JfbBaseWithDrawAgain/Attr.js +70 -26
  40. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +255 -32
  41. package/src/components/JfbBaseWithDrawRecord/Api.js +4 -43
  42. package/src/components/JfbBaseWithDrawRecord/Attr.js +56 -25
  43. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +151 -34
  44. package/src/components/JfbBaseWithdraw/Api.js +20 -30
  45. package/src/components/JfbBaseWithdraw/Attr.js +304 -24
  46. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +166 -32
@@ -1,26 +1,60 @@
1
1
  <template>
2
- <view
3
- class="jfb-base-balance"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
2
+ <view class="jfb-base-balance" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
7
3
  <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-balance__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
4
+ <view class="jfb-base-balance__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
13
5
  <view class="jfb-base-balance__edit-icon" @click="delEdit">删除</view>
14
6
  </view>
15
7
  <!-- #endif -->
16
8
  <view class="jfb-base-balance__body">
17
- <view>测试插件( {{containerId}} )</view>
9
+ <view class="jfb-base-balance__body-tab">
10
+ <view v-for="(item,index) in wallet_list" :key="index" @click="handleSwitchTab(item)"
11
+ class="jfb-base-balance__body-tab-item">
12
+ {{item.show_name}}
13
+ <view v-if="wallet_type===item.wallet_type" class="check" :style="{background: mainColor
14
+ }"></view>
15
+ <view class="check" v-else></view>
16
+ </view>
17
+ </view>
18
+ <view style="display: flex;justify-content: space-between;align-items: center;" :style="[bodyStyleComp]">
19
+ <view class="jfb-base-balance__body-points">
20
+ <view>
21
+ 我的余额
22
+ <XdFontIcon @click="showDialog=true" style="margin-left: 10rpx" size="20" icon="iconmingchengtubiao">
23
+ </XdFontIcon>
24
+ </view>
25
+ <view>{{getAmout(amount)}}</view>
26
+ <view>可用:{{getAmout(amount)}}</view>
27
+ </view>
28
+ <xd-button v-if="isWithDraw==='Y'" style="margin: 0" size="mini" type="primary"
29
+ @click="handleWithdraw">提现</xd-button>
30
+ </view>
31
+ <view v-if="recordList&&recordList.length>0" :style="[bodyStyleComp]" class="jfb-base-balance__body-list">
32
+ <view v-for="(item,index) in recordList" :key="index" class="jfb-base-balance__body-list-item">
33
+ <view class="jfb-base-balance__body-list-item-info">
34
+ <view class="jfb-base-balance__body-list-item-info-label">{{item.trade_type_name}}</view>
35
+ <view :class="item.operate_type==='A'?'income':'expenses'"
36
+ class="jfb-base-balance__body-list-item-info-value">
37
+ <text>{{item.operate_type==='A'?'+':'-'}}</text>
38
+ {{getAmout(item.amount)}}
39
+ </view>
40
+ </view>
41
+ <view class="jfb-base-balance__body-list-item-date">{{item.created_time}}</view>
42
+ </view>
43
+ </view>
44
+ <XdNoData v-else></XdNoData>
45
+ <XdDailog :cancel="false" @onBtn="showDialog=false" confirmText="我知道了" title="积分说明" :show.sync="showDialog">
46
+ <xd-content-xss v-html="notice"></xd-content-xss>
47
+ </XdDailog>
18
48
  </view>
19
49
  </view>
20
50
  </template>
21
51
 
22
52
  <script>
23
53
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
54
+ import XdButton from "@/components/XdButton/XdButton";
55
+ import XdDailog from '@/components/XdDailog/XdDailog.vue';
56
+ import XdNoData from "@/components/XdNoData/XdNoData";
57
+ import XdContentXss from '@/components/XdContentXss/XdContentXss';
24
58
  import { jfbRootExec } from "@/utils/xd.event";
25
59
  import JfbBaseBalanceMixin from "./JfbBaseBalanceMixin";
26
60
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -29,17 +63,46 @@
29
63
  export default {
30
64
  name: "JfbBaseBalance",
31
65
  components: {
32
- XdFontIcon
66
+ XdFontIcon,
67
+ XdDailog,
68
+ XdContentXss,
69
+ XdButton,
70
+ XdNoData
33
71
  },
34
72
  mixins: [
35
73
  componentsMixins, extsMixins, JfbBaseBalanceMixin
36
74
  ],
37
75
  data() {
38
76
  return {
39
-
40
- //todo
77
+ income: false,
78
+ radius: 0,
79
+ margin: {},
80
+ padding: {},
81
+ bgColor: '',
82
+ bodyBorder: {},
83
+ notice: '',
84
+ showDialog: false,
85
+ withDrawRoutePath: '',
86
+ wallet_type: '',
87
+ wallet_list: [],
88
+ amount: 0,
89
+ isWithDraw: 'N',
90
+ recordList: [],
91
+ hasNext: true,
92
+ page_token: 1,
41
93
  }
42
94
  },
95
+ computed: {
96
+ bodyStyleComp() {
97
+ return {
98
+ borderRadius: `${this.radius}rpx`,
99
+ margin: this.getMarginAndPadding(this.margin, 20),
100
+ padding: this.getMarginAndPadding(this.padding, 40),
101
+ background: this.bgColor,
102
+ border: this.bodyBorder,
103
+ }
104
+ },
105
+ },
43
106
  watch: {
44
107
  container(value, oldValue) {
45
108
  if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
@@ -48,37 +111,109 @@
48
111
  },
49
112
  created() {
50
113
  this.init(this.container);
51
-
52
- //todo
53
114
  },
54
115
  methods: {
55
116
  onJfbLoad(options) {
117
+ this.method = options.method
118
+ this.getContent()
119
+ this.getDetail()
120
+ },
121
+ getAmout(amount) {
122
+ return this.$xdUniHelper.divisionFloatNumber(amount, 100)
123
+ },
124
+ getDetail() {
125
+ jfbRootExec("getBalanceDetail", {
126
+ vm: this,
127
+ data: {
128
+ method: this.method
129
+ },
130
+ }).then(res => {
131
+ this.wallet_type = res.wallet_list[0].wallet_type
132
+ this.isWithDraw = res.wallet_list[0].is_support_withdraw;
133
+ this.amount = res.wallet_list[0].amount;
134
+ this.wallet_list = res.wallet_list
135
+ this.getBalanceRecord()
136
+ }).catch(err => {
137
+ console.log(err, 'err');
56
138
 
57
- // jfbRootExec('baiduUserLogin', {
58
-
59
- // vm: this,// data: {
60
-
61
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
-
63
- // }
64
-
65
- // }).then().catch()
139
+ })
140
+ },
141
+ getBalanceRecord(type) {
142
+ jfbRootExec("getBalanceWalletTradeList", {
143
+ vm: this,
144
+ data: {
145
+ wallet_type: this.wallet_type,
146
+ page_size: 10,
147
+ page_token: this.page_token
148
+ },
149
+ }).then(res => {
150
+ let list = res.list.map(item => {
151
+ item["created_time"] = this.$xdUniHelper.getDate(
152
+ item["created_time"] * 1000
153
+ ).fullTime;
154
+ return item;
155
+ })
156
+ this.hasNext = res.next_page_token !== "";
157
+ if (this.page_token === 1) {
158
+ this.recordList = list
159
+ } else {
160
+ this.recordList = this.recordList.concat(list);
161
+ }
162
+ })
163
+ },
164
+ getContent() {
165
+ jfbRootExec("getListBaseNewsContent", {
166
+ vm: this,
167
+ data: {
168
+ page_id: this.pageAttr["page_id"], //页面ID
169
+ container_id: this.containerId, //组件ID
170
+ limit: 1,
171
+ },
172
+ })
173
+ .then((res) => {
174
+ if (res.list.length > 0) {
175
+ if (res.list && res.list.length > 0) {
176
+ this.notice = this.$xdUniHelper.filterHtml(res.list[0].content);
177
+ }
178
+ this.noticeStatus = true;
179
+ }
180
+ })
181
+ .catch((error) => {
182
+ console.error(error);
183
+ });
66
184
  },
67
185
  /**
68
186
  * @description 监听事件变化
69
187
  * @param container {object} 业务组件对象自己
70
188
  */
71
189
  init(container) {
72
-
73
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
-
75
- //this.height = getContainerPropsValue(container, 'content.height', 10);
190
+ this.radius = getContainerPropsValue(container, 'content.radius', '20');
191
+ this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
192
+ this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
193
+ this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
194
+ this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
195
+ this.withDrawRoutePath = getContainerPropsValue(container, 'content.withDrawRoutePath', { value: '' }).value;
196
+ },
197
+ handleWithdraw() {
198
+ this.$xdUniHelper.navigateTo({ url: `${this.withDrawRoutePath}?wallet_type=${this.wallet_type}&method=${this.method}` })
199
+ },
200
+ handleSwitchTab(item) {
201
+ this.wallet_type = item.wallet_type;
202
+ this.isWithDraw = item.is_support_withdraw;
203
+ this.amount = item.amount;
204
+ this.hasNext = true;
205
+ this.page_token = 1;
206
+ this.recordList = [];
207
+ this.getBalanceRecord()
76
208
  },
77
209
  onJfbScroll(options) {
78
210
  console.log('event.onJfbScroll', options)
79
211
  },
80
212
  onJfbReachBottom(options) {
81
- console.log('event.onJfbReachBottom', options)
213
+ if (this.hasNext) {
214
+ this.page_token = this.next_page_token;
215
+ this.getBalanceRecord()
216
+ }
82
217
  },
83
218
  onJfbShow(options) {
84
219
  console.log('event.onJfbShow', options)
@@ -104,8 +239,91 @@
104
239
  @import "./JfbBaseBalanceLess.less";
105
240
 
106
241
  .jfb-base-balance {
107
- &__body{
242
+ &__body {
243
+ &-tab {
244
+ display: flex;
245
+ justify-content: space-around;
246
+ align-items: center;
247
+ color: #666666;
248
+ font-size: 32rpx;
249
+ background: #fff;
250
+ padding: 24rpx 0;
108
251
 
252
+ &-item {
253
+ display: flex;
254
+ flex-direction: column;
255
+ align-items: center;
256
+ }
257
+
258
+ .check {
259
+ width: 60rpx;
260
+ height: 6rpx;
261
+ margin-top: 12rpx;
262
+ }
263
+ }
264
+
265
+ &-points {
266
+ background: #fff;
267
+
268
+ &>view:first-child {
269
+ display: flex;
270
+ align-items: center;
271
+ color: #333;
272
+ font-size: 24rpx;
273
+ }
274
+
275
+ &>view:nth-child(2) {
276
+ color: #333;
277
+ font-size: 64rpx;
278
+ font-weight: 500;
279
+ margin: 20rpx 0;
280
+ }
281
+
282
+ &>view:nth-child(3) {
283
+ color: #333333;
284
+ font-size: 28rpx;
285
+ }
286
+ }
287
+
288
+ &-list {
289
+ &-item {
290
+ margin-bottom: 40rpx;
291
+
292
+ &-info {
293
+ display: flex;
294
+ justify-content: space-between;
295
+ align-items: center;
296
+
297
+ &-label {
298
+ color: #333333;
299
+ font-size: 28rpx;
300
+ }
301
+
302
+ &-value {
303
+ font-size: 32rpx;
304
+ font-weight: 700;
305
+ }
306
+
307
+ .income {
308
+ color: #FF5A39;
309
+ }
310
+
311
+ .expenses {
312
+ color: #00C800;
313
+ }
314
+ }
315
+
316
+ &-date {
317
+ color: #999999;
318
+ font-size: 22rpx;
319
+ margin-top: 26rpx;
320
+ }
321
+ }
322
+
323
+ &-item:last-child {
324
+ margin-bottom: 0;
325
+ }
326
+ }
109
327
  }
110
328
  }
111
- </style>
329
+ </style>
@@ -6,53 +6,31 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Code
10
- mapFnName: 'getCodeByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
13
- isRule: false,
9
+ mapFnName: "getExchangeCode",
10
+ title: "兑换码",
11
+ path: "/member/v1/:xnamespace/exchange/:exchange_code",
12
+ isRule: true,
14
13
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
14
+ xnamespace: ['命名空间', 'String', '必选'],
15
+ exchange_code: ['兑换码', 'String', '必选']
17
16
  },
18
17
  isConsole: true,
19
18
  disabled: true,
20
19
  },
21
20
  {
22
- //设置方法名字当别忘记加上【模块名字】:Code
23
- mapFnName: 'updateCodeFilmPaiqiDate',
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', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Code
36
- mapFnName: 'removeCodeFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_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', '可选']
42
32
  },
43
33
  isConsole: true,
44
34
  disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Code
48
- mapFnName: 'addCodeFilmcart',
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
  ];
@@ -6,7 +6,26 @@
6
6
  export default {
7
7
  style: [],
8
8
  content: (data) => {
9
+ let imageConfig = {
10
+ sort: true,
11
+ maxlen: 100,
12
+ action: "aliyun",
13
+ qiniuCdn: "aliyun",
14
+ size: 2,
15
+ tipsformet: "上传文件格式:@imageType@,不超过@size@MB。该上传图会在用户端显示,不建议上传超过1920*1080图片。",
16
+ uploadType: "aliyun",
17
+ type: ["jpg", "png", "jpeg", "gif"],
18
+ };
9
19
  return [
20
+ {
21
+ label: "文案描述:", //label
22
+ ele: "xd-tinymce", //package 名称
23
+ valueKey: "description", //form[valueKey]
24
+ value: data.description || "",
25
+ imageConfig: imageConfig,
26
+ inline: false,
27
+ groupKey: "content",
28
+ },
10
29
  {
11
30
  label: '共享PLUS会员用户协议:',
12
31
  ele: 'xd-site-news',
@@ -14,30 +14,32 @@
14
14
  </view>
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-code-open-vip__body" :style="[bodyStyle]">
17
- <view v-if="0" class="vip_panel">
17
+ <view v-if="step === 1" class="vip_panel">
18
18
  <view class="combo_section">
19
19
  <view class="code_input_wrap">
20
- <input class="code_input" placeholder="请输入兑换码"></input>
20
+ <input class="code_input" v-model="exchange_code" placeholder="请输入兑换码"></input>
21
21
  </view>
22
22
  </view>
23
23
  <view class="combo_section">
24
- <view class="desc_tit">文案描述</view>
25
- <view class="desc_cont">文案内容</view>
24
+ <!-- <view class="desc_tit">文案描述</view> -->
25
+ <view class="desc_cont">
26
+ <xd-content-xss :html="description"></xd-content-xss>
27
+ </view>
26
28
  </view>
27
29
  <view class="fixed_bottom" :style="[fixed_bottom]">
28
- <xd-button type="primary" width="600rpx">查询</xd-button>
30
+ <xd-button type="primary" width="600rpx" @click="searchCode">查询</xd-button>
29
31
  <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
30
32
  </view>
31
33
  </view>
32
34
  <view v-else class="vip_panel">
33
35
  <view class="combo_section">
34
- <view class="combo_section-title">兑换码:12312983719283711</view>
35
- <xd-list-item label="套餐名称" paddingLR="40rpx">¥125.00</xd-list-item>
36
- <xd-list-item label="套餐期限" paddingLR="40rpx">30天</xd-list-item>
37
- <xd-list-item label="套餐金额" paddingLR="40rpx">¥125.00</xd-list-item>
36
+ <view class="combo_section-title">兑换码:{{ vipInfo.exchange_code }}</view>
37
+ <xd-list-item label="套餐名称" paddingLR="40rpx">{{ vipInfo.product_name }}</xd-list-item>
38
+ <xd-list-item label="套餐期限" paddingLR="40rpx">{{ vipInfo.life_cycle_label }}</xd-list-item>
39
+ <xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.sale_price, 100) }}</xd-list-item>
38
40
  </view>
39
41
  <view class="fixed_bottom" :style="[fixed_bottom]">
40
- <xd-button type="primary" width="600rpx">立即兑换</xd-button>
42
+ <xd-button type="primary" width="600rpx" @click="p_createVipOrder">立即兑换</xd-button>
41
43
  <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
42
44
  </view>
43
45
  </view>
@@ -47,8 +49,9 @@
47
49
 
48
50
  <script>
49
51
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
50
- import XdListItem from "@/components/XdListItem/XdListItem"
52
+ import XdListItem from "@/components/CusListItem/CusListItem"
51
53
  import XdButton from "@/components/XdButton/XdButton";
54
+ import XdContentXss from "@/components/XdContentXss/XdContentXss"
52
55
  import { jfbRootExec } from "@/utils/xd.event";
53
56
  import JfbBaseCodeOpenVipMixin from "./JfbBaseCodeOpenVipMixin";
54
57
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -59,15 +62,22 @@
59
62
  components: {
60
63
  XdFontIcon,
61
64
  XdListItem,
62
- XdButton
65
+ XdButton,
66
+ XdContentXss
63
67
  },
64
68
  mixins: [
65
69
  componentsMixins, extsMixins, JfbBaseCodeOpenVipMixin
66
70
  ],
67
71
  data() {
68
72
  return {
69
- //hideMask: true,
73
+ closeMask: true,
74
+ xnamespace: "",
75
+
76
+ exchange_code: "",
77
+ step: 1,
78
+ vipInfo: {},
70
79
  //todo
80
+ description: "",
71
81
  vipSuccessPath: "",
72
82
  }
73
83
  },
@@ -95,22 +105,14 @@
95
105
  },
96
106
  methods: {
97
107
  onJfbLoad(options) {
98
-
99
- // jfbRootExec('baiduUserLogin', {
100
-
101
- // vm: this,// data: {
102
-
103
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
104
-
105
- // }
106
-
107
- // }).then().catch()
108
+ this.setNameSpace(options);
108
109
  },
109
110
  /**
110
111
  * @description 监听事件变化
111
112
  * @param container {object} 业务组件对象自己
112
113
  */
113
114
  init(container) {
115
+ this.description = getContainerPropsValue(container, 'content.description', "");
114
116
  this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
115
117
  },
116
118
  handlePrivacy(code){
@@ -120,8 +122,36 @@
120
122
  url: `/pages/content/content?${params}`
121
123
  })
122
124
  },
125
+ searchCode(){
126
+ if(!this.exchange_code) return;
127
+ this.$xdShowLoading({});
128
+ jfbRootExec("getExchangeCode", {
129
+ vm: this,
130
+ data: {
131
+ xnamespace: this.xnamespace,
132
+ exchange_code: this.exchange_code
133
+ }
134
+ }).then(res => {
135
+ this.$xdHideLoading();
136
+ this.step = 2;
137
+ this.vipInfo = res;
138
+ })
139
+ },
140
+ p_createVipOrder(){
141
+ jfbRootExec("createVipOrder", {
142
+ vm: this,
143
+ data: {
144
+ business_code: this.xnamespace,
145
+ product_id: this.vipInfo.product_id,
146
+ notify_provider_id: this.projectAttr.notify_provider_id,
147
+ need_pay_price: 0
148
+ }
149
+ }).then(res => {
150
+
151
+ })
152
+ },
123
153
  onJfbScroll(options) {
124
- console.log('event.onJfbScroll', options)
154
+ // console.log('event.onJfbScroll', options)
125
155
  },
126
156
  onJfbReachBottom(options) {
127
157
  console.log('event.onJfbReachBottom', options)
@@ -174,7 +204,6 @@
174
204
  text-align: center;
175
205
  }
176
206
  .desc_cont{
177
- height: 100rpx;
178
207
  padding: 24rpx;
179
208
  }
180
209
  .code_input_wrap{
@@ -31,12 +31,12 @@
31
31
  <view class="vip-title">
32
32
  <view class="vip-title-left">PLUS会员专享</view>
33
33
  <view class="vip-title-right">
34
- <span>8</span>折
34
+ <text>8</text>折
35
35
  </view>
36
36
  </view>
37
37
  <view class="vip-open" @click="handleToOpen">
38
38
  <xd-font-icon color="#FCBF28" size="20" icon="iconjinhangzhong"></xd-font-icon>
39
- <span>立即开通</span>
39
+ <text>立即开通</text>
40
40
  <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
41
41
  </view>
42
42
  </view>
@@ -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
  ];