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,26 +1,40 @@
1
1
  <template>
2
- <view
3
- class="jfb-base-with-draw-record"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
2
+ <view class="jfb-base-with-draw-record" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
7
3
  <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-with-draw-record__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
4
+ <view class="jfb-base-with-draw-record__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
13
5
  <view class="jfb-base-with-draw-record__edit-icon" @click="delEdit">删除</view>
14
6
  </view>
15
7
  <!-- #endif -->
16
- <view class="jfb-base-with-draw-record__body">
17
- <view>测试插件( {{containerId}} )</view>
8
+ <view v-if="orderList&&orderList.length>0" class="jfb-base-with-draw-record__body" :style="[bodyStyleComp]">
9
+ <view class="jfb-base-with-draw-record__body-title">
10
+ <view>提现记录</view>
11
+ <view>状态</view>
12
+ </view>
13
+ <view>
14
+ <view v-for="(item,index) in orderList" :key="index" class="jfb-base-with-draw-record__body-item">
15
+ <view class="jfb-base-with-draw-record__body-item-top">
16
+ <view>{{item.order_id}}</view>
17
+ <view v-if="item.status==='Y'" class="success">{{item.status_name}}</view>
18
+ <view v-if="item.status==='F'" class="fail">{{item.status_name}}</view>
19
+ <view v-if="item.status==='N'" class="processing">{{item.status_name}}</view>
20
+ </view>
21
+ <view class="jfb-base-with-draw-record__body-item-bottom">
22
+ <view>¥{{getAmout(item.total_amount)}}</view>
23
+ <view @click="handleToDetail(item)" v-if="item.status==='N'">
24
+ 详细
25
+ <XdFontIcon style="margin-left:8rpx" icon="iconxiangyou_xian" size="20" color="#CCCCCC"></XdFontIcon>
26
+ </view>
27
+ </view>
28
+ </view>
29
+ </view>
18
30
  </view>
31
+ <XdNoData v-else></XdNoData>
19
32
  </view>
20
33
  </template>
21
34
 
22
35
  <script>
23
36
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
37
+ import XdNoData from "@/components/XdNoData/XdNoData";
24
38
  import { jfbRootExec } from "@/utils/xd.event";
25
39
  import JfbBaseWithDrawRecordMixin from "./JfbBaseWithDrawRecordMixin";
