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
@@ -9,28 +9,24 @@
9
9
  <view :style="[bodyStyleComp]" class="jfb-base-points-detail__body-points">
10
10
  <view>
11
11
  可用积分
12
- <XdFontIcon @click="showDialog=true" style="margin-left: 10rpx" size="20" icon="iconmingchengtubiao"></XdFontIcon>
12
+ <XdFontIcon @click="showDialog=true" style="margin-left: 10rpx" size="20" icon="iconmingchengtubiao">
13
+ </XdFontIcon>
13
14
  </view>
14
- <view>128.80</view>
15
+ <view>{{getAmout(amount)}}</view>
15
16
  </view>
16
- <view :style="[bodyStyleComp]" class="jfb-base-points-detail__body-list">
17
- <view class="jfb-base-points-detail__body-list-item">
17
+ <view v-if="recordList&&recordList.ength>0" :style="[bodyStyleComp]" class="jfb-base-points-detail__body-list">
18
+ <view v-for="(item,index) in recordList" :key="index" class="jfb-base-points-detail__body-list-item">
18
19
  <view class="jfb-base-points-detail__body-list-item-info">
19
- <view class="jfb-base-points-detail__body-list-item-info-label">积分兑换余额</view>
20
- <view :class="income?'income':'expenses'" class="jfb-base-points-detail__body-list-item-info-value">- 12:00
20
+ <view class="jfb-base-points-detail__body-list-item-info-label">{{item.trade_type_name}}</view>
21
+ <view :class="item.operate_type==='A'?'income':'expenses'"
22
+ class="jfb-base-points-detail__body-list-item-info-value"><text>{{item.operate_type==='A'?'+':'-'}}</text>
23
+ {{getAmout(item.amount)}}
21
24
  </view>
22
25
  </view>
23
- <view class="jfb-base-points-detail__body-list-item-date">2025-04-10 16:23</view>
24
- </view>
25
- <view class="jfb-base-points-detail__body-list-item">
26
- <view class="jfb-base-points-detail__body-list-item-info">
27
- <view class="jfb-base-points-detail__body-list-item-info-label">积分兑换余额</view>
28
- <view :class="income?'income':'expenses'" class="jfb-base-points-detail__body-list-item-info-value">- 12:00
29
- </view>
30
- </view>
31
- <view class="jfb-base-points-detail__body-list-item-date">2025-04-10 16:23</view>
26
+ <view class="jfb-base-points-detail__body-list-item-date">{{item.created_time}}</view>
32
27
  </view>
33
28
  </view>
29
+ <XdNoData v-else></XdNoData>
34
30
  <XdDailog :cancel="false" @onBtn="showDialog=false" confirmText="我知道了" title="积分说明" :show.sync="showDialog">
35
31
  <xd-content-xss v-html="notice"></xd-content-xss>
36
32
  </XdDailog>
@@ -40,8 +36,9 @@
40
36
 
41
37
  <script>
42
38
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
43
- import XdDailog from '@/components/XdDailog/XdDailog.vue'
44
- import XdContentXss from '@/components/XdContentXss/XdContentXss'
39
+ import XdDailog from '@/components/XdDailog/XdDailog.vue';
40
+ import XdNoData from "@/components/XdNoData/XdNoData";
41
+ import XdContentXss from '@/components/XdContentXss/XdContentXss';
45
42
  import { jfbRootExec } from "@/utils/xd.event";
46
43
  import JfbBasePointsDetailMixin from "./JfbBasePointsDetailMixin";
47
44
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -52,7 +49,8 @@
52
49
  components: {
53
50
  XdFontIcon,
54
51
  XdDailog,
55
- XdContentXss
52
+ XdContentXss,
53
+ XdNoData
56
54
  },
57
55
  mixins: [
58
56
  componentsMixins, extsMixins, JfbBasePointsDetailMixin
@@ -66,7 +64,10 @@
66
64
  bgColor: '',
67
65
  bodyBorder: {},
68
66
  notice: '',
69
- showDialog: false
67
+ showDialog: false,
68
+ method: '',
69
+ amount: 0,
70
+ recordList: []
70
71
  }
