jufubao-base 1.0.243-beta201 → 1.0.243

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 (155) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +0 -13
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +1 -33
  4. package/src/components/JfbBaseBalance/Api.js +46 -0
  5. package/src/components/JfbBaseBalance/Attr.js +316 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  7. package/src/components/{JfbBaseAfterSales/JfbBaseAfterSalesLess.less → JfbBaseBalance/JfbBaseBalanceLess.less} +2 -2
  8. package/src/components/{JfbBaseAfterSales/JfbBaseAfterSalesMixin.js → JfbBaseBalance/JfbBaseBalanceMixin.js} +1 -1
  9. package/src/components/JfbBaseBalance/Mock.js +9 -0
  10. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  11. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  13. package/src/components/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less} +2 -2
  14. package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js} +1 -1
  15. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  16. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  17. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1109 -0
  19. package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less → JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less} +2 -2
  20. package/src/components/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js → JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js} +1 -1
  21. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  22. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  23. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  24. package/src/components/JfbBaseFooter/Attr.js +12 -0
  25. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  26. package/src/components/JfbBaseHeader/Attr.js +82 -0
  27. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  28. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  29. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  30. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +12 -0
  31. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  32. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  33. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
  34. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  35. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  36. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  37. package/src/components/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less → JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less} +2 -2
  38. package/src/components/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js → JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js} +1 -1
  39. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  40. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  41. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  42. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
  43. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  44. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  45. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  46. package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -0
  47. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  48. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  49. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  50. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  51. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  52. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  53. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  54. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  55. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  56. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  57. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  58. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  59. package/src/components/JfbBaseOrderDetail/Attr.js +0 -36
  60. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +178 -39
  61. package/src/components/JfbBaseOrderList/Attr.js +0 -36
  62. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +0 -30
  63. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  64. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +5 -17
  65. package/src/components/JfbBasePay/Attr.js +52 -0
  66. package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
  67. package/src/components/JfbBasePay/Mock.js +0 -9
  68. package/src/components/JfbBasePersonalData/Api.js +26 -0
  69. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  70. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -0
  71. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  72. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  73. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  74. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
  75. package/src/components/JfbBasePointsCard/Api.js +18 -0
  76. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  77. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  78. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  79. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  80. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  81. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  82. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  83. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  84. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  85. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  86. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  87. package/src/components/JfbBasePoster/Attr.js +1 -1
  88. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  89. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  90. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  91. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  92. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  93. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  94. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  95. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  96. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  97. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  98. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  99. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  100. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  101. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  102. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  103. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  104. package/src/components/JfbBaseShare/Api.js +20 -0
  105. package/src/components/JfbBaseShare/Attr.js +59 -0
  106. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  107. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  108. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  109. package/src/components/JfbBaseShare/Mock.js +16 -0
  110. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +9 -3
  111. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  112. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  113. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  114. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  115. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  116. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +337 -115
  117. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  118. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  119. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  120. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  121. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  122. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  123. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  124. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  125. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  126. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  127. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  128. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  129. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  130. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  131. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  132. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  133. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  134. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  135. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  136. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  137. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
  138. package/src/components/JfbBaseAfterSales/Api.js +0 -58
  139. package/src/components/JfbBaseAfterSales/Attr.js +0 -25
  140. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +0 -550
  141. package/src/components/JfbBaseAfterSales/Mock.js +0 -13
  142. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +0 -150
  143. package/src/components/JfbBaseAfterSalesDetail/Api.js +0 -41
  144. package/src/components/JfbBaseAfterSalesDetail/Attr.js +0 -25
  145. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +0 -538
  146. package/src/components/JfbBaseAfterSalesDetail/Mock.js +0 -60
  147. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +0 -58
  148. package/src/components/JfbBaseAfterSalesFast/Api.js +0 -30
  149. package/src/components/JfbBaseAfterSalesFast/Attr.js +0 -32
  150. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +0 -297
  151. package/src/components/JfbBaseAfterSalesFast/Mock.js +0 -38
  152. package/src/components/JfbBaseAfterSalesList/Api.js +0 -40
  153. package/src/components/JfbBaseAfterSalesList/Attr.js +0 -107
  154. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +0 -463
  155. package/src/components/JfbBaseAfterSalesList/Mock.js +0 -362