26
40
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -29,17 +43,34 @@
29
43
  export default {
30
44
  name: "JfbBaseWithDrawRecord",
31
45
  components: {
32
- XdFontIcon
46
+ XdFontIcon,
47
+ XdNoData
33
48
  },
34
49
  mixins: [
35
50
  componentsMixins, extsMixins, JfbBaseWithDrawRecordMixin
36
51
  ],
37
52
  data() {
38
53
  return {
39
-
40
- //todo
54
+ radius: 0,
55
+ margin: {},
56
+ bgColor: '',
57
+ bodyBorder: {},
58
+ againWithDrawPath: '',
59
+ page_token: 1,
60
+ orderList: [],
61
+ hasNext: true
41
62
  }
42
63
  },
64
+ computed: {
65
+ bodyStyleComp() {
66
+ return {
67
+ borderRadius: `${this.radius}rpx`,
68
+ margin: this.getMarginAndPadding(this.margin, 20),
69
+ background: this.bgColor,
70
+ border: this.bodyBorder,
71
+ }
72
+ },
73
+ },
43
74
  watch: {
44
75
  container(value, oldValue) {
45
76
  if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
@@ -48,40 +79,62 @@
48
79
  },
49
80
  created() {
50
81
  this.init(this.container);
51
-
52
- //todo
53
82
  },
54
83
  methods: {
55
84
  onJfbLoad(options) {
56
-
57
- // jfbRootExec('baiduUserLogin', {
58
-
59
- // vm: this,// data: {
60
-
61
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
-
63
- // }
64
-
65
- // }).then().catch()
85
+ this.getOrderRecord()
86
+ },
87
+ getAmout(amount) {
88
+ return this.$xdUniHelper.divisionFloatNumber(amount, 100)
66
89
  },
67
90
  /**
68
91
  * @description 监听事件变化
69
92
  * @param container {object} 业务组件对象自己
70
93
  */
71
94
  init(container) {
72
-
73
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
-
75
- //this.height = getContainerPropsValue(container, 'content.height', 10);
95
+ this.radius = getContainerPropsValue(container, 'content.radius', 20);
96
+ this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
97
+ this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
98
+ this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
99
+ this.againWithDrawPath = getContainerPropsValue(container, 'content.againWithDrawPath', { value: '' }).value;
100
+ },
101
+ getOrderRecord() {
102
+ jfbRootExec("getRecordWithdrawOrderList", {
103
+ vm: this,
104
+ data: {
105
+ page_size: 10,
106
+ page_token: this.page_token,
107
+ },
108
+ }).then(res => {
109
+ let list = res.list.map(item => {
110
+ item["created_time"] = this.$xdUniHelper.getDate(
111
+ item["created_time"] * 1000
112
+ ).fullTime;
113
+ return item;
114
+ })
115
+ if (this.page_token === 1) {
116
+ this.orderList = list
117
+ } else {
118
+ this.orderList = this.orderList.concat(list);
119
+ }
120
+ this.next_page_token = res.next_page_token
121
+ this.hasNext = res.next_page_token !== "";
122
+ })
123
+ },
124
+ handleToDetail(item) {
125
+ this.$xdUniHelper.navigateTo({ url: `${this.againWithDrawPath}?order_id=${item.order_id}` })
76
126
  },
77
127
  onJfbScroll(options) {
78
128
  console.log('event.onJfbScroll', options)
79
129
  },
80
130
  onJfbReachBottom(options) {
81
- console.log('event.onJfbReachBottom', options)
131
+ if (this.hasNext) {
132
+ this.page_token = this.next_page_token;
133
+ this.getOrderRecord()
134
+ }
82
135
  },
83
136
  onJfbShow(options) {
84
- console.log('event.onJfbShow', options)
137
+ this.getOrderRecord()
85
138
  },
86
139
  onJfbHide(options) {
87
140
  console.log('event.onJfbHide', options)
@@ -104,8 +157,77 @@
104
157
  @import "./JfbBaseWithDrawRecordLess.less";
105
158
 
106
159
  .jfb-base-with-draw-record {
107
- &__body{
160
+ &__body {
161
+ border-radius: 20rpx;
162
+ margin: 20rpx;
163
+
164
+ &-title {
165
+ background: #F3F3F3;
166
+ padding: 36rpx 48rpx;
167
+ display: flex;
168
+ justify-content: space-between;
169
+ align-items: center;
170
+ font-size: 28rpx;
171
+
172
+ &>view:first-child {
173
+ font-weight: 500;
174
+ color: #333;
175
+ }
108
176
 
177
+ &> :last-child {
178
+ color: #CCCCCC;
179
+ }
180
+ }
181
+
182
+ &-item {
183
+ margin-top: 24rpx;
184
+ padding: 20rpx 48rpx;
185
+ font-size: 28rpx;
186
+
187
+ &-top {
188
+ display: flex;
189
+ justify-content: space-between;
190
+ align-items: center;
191
+ margin-bottom: 32rpx;
192
+
193
+ &>view:first-child {
194
+ color: #333333;
195
+ }
196
+ }
197
+
198
+ &-bottom {
199
+ display: flex;
200
+ justify-content: space-between;
201
+ align-items: center;
202
+
203
+ &>view:first-child {
204
+ color: #999999;
205
+ }
206
+
207
+ &> :last-child {
208
+ color: #ccc;
209
+ font-size: 26rpx;
210
+ display: flex;
211
+ align-items: center;
212
+ }
213
+ }
214
+ }
215
+
216
+ &-item:last-child {
217
+ margin-bottom: 40rpx;
218
+ }
219
+
220
+ .success {
221
+ color: #00C800;
222
+ }
223
+
224
+ .fail {
225
+ color: #FF5A39;
226
+ }
227
+
228
+ .processing {
229
+ color: #999999
230
+ }
109
231
  }
110
232
  }
111
- </style>
233
+ </style>
@@ -1,13 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
-
5
- getWithByIdFilmSquate:{},
6
-
7
- updateWithFilmPaiqiDate:{},
8
-
9
- removeWithFilmAddress:{},
10
-
11
- addWithFilmcart:{},
12
-
4
+
5
+ getRecordWithdrawOrderList: { "next_page_token": "2", "total_size": 0, "list": [{ "order_id": "i771668569418104913", "channel_order_id": "1330001353947642504180083243436870", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 200, "user_id": 5000358, "status": "F", "status_name": "失败", "arrival_time": 0, "comment": "", "created_time": 1744940123 }, { "order_id": "i771066286233878607", "channel_order_id": "1330001353947642504160061966293601", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744796566, "comment": "", "created_time": 1744796528 }, { "order_id": "i771065517556367438", "channel_order_id": "1330001353947642504160093737710292", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744796406, "comment": "", "created_time": 1744796345 }, { "order_id": "i771062549364867149", "channel_order_id": "1330001353947642504160084846150384", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744795686, "comment": "", "created_time": 1744795637 }, { "order_id": "i771061580484837452", "channel_order_id": "1330001353947642504160039106651145", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744795456, "comment": "", "created_time": 1744795406 }, { "order_id": "i771059916772212811", "channel_order_id": "1330001353947642504160031021516401", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744795088, "comment": "", "created_time": 1744795009 }, { "order_id": "i771054224359293002", "channel_order_id": "1330001353947642504160089300449824", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "Y", "status_name": "成功", "arrival_time": 1744794894, "comment": "", "created_time": 1744793652 }, { "order_id": "i771037005030096968", "channel_order_id": "1330001353947642504160086581901379", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 10, "user_id": 5000358, "status": "F", "status_name": "失败", "arrival_time": 0, "comment": "", "created_time": 1744789547 }, { "order_id": "i771034877834297415", "channel_order_id": "", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 1000, "user_id": 5000358, "status": "F", "status_name": "失败", "arrival_time": 0, "comment": "", "created_time": 1744789040 }, { "order_id": "i771034873199591494", "channel_order_id": "", "channel_code": "wxpay", "channel_code_name": "微信", "total_amount": 1000, "user_id": 5000358, "status": "F", "status_name": "失败", "arrival_time": 0, "comment": "", "created_time": 1744789038 }], "request_id": "e6f3ea562f8fd9e9" },
6
+
13
7
  }
@@ -6,51 +6,41 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Withdraw
10
- mapFnName: 'getWithdrawByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
10
+ title: '获取内容',
11
+ path: '/cms/v1/news-content',
13
12
  isRule: false,
14
13
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
14
+ scene: ['使用场景', 'String', '选填'],
15
+ container_id: ['插件ID', 'String', '必填'],
16
+ page_id: ['页面ID', 'String', '必填'],
17
+ page_size: ['记录条数', 'Number', '必填', 1],
18
+ code: ['业务线id', 'String', '选填'],
17
19
  },
18
20
  isConsole: true,
19
21
  disabled: true,
20
22
  },
21
23
  {
22
- //设置方法名字当别忘记加上【模块名字】:Withdraw
23
- mapFnName: 'updateWithdrawFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
24
+ mapFnName: 'getWithDrawDetail',
25
+ title: '用户资产 - 获取钱包(或积分)余额详情',
26
+ path: '/pay/v1/property/wallet-detail',
26
27
  isRule: false,
27
28
  params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
29
+ method: ['wallet 余额; score 积分;', 'Number', '非必选'],
30
30
  },
31
31
  isConsole: true,
32
32
  disabled: true,
33
33
  },
34
34
  {
35
- //设置方法名字当别忘记加上【模块名字】:Withdraw
36
- mapFnName: 'removeWithdrawFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
35
+ mapFnName: 'createWithdraw',
36
+ title: '用户资产 - 提现申请',
37
+ path: '/pay/v1/property/withdraw-order/create',
39
38
  isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Withdraw
48
- mapFnName: 'addWithdrawFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
39
+ data: {
40
+ total_amount: ['提现金额', 'Number', '必选'],
41
+ wallet_type: ['钱包类型', 'Number', '必选'],
42
+ login_providers: ['支持的登录方式(project.json接口的login_providers)', 'Number', '必选'],
43
+ pay_channel_providers: ['支持的登录方式(project.json接口的pay_channels)', 'Number', '必选'],
54
44
  },
55
45
  isConsole: true,
56
46
  disabled: true,