jufubao-base 1.0.236-beta1 → 1.0.236-beta21

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 (103) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +46 -0
  3. package/src/components/JfbBaseBalance/Attr.js +316 -0
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +332 -0
  5. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  7. package/src/components/JfbBaseBalance/Mock.js +9 -0
  8. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +39 -6
  9. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +3 -0
  10. package/src/components/JfbBaseCodeOpenVip/Api.js +36 -0
  11. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +253 -0
  13. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  14. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  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 +61 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +961 -0
  19. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  20. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  21. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  22. package/src/components/JfbBaseNotice/Attr.js +9 -6
  23. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +40 -6
  24. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  25. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  26. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +25 -6
  27. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  28. package/src/components/JfbBaseOpenVip/Attr.js +270 -0
  29. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +424 -0
  30. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  31. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  32. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  33. package/src/components/JfbBaseOpenVip/XdVipList.vue +125 -0
  34. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  35. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  36. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  37. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  38. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  39. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  40. package/src/components/JfbBaseOpenVipDetail/Api.js +36 -0
  41. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  42. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +225 -0
  43. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  44. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  45. package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -0
  46. package/src/components/JfbBasePersonalData/Api.js +26 -0
  47. package/src/components/JfbBasePersonalData/Attr.js +12 -0
  48. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +198 -0
  49. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  50. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  51. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  52. package/src/components/JfbBasePointsCard/Api.js +18 -0
  53. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  54. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +208 -0
  55. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  56. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  57. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  58. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  59. package/src/components/JfbBasePointsDetail/Attr.js +304 -0
  60. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  61. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  62. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  63. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  64. package/src/components/JfbBasePosterType/Attr.js +1 -0
  65. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  66. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  67. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +679 -0
  68. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  69. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  70. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  71. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  72. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  73. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  74. package/src/components/JfbBaseShare/Api.js +20 -0
  75. package/src/components/JfbBaseShare/Attr.js +48 -0
  76. package/src/components/JfbBaseShare/JfbBaseShare.vue +261 -0
  77. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  78. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  79. package/src/components/JfbBaseShare/Mock.js +13 -0
  80. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +11 -22
  81. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +8 -1
  82. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  83. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
  84. package/src/components/JfbBaseUserInfo/Attr.js +102 -10
  85. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +305 -114
  86. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  87. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  88. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +334 -0
  89. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  90. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  91. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  92. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  93. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  94. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  95. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  96. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  97. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  98. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  99. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  100. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +245 -0
  101. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  102. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  103. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