71
72
  },
72
73
  computed: {
@@ -93,8 +94,14 @@
93
94
  },
94
95
  methods: {
95
96
  onJfbLoad(options) {
97
+ console.log(this.getTokenForKey('csrf_user_id'), 'user_leveluser_level');
98
+ this.method = options.method
99
+ this.getPointsDetail()
96
100
  this.getContent()
97
101
  },
102
+ getAmout(amount) {
103
+ return this.$xdUniHelper.divisionFloatNumber(amount, 100)
104
+ },
98
105
  getContent() {
99
106
  jfbRootExec("getListBaseNewsContent", {
100
107
  vm: this,
@@ -116,6 +123,40 @@
116
123
  console.error(error);
117
124
  });
118
125
  },
126
+ getPointsDetail() {
127
+ jfbRootExec("getPointsWalletDetail", {
128
+ vm: this,
129
+ data: {
130
+ method: this.method
131
+ },
132
+ }).then(res => {
133
+ this.amount = res.wallet_list[0].amount
134
+ this.wallet_type = res.wallet_list[0].wallet_type
135
+ this.getPointsRecord()
136
+ })
137
+ },
138
+ getPointsRecord() {
139
+ jfbRootExec("getPointsWalletTradeList", {
140
+ vm: this,
141
+ data: {
142
+ wallet_type: this.wallet_type,
143
+ page_size: 10,
144
+ },
145
+ }).then(res => {
146
+ let list = res.list.map(item => {
147
+ item["created_time"] = this.$xdUniHelper.getDate(
148
+ item["created_time"] * 1000
149
+ ).fullTime;
150
+ return item;
151
+ })
152
+ this.hasNext = res.next_page_token !== "";
153
+ if (this.page_token === 1) {
154
+ this.recordList = list
155
+ } else {
156
+ this.recordList = this.recordList.concat(list);
157
+ }
158
+ })
159
+ },
119
160
  /**
120
161
  * @description 监听事件变化
121
162
  * @param container {object} 业务组件对象自己
@@ -133,7 +174,10 @@
133
174
  console.log('event.onJfbScroll', options)
134
175
  },
135
176
  onJfbReachBottom(options) {
136
- console.log('event.onJfbReachBottom', options)
177
+ if (this.hasNext) {
178
+ this.page_token = this.next_page_token;
179
+ this.getPointsRecord()
180
+ }
137
181
  },
138
182
  onJfbShow(options) {
139
183
  console.log('event.onJfbShow', options)
@@ -174,6 +218,7 @@
174
218
  color: #333;
175
219
  font-size: 64rpx;
176
220
  font-weight: 500;
221
+ margin-top: 20rpx;
177
222
  }
178
223
  }
179
224
 
@@ -2,12 +2,6 @@
2
2
 
3
3
  module.exports = {
4
4
 
5
- getPointsByIdFilmSquate:{},
6
-
7
- updatePointsFilmPaiqiDate:{},
8
-
9
- removePointsFilmAddress:{},
10
-
11
- addPointsFilmcart:{},
12
-
5
+ getPointsWalletDetail:{"wallet_list":[{"sort":1,"wallet_type":"US","show_name":"可用积分","amount":10000,"is_support_withdraw":"N"}],"request_id":"43fa9f773f0c3014"},
6
+ getPointsWalletTradeList: {"next_page_token":"","total_size":0,"list":[{"trade_nnid":"zd0rYpZgWXE9Yf8e1mtH3","order_id":"111112-2025041517-03-54","amount":10000,"trade_type":"activity_a","trade_type_name":"活动收入","operate_type":"A","operate_type_name":"收入","trade_name":"","comment":"","created_time":1744707836}],"request_id":"eec94260e6f9de53"}
13
7
  }
@@ -6,51 +6,34 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Saving
10
- mapFnName: 'getSavingByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getMonthSavingDetail',
10
+ title: '省钱明细-月度',
11
+ path: '/member/v1/money-saving-record/month',
13
12
  isRule: false,
14
13
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
14
+ year: ['', 'Number', true],
15
+ month: ['', 'Number', true],
17
16
  },
18
17
  isConsole: true,
19
18
  disabled: true,
20
19
  },
21
20
  {
22
- //设置方法名字当别忘记加上【模块名字】:Saving
23
- mapFnName: 'updateSavingFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
21
+ mapFnName: 'getTotalSavingDetail',
22
+ title: '省钱明细-累计',
23
+ path: '/member/v1/money-saving-record/total',
26
24
  isRule: false,
27
25
  params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
26
  },
31
27
  isConsole: true,
32
28
  disabled: true,
33
29
  },
34
30
  {
35
- //设置方法名字当别忘记加上【模块名字】:Saving
36
- mapFnName: 'removeSavingFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
31
+ mapFnName: 'getYearSavingDetail',
32
+ title: '省钱明细-年度',
33
+ path: '/member/v1/money-saving-record/year',
39
34
  isRule: false,
40
35
  params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Saving
48
- mapFnName: 'addSavingFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
36
+ year: ['', 'Number', true],
54
37
  },
55
38
  isConsole: true,
56
39
  disabled: true,
@@ -7,40 +7,62 @@ export default {
7
7
  style: [],
8
8
  content: (data) => {
9
9
  return [
10
+ {
11
+ ele: 'title',
12
+ label: '切换标签设置',
13
+ size: 'small',
14
+ groupKey: 'style',
15
+ },
10
16
  {
11
17
  label: '背景颜色:',
12
18
  ele: 'xd-color',
13
- valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
19
+ valueKey: 'titleBgc',
20
+ groupKey: 'style',
21
+ value: data['titleBgc'] || '',
22
+ placeholder: '请选择背景颜色',
23
+ classNmae: 'input80',
17
24
  },
18
25
  {
19
- label: '选中路径:',
20
- groupKey:'advanced',
21
- className: 'input100',
22
- ele: 'xd-select-pages-path',
23
- valueKey: 'select-pages-path',
24
- value: data['select-pages-path'] || null,
26
+ label: '外填充:',
27
+ ele: 'xd-margin-padding',
28
+ valueKey: 'tabPadding',
29
+ groupKey: 'style',
30
+ value: data['tabPadding'] || null,
25
31
  setting: {
26
- router: XdBus.getParentApi('getPagesTree')
32
+ type: 'padding',
27
33
  },
34
+ placeholder: '请设置外填充',
35
+ inline: false,
36
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">上下20,左右0</span>像素',
28
37
  },
29
- data.bgColor && {
30
- label: '高度:',
38
+ {
39
+ label: '切换标签与内容之间间距:',
31
40
  ele: 'el-input',
32
- groupKey:'style',
33
- type: 'number',
34
- valueKey: 'height',
35
- value: data.height || 100,
36
- placeholder: '请输入占位框高度,单位像素,默认:10px',
41
+ type: 'text',
42
+ groupKey: 'style',
43
+ valueKey: 'titlePadding',
44
+ value: data['titlePadding'] || '',
37
45
  className: 'input60',
46
+ inline: false,
47
+ notice:'设置切换标签与内容之间间距,默认值:<span style="color:red">0</span>像素'
38
48
  },
39
49
  {
40
- label: '', //label
41
- groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
50
+ label: '未选中文字颜色:',
51
+ ele: 'xd-color',
52
+ valueKey: 'titleColor',
53
+ value: data['titleColor'] || '',
54
+ groupKey: 'style',
55
+ placeholder: '请选择未选中文字颜色',
56
+ classNmae: 'input80',
57
+ },
58
+ {
59
+ label: '选中文字颜色:',
60
+ ele: 'xd-color',
61
+ valueKey: 'titleActColor',
62
+ value: data['titleActColor'] || '',
63
+ groupKey: 'style',
64
+ placeholder: '请选择选中文字颜色',
65
+ classNmae: 'input80',
44
66
  },
45
67
  ].filter(i=>i)
46
68
  },