jufubao-base 1.0.232-beta5 → 1.0.232-beta7
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/JfbBaseBalance/Api.js +18 -30
- package/src/components/JfbBaseBalance/Attr.js +292 -24
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +253 -32
- package/src/components/JfbBaseBalance/Mock.js +5 -9
- package/src/components/JfbBaseCodeOpenVip/Api.js +17 -39
- package/src/components/JfbBaseCodeOpenVip/Attr.js +19 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +52 -23
- package/src/components/JfbBaseConsumpCode/Api.js +94 -19
- package/src/components/JfbBaseConsumpCode/Attr.js +13 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +397 -93
- package/src/components/JfbBaseConsumpCode/Mock.js +18 -9
- package/src/components/JfbBaseOpenVip/Api.js +11 -40
- package/src/components/JfbBaseOpenVip/Attr.js +4 -4
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +68 -25
- package/src/components/JfbBaseOpenVip/Mock.js +16 -9
- package/src/components/JfbBaseOpenVip/XdVipList.vue +44 -6
- package/src/components/JfbBaseOpenVipDetail/Api.js +17 -39
- package/src/components/JfbBaseOpenVipDetail/Attr.js +16 -27
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +108 -23
- package/src/components/JfbBasePersonalData/Api.js +9 -41
- package/src/components/JfbBasePersonalData/Attr.js +1 -37
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +43 -21
- package/src/components/JfbBasePointsCard/Api.js +4 -44
- package/src/components/JfbBasePointsCard/Attr.js +8 -44
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +24 -107
- package/src/components/JfbBasePointsCard/Mock.js +1 -9
- package/src/components/JfbBasePointsDetail/Api.js +25 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +66 -20
- package/src/components/JfbBasePointsDetail/Mock.js +2 -9
- package/src/components/JfbBaseSavingDetail/Api.js +12 -29
- package/src/components/JfbBaseSavingDetail/Attr.js +44 -22
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +593 -29
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
- package/src/components/JfbBaseShare/Api.js +5 -43
- package/src/components/JfbBaseShare/JfbBaseShare.vue +13 -12
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -20
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +5 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -1
- package/src/components/JfbBaseWithDrawAgain/Api.js +13 -30
- package/src/components/JfbBaseWithDrawAgain/Attr.js +70 -26
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +255 -32
- package/src/components/JfbBaseWithDrawAgain/Mock.js +6 -9
- package/src/components/JfbBaseWithDrawRecord/Api.js +4 -43
- package/src/components/JfbBaseWithDrawRecord/Attr.js +56 -25
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +157 -35
- package/src/components/JfbBaseWithDrawRecord/Mock.js +3 -9
- package/src/components/JfbBaseWithdraw/Api.js +20 -30
- package/src/components/JfbBaseWithdraw/Attr.js +304 -24
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +166 -32
- package/src/components/JfbBaseWithdraw/Mock.js +2 -8
|
@@ -13,18 +13,29 @@
|
|
|
13
13
|
<view class="jfb-base-open-vip-detail__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-open-vip-detail__body">
|
|
16
|
+
<view class="jfb-base-open-vip-detail__body" :style="[bodyStyle]">
|
|
17
17
|
<view class="combo_section">
|
|
18
|
-
<view class="combo_section-title"
|
|
19
|
-
<xd-list-item label="套餐金额" paddingLR="40rpx">¥
|
|
20
|
-
<xd-list-item label="套餐期限" paddingLR="40rpx">
|
|
18
|
+
<view class="combo_section-title">套餐名称:{{ vipInfo.product_name }}</view>
|
|
19
|
+
<xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.sale_price, 100) }}</xd-list-item>
|
|
20
|
+
<xd-list-item label="套餐期限" paddingLR="40rpx">{{ vipInfo.life_cycle_label }}</xd-list-item>
|
|
21
21
|
</view>
|
|
22
22
|
|
|
23
23
|
<view class="combo_section">
|
|
24
|
-
<xd-list-item label="套餐金额" paddingLR="40rpx">¥
|
|
25
|
-
<xd-list-item label="平台优惠" paddingLR="40rpx">-¥
|
|
24
|
+
<xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.user_pay_amount, 100) }}</xd-list-item>
|
|
25
|
+
<xd-list-item label="平台优惠" paddingLR="40rpx">-¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.platform_discount_amount, 100) }}</xd-list-item>
|
|
26
|
+
</view>
|
|
27
|
+
|
|
28
|
+
<view class="fixed_bottom" :style="[fixed_bottom]">
|
|
29
|
+
<view class="pay_btn" @click="p_createVipOrder">
|
|
30
|
+
立即支付
|
|
31
|
+
<xd-unit style="margin-left: 16rpx;"
|
|
32
|
+
:price="vipInfo.sale_price"
|
|
33
|
+
:isOld="false"
|
|
34
|
+
colorNew="#FFFFFF"
|
|
35
|
+
></xd-unit>
|
|
36
|
+
</view>
|
|
37
|
+
<view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
|
|
26
38
|
</view>
|
|
27
|
-
|
|
28
39
|
</view>
|
|
29
40
|
</view>
|
|
30
41
|
</template>
|
|
@@ -32,6 +43,8 @@
|
|
|
32
43
|
<script>
|
|
33
44
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
34
45
|
import XdListItem from "@/components/CusListItem/CusListItem"
|
|
46
|
+
import XdUnit from "@/components/XdUnit/XdUnit.vue"
|
|
47
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
35
48
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
36
49
|
import JfbBaseOpenVipDetailMixin from "./JfbBaseOpenVipDetailMixin";
|
|
37
50
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -41,7 +54,9 @@
|
|
|
41
54
|
name: "JfbBaseOpenVipDetail",
|
|
42
55
|
components: {
|
|
43
56
|
XdFontIcon,
|
|
44
|
-
XdListItem
|
|
57
|
+
XdListItem,
|
|
58
|
+
XdButton,
|
|
59
|
+
XdUnit,
|
|
45
60
|
},
|
|
46
61
|
mixins: [
|
|
47
62
|
componentsMixins, extsMixins, JfbBaseOpenVipDetailMixin
|
|
@@ -49,9 +64,27 @@
|
|
|
49
64
|
data() {
|
|
50
65
|
return {
|
|
51
66
|
closeMask: true,
|
|
67
|
+
xnamespace: "",
|
|
68
|
+
notify_provider_id: "",
|
|
69
|
+
|
|
70
|
+
vip_card_id: "",
|
|
71
|
+
vipInfo: {},
|
|
52
72
|
//todo
|
|
73
|
+
payPath: "",
|
|
74
|
+
paySuccessPath: "",
|
|
53
75
|
}
|
|
54
76
|
},
|
|
77
|
+
computed: {
|
|
78
|
+
bodyStyle(){
|
|
79
|
+
return {
|
|
80
|
+
minHeight: this.layoutInfo.bodyMinHeightRpx + "rpx",
|
|
81
|
+
'--main-color': this.mainColor
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
fixed_bottom() {
|
|
85
|
+
return this.fixedStyle({paddingBottom: 36, zIndex: 111})
|
|
86
|
+
},
|
|
87
|
+
},
|
|
55
88
|
watch: {
|
|
56
89
|
container(value, oldValue) {
|
|
57
90
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
@@ -60,34 +93,58 @@
|
|
|
60
93
|
},
|
|
61
94
|
created() {
|
|
62
95
|
this.init(this.container);
|
|
63
|
-
|
|
96
|
+
this.notify_provider_id = this.projectAttr.notify_provider_id;
|
|
64
97
|
//todo
|
|
65
98
|
},
|
|
66
99
|
methods: {
|
|
67
100
|
onJfbLoad(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// vm: this,// data: {
|
|
72
|
-
|
|
73
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
74
|
-
|
|
75
|
-
// }
|
|
76
|
-
|
|
77
|
-
// }).then().catch()
|
|
101
|
+
this.setNameSpace(options);
|
|
102
|
+
this.vip_card_id = options.vip_card_id;
|
|
103
|
+
this.p_getVipConfirm();
|
|
78
104
|
},
|
|
79
105
|
/**
|
|
80
106
|
* @description 监听事件变化
|
|
81
107
|
* @param container {object} 业务组件对象自己
|
|
82
108
|
*/
|
|
83
109
|
init(container) {
|
|
110
|
+
this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
|
|
111
|
+
this.paySuccessPath = getContainerPropsValue(container, 'content.paySuccessPath', {value: ""}).value;
|
|
112
|
+
},
|
|
113
|
+
p_getVipConfirm(){
|
|
114
|
+
jfbRootExec("getVipConfirm", {
|
|
115
|
+
vm: this,
|
|
116
|
+
data: {
|
|
117
|
+
vip_card_id: this.vip_card_id,
|
|
118
|
+
xnamespace: this.xnamespace
|
|
119
|
+
}
|
|
120
|
+
}).then(res => {
|
|
121
|
+
this.vipInfo = res;
|
|
122
|
+
})
|
|
123
|
+
},
|
|
124
|
+
p_createVipOrder(){
|
|
125
|
+
jfbRootExec("createVipOrder", {
|
|
126
|
+
vm: this,
|
|
127
|
+
data: {
|
|
128
|
+
business_code: this.xnamespace,
|
|
129
|
+
product_id: this.vipInfo.product_id,
|
|
130
|
+
notify_provider_id: this.notify_provider_id,
|
|
131
|
+
need_pay_price: this.vipInfo.user_pay_amount
|
|
132
|
+
}
|
|
133
|
+
}).then(res => {
|
|
134
|
+
if(res.need_pay_price > 0){
|
|
135
|
+
this.$xdUniHelper.redirectTo({
|
|
136
|
+
url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
|
|
137
|
+
})
|
|
138
|
+
}else{
|
|
139
|
+
this.$xdUniHelper.redirectTo({
|
|
140
|
+
url: this.paySuccessPath + '?order_id=' + res.main_order_id
|
|
141
|
+
})
|
|
142
|
+
}
|
|
84
143
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
144
|
+
})
|
|
88
145
|
},
|
|
89
146
|
onJfbScroll(options) {
|
|
90
|
-
console.log('event.onJfbScroll', options)
|
|
147
|
+
// console.log('event.onJfbScroll', options)
|
|
91
148
|
},
|
|
92
149
|
onJfbReachBottom(options) {
|
|
93
150
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -135,6 +192,34 @@
|
|
|
135
192
|
color: #999999;
|
|
136
193
|
}
|
|
137
194
|
}
|
|
195
|
+
.fixed_bottom{
|
|
196
|
+
position: fixed;
|
|
197
|
+
bottom: 0;
|
|
198
|
+
left: 0;
|
|
199
|
+
width: 100%;
|
|
200
|
+
padding: 36rpx;
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
background-color: #FFFFFF;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
align-items: center;
|
|
206
|
+
.pay_btn{
|
|
207
|
+
width: 600rpx;
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
height: 80rpx;
|
|
212
|
+
background-color: var(--main-color);
|
|
213
|
+
color: #FFFFFF;
|
|
214
|
+
margin: 0 auto;
|
|
215
|
+
border-radius: 80rpx;
|
|
216
|
+
}
|
|
217
|
+
.plus_privacy{
|
|
218
|
+
font-size: 22rpx;
|
|
219
|
+
color: #999;
|
|
220
|
+
margin-top: 16rpx;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
138
223
|
}
|
|
139
224
|
}
|
|
140
225
|
</style>
|
|
@@ -6,53 +6,21 @@
|
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
mapFnName: 'getBasePersonInfo',
|
|
10
|
+
title: '获取用户信息',
|
|
11
|
+
path: '/passport/v1/user/get',
|
|
12
|
+
params: {},
|
|
13
13
|
isRule: false,
|
|
14
|
-
params: {
|
|
15
|
-
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
-
},
|
|
18
14
|
isConsole: true,
|
|
19
15
|
disabled: true,
|
|
20
16
|
},
|
|
21
17
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
mapFnName: 'setBasePersonInfo',
|
|
19
|
+
title: '获取用户信息',
|
|
20
|
+
path: '/passport/v1/user/update-user-info',
|
|
21
|
+
data: {},
|
|
26
22
|
isRule: false,
|
|
27
|
-
params: {
|
|
28
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
-
},
|
|
31
23
|
isConsole: true,
|
|
32
24
|
disabled: true,
|
|
33
|
-
}
|
|
34
|
-
{
|
|
35
|
-
//设置方法名字当别忘记加上【模块名字】:Personal
|
|
36
|
-
mapFnName: 'removePersonalFilmAddress',
|
|
37
|
-
title: '删除我的配送地址',
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
39
|
-
isRule: false,
|
|
40
|
-
params: {
|
|
41
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
-
},
|
|
43
|
-
isConsole: true,
|
|
44
|
-
disabled: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:Personal
|
|
48
|
-
mapFnName: 'addPersonalFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
-
},
|
|
55
|
-
isConsole: true,
|
|
56
|
-
disabled: true,
|
|
57
|
-
},
|
|
25
|
+
}
|
|
58
26
|
];
|
|
@@ -6,43 +6,7 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '背景颜色:',
|
|
12
|
-
ele: 'xd-color',
|
|
13
|
-
valueKey: 'bgColor',
|
|
14
|
-
value: data.bgColor || '',
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
groupKey:'content',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: '选中路径:',
|
|
20
|
-
groupKey:'advanced',
|
|
21
|
-
className: 'input100',
|
|
22
|
-
ele: 'xd-select-pages-path',
|
|
23
|
-
valueKey: 'select-pages-path',
|
|
24
|
-
value: data['select-pages-path'] || null,
|
|
25
|
-
setting: {
|
|
26
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
data.bgColor && {
|
|
30
|
-
label: '高度:',
|
|
31
|
-
ele: 'el-input',
|
|
32
|
-
groupKey:'style',
|
|
33
|
-
type: 'number',
|
|
34
|
-
valueKey: 'height',
|
|
35
|
-
value: data.height || 100,
|
|
36
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
37
|
-
className: 'input60',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: '', //label
|
|
41
|
-
groupKey:'advanced',
|
|
42
|
-
ele: 'slot', //package 名称
|
|
43
|
-
slot: 'is_reference',
|
|
44
|
-
},
|
|
45
|
-
].filter(i=>i)
|
|
9
|
+
return [].filter(i=>i)
|
|
46
10
|
},
|
|
47
11
|
advanced: [],
|
|
48
12
|
};
|
|
@@ -5,22 +5,24 @@
|
|
|
5
5
|
<view class="jfb-base-personal-data__edit-icon" @click="delEdit">删除</view>
|
|
6
6
|
</view>
|
|
7
7
|
<!-- #endif -->
|
|
8
|
-
<view class="jfb-base-personal-data__body">
|
|
8
|
+
<view class="jfb-base-personal-data__body" v-if="info">
|
|
9
9
|
<view class="jfb-base-personal-data__body-item">
|
|
10
10
|
<view class="jfb-base-personal-data__body-item-label">头像</view>
|
|
11
|
-
<image class="profile" :src="
|
|
11
|
+
<image class="profile" :src="info.head_url" ></image>
|
|
12
12
|
</view>
|
|
13
13
|
<view class="jfb-base-personal-data__body-item">
|
|
14
14
|
<view class="jfb-base-personal-data__body-item-label">账号</view>
|
|
15
|
-
<view class="jfb-base-personal-data__body-item-value">{{
|
|
15
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.phone_number}}</view>
|
|
16
16
|
</view>
|
|
17
17
|
<view class="jfb-base-personal-data__body-item">
|
|
18
18
|
<view class="jfb-base-personal-data__body-item-label">名称</view>
|
|
19
|
-
<input class="jfb-base-personal-data__body-item-value"
|
|
19
|
+
<input @blur="handleSetInfo" @confirm="handleSetInfo" class="jfb-base-personal-data__body-item-value"
|
|
20
|
+
v-model="info.nickname" type="text">
|
|
20
21
|
</view>
|
|
21
22
|
<view class="jfb-base-personal-data__body-item">
|
|
22
23
|
<view class="jfb-base-personal-data__body-item-label">性别</view>
|
|
23
|
-
<XdSelect padding="0" color="#999" class="select" :defaultValue="
|
|
24
|
+
<XdSelect @change="handleSetSex" padding="0" color="#999" class="select" :defaultValue="info.sex"
|
|
25
|
+
v-model="info.sex" :list="sexList">
|
|
24
26
|
<template>
|
|
25
27
|
<view class="jfb-base-personal-data__body-item-value">
|
|
26
28
|
<XdFontIcon class="icon" color="#999999" size="24" icon="iconxiangyou_xian"></XdFontIcon>
|
|
@@ -32,13 +34,13 @@
|
|
|
32
34
|
<view class="jfb-base-personal-data__body-item">
|
|
33
35
|
<view class="jfb-base-personal-data__body-item-label">生日</view>
|
|
34
36
|
<view style="display: flex;align-items: center" @click="showDate=true">
|
|
35
|
-
<view class="jfb-base-personal-data__body-item-value">{{
|
|
37
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.birthday_date}}</view>
|
|
36
38
|
<XdFontIcon class="icon" color="#999999" size="24" icon="iconxiangyou_xian"></XdFontIcon>
|
|
37
39
|
</view>
|
|
38
40
|
</view>
|
|
39
|
-
<XdDate ref="calendar" :selectType="false" :main-color="mainColor" :current-is-show-other-month="false"
|
|
40
|
-
:clear-date="true" :insert="false" :lunar="false" :selected-circle="false"
|
|
41
|
-
@confirm="confirmDate" @close="closeDate"></XdDate>
|
|
41
|
+
<XdDate ref="calendar" :selectType="false" :main-color="mainColor" :current-is-show-other-month="false"
|
|
42
|
+
:show.sync="showDate" :clear-date="true" :insert="false" :lunar="false" :selected-circle="false"
|
|
43
|
+
:date="info.birthday_date" @confirm="confirmDate" @close="closeDate"></XdDate>
|
|
42
44
|
</view>
|
|
43
45
|
</view>
|
|
44
46
|
</template>
|
|
@@ -64,26 +66,19 @@
|
|
|
64
66
|
],
|
|
65
67
|
data() {
|
|
66
68
|
return {
|
|
69
|
+
info: {},
|
|
67
70
|
single: '',
|
|
68
71
|
showDate: false,
|
|
69
|
-
birthday: '',
|
|
70
72
|
sexList: [
|
|
71
73
|
{
|
|
72
74
|
label: '男',
|
|
73
|
-
value: 1
|
|
75
|
+
value: '1'
|
|
74
76
|
},
|
|
75
77
|
{
|
|
76
78
|
label: '女',
|
|
77
|
-
value: 2
|
|
79
|
+
value: '2'
|
|
78
80
|
}
|
|
79
81
|
],
|
|
80
|
-
data: {
|
|
81
|
-
sex: 1,
|
|
82
|
-
profile: 'https://img.js.design/assets/smartFill/img316164da746310.jpg',
|
|
83
|
-
account: 5455645545,
|
|
84
|
-
name: '张三',
|
|
85
|
-
birthday: '2025-04-09'
|
|
86
|
-
}
|
|
87
82
|
}
|
|
88
83
|
},
|
|
89
84
|
watch: {
|
|
@@ -96,19 +91,46 @@
|
|
|
96
91
|
this.init(this.container);
|
|
97
92
|
},
|
|
98
93
|
methods: {
|
|
99
|
-
onJfbLoad(options) {
|
|
94
|
+
onJfbLoad(options) {
|
|
95
|
+
this.getInfo()
|
|
96
|
+
},
|
|
100
97
|
/**
|
|
101
98
|
* @description 监听事件变化
|
|
102
99
|
* @param container {object} 业务组件对象自己
|
|
103
100
|
*/
|
|
104
101
|
init(container) {
|
|
105
102
|
},
|
|
103
|
+
getInfo() {
|
|
104
|
+
jfbRootExec("getBasePersonInfo", {
|
|
105
|
+
vm: this,
|
|
106
|
+
data: {},
|
|
107
|
+
}).then(res => {
|
|
108
|
+
this.info = res
|
|
109
|
+
})
|
|
110
|
+
},
|
|
106
111
|
confirmDate(e) {
|
|
107
112
|
console.log(e, 'confirmDate');
|
|
108
|
-
this.
|
|
113
|
+
this.info.birthday_date = e.fulldate
|
|
114
|
+
this.handleSetInfo()
|
|
109
115
|
},
|
|
110
116
|
closeDate() {
|
|
111
117
|
|
|
118
|
+
},
|
|
119
|
+
handleSetSex(data) {
|
|
120
|
+
this.info.sex = data.item.value
|
|
121
|
+
this.handleSetInfo()
|
|
122
|
+
},
|
|
123
|
+
handleSetInfo() {
|
|
124
|
+
jfbRootExec("setBasePersonInfo", {
|
|
125
|
+
vm: this,
|
|
126
|
+
data: {
|
|
127
|
+
nickname: this.info.nickname,
|
|
128
|
+
sex: this.info.sex.value,
|
|
129
|
+
birthday_date: this.info.birthday_date
|
|
130
|
+
},
|
|
131
|
+
}).then(res => {
|
|
132
|
+
this.getInfo()
|
|
133
|
+
})
|
|
112
134
|
},
|
|
113
135
|
onJfbScroll(options) {
|
|
114
136
|
console.log('event.onJfbScroll', options)
|
|
@@ -7,51 +7,11 @@
|
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
9
|
//设置方法名字当别忘记加上【模块名字】:Points
|
|
10
|
-
mapFnName: '
|
|
11
|
-
title: '
|
|
12
|
-
path: '/
|
|
10
|
+
mapFnName: 'getPointsPropertyList',
|
|
11
|
+
title: '用户资产 - 列表',
|
|
12
|
+
path: '/pay/v1/property/list',
|
|
13
13
|
isRule: false,
|
|
14
|
-
params: {
|
|
15
|
-
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
-
},
|
|
18
|
-
isConsole: true,
|
|
19
|
-
disabled: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
23
|
-
mapFnName: 'updatePointsFilmPaiqiDate',
|
|
24
|
-
title: '更新排期',
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
26
|
-
isRule: false,
|
|
27
|
-
params: {
|
|
28
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
-
},
|
|
31
|
-
isConsole: true,
|
|
32
|
-
disabled: true,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
36
|
-
mapFnName: 'removePointsFilmAddress',
|
|
37
|
-
title: '删除我的配送地址',
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
39
|
-
isRule: false,
|
|
40
|
-
params: {
|
|
41
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
-
},
|
|
43
|
-
isConsole: true,
|
|
44
|
-
disabled: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
48
|
-
mapFnName: 'addPointsFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
-
},
|
|
14
|
+
params: {},
|
|
55
15
|
isConsole: true,
|
|
56
16
|
disabled: true,
|
|
57
17
|
},
|
|
@@ -21,42 +21,6 @@ export default {
|
|
|
21
21
|
{ label: '普通用户样式', value: 'N' },
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
{
|
|
25
|
-
label: '是否展示积分入口:',
|
|
26
|
-
labelInline: true,
|
|
27
|
-
ele: 'xd-radio',
|
|
28
|
-
valueKey: 'isPoints',
|
|
29
|
-
groupKey: 'content',
|
|
30
|
-
value: data['isPoints'] || 'Y',
|
|
31
|
-
list: [
|
|
32
|
-
{ "label": "展示", "value": 'Y' },
|
|
33
|
-
{ "label": "隐藏", "value": 'N' },
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: '是否展示余额入口:',
|
|
38
|
-
labelInline: true,
|
|
39
|
-
ele: 'xd-radio',
|
|
40
|
-
valueKey: 'isYue',
|
|
41
|
-
groupKey: 'content',
|
|
42
|
-
value: data['isYue'] || 'Y',
|
|
43
|
-
list: [
|
|
44
|
-
{ "label": "展示", "value": 'Y' },
|
|
45
|
-
{ "label": "隐藏", "value": 'N' },
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: '是否展示优惠券入口:',
|
|
50
|
-
labelInline: true,
|
|
51
|
-
ele: 'xd-radio',
|
|
52
|
-
valueKey: 'isConpon',
|
|
53
|
-
groupKey: 'content',
|
|
54
|
-
value: data['isConpon'] || 'Y',
|
|
55
|
-
list: [
|
|
56
|
-
{ "label": "展示", "value": 'Y' },
|
|
57
|
-
{ "label": "隐藏", "value": 'N' },
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
24
|
{
|
|
61
25
|
label: '外边距:',
|
|
62
26
|
ele: 'xd-margin-padding',
|
|
@@ -182,24 +146,24 @@ export default {
|
|
|
182
146
|
classNmae: 'input80',
|
|
183
147
|
},
|
|
184
148
|
{
|
|
185
|
-
label: '
|
|
149
|
+
label: '余额提现路径:',
|
|
186
150
|
ele: 'xd-select-pages-path',
|
|
187
|
-
valueKey: '
|
|
151
|
+
valueKey: 'withdrawPath',
|
|
188
152
|
groupKey:'advanced',
|
|
189
|
-
placeholder: '
|
|
190
|
-
value: data['
|
|
153
|
+
placeholder: '请选择余额提现路径',
|
|
154
|
+
value: data['withdrawPath'] || null,
|
|
191
155
|
setting: {
|
|
192
156
|
router: XdBus.getParentApi('getPagesTree'),
|
|
193
157
|
},
|
|
194
158
|
inline: false,
|
|
195
159
|
},
|
|
196
160
|
{
|
|
197
|
-
label: '
|
|
161
|
+
label: '积分详情路径:',
|
|
198
162
|
ele: 'xd-select-pages-path',
|
|
199
|
-
valueKey: '
|
|
163
|
+
valueKey: 'pointsPath',
|
|
200
164
|
groupKey:'advanced',
|
|
201
|
-
placeholder: '
|
|
202
|
-
value: data['
|
|
165
|
+
placeholder: '请选择积分详情路径',
|
|
166
|
+
value: data['coupointsPathponPath'] || null,
|
|
203
167
|
setting: {
|
|
204
168
|
router: XdBus.getParentApi('getPagesTree'),
|
|
205
169
|
},
|