@@ -0,0 +1,253 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-code-open-vip"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-code-open-vip__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-code-open-vip__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-code-open-vip__body" :style="[bodyStyle]">
17
+ <view v-if="step === 1" class="vip_panel">
18
+ <view class="combo_section">
19
+ <view class="code_input_wrap">
20
+ <input class="code_input" v-model="exchange_code" placeholder="请输入兑换码"></input>
21
+ </view>
22
+ </view>
23
+ <view class="combo_section">
24
+ <!-- <view class="desc_tit">文案描述</view> -->
25
+ <view class="desc_cont">
26
+ <xd-content-xss :html="description"></xd-content-xss>
27
+ </view>
28
+ </view>
29
+ <view class="fixed_bottom" :style="[fixed_bottom]">
30
+ <xd-button type="primary" width="600rpx" @click="searchCode">查询</xd-button>
31
+ <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
32
+ </view>
33
+ </view>
34
+ <view v-else class="vip_panel">
35
+ <view class="combo_section">
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>
40
+ </view>
41
+ <view class="fixed_bottom" :style="[fixed_bottom]">
42
+ <xd-button type="primary" width="600rpx" @click="p_createVipOrder">立即兑换</xd-button>
43
+ <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
44
+ </view>
45
+ </view>
46
+ </view>
47
+ </view>
48
+ </template>
49
+
50
+ <script>
51
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
52
+ import XdListItem from "@/components/CusListItem/CusListItem"
53
+ import XdButton from "@/components/XdButton/XdButton";
54
+ import XdContentXss from "@/components/XdContentXss/XdContentXss"
55
+ import { jfbRootExec } from "@/utils/xd.event";
56
+ import JfbBaseCodeOpenVipMixin from "./JfbBaseCodeOpenVipMixin";
57
+ import { getContainerPropsValue } from "@/utils/xd.base";
58
+ import componentsMixins from "@/mixins/componentsMixins";
59
+ import extsMixins from "@/mixins/extsMixins";
60
+ export default {
61
+ name: "JfbBaseCodeOpenVip",
62
+ components: {
63
+ XdFontIcon,
64
+ XdListItem,
65
+ XdButton,
66
+ XdContentXss
67
+ },
68
+ mixins: [
69
+ componentsMixins, extsMixins, JfbBaseCodeOpenVipMixin
70
+ ],
71
+ data() {
72
+ return {
73
+ closeMask: true,
74
+ xnamespace: "",
75
+
76
+ exchange_code: "",
77
+ step: 1,
78
+ vipInfo: {},
79
+ //todo
80
+ description: "",
81
+ vipSuccessPath: "",
82
+ payPath: "",
83
+ }
84
+ },
85
+ computed: {
86
+ bodyStyle(){
87
+ return {
88
+ minHeight: this.layoutInfo.bodyMinHeightRpx + 'rpx',
89
+ '--main-color': this.mainColor,
90
+ }
91
+ },
92
+ fixed_bottom() {
93
+ return this.fixedStyle({paddingBottom: 36, zIndex: 111})
94
+ },
95
+ },
96
+ watch: {
97
+ container(value, oldValue) {
98
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
99
+ if (this.$configProject['isPreview']) this.init(value)
100
+ },
101
+ },
102
+ created() {
103
+ this.init(this.container);
104
+
105
+ //todo
106
+ },
107
+ methods: {
108
+ onJfbLoad(options) {
109
+ this.setNameSpace(options);
110
+ },
111
+ /**
112
+ * @description 监听事件变化
113
+ * @param container {object} 业务组件对象自己
114
+ */
115
+ init(container) {
116
+ this.description = getContainerPropsValue(container, 'content.description', "");
117
+ this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
118
+ this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
119
+ },
120
+ handlePrivacy(code){
121
+ let params = `page_id=${this.pageAttr["page_id"]}`;
122
+ params = `${params}&container_id=${this.containerId}${code}`;
123
+ this.$xdUniHelper.navigateTo({
124
+ url: `/pages/content/content?${params}`
125
+ })
126
+ },
127
+ searchCode(){
128
+ if(!this.exchange_code) return;
129
+ this.$xdShowLoading({});
130
+ jfbRootExec("getExchangeCode", {
131
+ vm: this,
132
+ data: {
133
+ xnamespace: this.xnamespace,
134
+ exchange_code: this.exchange_code
135
+ }
136
+ }).then(res => {
137
+ this.$xdHideLoading();
138
+ this.step = 2;
139
+ this.vipInfo = res;
140
+ })
141
+ },
142
+ p_createVipOrder(){
143
+ jfbRootExec("createVipOrder", {
144
+ vm: this,
145
+ data: {
146
+ business_code: this.xnamespace,
147
+ product_id: this.vipInfo.product_id,
148
+ notify_provider_id: this.projectAttr.notify_provider_id,
149
+ need_pay_price: 0,
150
+ selected_card_list_json: this.vipInfo.selected_card_list_json
151
+ }
152
+ }).then(res => {
153
+ if(res.need_pay_price > 0){
154
+ this.$xdUniHelper.redirectTo({
155
+ url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
156
+ })
157
+ }else{
158
+ this.$xdUniHelper.redirectTo({
159
+ url: this.vipSuccessPath + `?order_id=${res.main_order_id}`
160
+ })
161
+ }
162
+ })
163
+ },
164
+ onJfbScroll(options) {
165
+ // console.log('event.onJfbScroll', options)
166
+ },
167
+ onJfbReachBottom(options) {
168
+ console.log('event.onJfbReachBottom', options)
169
+ },
170
+ onJfbShow(options) {
171
+ console.log('event.onJfbShow', options)
172
+ },
173
+ onJfbHide(options) {
174
+ console.log('event.onJfbHide', options)
175
+ },
176
+ onJfbBack(options) {
177
+ console.log('event.onJfbBack', options)
178
+ },
179
+ onJfbUpdate(...data) {
180
+ console.log('event.onJfbUpdate', data)
181
+ },
182
+ onJfbCustomEvent(options) {
183
+ console.log('event.onJfbReachBottom', options)
184
+ },
185
+ }
186
+ }
187
+
188
+ </script>
189
+
190
+ <style scoped lang="less">
191
+ @import "./JfbBaseCodeOpenVipLess.less";
192
+
193
+ .jfb-base-code-open-vip {
194
+ &__body{
195
+ .combo_section{
196
+ border-radius: 24rpx;
197
+ overflow: hidden;
198
+ margin: 20rpx;
199
+ background-color: #FFFFFF;
200
+ &-title{
201
+ height: 72rpx;
202
+ line-height: 72rpx;
203
+ text-align: center;
204
+ background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
205
+ font-size: 28rpx;
206
+ color: #915714;
207
+ font-weight: 500;
208
+ }
209
+ ::v-deep .my-list_value{
210
+ color: #999999;
211
+ }
212
+ .desc_tit{
213
+ height: 72rpx;
214
+ line-height: 72rpx;
215
+ text-align: center;
216
+ }
217
+ .desc_cont{
218
+ padding: 24rpx;
219
+ }
220
+ .code_input_wrap{
221
+ width: 100%;
222
+ padding: 36rpx;
223
+ box-sizing: border-box;
224
+ }
225
+ .code_input{
226
+ width: 100%;
227
+ height: 90rpx;
228
+ background-color: #FAFAFA;
229
+ box-sizing: border-box;
230
+ padding: 0 36rpx;
231
+ border-radius: 16rpx;
232
+ }
233
+ }
234
+ .fixed_bottom{
235
+ position: fixed;
236
+ bottom: 0;
237
+ left: 0;
238
+ width: 100%;
239
+ padding: 36rpx;
240
+ box-sizing: border-box;
241
+ background-color: #FFFFFF;
242
+ display: flex;
243
+ flex-direction: column;
244
+ align-items: center;
245
+ .plus_privacy{
246
+ font-size: 22rpx;
247
+ color: #999;
248
+ margin-top: 16rpx;
249
+ }
250
+ }
251
+ }
252
+ }
253
+ </style>
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-code-open-vip {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(-52, rpx);
48
+ height: unit(50, rpx);
49
+ line-height: unit(50, rpx);
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .6);
54
+ border-radius: unit(10, rpx);
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+
59
+ &-icon{
60
+ padding: 0 unit(20, rpx);
61
+ }
62
+
63
+ &.editx {
64
+ box-sizing: border-box;
65
+
66
+ }
67
+ }
68
+ }
69
+ //end
70
+
71
+
72
+ /**notPreview**/
73
+ .jfb-base-code-open-vip {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-code-open-vip'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getCodeByIdFilmSquate:{},
6
+
7
+ updateCodeFilmPaiqiDate:{},
8
+
9
+ removeCodeFilmAddress:{},
10
+
11
+ addCodeFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,133 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Consump
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Consump
10
+ mapFnName: 'getConsumpCode',
11
+ title: '获取支付码',
12
+ path: '/store/v1/order/get-quick-pay-code',
13
+ isRule: false,
14
+ params: {
15
+ shop_id: ['门店ID', 'Number', '必选'],
16
+ temp_order_id: ['临时订单号第一次获取为空,再次获取需要传上次获取到数据', 'Number', '非必选'],
17
+ },
18
+ isConsole: true,
19
+ disabled: true,
20
+ },
21
+ {
22
+ //设置方法名字当别忘记加上【模块名字】:Consump
23
+ mapFnName: 'getConsumpCodeScanStatus',
24
+ title: '获取支付码扫码状态',
25
+ path: '/store/v1/order/get-quick-pay-scan-status',
26
+ isRule: false,
27
+ params: {
28
+ temp_order_id: ['临时订单号', 'Number', '必选'],
29
+ },
30
+ isConsole: true,
31
+ disabled: true,
32
+ },
33
+ {
34
+ mapFnName: "getConsumpListUserPayChannel",
35
+ title: "获取用户可用支付渠道",
36
+ path: "/pay/v1/pay-channel/list-user-pay-channel",
37
+ isRule: false,
38
+ params: {
39
+ providers: ['支付方式id 多个用逗号分隔', "String", '必选']
40
+ },
41
+ isConsole: true,
42
+ disabled: true
43
+ },
44
+ {
45
+ path: '/store/v1/order/async-submit-status',
46
+ title: "获取异步下单的状态",
47
+ mapFnName: "getConsumpAsyncSubmitStatus",
48
+ isRule: false,
49
+ params: {
50
+ request_order_id: ['temp_order_id', 'Number', '必选'],
51
+ },
52
+ isConsole: true,
53
+ disabled: true,
54
+ },
55
+ {
56
+ mapFnName: "setConsumpThirdPlace",
57
+ title: "第三方渠道下单",
58
+ path: "/pay/v1/order/third-place",
59
+ isRule: false,
60
+ data: {
61
+ order_id: ['订单号', "String", "必填"],
62
+ channel_provider_id: ['支付渠道id', "String", '必选']
63
+ },
64
+ isConsole: true,
65
+ disabled: true
66
+ },
67
+ {
68
+ mapFnName: "updateConsumpPay",
69
+ title: "修改订单为支付中",
70
+ path: "/order/v1/order/update-to-paying",
71
+ isRule: false,
72
+ data: {
73
+ main_order_id: ['订单号', "String", "必填"],
74
+ },
75
+ isConsole: true,
76
+ disabled: true
77
+ },
78
+ {
79
+ //设置方法名字当别忘记加上【模块名字】:Consump
80
+ mapFnName: 'batchConsumpUseCardCreated',
81
+ title: '批量使用卡券下单',
82
+ path: '/store/v1/order/batch-use-card-created',
83
+ isRule: false,
84
+ data: {
85
+ temp_order_id: ['临时订单号', 'Number', '必选'],
86
+ },
87
+ isConsole: true,
88
+ disabled: true,
89
+ },
90
+ {
91
+ //设置方法名字当别忘记加上【模块名字】:Consump
92
+ mapFnName: 'getConsumpShopList',
93
+ title: '获取附近门店列表',
94
+ path: '/mall/v1/shop/msearch',
95
+ isRule: false,
96
+ params: {},
97
+ isConsole: true,
98
+ disabled: true,
99
+ },
100
+ {
101
+ mapFnName: 'getConsumpSettleMainInfo',
102
+ title: '门店核销 - 展示主界面数据',
103
+ // path: '/store/v1/cash/settle/main-info',
104
+ path: "/store/v1/order/main-info",
105
+ isRule: false,
106
+ params: {
107
+ shop_id: ['门店id', 'Number', '必选'],
108
+ },
109
+ isConsole: true,
110
+ disabled: true,
111
+ },
112
+ {
113
+ mapFnName: 'addConsumpCashierTempOrderData',
114
+ title: '门店核销 - 保存临时购物数据',
115
+ path: "/store/v1/order/save-cart-order-data",
116
+ isRule: false,
117
+ data: {
118
+ shop_id: ['门店id', 'Number', '必选'],
119
+ settle_tag_id: ['结算标签id', 'Number', '必选'],
120
+ },
121
+ isConsole: true,
122
+ disabled: true,
123
+ },
124
+ {
125
+ mapFnName: 'getConsumpBaseUserInfo',
126
+ title: '获取用户信息',
127
+ path: '/passport/v1/user/get',
128
+ params: {},
129
+ isRule: false,
130
+ isConsole: true,
131
+ disabled: true,
132
+ }
133
+ ];
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '开通路径:',
12
+ groupKey:'advanced',
13
+ className: 'input100',
14
+ ele: 'xd-select-pages-path',
15
+ valueKey: 'openPath',
16
+ value: data['openPath'] || null,
17
+ setting: {
18
+ router: XdBus.getParentApi('getPagesTree')
19
+ },
20
+ },
21
+ {
22
+ label: '切换门店路径:',
23
+ groupKey:'advanced',
24
+ className: 'input100',
25
+ ele: 'xd-select-pages-path',
26
+ valueKey: 'shopPath',
27
+ value: data['shopPath'] || null,
28
+ setting: {
29
+ router: XdBus.getParentApi('getPagesTree')
30
+ },
31
+ },
32
+ {
33
+ label: '支付成功跳转路径:',
34
+ ele: 'xd-select-pages-path',
35
+ valueKey: 'successPath',
36
+ value: data.successPath || null,
37
+ placeholder: '请选择支付成功跳转路径',
38
+ className: 'input100',
39
+ groupKey:'advanced',
40
+ setting: {
41
+ router: XdBus.getParentApi('getPagesTree')
42
+ },
43
+ inline: false,
44
+ },
45
+ {
46
+ label: '核销支付路径:',
47
+ ele: 'xd-select-pages-path',
48
+ valueKey: 'cash_pay_path',
49
+ placeholder: '请选择核销支付路径',
50
+ className: 'input100',
51
+ groupKey:'advanced',
52
+ value: null,
53
+ setting: {
54
+ router: XdBus.getParentApi('getPagesTree')
55
+ },
56
+ inline: false,
57
+ },
58
+ ].filter(i=>i)
59
+ },
60
+ advanced: [],
61
+ };