jufubao-base 1.0.232-beta4 → 1.0.232-beta6
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 +250 -32
- package/src/components/JfbBaseCodeOpenVip/Api.js +17 -39
- package/src/components/JfbBaseCodeOpenVip/Attr.js +19 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +54 -25
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +2 -2
- package/src/components/JfbBaseOpenVip/Api.js +11 -40
- package/src/components/JfbBaseOpenVip/Attr.js +4 -4
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +69 -26
- 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 +110 -25
- package/src/components/JfbBasePersonalData/Api.js +9 -41
- package/src/components/JfbBasePersonalData/Attr.js +1 -37
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +119 -32
- package/src/components/JfbBasePointsCard/Api.js +4 -44
- package/src/components/JfbBasePointsCard/Attr.js +0 -48
- 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 +65 -20
- package/src/components/JfbBasePointsDetail/Mock.js +2 -8
- 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 +14 -13
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -20
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +5 -0
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +6 -2
- 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/JfbBaseWithDrawRecord/Api.js +4 -43
- package/src/components/JfbBaseWithDrawRecord/Attr.js +56 -25
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +151 -34
- package/src/components/JfbBaseWithdraw/Api.js +20 -30
- package/src/components/JfbBaseWithdraw/Attr.js +304 -24
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +166 -32
|
@@ -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
|
};
|
|
@@ -1,26 +1,54 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-personal-data"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
2
|
+
<view class="jfb-base-personal-data" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
7
3
|
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-personal-data__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
4
|
+
<view class="jfb-base-personal-data__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
13
5
|
<view class="jfb-base-personal-data__edit-icon" @click="delEdit">删除</view>
|
|
14
6
|
</view>
|
|
15
7
|
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-personal-data__body">
|
|
17
|
-
<view
|
|
8
|
+
<view class="jfb-base-personal-data__body" v-if="info">
|
|
9
|
+
<view class="jfb-base-personal-data__body-item">
|
|
10
|
+
<view class="jfb-base-personal-data__body-item-label">头像</view>
|
|
11
|
+
<image class="profile" :src="info.head_url" ></image>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="jfb-base-personal-data__body-item">
|
|
14
|
+
<view class="jfb-base-personal-data__body-item-label">账号</view>
|
|
15
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.phone_number}}</view>
|
|
16
|
+
</view>
|
|
17
|
+
<view class="jfb-base-personal-data__body-item">
|
|
18
|
+
<view class="jfb-base-personal-data__body-item-label">名称</view>
|
|
19
|
+
<input @blur="handleSetInfo" @confirm="handleSetInfo" class="jfb-base-personal-data__body-item-value"
|
|
20
|
+
v-model="info.nickname" type="text">
|
|
21
|
+
</view>
|
|
22
|
+
<view class="jfb-base-personal-data__body-item">
|
|
23
|
+
<view class="jfb-base-personal-data__body-item-label">性别</view>
|
|
24
|
+
<XdSelect @change="handleSetSex" padding="0" color="#999" class="select" :defaultValue="info.sex"
|
|
25
|
+
v-model="info.sex" :list="sexList">
|
|
26
|
+
<template>
|
|
27
|
+
<view class="jfb-base-personal-data__body-item-value">
|
|
28
|
+
<XdFontIcon class="icon" color="#999999" size="24" icon="iconxiangyou_xian"></XdFontIcon>
|
|
29
|
+
</view>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
</XdSelect>
|
|
33
|
+
</view>
|
|
34
|
+
<view class="jfb-base-personal-data__body-item">
|
|
35
|
+
<view class="jfb-base-personal-data__body-item-label">生日</view>
|
|
36
|
+
<view style="display: flex;align-items: center" @click="showDate=true">
|
|
37
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.birthday_date}}</view>
|
|
38
|
+
<XdFontIcon class="icon" color="#999999" size="24" icon="iconxiangyou_xian"></XdFontIcon>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
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>
|
|
18
44
|
</view>
|
|
19
45
|
</view>
|
|
20
46
|
</template>
|
|
21
47
|
|
|
22
48
|
<script>
|
|
23
49
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
50
|
+
import XdDate from '@/components/XdDate/XdDate.vue'
|
|
51
|
+
import XdSelect from "@/components/XdSelect/XdSelect";
|
|
24
52
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
53
|
import JfbBasePersonalDataMixin from "./JfbBasePersonalDataMixin";
|
|
26
54
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -29,15 +57,28 @@
|
|
|
29
57
|
export default {
|
|
30
58
|
name: "JfbBasePersonalData",
|
|
31
59
|
components: {
|
|
32
|
-
XdFontIcon
|
|
60
|
+
XdFontIcon,
|
|
61
|
+
XdSelect,
|
|
62
|
+
XdDate
|
|
33
63
|
},
|
|
34
64
|
mixins: [
|
|
35
65
|
componentsMixins, extsMixins, JfbBasePersonalDataMixin
|
|
36
66
|
],
|
|
37
67
|
data() {
|
|
38
68
|
return {
|
|
39
|
-
|
|
40
|
-
|
|
69
|
+
info: {},
|
|
70
|
+
single: '',
|
|
71
|
+
showDate: false,
|
|
72
|
+
sexList: [
|
|
73
|
+
{
|
|
74
|
+
label: '男',
|
|
75
|
+
value: '1'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: '女',
|
|
79
|
+
value: '2'
|
|
80
|
+
}
|
|
81
|
+
],
|
|
41
82
|
}
|
|
42
83
|
},
|
|
43
84
|
watch: {
|
|
@@ -48,31 +89,48 @@
|
|
|
48
89
|
},
|
|
49
90
|
created() {
|
|
50
91
|
this.init(this.container);
|
|
51
|
-
|
|
52
|
-
//todo
|
|
53
92
|
},
|
|
54
93
|
methods: {
|
|
55
94
|
onJfbLoad(options) {
|
|
56
|
-
|
|
57
|
-
// jfbRootExec('baiduUserLogin', {
|
|
58
|
-
|
|
59
|
-
// vm: this,// data: {
|
|
60
|
-
|
|
61
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
|
|
65
|
-
// }).then().catch()
|
|
95
|
+
this.getInfo()
|
|
66
96
|
},
|
|
67
97
|
/**
|
|
68
98
|
* @description 监听事件变化
|
|
69
99
|
* @param container {object} 业务组件对象自己
|
|
70
100
|
*/
|
|
71
101
|
init(container) {
|
|
102
|
+
},
|
|
103
|
+
getInfo() {
|
|
104
|
+
jfbRootExec("getBasePersonInfo", {
|
|
105
|
+
vm: this,
|
|
106
|
+
data: {},
|
|
107
|
+
}).then(res => {
|
|
108
|
+
this.info = res
|
|
109
|
+
})
|
|
110
|
+
},
|
|
111
|
+
confirmDate(e) {
|
|
112
|
+
console.log(e, 'confirmDate');
|
|
113
|
+
this.info.birthday_date = e.fulldate
|
|
114
|
+
this.handleSetInfo()
|
|
115
|
+
},
|
|
116
|
+
closeDate() {
|
|
72
117
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
+
})
|
|
76
134
|
},
|
|
77
135
|
onJfbScroll(options) {
|
|
78
136
|
console.log('event.onJfbScroll', options)
|
|
@@ -104,8 +162,37 @@
|
|
|
104
162
|
@import "./JfbBasePersonalDataLess.less";
|
|
105
163
|
|
|
106
164
|
.jfb-base-personal-data {
|
|
107
|
-
&__body{
|
|
165
|
+
&__body {
|
|
166
|
+
.icon {
|
|
167
|
+
margin-left: 8rpx;
|
|
168
|
+
}
|
|
108
169
|
|
|
170
|
+
&-item {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
border-radius: 20rpx;
|
|
175
|
+
background: #FFFFFF;
|
|
176
|
+
padding: 32rpx 46rpx;
|
|
177
|
+
margin: 20rpx;
|
|
178
|
+
|
|
179
|
+
&-label {
|
|
180
|
+
color: #333;
|
|
181
|
+
font-size: 28rpx;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&-value {
|
|
185
|
+
color: #999999;
|
|
186
|
+
font-size: 28rpx;
|
|
187
|
+
text-align: right;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.profile {
|
|
191
|
+
width: 80rpx;
|
|
192
|
+
height: 80rpx;
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
109
196
|
}
|
|
110
197
|
}
|
|
111
|
-
</style>
|
|
198
|
+
</style>
|
|
@@ -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',
|
|
@@ -181,18 +145,6 @@ export default {
|
|
|
181
145
|
labelInline: true,
|
|
182
146
|
classNmae: 'input80',
|
|
183
147
|
},
|
|
184
|
-
{
|
|
185
|
-
label: '积分兑换地址路径:',
|
|
186
|
-
ele: 'xd-select-pages-path',
|
|
187
|
-
valueKey: 'pointsPath',
|
|
188
|
-
groupKey:'advanced',
|
|
189
|
-
placeholder: '请选择积分兑换地址路径',
|
|
190
|
-
value: data['addressUrl'] || null,
|
|
191
|
-
setting: {
|
|
192
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
193
|
-
},
|
|
194
|
-
inline: false,
|
|
195
|
-
},
|
|
196
148
|
{
|
|
197
149
|
label: '余额提现路径:',
|
|
198
150
|
ele: 'xd-select-pages-path',
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
<!-- #endif -->
|
|
8
8
|
<view class="jfb-base-points-card__body">
|
|
9
9
|
<view :style="[bodyStyleComp]" class="jfb-base-points-card__body-list">
|
|
10
|
-
<view :style="[itemStyleComp]" @click="handleTo(item)" v-for="(item,index) in typeList" :key="index"
|
|
10
|
+
<view :style="[itemStyleComp]" @click="handleTo(item)" v-for="(item,index) in typeList" :key="index"
|
|
11
|
+
class="jfb-base-points-card__body-list-item">
|
|
11
12
|
<view class="jfb-base-points-card__body-list-item-label">
|
|
12
|
-
{{item.
|
|
13
|
-
<view :style="{background:is_vip==='N'?mainColor:'',color:is_vip==='N'?'#fff':''}" class="jfb-base-points-card__body-list-item-operate" v-if="item.operate">{{item.operate}}</view>
|
|
13
|
+
{{item.name}}
|
|
14
14
|
</view>
|
|
15
|
-
<view class="jfb-base-points-card__body-list-item-value">{{item.
|
|
15
|
+
<view v-if="item.method!=='coupon'" class="jfb-base-points-card__body-list-item-value">{{getAmout(item.amount)}}</view>
|
|
16
|
+
<view v-else class="jfb-base-points-card__body-list-item-value">{{item.coupon_count}}</view>
|
|
16
17
|
</view>
|
|
17
18
|
</view>
|
|
18
19
|
</view>
|
|
@@ -52,28 +53,7 @@
|
|
|
52
53
|
},
|
|
53
54
|
data() {
|
|
54
55
|
return {
|
|
55
|
-
|
|
56
|
-
isYue: '',
|
|
57
|
-
isConpon: '',
|
|
58
|
-
typeList: [
|
|
59
|
-
{
|
|
60
|
-
label: "积分",
|
|
61
|
-
key: "points",
|
|
62
|
-
value: 0
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: "余额",
|
|
66
|
-
key: "yue",
|
|
67
|
-
operate: '提现',
|
|
68
|
-
value: 0
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: "优惠券",
|
|
72
|
-
key: "conpon",
|
|
73
|
-
value: 0
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
is_vip: 'N',
|
|
56
|
+
typeList: [],
|
|
77
57
|
plusBodyBgColor: '',
|
|
78
58
|
plusItemBgColor: '',
|
|
79
59
|
normalBodyBgColor: '',
|
|
@@ -94,62 +74,6 @@
|
|
|
94
74
|
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
95
75
|
if (this.$configProject['isPreview']) this.init(value)
|
|
96
76
|
},
|
|
97
|
-
isPoints(n, o) {
|
|
98
|
-
if (n === "Y") {
|
|
99
|
-
let flag = this.typeList.find((item) => item.key === "points");
|
|
100
|
-
if (!flag) {
|
|
101
|
-
this.typeList.splice(0, 0, {
|
|
102
|
-
label: "积分",
|
|
103
|
-
key: "points",
|
|
104
|
-
operate: '兑换'
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
let flagIndex = this.typeList.findIndex(
|
|
109
|
-
(item) => item.key === "points"
|
|
110
|
-
);
|
|
111
|
-
if (flagIndex !== -1) {
|
|
112
|
-
this.typeList.splice(flagIndex, 1);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
isYue(n, o) {
|
|
117
|
-
if (n === "Y") {
|
|
118
|
-
let flag = this.typeList.find((item) => item.key === "yue");
|
|
119
|
-
if (!flag) {
|
|
120
|
-
this.typeList.splice(1, 0, {
|
|
121
|
-
label: "余额",
|
|
122
|
-
key: "yue",
|
|
123
|
-
operate: '提现'
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
} else {
|
|
127
|
-
let flagIndex = this.typeList.findIndex(
|
|
128
|
-
(item) => item.key === "yue"
|
|
129
|
-
);
|
|
130
|
-
if (flagIndex !== -1) {
|
|
131
|
-
this.typeList.splice(flagIndex, 1);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
isConpon(n, o) {
|
|
136
|
-
if (n === "Y") {
|
|
137
|
-
let flag = this.typeList.find((item) => item.key === "conpon");
|
|
138
|
-
if (!flag) {
|
|
139
|
-
this.typeList.splice(2, 0, {
|
|
140
|
-
label: "优惠券",
|
|
141
|
-
key: "conpon",
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
let flagIndex = this.typeList.findIndex(
|
|
146
|
-
(item) => item.key === "conpon"
|
|
147
|
-
);
|
|
148
|
-
if (flagIndex !== -1) {
|
|
149
|
-
this.typeList.splice(flagIndex, 1);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
77
|
is_plus_preview() {
|
|
154
78
|
if (this.$configProject['isPreview']) {
|
|
155
79
|
this.is_vip = this.is_plus_preview
|
|
@@ -157,26 +81,19 @@
|
|
|
157
81
|
}
|
|
158
82
|
},
|
|
159
83
|
created() {
|
|
84
|
+
console.log(this.getTokenForKey('user_level'), 'user_leveluser_level');
|
|
85
|
+
this.is_vip = this.getTokenForKey('user_level') && this.getTokenForKey('user_level') === 'VIP' ? 'Y' : 'N'
|
|
160
86
|
this.init(this.container);
|
|
161
|
-
|
|
162
|
-
//todo
|
|
163
87
|
},
|
|
164
88
|
methods: {
|
|
165
89
|
onJfbLoad(options) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
item.value = 4545
|
|
174
|
-
}
|
|
175
|
-
if (item.key === 'conpon') {
|
|
176
|
-
// item.value = 'coupon_count'
|
|
177
|
-
item.value = 3
|
|
178
|
-
}
|
|
179
|
-
return item
|
|
90
|
+
jfbRootExec("getPointsPropertyList", {
|
|
91
|
+
vm: this,
|
|
92
|
+
data: {},
|
|
93
|
+
}).then(res => {
|
|
94
|
+
this.typeList = res.list
|
|
95
|
+
}).catch(err => {
|
|
96
|
+
console.log(err, "err");
|
|
180
97
|
})
|
|
181
98
|
},
|
|
182
99
|
/**
|
|
@@ -184,9 +101,6 @@
|
|
|
184
101
|
* @param container {object} 业务组件对象自己
|
|
185
102
|
*/
|
|
186
103
|
init(container) {
|
|
187
|
-
this.isPoints = getContainerPropsValue(container, "content.isPoints", "Y");
|
|
188
|
-
this.isYue = getContainerPropsValue(container, "content.isYue", "Y");
|
|
189
|
-
this.isConpon = getContainerPropsValue(container, "content.isConpon", "Y");
|
|
190
104
|
this.plusBodyBgColor = getContainerPropsValue(container, 'content.plusBodyBgColor', 'linear-gradient(180deg, #FFFCF8 0%, #FFF3E2 100%)');
|
|
191
105
|
this.plusItemBgColor = getContainerPropsValue(container, 'content.plusItemBgColor', 'linear-gradient(136.55deg, #FFECD1 0%, #F6D6AB 100%)');
|
|
192
106
|
this.normalBodyBgColor = getContainerPropsValue(container, 'content.normalBodyBgColor', '#fff');
|
|
@@ -200,15 +114,18 @@
|
|
|
200
114
|
this.withdrawPath = getContainerPropsValue(container, 'content.withdrawPath', { value: "" }).value;
|
|
201
115
|
this.couponPath = getContainerPropsValue(container, 'content.couponPath', { value: "" }).value;
|
|
202
116
|
},
|
|
117
|
+
getAmout(amount) {
|
|
118
|
+
return this.$xdUniHelper.divisionFloatNumber(amount, 100)
|
|
119
|
+
},
|
|
203
120
|
handleTo(item) {
|
|
204
|
-
if (item.
|
|
205
|
-
this.$
|
|
121
|
+
if (item.method === 'score') {
|
|
122
|
+
this.$xdUniHelper.navigateTo({ url: `${this.pointsPath}?method=score` })
|
|
206
123
|
}
|
|
207
|
-
if (item.
|
|
208
|
-
this.$
|
|
124
|
+
if (item.method === 'wallet') {
|
|
125
|
+
this.$xdUniHelper.navigateTo({ url: `${this.withdrawPath}?method=wallet` })
|
|
209
126
|
}
|
|
210
|
-
if (item.
|
|
211
|
-
this.$
|
|
127
|
+
if (item.method === 'coupon') {
|
|
128
|
+
this.$xdUniHelper.navigateTo({ url: this.couponPath })
|
|
212
129
|
}
|
|
213
130
|
},
|
|
214
131
|
onJfbScroll(options) {
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
getPointsByIdFilmSquate:{},
|
|
6
|
-
|
|
7
|
-
updatePointsFilmPaiqiDate:{},
|
|
8
|
-
|
|
9
|
-
removePointsFilmAddress:{},
|
|
10
|
-
|
|
11
|
-
addPointsFilmcart:{},
|
|
12
|
-
|
|
4
|
+
getPointsPropertyList:{"list":[{"method":"wallet","coupon_count":0,"amount":20000,"name":"余额"},{"method":"score","coupon_count":0,"amount":10000,"name":"积分"},{"method":"coupon","coupon_count":0,"amount":0,"name":"优惠券"}],"request_id":"2b0ac6cb23abdbbb"},
|
|
13
5
|
}
|
|
@@ -20,4 +20,29 @@ module.exports = [
|
|
|
20
20
|
isConsole: true,
|
|
21
21
|
disabled: true,
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
//设置方法名字当别忘记加上【模块名字】:Points
|
|
25
|
+
mapFnName: 'getPointsWalletDetail',
|
|
26
|
+
title: '用户资产 - 获取钱包(或积分)余额详情',
|
|
27
|
+
path: '/pay/v1/property/wallet-detail',
|
|
28
|
+
isRule: false,
|
|
29
|
+
params: {
|
|
30
|
+
method: ['wallet 余额; score 积分;', 'Number', '非必选'],
|
|
31
|
+
},
|
|
32
|
+
isConsole: true,
|
|
33
|
+
disabled: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
//设置方法名字当别忘记加上【模块名字】:Points
|
|
37
|
+
mapFnName: 'getPointsWalletTradeList',
|
|
38
|
+
title: '用户资产 - 获取钱包(或积分)交易记录列表',
|
|
39
|
+
path: '/pay/v1/property/wallet-trade/list',
|
|
40
|
+
isRule: false,
|
|
41
|
+
params: {
|
|
42
|
+
wallet_type: ['钱包类型', 'Number', '必选'],
|
|
43
|
+
page_size: ['每页条数', 'Number', '必选'],
|
|
44
|
+
},
|
|
45
|
+
isConsole: true,
|
|
46
|
+
disabled: true,
|
|
47
|
+
},
|
|
23
48
|
];
|