jufubao-base 1.0.56-beta2005 → 1.0.56-beta2007
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.
- package/package.json +1 -1
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +1 -0
- package/src/components/JfbBaseCardDetailEntry/Api.js +16 -29
- package/src/components/JfbBaseCardDetailEntry/Attr.js +15 -91
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +677 -71
- package/src/components/JfbBaseCardDetailEntry/Mock.js +102 -1
- package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
- package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
- package/src/components/JfbBaseCardInfoEntry/Api.js +37 -26
- package/src/components/JfbBaseCardInfoEntry/Attr.js +20 -89
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +602 -78
- package/src/components/JfbBaseCardInfoEntry/Mock.js +118 -1
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +123 -122
- package/src/components/JfbBaseCardMergeEntry/Mock.js +28 -1
- package/src/components/JfbBaseCardShiftEntry/Api.js +8 -2
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -80
- package/src/components/JfbBaseCardShiftEntry/Mock.js +5 -0
|
@@ -1,5 +1,122 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getByPwdCardDetailEntry: {
|
|
5
|
+
"card_number": "101001000005195",
|
|
6
|
+
"card_point": 0,
|
|
7
|
+
"card_type_name": "聚福宝",
|
|
8
|
+
"end_time": "2024-10-31 23:59:59",
|
|
9
|
+
"card_status": "Y",
|
|
10
|
+
"card_status_name": "开启",
|
|
11
|
+
"unit": "点",
|
|
12
|
+
"main_product_name": "",
|
|
13
|
+
"other_card_point": 0,
|
|
14
|
+
"is_exchange": "N",
|
|
15
|
+
"request_id": "741c41d86c5ae0cf",
|
|
16
|
+
"main_business_code_name": "蛋糕(勿改)",
|
|
17
|
+
"other_card_point": 4073,
|
|
18
|
+
"site_entry_settings": [{
|
|
19
|
+
"id": 57,
|
|
20
|
+
"business_code": "movie",
|
|
21
|
+
"entry_name": "在线选座",
|
|
22
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/74fcb8bf1bf617249eee5f1416533766.png",
|
|
23
|
+
"redirect_data": "{\"path\":\"https:\\\/\\\/website-01.jufubao.cn\\\/base\\\/system\\\/zhrk\\\/zkrk\"}",
|
|
24
|
+
"redirect_type": "URL"
|
|
25
|
+
}, {
|
|
26
|
+
"id": 10,
|
|
27
|
+
"business_code": "gift",
|
|
28
|
+
"entry_name": "礼包",
|
|
29
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/f1c8a447209eb04d77c2095a13cdadf4.png",
|
|
30
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/gift\\\/type\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/gift\\\/type\",\"frontPath\":\"\\\/apply\\\/main\\\/gift\\\/type\",\"fixed_business_code\":\"\"}",
|
|
31
|
+
"redirect_type": "INN"
|
|
32
|
+
}, {
|
|
33
|
+
"id": 7,
|
|
34
|
+
"business_code": "movie",
|
|
35
|
+
"entry_name": "在线选座",
|
|
36
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/61b3302ec80009964e0a4b7b2336e5cf.png",
|
|
37
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/movie\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/movie\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/movie\\\/index\",\"fixed_business_code\":\"\"}",
|
|
38
|
+
"redirect_type": "INN"
|
|
39
|
+
}, {
|
|
40
|
+
"id": 9,
|
|
41
|
+
"business_code": "cake",
|
|
42
|
+
"entry_name": "蛋糕",
|
|
43
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/e582dc796bdb703a10860bcbbbb378f3.png",
|
|
44
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/cake\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/cake\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/cake\\\/index\",\"fixed_business_code\":\"\"}",
|
|
45
|
+
"redirect_type": "INN"
|
|
46
|
+
}, {
|
|
47
|
+
"id": 18,
|
|
48
|
+
"business_code": "book",
|
|
49
|
+
"entry_name": "图书",
|
|
50
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/9edcdc737c48cdbf9364e321e8199a93.png",
|
|
51
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/book\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/book\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/book\\\/index\",\"fixed_business_code\":\"\"}",
|
|
52
|
+
"redirect_type": "INN"
|
|
53
|
+
}, {
|
|
54
|
+
"id": 8,
|
|
55
|
+
"business_code": "market",
|
|
56
|
+
"entry_name": "百货",
|
|
57
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/920c4bd80f0a995e245aedbfaf1181d5.png",
|
|
58
|
+
"redirect_data": "{\"dir\":\"apply02\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/mall\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply02\\\/main\\\/mall\\\/index\",\"frontPath\":\"\\\/apply02\\\/main\\\/mall\\\/index\",\"fixed_business_code\":\"\"}",
|
|
59
|
+
"redirect_type": "INN"
|
|
60
|
+
}, {
|
|
61
|
+
"id": 17,
|
|
62
|
+
"business_code": "video",
|
|
63
|
+
"entry_name": "网络视听",
|
|
64
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/1ca9647b7ddd9937054792412d3c2367.png",
|
|
65
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/video\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/video\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/video\\\/index\",\"fixed_business_code\":\"\"}",
|
|
66
|
+
"redirect_type": "INN"
|
|
67
|
+
}, {
|
|
68
|
+
"id": 35,
|
|
69
|
+
"business_code": "v-RcA8Mv-Gpd96_Y_mjIf",
|
|
70
|
+
"entry_name": "全福券",
|
|
71
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/53191864826b864b8b6fd4f1eb397a93.png",
|
|
72
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/system\\\/card\\\/card\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/system\\\/card\\\/card\",\"frontPath\":\"\\\/apply\\\/system\\\/card\\\/card\",\"fixed_business_code\":\"\"}",
|
|
73
|
+
"redirect_type": "INN"
|
|
74
|
+
}, {
|
|
75
|
+
"id": 40,
|
|
76
|
+
"business_code": "93028be3",
|
|
77
|
+
"entry_name": "专区",
|
|
78
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/84d23a8c7af7a63842eb696c00068b3d.png",
|
|
79
|
+
"redirect_data": "{\"dir\":\"apply05\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/mall\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply05\\\/main\\\/mall\\\/index\",\"frontPath\":\"\\\/apply05\\\/main\\\/mall\\\/index\",\"fixed_business_code\":\"-y8t4cmogeFvi8fmuxFSK\"}",
|
|
80
|
+
"redirect_type": "INN"
|
|
81
|
+
}, {
|
|
82
|
+
"id": 34,
|
|
83
|
+
"business_code": "food",
|
|
84
|
+
"entry_name": "餐饮",
|
|
85
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/97728bf3ef2a6361c0a1771549d2d435.png",
|
|
86
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/food\\\/rkym\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/food\\\/rkym\",\"frontPath\":\"\\\/apply\\\/main\\\/food\\\/rkym\",\"fixed_business_code\":\"\"}",
|
|
87
|
+
"redirect_type": "INN"
|
|
88
|
+
}, {
|
|
89
|
+
"id": 55,
|
|
90
|
+
"business_code": "cake",
|
|
91
|
+
"entry_name": "蛋糕内部",
|
|
92
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/2e549739768758dde7968ff7cb98c6d8.png",
|
|
93
|
+
"redirect_data": "{\"dir\":\"apply03\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/cake\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply03\\\/main\\\/cake\\\/index\",\"frontPath\":\"\\\/apply03\\\/main\\\/cake\\\/index\",\"fixed_business_code\":\"cake\"}",
|
|
94
|
+
"redirect_type": "INN"
|
|
95
|
+
}, {
|
|
96
|
+
"id": 54,
|
|
97
|
+
"business_code": "health",
|
|
98
|
+
"entry_name": "体检",
|
|
99
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/e06b058a2104025ffecee960b3b9321d.png",
|
|
100
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/health\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/health\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/health\\\/index\",\"fixed_business_code\":\"\"}",
|
|
101
|
+
"redirect_type": "INN"
|
|
102
|
+
}, {
|
|
103
|
+
"id": 30,
|
|
104
|
+
"business_code": "travel",
|
|
105
|
+
"entry_name": "旅游",
|
|
106
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/09ceefe2d1776a399b567c7acdf2c9db.png",
|
|
107
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/travel\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/travel\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/travel\\\/index\",\"fixed_business_code\":\"\"}",
|
|
108
|
+
"redirect_type": "INN"
|
|
109
|
+
}, {
|
|
110
|
+
"id": 16,
|
|
111
|
+
"business_code": "play",
|
|
112
|
+
"entry_name": "演出",
|
|
113
|
+
"image_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230927\/07e1d76f1850fbadc9a12d7ff2d7689c.png",
|
|
114
|
+
"redirect_data": "{\"dir\":\"apply\",\"host\":\"sandbox-website-05.jufubao.cn\",\"path\":\"\\\/main\\\/play\\\/index\",\"site_id\":\"17928cc37788be02\",\"site_url\":\"https:\\\/\\\/sandbox-website-05.jufubao.cn\\\/apply\\\/main\\\/play\\\/index\",\"frontPath\":\"\\\/apply\\\/main\\\/play\\\/index\",\"fixed_business_code\":\"\"}",
|
|
115
|
+
"redirect_type": "INN"
|
|
116
|
+
}]
|
|
117
|
+
},
|
|
118
|
+
pwdCardBindEntry: { "id": 20, "request_id": "91f76bd11d5889be" },
|
|
119
|
+
qrcodeCardBind: {},
|
|
120
|
+
getByQrCardDetail: {},
|
|
121
|
+
qrCardBind: {},
|
|
5
122
|
}
|
|
@@ -14,64 +14,10 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-card-merge-entry__body">
|
|
17
|
-
<xd-form
|
|
18
|
-
label-width="150"
|
|
19
|
-
label-align="left"
|
|
20
|
-
labelPosition="top"
|
|
21
|
-
content-align="left"
|
|
22
|
-
>
|
|
23
|
-
<xd-form-item label="转出的卡号(清零的):" content-align="left">
|
|
24
|
-
<view>
|
|
25
|
-
<xd-form-select
|
|
26
|
-
@change="handleChangeFrom"
|
|
27
|
-
placeholder="请选择"
|
|
28
|
-
:list="fromList"
|
|
29
|
-
v-model="mergeForm.from_card_number"
|
|
30
|
-
/>
|
|
31
|
-
</view>
|
|
32
|
-
</xd-form-item>
|
|
33
|
-
<xd-form-item :key="randomKey" label="转入的卡号(合并到的):" content-align="left">
|
|
34
|
-
<view>
|
|
35
|
-
<xd-form-select
|
|
36
|
-
@change="handleChangeTo"
|
|
37
|
-
placeholder="请选择"
|
|
38
|
-
:list="toList"
|
|
39
|
-
v-model="mergeForm.to_card_number"
|
|
40
|
-
/>
|
|
41
|
-
</view>
|
|
42
|
-
</xd-form-item>
|
|
43
|
-
<xd-form-item
|
|
44
|
-
label="验证码:"
|
|
45
|
-
content-align="left"
|
|
46
|
-
labelPosition="left"
|
|
47
|
-
labelAlign="left"
|
|
48
|
-
>
|
|
49
|
-
<view class="flex align-center">
|
|
50
|
-
<xd-form-input
|
|
51
|
-
placeholder="请输入验证码"
|
|
52
|
-
v-model="mergeForm.valid_code"
|
|
53
|
-
/>
|
|
54
|
-
<view
|
|
55
|
-
v-if="mergeForm.valid_token"
|
|
56
|
-
class="capture"
|
|
57
|
-
@click="switchValidToken"
|
|
58
|
-
>
|
|
59
|
-
<image
|
|
60
|
-
style="width: 100%; height: 100%"
|
|
61
|
-
:src="
|
|
62
|
-
validImageAPIUrl +
|
|
63
|
-
'?image_width=180&image_height=80&token=' +
|
|
64
|
-
mergeForm.valid_token
|
|
65
|
-
"
|
|
66
|
-
/>
|
|
67
|
-
</view>
|
|
68
|
-
</view>
|
|
69
|
-
</xd-form-item>
|
|
70
|
-
</xd-form>
|
|
71
17
|
<view class="merge">
|
|
72
18
|
<view class="merge-item" :style="{background: themeOutStyle['color']}">
|
|
73
|
-
<view class="merge-item-box" :style="{backgroundImage: 'url(
|
|
74
|
-
<view class="merge-item-title">
|
|
19
|
+
<view class="merge-item-box" :style="{backgroundImage: 'url(//img.jufubao.cn/component/card/mergbg.jpg)'}">
|
|
20
|
+
<view class="merge-item-title" :style="{background: themeOutStyle['color']}">
|
|
75
21
|
<xd-font-icon icon="iconzhuanchu"></xd-font-icon>
|
|
76
22
|
<view>转出的票券</view>
|
|
77
23
|
</view>
|
|
@@ -85,25 +31,28 @@
|
|
|
85
31
|
:color="themeOutStyle['color']"
|
|
86
32
|
placeholder="选择转出票券"
|
|
87
33
|
v-model="fromSelect"
|
|
34
|
+
@change="handleChangeFrom"
|
|
88
35
|
></xd-select>
|
|
89
36
|
</view>
|
|
90
37
|
</view>
|
|
91
38
|
</view>
|
|
92
39
|
<view class="merge-item" :style="{background: themeInStyle['color']}">
|
|
93
|
-
<view class="merge-item-box" :style="{backgroundImage: 'url(
|
|
40
|
+
<view class="merge-item-box" :style="{backgroundImage: 'url(//img.jufubao.cn/component/card/mergbg.jpg)'}">
|
|
94
41
|
<view class="merge-item-title">
|
|
95
42
|
<xd-font-icon icon="iconzhuanru"></xd-font-icon>
|
|
96
43
|
<view>转入的票券</view>
|
|
97
44
|
</view>
|
|
98
45
|
<view>
|
|
99
46
|
<xd-select
|
|
47
|
+
:disabled="toList.length === 0"
|
|
48
|
+
:key="randomKey"
|
|
100
49
|
:height="66"
|
|
101
50
|
radius="33rpx"
|
|
102
|
-
:list="
|
|
51
|
+
:list="toList"
|
|
103
52
|
:border-color="themeInStyle['color']"
|
|
104
53
|
justify-content="space-between"
|
|
105
54
|
:color="themeInStyle['color']"
|
|
106
|
-
placeholder="
|
|
55
|
+
:placeholder="toPlaceholder"
|
|
107
56
|
v-model="toSelect"
|
|
108
57
|
></xd-select>
|
|
109
58
|
</view>
|
|
@@ -113,11 +62,17 @@
|
|
|
113
62
|
<view class="code">
|
|
114
63
|
<view>验证码:</view>
|
|
115
64
|
<view>
|
|
116
|
-
<
|
|
65
|
+
<input v-model="valid_code" class="uni-input" placeholder="请输入验证码"/>
|
|
66
|
+
</view>
|
|
67
|
+
<view>
|
|
68
|
+
<view
|
|
69
|
+
v-if="valid_token"
|
|
70
|
+
class="capture"
|
|
71
|
+
@click="switchValidToken"
|
|
72
|
+
>
|
|
73
|
+
<image :src="validImageAPIUrl +'?image_width=180&image_height=80&token=' +valid_token"></image>
|
|
74
|
+
</view>
|
|
117
75
|
</view>
|
|
118
|
-
</view>
|
|
119
|
-
<view class="jfb-base-card-merge-entry__body-btn">
|
|
120
|
-
<xd-button @click="handleToSubmit" width="90%" type="primary" >提交</xd-button>
|
|
121
76
|
</view>
|
|
122
77
|
</view>
|
|
123
78
|
<view class="xd-notice" :style="{ color: warningColor }" v-if="content">
|
|
@@ -128,6 +83,16 @@
|
|
|
128
83
|
class="xd-notice"
|
|
129
84
|
:style="{ color: dangerColor,fontSize: 24 + 'rpx' }"
|
|
130
85
|
>温馨提示未配置数据,因此改模块在正式环境将不显示</view>
|
|
86
|
+
<view class="bottom_btn-mask"></view>
|
|
87
|
+
<view class="bottom_btn" :style="prod_bottom">
|
|
88
|
+
<xd-button
|
|
89
|
+
:key="disabledKey"
|
|
90
|
+
:disabled="disabled"
|
|
91
|
+
@click="handleToSubmit"
|
|
92
|
+
width="90%"
|
|
93
|
+
:type="disabled ?'info': 'primary'"
|
|
94
|
+
>合并</xd-button>
|
|
95
|
+
</view>
|
|
131
96
|
</view>
|
|
132
97
|
</template>
|
|
133
98
|
|
|
@@ -165,14 +130,13 @@ export default {
|
|
|
165
130
|
mixins: [JfbBaseCardMergeEntryMixin, componentsMixins, extsMixins, colorCardMixins],
|
|
166
131
|
data() {
|
|
167
132
|
return {
|
|
168
|
-
mergeForm: {},
|
|
169
|
-
|
|
170
133
|
fromList: [],
|
|
171
134
|
toList: [],
|
|
172
135
|
fromSelect: null,
|
|
173
136
|
toSelect: null,
|
|
174
137
|
randomKey: Date.now(),
|
|
175
|
-
|
|
138
|
+
valid_code:'',
|
|
139
|
+
valid_token: 'valid_token',
|
|
176
140
|
|
|
177
141
|
|
|
178
142
|
content: "",
|
|
@@ -184,9 +148,8 @@ export default {
|
|
|
184
148
|
//提示文案
|
|
185
149
|
isPreview: false,
|
|
186
150
|
statusContent: false,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
151
|
+
disabledKey: 'disabledKey',
|
|
152
|
+
toPlaceholder:'选择转入票券',
|
|
190
153
|
};
|
|
191
154
|
},
|
|
192
155
|
computed: {
|
|
@@ -207,7 +170,15 @@ export default {
|
|
|
207
170
|
} else {
|
|
208
171
|
return this.getCardThemes(this.toSelect.name);
|
|
209
172
|
}
|
|
210
|
-
}
|
|
173
|
+
},
|
|
174
|
+
prod_bottom() {
|
|
175
|
+
return this.fixedStyle({height: 0, zIndex: 111});
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
disabled(){
|
|
179
|
+
this.disabledKey = Date.now();
|
|
180
|
+
return this.fromSelect === null || this.toSelect === null;
|
|
181
|
+
},
|
|
211
182
|
},
|
|
212
183
|
watch: {
|
|
213
184
|
container(value) {
|
|
@@ -239,7 +210,7 @@ export default {
|
|
|
239
210
|
});
|
|
240
211
|
})
|
|
241
212
|
.catch((err) => {
|
|
242
|
-
|
|
213
|
+
this.$xdLog.catch(err)
|
|
243
214
|
});
|
|
244
215
|
},
|
|
245
216
|
getContent() {
|
|
@@ -252,12 +223,13 @@ export default {
|
|
|
252
223
|
},
|
|
253
224
|
})
|
|
254
225
|
.then((res) => {
|
|
255
|
-
|
|
226
|
+
if(res && res.list && res.list.length > 0) {
|
|
227
|
+
this.content = res.list[0].content;
|
|
228
|
+
}
|
|
256
229
|
this.statusContent = true;
|
|
257
|
-
console.log(this.content, "this.content");
|
|
258
230
|
})
|
|
259
231
|
.catch((error) => {
|
|
260
|
-
|
|
232
|
+
this.$xdLog.catch(error)
|
|
261
233
|
});
|
|
262
234
|
},
|
|
263
235
|
/**
|
|
@@ -265,64 +237,54 @@ export default {
|
|
|
265
237
|
* @param container {object} 业务组件对象自己
|
|
266
238
|
*/
|
|
267
239
|
init(container) {
|
|
268
|
-
this.textColor = getContainerPropsValue(
|
|
269
|
-
container,
|
|
270
|
-
"content.textColor",
|
|
271
|
-
this.warningColor
|
|
272
|
-
);
|
|
240
|
+
this.textColor = getContainerPropsValue(container, "content.textColor", this.warningColor);
|
|
273
241
|
this.cardPath = getContainerPropsValue(container, "content.cardPath", {value: ""}).value;
|
|
274
242
|
},
|
|
243
|
+
|
|
275
244
|
//刷新图片验证码
|
|
276
245
|
switchValidToken() {
|
|
277
|
-
|
|
278
|
-
this.$set(this.mergeForm, "valid_token", valid_token);
|
|
246
|
+
this.valid_token = this.$xdUniHelper.randomChar(20);
|
|
279
247
|
},
|
|
280
248
|
|
|
281
249
|
handleToSubmit() {
|
|
282
|
-
if (!this.
|
|
250
|
+
if (!this.valid_code) {
|
|
283
251
|
uni.showToast({
|
|
284
252
|
title: "验证码不能为空!",
|
|
285
253
|
icon: "none",
|
|
286
254
|
});
|
|
287
255
|
return;
|
|
288
256
|
}
|
|
257
|
+
|
|
258
|
+
let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
|
|
259
|
+
let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
|
|
260
|
+
let inPrice = this.$xdUniHelper.divisionFloatNumber(this.toSelect.card_point, 100);
|
|
261
|
+
let inHtml = `${this.toSelect.value}(剩余:${inPrice})`;
|
|
289
262
|
this.$xdConfirm({
|
|
290
|
-
title: "
|
|
263
|
+
title: "是否确认合并票券",
|
|
291
264
|
isHtml: true,
|
|
292
265
|
$vm: this,
|
|
293
|
-
content:
|
|
294
|
-
this.mergeForm.from_card_number
|
|
295
|
-
}(剩余点数:${this.$xdUniHelper.divisionFloatNumber(
|
|
296
|
-
this.fromSelect.card_point,
|
|
297
|
-
100
|
|
298
|
-
)});<br/>转入卡号:${
|
|
299
|
-
this.mergeForm.to_card_number
|
|
300
|
-
}(剩余点数:${this.$xdUniHelper.divisionFloatNumber(
|
|
301
|
-
this.toSelect.card_point,
|
|
302
|
-
100
|
|
303
|
-
)})`,
|
|
266
|
+
content: `<div class="label-value"><div><span>转出卡号:</span><span>${outHtml}</span></div><div><span>转入卡号:</span><span>${inHtml}</span></div></div>`,
|
|
304
267
|
success: (action) => {
|
|
268
|
+
let params = {
|
|
269
|
+
from_card_number: this.fromSelect.value,
|
|
270
|
+
to_card_number: this.toSelect.value,
|
|
271
|
+
valid_code: this.valid_code,
|
|
272
|
+
valid_token: this.valid_token
|
|
273
|
+
};
|
|
274
|
+
|
|
305
275
|
if (action.confirm) {
|
|
306
276
|
if(this.$configProject.isPreview) return;
|
|
307
|
-
jfbRootExec("
|
|
308
|
-
vm: this,
|
|
309
|
-
data: {
|
|
310
|
-
from_card_number: this.mergeForm.from_card_number,
|
|
311
|
-
to_card_number: this.mergeForm.to_card_number,
|
|
312
|
-
valid_code: this.mergeForm.valid_code,
|
|
313
|
-
valid_token: this.mergeForm.valid_token
|
|
314
|
-
},
|
|
315
|
-
})
|
|
277
|
+
jfbRootExec("mergeCardEntry", { vm: this,data: params})
|
|
316
278
|
.then((res) => {
|
|
317
|
-
this.$xdAlert({
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
})
|
|
279
|
+
this.$xdAlert({content: '合卡成功!'});
|
|
280
|
+
setTimeout(()=>{
|
|
281
|
+
this.$xdUniHelper.navigateTo({
|
|
282
|
+
url: this.cardPath
|
|
283
|
+
})
|
|
284
|
+
}, 1500);
|
|
323
285
|
})
|
|
324
286
|
.catch((err) => {
|
|
325
|
-
|
|
287
|
+
this.$xdLog.catch(err)
|
|
326
288
|
});
|
|
327
289
|
}
|
|
328
290
|
},
|
|
@@ -330,30 +292,24 @@ export default {
|
|
|
330
292
|
},
|
|
331
293
|
handleChangeFrom(select) {
|
|
332
294
|
this.fromSelect = select.item;
|
|
333
|
-
jfbRootExec("
|
|
334
|
-
vm: this,
|
|
335
|
-
data: {
|
|
336
|
-
card_number: select.item.value,
|
|
337
|
-
},
|
|
338
|
-
})
|
|
295
|
+
jfbRootExec("toCardListEntry", {vm: this, data: {card_number: select.item.value,},})
|
|
339
296
|
.then((res) => {
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
297
|
+
this.toSelect = null;
|
|
298
|
+
this.toPlaceholder = res.list.length === 0?'暂无转入票券,请重新选择':'选择转入票券';
|
|
342
299
|
this.toList = res.list.map((item) => {
|
|
343
300
|
return {
|
|
344
301
|
label: item.card_number,
|
|
345
302
|
value: item.card_number,
|
|
346
303
|
card_point: item.card_point,
|
|
304
|
+
name: item.card_type_name
|
|
347
305
|
};
|
|
348
306
|
});
|
|
307
|
+
this.randomKey = Date.now();
|
|
349
308
|
})
|
|
350
309
|
.catch((err) => {
|
|
351
|
-
|
|
310
|
+
this.$xdLog.catch(err)
|
|
352
311
|
});
|
|
353
312
|
},
|
|
354
|
-
handleChangeTo(select) {
|
|
355
|
-
this.toSelect = select.item;
|
|
356
|
-
},
|
|
357
313
|
onJfbUpdate(data) {
|
|
358
314
|
this.getContent();
|
|
359
315
|
},
|
|
@@ -384,6 +340,11 @@ export default {
|
|
|
384
340
|
.capture {
|
|
385
341
|
width: unit(160, rpx);
|
|
386
342
|
height: unit(70, rpx);
|
|
343
|
+
|
|
344
|
+
& >image {
|
|
345
|
+
width: 100%;
|
|
346
|
+
height: 100%;
|
|
347
|
+
}
|
|
387
348
|
}
|
|
388
349
|
|
|
389
350
|
.flex {
|
|
@@ -438,4 +399,44 @@ export default {
|
|
|
438
399
|
|
|
439
400
|
}
|
|
440
401
|
}
|
|
402
|
+
|
|
403
|
+
.code {
|
|
404
|
+
display: flex;
|
|
405
|
+
justify-content: space-between;
|
|
406
|
+
align-items: center;
|
|
407
|
+
padding: 0 unit(30, rpx);
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
& > view:first-child, &> view:last-child {
|
|
411
|
+
flex-shrink: 0;
|
|
412
|
+
font-size: unit(32, rpx);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
& > view:nth-child(2) {
|
|
416
|
+
flex: 1;
|
|
417
|
+
margin: 0 unit(20, rpx);
|
|
418
|
+
& input {
|
|
419
|
+
font-size: unit(28, rpx);
|
|
420
|
+
background: #eee;
|
|
421
|
+
line-height: unit(70, rpx);
|
|
422
|
+
height: unit(70, rpx);
|
|
423
|
+
border-radius: unit(35, rpx);
|
|
424
|
+
padding: 0 unit(35, rpx);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.bottom_btn {
|
|
430
|
+
position: fixed;
|
|
431
|
+
width: 100%;
|
|
432
|
+
display: flex;
|
|
433
|
+
justify-content: center;
|
|
434
|
+
align-items: center;
|
|
435
|
+
height: unit(120, rpx);
|
|
436
|
+
background: #ffffff;
|
|
437
|
+
|
|
438
|
+
&-mask {
|
|
439
|
+
height: unit(120, rpx);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
441
442
|
</style>
|
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
fromCardListEntry : {
|
|
5
|
+
"list": [{
|
|
6
|
+
"card_number": "101001000008422",
|
|
7
|
+
"card_point": 100000,
|
|
8
|
+
"card_type_name": "聚福宝福"
|
|
9
|
+
}, {
|
|
10
|
+
"card_number": "121000100000028",
|
|
11
|
+
"card_point": 10000,
|
|
12
|
+
"card_type_name": "抵扣券测试"
|
|
13
|
+
}, {
|
|
14
|
+
"card_number": "101001000005192",
|
|
15
|
+
"card_point": 99995900,
|
|
16
|
+
"card_type_name": "聚福宝福"
|
|
17
|
+
}, {
|
|
18
|
+
"card_number": "101001000008421",
|
|
19
|
+
"card_point": 100000,
|
|
20
|
+
"card_type_name": "聚福宝福"
|
|
21
|
+
}, {
|
|
22
|
+
"card_number": "261001000002518",
|
|
23
|
+
"card_point": 100000,
|
|
24
|
+
"card_type_name": "加盟商福卡"
|
|
25
|
+
}, {
|
|
26
|
+
"card_number": "101001000007175",
|
|
27
|
+
"card_point": 9899544,
|
|
28
|
+
"card_type_name": "聚福宝福"
|
|
29
|
+
}, {"card_number": "261001000000344", "card_point": 100, "card_type_name": "大礼包测试"}],
|
|
30
|
+
"request_id": "4c836d402cbcbe80"
|
|
31
|
+
}
|
|
5
32
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @description
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
5
11
|
* @type {*[]}
|
|
6
12
|
*/
|
|
7
13
|
module.exports = [
|
|
@@ -28,7 +34,7 @@ module.exports = [
|
|
|
28
34
|
disabled: true,
|
|
29
35
|
},
|
|
30
36
|
{
|
|
31
|
-
mapFnName: '
|
|
37
|
+
mapFnName: 'getListGiftNewsContentEntry', //自定义方法名字(必选)
|
|
32
38
|
title: '获取内容',
|
|
33
39
|
path: '/cms/v1/news-content',
|
|
34
40
|
isRule: false,
|