jufubao-base 1.0.239-beta1 → 1.0.239
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/JfbBaseFastLink/Attr.js +1 -12
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
- package/src/components/JfbBaseHeader/Attr.js +0 -82
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
- package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +13 -15
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +8 -27
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -179
- package/src/components/JfbBasePay/Attr.js +0 -52
- package/src/components/JfbBasePay/JfbBasePay.vue +6 -30
- package/src/components/JfbBasePay/Mock.js +9 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +2 -1
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +19 -11
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -12
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -12
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -12
- package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -2
- package/src/components/JfbBaseUserInfo/Attr.js +11 -175
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +115 -337
- package/src/components/JfbBaseUserOrder/Attr.js +0 -16
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +2 -11
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +0 -10
- package/src/components/JfbBaseBalance/Api.js +0 -46
- package/src/components/JfbBaseBalance/Attr.js +0 -316
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -334
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
- package/src/components/JfbBaseBalance/Mock.js +0 -9
- package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
- package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
- package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
- package/src/components/JfbBaseConsumpCode/Api.js +0 -133
- package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -1044
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
- package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
- package/src/components/JfbBaseNoticeGroup/Api.js +0 -23
- package/src/components/JfbBaseNoticeGroup/Attr.js +0 -237
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +0 -174
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +0 -79
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +0 -30
- package/src/components/JfbBaseNoticeGroup/Mock.js +0 -13
- package/src/components/JfbBaseOpenVip/Api.js +0 -39
- package/src/components/JfbBaseOpenVip/Attr.js +0 -331
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -457
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
- package/src/components/JfbBaseOpenVip/Mock.js +0 -7
- package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -131
- package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
- package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
- package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
- package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
- package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -234
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
- package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -15
- package/src/components/JfbBasePersonalData/Api.js +0 -26
- package/src/components/JfbBasePersonalData/Attr.js +0 -13
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -200
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
- package/src/components/JfbBasePersonalData/Mock.js +0 -13
- package/src/components/JfbBasePointsCard/Api.js +0 -18
- package/src/components/JfbBasePointsCard/Attr.js +0 -187
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -212
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
- package/src/components/JfbBasePointsCard/Mock.js +0 -5
- package/src/components/JfbBasePointsDetail/Api.js +0 -48
- package/src/components/JfbBasePointsDetail/Attr.js +0 -305
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
- package/src/components/JfbBasePointsDetail/Mock.js +0 -6
- package/src/components/JfbBasePosterGroup/Api.js +0 -22
- package/src/components/JfbBasePosterGroup/Attr.js +0 -156
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -268
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
- package/src/components/JfbBasePosterGroup/Mock.js +0 -13
- package/src/components/JfbBaseSavingDetail/Api.js +0 -41
- package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -710
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
- package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
- package/src/components/JfbBaseShare/Api.js +0 -20
- package/src/components/JfbBaseShare/Attr.js +0 -14
- package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -273
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
- package/src/components/JfbBaseShare/Mock.js +0 -16
- package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
- package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -354
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
- package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
- package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
- package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
- package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
- package/src/components/JfbBaseWithdraw/Api.js +0 -48
- package/src/components/JfbBaseWithdraw/Attr.js +0 -328
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -272
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
- package/src/components/JfbBaseWithdraw/Mock.js +0 -7
|
@@ -1,79 +0,0 @@
|
|
|
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-open-vip-detail {
|
|
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-open-vip-detail {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
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-open-vip-detail'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
getVipConfirm: {
|
|
5
|
-
vip_card_id: 1,
|
|
6
|
-
product_id: 60038515,
|
|
7
|
-
product_name: "年卡会员",
|
|
8
|
-
sale_price: 20000,
|
|
9
|
-
platform_discount_amount: 120,
|
|
10
|
-
user_pay_amount: 20000,
|
|
11
|
-
life_cycle_label: "1年",
|
|
12
|
-
request_id: "cc61b6e3a8e0931f"
|
|
13
|
-
},
|
|
14
|
-
createVipOrder: {}
|
|
15
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Personal
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
mapFnName: 'getBasePersonInfo',
|
|
10
|
-
title: '获取用户信息',
|
|
11
|
-
path: '/passport/v1/user/get',
|
|
12
|
-
params: {},
|
|
13
|
-
isRule: false,
|
|
14
|
-
isConsole: true,
|
|
15
|
-
disabled: true,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
mapFnName: 'setBasePersonInfo',
|
|
19
|
-
title: '获取用户信息',
|
|
20
|
-
path: '/passport/v1/user/update-user-info',
|
|
21
|
-
data: {},
|
|
22
|
-
isRule: false,
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
}
|
|
26
|
-
];
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="jfb-base-personal-data" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
3
|
-
<!--#ifdef H5-->
|
|
4
|
-
<view class="jfb-base-personal-data__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
5
|
-
<view class="jfb-base-personal-data__edit-icon" @click="delEdit">删除</view>
|
|
6
|
-
</view>
|
|
7
|
-
<!-- #endif -->
|
|
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>
|
|
44
|
-
</view>
|
|
45
|
-
</view>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
50
|
-
import XdDate from '@/components/XdDate/XdDate.vue'
|
|
51
|
-
import XdSelect from "@/components/XdSelect/XdSelect";
|
|
52
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
53
|
-
import JfbBasePersonalDataMixin from "./JfbBasePersonalDataMixin";
|
|
54
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
55
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
56
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
57
|
-
export default {
|
|
58
|
-
name: "JfbBasePersonalData",
|
|
59
|
-
components: {
|
|
60
|
-
XdFontIcon,
|
|
61
|
-
XdSelect,
|
|
62
|
-
XdDate
|
|
63
|
-
},
|
|
64
|
-
mixins: [
|
|
65
|
-
componentsMixins, extsMixins, JfbBasePersonalDataMixin
|
|
66
|
-
],
|
|
67
|
-
data() {
|
|
68
|
-
return {
|
|
69
|
-
info: {},
|
|
70
|
-
single: '',
|
|
71
|
-
showDate: false,
|
|
72
|
-
sexList: [
|
|
73
|
-
{
|
|
74
|
-
label: '男',
|
|
75
|
-
value: '1'
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: '女',
|
|
79
|
-
value: '2'
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
watch: {
|
|
85
|
-
container(value, oldValue) {
|
|
86
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
87
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
created() {
|
|
91
|
-
this.init(this.container);
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
onJfbLoad(options) {
|
|
95
|
-
this.getInfo()
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* @description 监听事件变化
|
|
99
|
-
* @param container {object} 业务组件对象自己
|
|
100
|
-
*/
|
|
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() {
|
|
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,
|
|
129
|
-
birthday_date: this.info.birthday_date
|
|
130
|
-
},
|
|
131
|
-
}).then(res => {
|
|
132
|
-
this.getInfo()
|
|
133
|
-
})
|
|
134
|
-
},
|
|
135
|
-
onJfbScroll(options) {
|
|
136
|
-
console.log('event.onJfbScroll', options)
|
|
137
|
-
},
|
|
138
|
-
onJfbReachBottom(options) {
|
|
139
|
-
console.log('event.onJfbReachBottom', options)
|
|
140
|
-
},
|
|
141
|
-
onJfbShow(options) {
|
|
142
|
-
console.log('event.onJfbShow', options)
|
|
143
|
-
},
|
|
144
|
-
onJfbHide(options) {
|
|
145
|
-
console.log('event.onJfbHide', options)
|
|
146
|
-
},
|
|
147
|
-
onJfbBack(options) {
|
|
148
|
-
console.log('event.onJfbBack', options)
|
|
149
|
-
},
|
|
150
|
-
onJfbUpdate(...data) {
|
|
151
|
-
console.log('event.onJfbUpdate', data)
|
|
152
|
-
},
|
|
153
|
-
onJfbCustomEvent(options) {
|
|
154
|
-
console.log('event.onJfbReachBottom', options)
|
|
155
|
-
},
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
</script>
|
|
160
|
-
|
|
161
|
-
<style scoped lang="less">
|
|
162
|
-
@import "./JfbBasePersonalDataLess.less";
|
|
163
|
-
|
|
164
|
-
.jfb-base-personal-data {
|
|
165
|
-
&__body {
|
|
166
|
-
.icon {
|
|
167
|
-
margin-left: 8rpx;
|
|
168
|
-
}
|
|
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
|
-
display: flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.profile {
|
|
193
|
-
width: 80rpx;
|
|
194
|
-
height: 80rpx;
|
|
195
|
-
border-radius: 50%;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
</style>
|
|
@@ -1,79 +0,0 @@
|
|
|
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-personal-data {
|
|
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-personal-data {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
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-personal-data'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Points
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:Points
|
|
10
|
-
mapFnName: 'getPointsPropertyList',
|
|
11
|
-
title: '用户资产 - 列表',
|
|
12
|
-
path: '/pay/v1/property/list',
|
|
13
|
-
isRule: false,
|
|
14
|
-
params: {},
|
|
15
|
-
isConsole: true,
|
|
16
|
-
disabled: true,
|
|
17
|
-
},
|
|
18
|
-
];
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
style: [],
|
|
8
|
-
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '预览plus样式:',
|
|
12
|
-
ele: 'xd-radio',
|
|
13
|
-
valueKey: 'is_plus_preview',
|
|
14
|
-
value: data['is_plus_preview'] || 'Y',
|
|
15
|
-
groupKey: 'content',
|
|
16
|
-
placeholder: '请选择预览plus样式',
|
|
17
|
-
multiple: false,
|
|
18
|
-
className: 'input80',
|
|
19
|
-
list: [
|
|
20
|
-
{ label: 'plus用户样式', value: 'Y' },
|
|
21
|
-
{ label: '普通用户样式', value: 'N' },
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: '外边距:',
|
|
26
|
-
ele: 'xd-margin-padding',
|
|
27
|
-
valueKey: 'bodyMargin',
|
|
28
|
-
groupKey: 'style',
|
|
29
|
-
value: data['bodyMargin'] || null,
|
|
30
|
-
setting: {
|
|
31
|
-
type: 'margin',
|
|
32
|
-
},
|
|
33
|
-
placeholder: '请设置外边距',
|
|
34
|
-
inline: false,
|
|
35
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: '外填充:',
|
|
39
|
-
ele: 'xd-margin-padding',
|
|
40
|
-
valueKey: 'bodyPadding',
|
|
41
|
-
groupKey: 'style',
|
|
42
|
-
value: data['bodyPadding'] || null,
|
|
43
|
-
setting: {
|
|
44
|
-
type: 'padding',
|
|
45
|
-
},
|
|
46
|
-
placeholder: '请设置外填充',
|
|
47
|
-
inline: false,
|
|
48
|
-
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
ele: 'title',
|
|
52
|
-
label: '主体设置',
|
|
53
|
-
size: 'small',
|
|
54
|
-
groupKey: 'style',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: '主体圆角设置:',
|
|
58
|
-
ele: 'xd-site-select-list',
|
|
59
|
-
valueKey: 'radius',
|
|
60
|
-
value: data['radius'] || '20',
|
|
61
|
-
labelInline: true,
|
|
62
|
-
groupKey: 'style',
|
|
63
|
-
placeholder: '请选择圆角设置',
|
|
64
|
-
multiple: false,
|
|
65
|
-
className: 'input60',
|
|
66
|
-
handleCustom({ action, data }) {
|
|
67
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
68
|
-
setting_id: 'edtix_style_radius',
|
|
69
|
-
key: Date.now()
|
|
70
|
-
})
|
|
71
|
-
.then(res => {
|
|
72
|
-
data.cb(res.list)
|
|
73
|
-
})
|
|
74
|
-
.catch(error => {
|
|
75
|
-
console.error(error);
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
label: 'plus用户主体背景颜色:',
|
|
81
|
-
ele: 'el-input',
|
|
82
|
-
valueKey: 'plusBodyBgColor',
|
|
83
|
-
groupKey: 'style',
|
|
84
|
-
value: data['plusBodyBgColor'] || null,
|
|
85
|
-
placeholder: '请选择背景颜色',
|
|
86
|
-
labelInline: true,
|
|
87
|
-
classNmae: 'input80',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
label: '普通用户主体背景颜色:',
|
|
91
|
-
ele: 'el-input',
|
|
92
|
-
valueKey: 'normalBodyBgColor',
|
|
93
|
-
groupKey: 'style',
|
|
94
|
-
value: data['normalBodyBgColor'] || null,
|
|
95
|
-
placeholder: '请选择背景颜色',
|
|
96
|
-
labelInline: true,
|
|
97
|
-
classNmae: 'input80',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
ele: 'title',
|
|
101
|
-
label: '入口设置',
|
|
102
|
-
size: 'small',
|
|
103
|
-
groupKey: 'style',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
label: '入口圆角设置:',
|
|
107
|
-
ele: 'xd-site-select-list',
|
|
108
|
-
valueKey: 'itemRadius',
|
|
109
|
-
value: data['itemRadius'] || '16',
|
|
110
|
-
labelInline: true,
|
|
111
|
-
groupKey: 'style',
|
|
112
|
-
placeholder: '请选择圆角设置',
|
|
113
|
-
multiple: false,
|
|
114
|
-
className: 'input60',
|
|
115
|
-
handleCustom({ action, data }) {
|
|
116
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
117
|
-
setting_id: 'edtix_style_radius',
|
|
118
|
-
key: Date.now()
|
|
119
|
-
})
|
|
120
|
-
.then(res => {
|
|
121
|
-
data.cb(res.list)
|
|
122
|
-
})
|
|
123
|
-
.catch(error => {
|
|
124
|
-
console.error(error);
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
label: 'plus用户入口背景颜色:',
|
|
130
|
-
ele: 'el-input',
|
|
131
|
-
valueKey: 'plusItemBgColor',
|
|
132
|
-
groupKey: 'style',
|
|
133
|
-
value: data['plusItemBgColor'] || null,
|
|
134
|
-
placeholder: '请选择背景颜色',
|
|
135
|
-
labelInline: true,
|
|
136
|
-
classNmae: 'input80',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: '普通用户入口背景颜色:',
|
|
140
|
-
ele: 'el-input',
|
|
141
|
-
valueKey: 'normalItemBgColor',
|
|
142
|
-
groupKey: 'style',
|
|
143
|
-
value: data['normalItemBgColor'] || null,
|
|
144
|
-
placeholder: '请选择背景颜色',
|
|
145
|
-
labelInline: true,
|
|
146
|
-
classNmae: 'input80',
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
label: '余额提现路径:',
|
|
150
|
-
ele: 'xd-select-pages-path',
|
|
151
|
-
valueKey: 'withdrawPath',
|
|
152
|
-
groupKey:'advanced',
|
|
153
|
-
placeholder: '请选择余额提现路径',
|
|
154
|
-
value: data['withdrawPath'] || null,
|
|
155
|
-
setting: {
|
|
156
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
157
|
-
},
|
|
158
|
-
inline: false,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
label: '积分详情路径:',
|
|
162
|
-
ele: 'xd-select-pages-path',
|
|
163
|
-
valueKey: 'pointsPath',
|
|
164
|
-
groupKey:'advanced',
|
|
165
|
-
placeholder: '请选择积分详情路径',
|
|
166
|
-
value: data['pointsPath'] || null,
|
|
167
|
-
setting: {
|
|
168
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
169
|
-
},
|
|
170
|
-
inline: false,
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
label: '优惠券路径:',
|
|
174
|
-
ele: 'xd-select-pages-path',
|
|
175
|
-
valueKey: 'couponPath',
|
|
176
|
-
groupKey:'advanced',
|
|
177
|
-
placeholder: '请选择余额提现路径',
|
|
178
|
-
value: data['couponPath'] || null,
|
|
179
|
-
setting: {
|
|
180
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
181
|
-
},
|
|
182
|
-
inline: false,
|
|
183
|
-
},
|
|
184
|
-
].filter(i => i)
|
|
185
|
-
},
|
|
186
|
-
advanced: [],
|
|
187
|
-
};
|