jufubao-base 1.0.182-beta1 → 1.0.184-beta1
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/JfbBaseAddress/Attr.js +1 -50
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +68 -120
- package/src/components/JfbBaseCardDelay/Api.js +19 -30
- package/src/components/JfbBaseCardDelay/Attr.js +237 -35
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +279 -78
- package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +121 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +206 -29
- package/src/components/JfbBaseCardGive/Api.js +18 -34
- package/src/components/JfbBaseCardGive/Attr.js +40 -32
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +502 -79
- package/src/components/JfbBaseCardGive/Mock.js +2 -9
- package/src/components/JfbBaseCardReceive/Api.js +10 -36
- package/src/components/JfbBaseCardReceive/Attr.js +9 -39
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +403 -80
- package/src/components/JfbBaseCardReceive/Mock.js +1 -7
- package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
- package/src/components/JfbBaseCardReceiveCover/Attr.js +119 -30
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +189 -82
- package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +42 -10
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +137 -23
- package/src/components/JfbBaseOrderDetail/Mock.js +5 -0
- package/src/components/JfbBaseOrderList/Attr.js +0 -23
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +86 -117
- package/src/components/JfbBasePay/Attr.js +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +18 -12
- package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -1
- package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +142 -13
- package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
- package/src/components/JfbBaseAddress/XdTfkItem.vue +0 -117
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +0 -246
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import StyleForm from "@/utils/StyleForm";
|
|
3
|
-
import IConList from "@/ICONS"
|
|
4
3
|
let styleForm = new StyleForm(
|
|
5
4
|
{border: null, shadow: null, spacing: '', bgColor:'', margin: null},
|
|
6
5
|
null,
|
|
@@ -12,35 +11,6 @@ export default {
|
|
|
12
11
|
advanced: [],
|
|
13
12
|
content: (data)=>{
|
|
14
13
|
return [
|
|
15
|
-
{
|
|
16
|
-
label: "布局样式配置",
|
|
17
|
-
ele: "xd-radio",
|
|
18
|
-
valueKey: "layout_style",
|
|
19
|
-
value: data.layout_style || 'old',
|
|
20
|
-
list: [
|
|
21
|
-
{label: '原有布局', value: 'old'},
|
|
22
|
-
{label: '淘福客布局', value: 'tfk'},
|
|
23
|
-
],
|
|
24
|
-
groupKey: "content",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "编辑图标",
|
|
28
|
-
ele: "xd-select-list",
|
|
29
|
-
valueKey: "edit_icon",
|
|
30
|
-
value: data.edit_icon || 'iconbianji-01',
|
|
31
|
-
list: IConList,
|
|
32
|
-
className: 'input80',
|
|
33
|
-
groupKey: "content",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "删除图标",
|
|
37
|
-
ele: "xd-select-list",
|
|
38
|
-
valueKey: "delete_icon",
|
|
39
|
-
value: data.delete_icon || 'iconshanchu-01',
|
|
40
|
-
list: IConList,
|
|
41
|
-
className: 'input80',
|
|
42
|
-
groupKey: "content",
|
|
43
|
-
},
|
|
44
14
|
{
|
|
45
15
|
label: '选取地区路径:',
|
|
46
16
|
ele: 'xd-select-pages-path',
|
|
@@ -53,26 +23,7 @@ export default {
|
|
|
53
23
|
},
|
|
54
24
|
inline: false,
|
|
55
25
|
},
|
|
56
|
-
...styleForm.getForm(data, '内容列表样式配置')
|
|
57
|
-
{
|
|
58
|
-
label: "圆角设置",
|
|
59
|
-
ele: 'xd-site-select-list',
|
|
60
|
-
valueKey: 'cardRadius',
|
|
61
|
-
value: data['cardRadius'] || '',
|
|
62
|
-
groupKey:'style',
|
|
63
|
-
placeholder: '请选择内容圆角设置',
|
|
64
|
-
multiple: false,
|
|
65
|
-
className: 'input80',
|
|
66
|
-
handleCustom({ action, data }) {
|
|
67
|
-
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
68
|
-
.then(res => {
|
|
69
|
-
data.cb(res.list)
|
|
70
|
-
})
|
|
71
|
-
.catch(error => {
|
|
72
|
-
console.error(error);
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
}
|
|
26
|
+
...styleForm.getForm(data, '内容列表样式配置')
|
|
76
27
|
].filter(i=>i)
|
|
77
28
|
},
|
|
78
29
|
}
|
|
@@ -26,108 +26,81 @@
|
|
|
26
26
|
class="jfb-base-address__body-address"
|
|
27
27
|
v-if="addressList && addressList.length > 0"
|
|
28
28
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
>
|
|
43
|
-
<view class="jfb-base-address__body-address-item-top">
|
|
44
|
-
<view
|
|
45
|
-
v-if="item.is_default === 'Y'"
|
|
46
|
-
:style="{
|
|
47
|
-
backgroundColor: mainColor,
|
|
48
|
-
color: '#fff',
|
|
49
|
-
fontSize: '24rpx',
|
|
50
|
-
padding: '4rpx 10rpx',
|
|
51
|
-
borderRadius: '4rpx',
|
|
52
|
-
marginRight: '20rpx',
|
|
53
|
-
}"
|
|
54
|
-
>默认</view
|
|
55
|
-
>
|
|
56
|
-
<view
|
|
57
|
-
:style="{
|
|
58
|
-
color: '#999999',
|
|
59
|
-
flex: 1,
|
|
60
|
-
paddingRight: item.is_valid === 'N' ? '40rpx' : '',
|
|
61
|
-
}"
|
|
62
|
-
>
|
|
63
|
-
<view>
|
|
64
|
-
{{ item | getCodeName }}
|
|
65
|
-
</view>
|
|
66
|
-
</view>
|
|
67
|
-
<view
|
|
68
|
-
style="position: absolute; right: 40rpx; width: 50rpx"
|
|
69
|
-
v-if="item.is_valid === 'N'"
|
|
70
|
-
>
|
|
71
|
-
<xd-font-icon
|
|
72
|
-
size="32"
|
|
73
|
-
:color="dangerColor"
|
|
74
|
-
icon="iconmingchengtubiao"
|
|
75
|
-
></xd-font-icon>
|
|
76
|
-
</view>
|
|
77
|
-
</view>
|
|
78
|
-
<view class="jfb-base-address__body-address-item-middle">
|
|
79
|
-
{{ item.address_detail }} {{ item.house_number }}
|
|
80
|
-
</view>
|
|
29
|
+
<view
|
|
30
|
+
:style="{
|
|
31
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
32
|
+
boxShadow: jfbListShadowComputed,
|
|
33
|
+
border: jfbListBorderComputed,
|
|
34
|
+
backgroundColor: jfbListBgColor,
|
|
35
|
+
}"
|
|
36
|
+
class="jfb-base-address__body-address-item"
|
|
37
|
+
v-for="(item, index) in addressList"
|
|
38
|
+
@click="handleSelectAddress(item)"
|
|
39
|
+
:key="index"
|
|
40
|
+
>
|
|
41
|
+
<view class="jfb-base-address__body-address-item-top">
|
|
81
42
|
<view
|
|
43
|
+
v-if="item.is_default === 'Y'"
|
|
82
44
|
:style="{
|
|
83
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: mainColor,
|
|
46
|
+
color: '#fff',
|
|
47
|
+
fontSize: '24rpx',
|
|
48
|
+
padding: '4rpx 10rpx',
|
|
49
|
+
borderRadius: '4rpx',
|
|
50
|
+
marginRight: '20rpx',
|
|
51
|
+
}"
|
|
52
|
+
>默认</view
|
|
53
|
+
>
|
|
54
|
+
<view
|
|
55
|
+
:style="{
|
|
56
|
+
color: '#999999',
|
|
57
|
+
flex: 1,
|
|
58
|
+
paddingRight: item.is_valid === 'N' ? '40rpx' : '',
|
|
84
59
|
}"
|
|
85
|
-
class="jfb-base-address__body-address-item-bottom"
|
|
86
60
|
>
|
|
87
61
|
<view>
|
|
88
|
-
|
|
89
|
-
<view>{{ item.phone }}</view>
|
|
90
|
-
</view>
|
|
91
|
-
<view>
|
|
92
|
-
<xd-font-icon
|
|
93
|
-
@click.native.stop="handleEdit(item)"
|
|
94
|
-
style="margin-right: 40rpx"
|
|
95
|
-
icon="iconbianji-01"
|
|
96
|
-
size="32"
|
|
97
|
-
></xd-font-icon>
|
|
98
|
-
<xd-font-icon
|
|
99
|
-
@click.native.stop="handleDel(item)"
|
|
100
|
-
icon="iconshanchu-01"
|
|
101
|
-
size="32"
|
|
102
|
-
></xd-font-icon>
|
|
62
|
+
{{ item | getCodeName }}
|
|
103
63
|
</view>
|
|
104
64
|
</view>
|
|
65
|
+
<view
|
|
66
|
+
style="position: absolute; right: 40rpx; width: 50rpx"
|
|
67
|
+
v-if="item.is_valid === 'N'"
|
|
68
|
+
>
|
|
69
|
+
<xd-font-icon
|
|
70
|
+
size="32"
|
|
71
|
+
:color="dangerColor"
|
|
72
|
+
icon="iconmingchengtubiao"
|
|
73
|
+
></xd-font-icon>
|
|
74
|
+
</view>
|
|
75
|
+
</view>
|
|
76
|
+
<view class="jfb-base-address__body-address-item-middle">
|
|
77
|
+
{{ item.address_detail }} {{ item.house_number }}
|
|
105
78
|
</view>
|
|
106
|
-
</template>
|
|
107
|
-
<template v-else>
|
|
108
79
|
<view
|
|
109
80
|
:style="{
|
|
110
|
-
|
|
111
|
-
boxShadow: jfbListShadowComputed,
|
|
112
|
-
border: jfbListBorderComputed,
|
|
113
|
-
backgroundColor: jfbListBgColor,
|
|
114
|
-
borderRadius: cardRadius + 'rpx'
|
|
81
|
+
backgroundColor: item.is_select === 'Y' ? mainColor : '#CCC',
|
|
115
82
|
}"
|
|
116
|
-
|
|
117
|
-
@click="handleSelectAddress(item)"
|
|
118
|
-
:key="index"
|
|
83
|
+
class="jfb-base-address__body-address-item-bottom"
|
|
119
84
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
85
|
+
<view>
|
|
86
|
+
<view style="margin-right: 40rpx">{{ item.name }}</view>
|
|
87
|
+
<view>{{ item.phone }}</view>
|
|
88
|
+
</view>
|
|
89
|
+
<view>
|
|
90
|
+
<xd-font-icon
|
|
91
|
+
@click.native.stop="handleEdit(item)"
|
|
92
|
+
style="margin-right: 40rpx"
|
|
93
|
+
icon="iconbianji-01"
|
|
94
|
+
size="32"
|
|
95
|
+
></xd-font-icon>
|
|
96
|
+
<xd-font-icon
|
|
97
|
+
@click.native.stop="handleDel(item)"
|
|
98
|
+
icon="iconshanchu-01"
|
|
99
|
+
size="32"
|
|
100
|
+
></xd-font-icon>
|
|
101
|
+
</view>
|
|
129
102
|
</view>
|
|
130
|
-
</
|
|
103
|
+
</view>
|
|
131
104
|
</view>
|
|
132
105
|
<view class="jfb-base-address__body-empty" v-else>
|
|
133
106
|
<xd-font-icon icon="iconbianzu-01" size="120"></xd-font-icon>
|
|
@@ -177,7 +150,6 @@ import componentsMixins from "@/mixins/componentsMixins";
|
|
|
177
150
|
import extsMixins from "@/mixins/extsMixins";
|
|
178
151
|
import StyleForm from "@/utils/StyleForm";
|
|
179
152
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
180
|
-
import XdTfkItem from "./XdTfkItem"
|
|
181
153
|
let styleForm = new StyleForm(
|
|
182
154
|
{
|
|
183
155
|
border: null,
|
|
@@ -202,7 +174,6 @@ export default {
|
|
|
202
174
|
XdButton,
|
|
203
175
|
XdDownDrawer,
|
|
204
176
|
XdAddress,
|
|
205
|
-
XdTfkItem,
|
|
206
177
|
},
|
|
207
178
|
mixins: [componentsMixins, extsMixins, JfbBaseAddressMixin],
|
|
208
179
|
data() {
|
|
@@ -213,12 +184,7 @@ export default {
|
|
|
213
184
|
location_url: "",
|
|
214
185
|
addressList: null,
|
|
215
186
|
...styleForm.getDataItem(),
|
|
216
|
-
version: ''
|
|
217
|
-
|
|
218
|
-
layout_style: "old",
|
|
219
|
-
edit_icon: "",
|
|
220
|
-
delete_icon: "",
|
|
221
|
-
cardRadius: 16,
|
|
187
|
+
version: ''
|
|
222
188
|
};
|
|
223
189
|
},
|
|
224
190
|
filters: {
|
|
@@ -270,11 +236,6 @@ export default {
|
|
|
270
236
|
{ value: "" }
|
|
271
237
|
).value;
|
|
272
238
|
styleForm.getInitItem(this, value);
|
|
273
|
-
this.layout_style = getContainerPropsValue(value, "content.layout_style", "old");
|
|
274
|
-
this.edit_icon = getContainerPropsValue(value, "content.edit_icon", "iconbianji-01");
|
|
275
|
-
this.delete_icon = getContainerPropsValue(value, "content.delete_icon", "iconshanchu-01");
|
|
276
|
-
this.cardRadius = getContainerPropsValue(value, "content.cardRadius", 16);
|
|
277
|
-
console.log("edit_icon", this.edit_icon)
|
|
278
239
|
},
|
|
279
240
|
getList(callback) {
|
|
280
241
|
this.$xdShowLoading({});
|
|
@@ -529,8 +490,7 @@ export default {
|
|
|
529
490
|
})
|
|
530
491
|
.catch(this.$xdLog.catch);
|
|
531
492
|
},
|
|
532
|
-
|
|
533
|
-
apiDataMapCompData(item){
|
|
493
|
+
handleEdit(item) {
|
|
534
494
|
let city_name = [
|
|
535
495
|
item["province_name"],
|
|
536
496
|
item["city_name"],
|
|
@@ -543,15 +503,13 @@ export default {
|
|
|
543
503
|
item["area_code"],
|
|
544
504
|
item["street_code"],
|
|
545
505
|
];
|
|
546
|
-
|
|
506
|
+
this.defaultValue = {
|
|
547
507
|
receipt_username: item["name"],
|
|
548
508
|
receipt_address: item["address_detail"],
|
|
549
509
|
receipt_phone: item["phone"],
|
|
550
510
|
receipt_default: item["is_default"] === "Y" ? true : false,
|
|
551
511
|
city_name: city_name,
|
|
552
512
|
city_code: city_code,
|
|
553
|
-
receipt_city_code: city_code,
|
|
554
|
-
receipt_city_name: city_name,
|
|
555
513
|
receipt_region_name: city_name.join(" "),
|
|
556
514
|
city_selected_data: city_name.map((item, index) => {
|
|
557
515
|
return { label: item, value: city_code[index] };
|
|
@@ -560,20 +518,11 @@ export default {
|
|
|
560
518
|
latitude: item["latitude"] || null,
|
|
561
519
|
longitude: item["longitude"] || null,
|
|
562
520
|
house_number: item["house_number"],
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
handleEdit(item) {
|
|
566
|
-
this.defaultValue = this.apiDataMapCompData(item);
|
|
521
|
+
};
|
|
567
522
|
|
|
568
523
|
console.log("handleEdit", item, this.defaultValue);
|
|
569
524
|
this.showAddress = true;
|
|
570
525
|
},
|
|
571
|
-
handleSetDefault(item){
|
|
572
|
-
let is_default = item.is_default === "Y" ? "N" : "Y";
|
|
573
|
-
this.$set(item, 'is_default', is_default);
|
|
574
|
-
let saveData = this.apiDataMapCompData({...item, is_default});
|
|
575
|
-
this.handleSave(saveData);
|
|
576
|
-
},
|
|
577
526
|
handleDel(item) {
|
|
578
527
|
console.log("handleDel", item);
|
|
579
528
|
this.$xdConfirm({
|
|
@@ -721,10 +670,9 @@ export default {
|
|
|
721
670
|
|
|
722
671
|
&-address {
|
|
723
672
|
&-item {
|
|
724
|
-
|
|
673
|
+
border-radius: unit(16, rpx);
|
|
725
674
|
margin-bottom: unit(20, rpx);
|
|
726
675
|
box-shadow: 0px 0px unit(20, rpx) 0px rgba(0, 0, 0, 0.1);
|
|
727
|
-
overflow: hidden;
|
|
728
676
|
|
|
729
677
|
&-top {
|
|
730
678
|
display: flex;
|
|
@@ -747,7 +695,7 @@ export default {
|
|
|
747
695
|
padding: unit(20, rpx) unit(40, rpx);
|
|
748
696
|
font-size: unit(28, rpx);
|
|
749
697
|
color: #fff;
|
|
750
|
-
|
|
698
|
+
border-radius: 0px 0px unit(16, rpx) unit(16, rpx);
|
|
751
699
|
|
|
752
700
|
& > view {
|
|
753
701
|
display: flex;
|
|
@@ -6,51 +6,40 @@
|
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
9
|
+
mapFnName: 'getCardDelayContent', //自定义方法名字(必选)
|
|
10
|
+
title: '获取内容',
|
|
11
|
+
path: '/cms/v1/news-content',
|
|
13
12
|
isRule: false,
|
|
14
13
|
params: {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
scene: ['使用场景', 'String', '选填'],
|
|
15
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
16
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
17
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
18
|
+
code: ['业务线id', 'String', '选填'],
|
|
17
19
|
},
|
|
18
20
|
isConsole: true,
|
|
19
21
|
disabled: true,
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
24
|
+
mapFnName: 'getCardDelayPackageList', //自定义方法名字(必选)
|
|
25
|
+
title: '获取可用套餐',
|
|
26
|
+
path: '/card/v1/card-delay/list-avaliable-card-package',
|
|
26
27
|
isRule: false,
|
|
27
28
|
params: {
|
|
28
|
-
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
29
|
+
card_number: ['卡号', 'String', '选填'],
|
|
30
30
|
},
|
|
31
31
|
isConsole: true,
|
|
32
32
|
disabled: true,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
35
|
+
mapFnName: 'confirmDelayOrder', //自定义方法名字(必选)
|
|
36
|
+
title: '提交订单',
|
|
37
|
+
path: '/card/v1/card-delay/create-order',
|
|
39
38
|
isRule: false,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
disabled: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:Card
|
|
48
|
-
mapFnName: 'addCardFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
39
|
+
data: {
|
|
40
|
+
card_number: ['卡号', 'String', '必填'],
|
|
41
|
+
total_amount: [ '订单金额', 'Number', '必填'],
|
|
42
|
+
package_id: ['套餐ID', 'String', '必填'],
|
|
54
43
|
},
|
|
55
44
|
isConsole: true,
|
|
56
45
|
disabled: true,
|