@@ -0,0 +1,336 @@
1
+ <template>
2
+ <view class="jfb-base-balance" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
3
+ <!--#ifdef H5-->
4
+ <view class="jfb-base-balance__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
5
+ <view class="jfb-base-balance__edit-icon" @click="delEdit">删除</view>
6
+ </view>
7
+ <!-- #endif -->
8
+ <view class="jfb-base-balance__body">
9
+ <view class="jfb-base-balance__body-tab">
10
+ <view :style="{color:wallet_type===item.wallet_type?mainColor:'#333333'}" v-for="(item,index) in wallet_list"
11
+ :key="index" @click="handleSwitchTab(item)" 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>
27
+ <xd-button v-if="isWithDraw==='Y'" style="margin: 0" size="mini" type="primary"
28
+ @click="handleWithdraw">提现</xd-button>
29
+ </view>
30
+ <view v-if="recordList&&recordList.length>0" :style="[bodyStyleComp]" class="jfb-base-balance__body-list">
31
+ <view v-for="(item,index) in recordList" :key="index" class="jfb-base-balance__body-list-item">
32
+ <view class="jfb-base-balance__body-list-item-info">
33
+ <view class="jfb-base-balance__body-list-item-info-label">{{item.trade_type_name}}</view>
34
+ <view :class="item.operate_type==='A'?'income':'expenses'"
35
+ class="jfb-base-balance__body-list-item-info-value">
36
+ <text>{{item.operate_type==='A'?'+':'-'}}</text>
37
+ {{getAmout(item.amount)}}
38
+ </view>
39
+ </view>
40
+ <view class="jfb-base-balance__body-list-item-date">{{item.created_time}}</view>
41
+ </view>
42
+ </view>
43
+ <XdNoData v-else></XdNoData>
44
+ <XdDailog :cancel="false" @onBtn="showDialog=false" confirmText="我知道了" title="积分说明" :show.sync="showDialog">
45
+ <xd-content-xss :html="notice"></xd-content-xss>
46
+ </XdDailog>
47
+ </view>
48
+ </view>
49
+ </template>
50
+
51
+ <script>
52
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
53
+ import XdButton from "@/components/XdButton/XdButton";
54
+ import XdDailog from '@/components/XdDailog/XdDailog.vue';
55
+ import XdNoData from "@/components/XdNoData/XdNoData";
56
+ import XdContentXss from '@/components/XdContentXss/XdContentXss';
57
+ import { jfbRootExec } from "@/utils/xd.event";
58
+ import JfbBaseBalanceMixin from "./JfbBaseBalanceMixin";
59
+ import { getContainerPropsValue } from "@/utils/xd.base";
60
+ import componentsMixins from "@/mixins/componentsMixins";
61
+ import extsMixins from "@/mixins/extsMixins";
62
+ export default {
63
+ name: "JfbBaseBalance",
64
+ components: {
65
+ XdFontIcon,
66
+ XdDailog,
67
+ XdContentXss,
68
+ XdButton,
69
+ XdNoData
70
+ },
71
+ mixins: [
72
+ componentsMixins, extsMixins, JfbBaseBalanceMixin
73
+ ],
74
+ data() {
75
+ return {
76
+ income: false,
77
+ radius: 0,
78
+ margin: {},
79
+ padding: {},
80
+ bgColor: '',
81
+ bodyBorder: {},
82
+ notice: '',
83
+ showDialog: false,
84
+ withDrawRoutePath: '',
85
+ wallet_type: '',
86
+ wallet_list: [],
87
+ amount: 0,
88
+ isWithDraw: 'N',
89
+ recordList: [],
90
+ hasNext: true,
91
+ page_token: 1,
92
+ next_page_token: ''
93
+ }
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
+ },
106
+ watch: {
107
+ container(value, oldValue) {
108
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
109
+ if (this.$configProject['isPreview']) this.init(value)
110
+ },
111
+ },
112
+ created() {
113
+ this.init(this.container);
114
+ },
115
+ methods: {
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');
138
+
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
+ if (this.page_token === 1) {
157
+ this.recordList = list
158
+ } else {
159
+ this.recordList = this.recordList.concat(list);
160
+ }
161
+ this.next_page_token = res.next_page_token
162
+ this.hasNext = res.next_page_token !== "";
163
+ })
164
+ },
165
+ getContent() {
166
+ jfbRootExec("getListBaseNewsContent", {
167
+ vm: this,
168
+ data: {
169
+ page_id: this.pageAttr["page_id"], //页面ID
170
+ container_id: this.containerId, //组件ID
171
+ limit: 1,
172
+ },
173
+ })
174
+ .then((res) => {
175
+ if (res.list.length > 0) {
176
+ if (res.list && res.list.length > 0) {
177
+ this.notice = this.$xdUniHelper.filterHtml(res.list[0].content);
178
+ }
179
+ this.noticeStatus = true;
180
+ }
181
+ })
182
+ .catch((error) => {
183
+ console.error(error);
184
+ });
185
+ },
186
+ /**
187
+ * @description 监听事件变化
188
+ * @param container {object} 业务组件对象自己
189
+ */
190
+ init(container) {
191
+ this.radius = getContainerPropsValue(container, 'content.radius', '20');
192
+ this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
193
+ this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
194
+ this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
195
+ this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
196
+ this.withDrawRoutePath = getContainerPropsValue(container, 'content.withDrawRoutePath', { value: '' }).value;
197
+ },
198
+ handleWithdraw() {
199
+ this.$xdUniHelper.navigateTo({
200
+ url: `${this.withDrawRoutePath}?wallet_type=${this.wallet_type}${this.method ? `&method=${this.method}` : ''}`
201
+ });
202
+ },
203
+ handleSwitchTab(item) {
204
+ this.wallet_type = item.wallet_type;
205
+ this.isWithDraw = item.is_support_withdraw;
206
+ this.amount = item.amount;
207
+ this.next_page_token = ''
208
+ this.hasNext = true;
209
+ this.page_token = 1;
210
+ this.recordList = [];
211
+ this.getBalanceRecord()
212
+ },
213
+ onJfbScroll(options) {
214
+ console.log('event.onJfbScroll', options)
215
+ },
216
+ onJfbReachBottom(options) {
217
+ if (this.hasNext) {
218
+ this.page_token = this.next_page_token;
219
+ this.getBalanceRecord()
220
+ }
221
+ },
222
+ onJfbShow(options) {
223
+ console.log('event.onJfbShow', options)
224
+ this.method = options.method
225
+ this.getContent()
226
+ this.getDetail()
227
+ },
228
+ onJfbHide(options) {
229
+ console.log('event.onJfbHide', options)
230
+ },
231
+ onJfbBack(options) {
232
+ console.log('event.onJfbBack', options)
233
+ },
234
+ onJfbUpdate(...data) {
235
+ console.log('event.onJfbUpdate', data)
236
+ },
237
+ onJfbCustomEvent(options) {
238
+ console.log('event.onJfbReachBottom', options)
239
+ },
240
+ }
241
+ }
242
+
243
+ </script>
244
+
245
+ <style scoped lang="less">
246
+ @import "./JfbBaseBalanceLess.less";
247
+
248
+ .jfb-base-balance {
249
+ &__body {
250
+ &-tab {
251
+ display: flex;
252
+ justify-content: space-around;
253
+ align-items: center;
254
+ color: #666666;
255
+ font-size: 32rpx;
256
+ background: #fff;
257
+ padding: 24rpx 0;
258
+
259
+ &-item {
260
+ display: flex;
261
+ flex-direction: column;
262
+ align-items: center;
263
+ }
264
+
265
+ .check {
266
+ width: 60rpx;
267
+ height: 6rpx;
268
+ margin-top: 12rpx;
269
+ }
270
+ }
271
+
272
+ &-points {
273
+ background: #fff;
274
+
275
+ &>view:first-child {
276
+ display: flex;
277
+ align-items: center;
278
+ color: #333;
279
+ font-size: 24rpx;
280
+ }
281
+
282
+ &>view:nth-child(2) {
283
+ color: #333;
284
+ font-size: 64rpx;
285
+ font-weight: 500;
286
+ margin: 20rpx 0;
287
+ }
288
+
289
+ &>view:nth-child(3) {
290
+ color: #333333;
291
+ font-size: 28rpx;
292
+ }
293
+ }
294
+
295
+ &-list {
296
+ &-item {
297
+ margin-bottom: 40rpx;
298
+
299
+ &-info {
300
+ display: flex;
301
+ justify-content: space-between;
302
+ align-items: center;
303
+
304
+ &-label {
305
+ color: #333333;
306
+ font-size: 28rpx;
307
+ }
308
+
309
+ &-value {
310
+ font-size: 32rpx;
311
+ font-weight: 700;
312
+ }
313
+
314
+ .income {
315
+ color: #FF5A39;
316
+ }
317
+
318
+ .expenses {
319
+ color: #00C800;
320
+ }
321
+ }
322
+
323
+ &-date {
324
+ color: #999999;
325
+ font-size: 22rpx;
326
+ margin-top: 26rpx;
327
+ }
328
+ }
329
+
330
+ &-item:last-child {
331
+ margin-bottom: 0;
332
+ }
333
+ }
334
+ }
335
+ }
336
+ </style>
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  //start
15
- .jfb-base-after-sales {
15
+ .jfb-base-balance {
16
16
  box-sizing: border-box;
17
17
 
18
18
  &__body{
@@ -70,7 +70,7 @@
70
70
 
71
71
 
72
72
  /**notPreview**/
73
- .jfb-base-after-sales {
73
+ .jfb-base-balance {
74
74
  //&:before {
75
75
  //content: " ";
76
76
  //display: table;
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: 'jfb-base-after-sales'
19
+ cssRoot: 'jfb-base-balance'
20
20
  }
21
21
  },
22
22
  created() {
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getBalanceDetail: { "wallet_list": [{ "sort": 2, "wallet_type": "UC", "show_name": "可用余额", "amount": 19940, "is_support_withdraw": "Y" }, { "sort": 0, "wallet_type": "UT", "show_name": "待到账余额", "amount": 0, "is_support_withdraw": "N" }], "request_id": "279b309d137cae9f" },
6
+
7
+ getBalanceWalletTradeList: { "next_page_token": "2", "total_size": 0, "list": [{ "trade_nnid": "eDaOl5aPD4Fx8gtBJC1bd", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744883229 }, { "trade_nnid": "qhBI-btv4hh8TpsGdCrDG", "order_id": "i771066286233878607", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796528 }, { "trade_nnid": "NCI4DolRx-0GqFfY5J9-P", "order_id": "i771065517556367438", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796345 }, { "trade_nnid": "upM7epMxX3FqoTytFyKUn", "order_id": "i771062549364867149", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795637 }, { "trade_nnid": "nzH3e_P25C-q7wcN52L-z", "order_id": "i771061580484837452", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795406 }, { "trade_nnid": "aduSpdXNKl0dwqxPhovf0", "order_id": "i771059916772212811", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795009 }, { "trade_nnid": "dTTmA75uN-Mv3as8XE1Te", "order_id": "i771054224359293002", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744793652 }, { "trade_nnid": "jo4IOWJ1wPyGXiA5wQYUU", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744789547 }, { "trade_nnid": "78qU6Cemnhqnvms2-iJDI", "order_id": "i771019326374281284", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789418 }, { "trade_nnid": "yLLohJoE-qowAuxastB1z", "order_id": "i771034873199591494", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789410 }], "request_id": "e9f0142e62066570" },
8
+
9
+ }
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Code
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: "getExchangeCode",
10
+ title: "兑换码",
11
+ path: "/member/v1/exchange/:exchange_code",
12
+ isRule: true,
13
+ params: {
14
+ exchange_code: ['兑换码', 'String', '必选']
15
+ },
16
+ isConsole: true,
17
+ disabled: true,
18
+ },
19
+ {
20
+ mapFnName: "createVipOrder",
21
+ title: "创建VIP订单",
22
+ path: "/member/v1/order/submit",
23
+ isRule: false,
24
+ data: {
25
+ business_code: ['业务编码', 'String', '必选'],
26
+ product_id: ['商品id', 'Number', '必选'],
27
+ notify_provider_id: ['notify_provider_id', 'Number', '可选'],
28
+ selected_card_list_json: ['已使用的卡券数据', 'array', '可选'],
29
+ selected_wallet_list_json: ['已使用的钱包数据', 'array', '可选'],
30
+ need_pay_price: ['需要支付的价格', 'Number', '可选']
31
+ },
32
+ isConsole: true,
33
+ disabled: true,
34
+ }
35
+ ];
@@ -0,0 +1,281 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
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
+ };
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
+ },
29
+ {
30
+ label: '共享PLUS会员用户协议:',
31
+ ele: 'xd-site-news',
32
+ valueKey: 'notices',
33
+ groupKey:'content',
34
+ value: data.notices || {type: 'privacy'},
35
+ className: 'input70',
36
+ setting: {
37
+ config: {
38
+ sort: true,
39
+ maxlen: 100,
40
+ action: 'aliyun',
41
+ size: 5,
42
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
43
+ uploadType: 'aliyun',
44
+ type: ['jpg', 'png', 'jpeg']
45
+ },
46
+ },
47
+ handleCustom({action, data}) {
48
+ if (data && data.params) {
49
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
50
+ data.params = Object.assign({}, data.params, {code: 'privacy_service'});
51
+ }
52
+
53
+ //获取返回参数(场景类型名称为必填)
54
+ let loading = { close(){}}
55
+
56
+ //获取显示内容
57
+ if (action === 'screen') {
58
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
59
+ .then(res => {
60
+ loading.close();
61
+ data.cb(res['list'])
62
+ })
63
+ .catch(error => {
64
+ console.error(error);
65
+ loading.close();
66
+ });
67
+
68
+ }
69
+
70
+ //获取返回参数(广告位高度必选项)
71
+ if (action === 'getNewsInfo') {
72
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
73
+ .then(res => {
74
+ loading.close()
75
+ data.cb({list: res.list, selectId: res.selected})
76
+ })
77
+ .catch(error => {
78
+ loading.close()
79
+ console.error(error);
80
+ });
81
+ }
82
+
83
+ //获取产品业务线列表
84
+ if (action === 'namespace') {
85
+ XdBus.getParentApi('getOptionsNamespaces')({})
86
+ .then(res => {
87
+ loading.close()
88
+ data.cb(res['list'])
89
+ })
90
+ .catch(error => {
91
+ loading.close()
92
+ console.error(error);
93
+ });
94
+ }
95
+
96
+ //使用内容分类
97
+ if (action === 'cmsPublishEditxContent') {
98
+ loading = XdBus.getParentApi('loading')({});
99
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
100
+ .then(res => {
101
+ console.log('cmsPublishEditxContent', res)
102
+ loading.close();
103
+ data.cb(res)
104
+ })
105
+ .catch(error => {
106
+ loading.close();
107
+ console.error(error);
108
+ });
109
+ }
110
+
111
+ //位置列表
112
+ if (action === 'getListPostion') {
113
+ loading = XdBus.getParentApi('loading')({});
114
+ XdBus.getParentApi('getListNewsPosition')(data.params)
115
+ .then(res => {
116
+ loading.close();
117
+ data.cb(res)
118
+ })
119
+ .catch(error => {
120
+ loading.close();
121
+ console.error(error);
122
+ });
123
+ }
124
+
125
+ //位置创建
126
+ if (action === 'addPostion') {
127
+ loading = XdBus.getParentApi('loading')({});
128
+ XdBus.getParentApi('addNewsPosition')(data.params)
129
+ .then(res => {
130
+ loading.close();
131
+ data.cb(true)
132
+ })
133
+ .catch(error => {
134
+ console.error(error);
135
+ loading.close();
136
+ data.cb(false)
137
+ });
138
+ }
139
+
140
+ //位置编辑
141
+ if (action === 'editPostion') {
142
+ loading = XdBus.getParentApi('loading')({});
143
+ XdBus.getParentApi('updateNewsPosition')(data.params)
144
+ .then(res => {
145
+ loading.close();
146
+ data.cb(true)
147
+ })
148
+ .catch(error => {
149
+ console.error(error);
150
+ loading.close();
151
+ data.cb(false)
152
+ });
153
+ }
154
+
155
+ //位置删除
156
+ if (action === 'deleltePostion') {
157
+ loading = XdBus.getParentApi('loading')({});
158
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
159
+ .then(res => {
160
+ loading.close();
161
+ data.cb(true)
162
+ })
163
+ .catch(error => {
164
+ console.error(error);
165
+ loading.close();
166
+ data.cb(false)
167
+ });
168
+ }
169
+
170
+ //获取广告位内容列表
171
+ if (action === 'getListContent') {
172
+ loading = XdBus.getParentApi('loading')({});
173
+ XdBus.getParentApi('getListNewsContent')(data.params)
174
+ .then(res => {
175
+ loading.close();
176
+ data.cb(res)
177
+ })
178
+ .catch(error => {
179
+ loading.close();
180
+ console.error(error);
181
+ });
182
+ }
183
+
184
+ //广告内容创建
185
+ if (action === 'addContent') {
186
+ loading = XdBus.getParentApi('loading')({});
187
+ XdBus.getParentApi('addNewsContent')(data.params)
188
+ .then(res => {
189
+ loading.close();
190
+ data.cb(true)
191
+ })
192
+ .catch(error => {
193
+ console.error(error);
194
+ loading.close();
195
+ data.cb(false)
196
+ });
197
+ }
198
+
199
+ //广告内容编辑
200
+ if (action === 'editContent') {
201
+ loading = XdBus.getParentApi('loading')({});
202
+ XdBus.getParentApi('updateNewsContent')(data.params)
203
+ .then(res => {
204
+ loading.close();
205
+ data.cb(true)
206
+ })
207
+ .catch(error => {
208
+ console.error(error);
209
+ loading.close();
210
+ data.cb(false)
211
+ });
212
+ }
213
+
214
+ //广告内容删除
215
+ if (action === 'deleteContent') {
216
+ loading = XdBus.getParentApi('loading')({});
217
+ XdBus.getParentApi('deleteNewsContent')(data.params)
218
+ .then(res => {
219
+ loading.close();
220
+ data.cb(true)
221
+ })
222
+ .catch(error => {
223
+ console.error(error);
224
+ loading.close();
225
+ data.cb(false)
226
+ });
227
+ }
228
+
229
+ //内容发布
230
+ if (action === 'publish') {
231
+ loading = XdBus.getParentApi('loading')({});
232
+ console.log('publish', data.params)
233
+ XdBus.getParentApi('cmsPublishContent')(data.params)
234
+ .then(res => {
235
+ loading.close();
236
+ data.cb(res)
237
+ })
238
+ .catch(error => {
239
+ loading.close();
240
+ console.error(error);
241
+ });
242
+ }
243
+
244
+ //通知页面进行刷新
245
+ if (action === 'update') {
246
+ loading = XdBus.getParentApi('loading')({});
247
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
248
+ loading.close()
249
+ }
250
+ },
251
+ inline: false,
252
+ notice: '',
253
+ },
254
+ {
255
+ label: 'PLUS会员开通成功跳转路径:',
256
+ ele: 'xd-select-pages-path',
257
+ valueKey: 'vipSuccessPath',
258
+ groupKey:'advanced',
259
+ placeholder: '请选择PLUS会员开通成功跳转路径',
260
+ value: data['vipSuccessPath'] || null,
261
+ setting: {
262
+ router: XdBus.getParentApi('getPagesTree'),
263
+ },
264
+ inline: false,
265
+ },
266
+ {
267
+ label: '支付页面跳转路径:',
268
+ ele: 'xd-select-pages-path',
269
+ valueKey: 'payPath',
270
+ groupKey:'advanced',
271
+ placeholder: '请选择支付页面跳转路径',
272
+ value: data['payPath'] || null,
273
+ setting: {
274
+ router: XdBus.getParentApi('getPagesTree'),
275
+ },
276
+ inline: false,
277
+ },
278
+ ].filter(i=>i)
279
+ },
280
+ advanced: [],
281
+ };