jufubao-base 1.0.243-beta2 → 1.0.243-beta202
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/JfbBaseAfterOrderList/Attr.js +13 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
- package/src/components/JfbBaseAfterSales/Api.js +58 -0
- package/src/components/JfbBaseAfterSales/Attr.js +25 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +587 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
- package/src/components/JfbBaseAfterSales/Mock.js +6 -0
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
- package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +547 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
- package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
- package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
- package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +488 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
- package/src/components/JfbBaseBalance/Api.js +46 -0
- package/src/components/JfbBaseBalance/Attr.js +316 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
- package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
- package/src/components/JfbBaseConsumpCode/Api.js +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1111 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
- package/src/components/JfbBaseFastLink/Attr.js +12 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
- package/src/components/JfbBaseFooter/Attr.js +12 -0
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +23 -13
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
- package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/Api.js +39 -0
- package/src/components/JfbBaseOpenVip/Attr.js +331 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +7 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
- package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
- package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
- package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
- package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +211 -19
- package/src/components/JfbBaseOrderList/Api.js +11 -0
- package/src/components/JfbBaseOrderList/Attr.js +36 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +42 -41
- package/src/components/JfbBasePay/Mock.js +0 -9
- package/src/components/JfbBasePersonalData/Api.js +26 -0
- package/src/components/JfbBasePersonalData/Attr.js +13 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
- package/src/components/JfbBasePersonalData/Mock.js +13 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +40 -31
- package/src/components/JfbBasePointsCard/Api.js +18 -0
- package/src/components/JfbBasePointsCard/Attr.js +187 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +5 -0
- package/src/components/JfbBasePointsDetail/Api.js +48 -0
- package/src/components/JfbBasePointsDetail/Attr.js +305 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +6 -0
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBasePosterGroup/Api.js +22 -0
- package/src/components/JfbBasePosterGroup/Attr.js +156 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
- package/src/components/JfbBasePosterGroup/Mock.js +13 -0
- package/src/components/JfbBaseSavingDetail/Api.js +41 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
- 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 +20 -0
- package/src/components/JfbBaseShare/Attr.js +59 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +16 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
- package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
- package/src/components/JfbBaseUserInfo/Attr.js +175 -11
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
- package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
- package/src/components/JfbBaseWithdraw/Api.js +48 -0
- package/src/components/JfbBaseWithdraw/Attr.js +328 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +7 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
|
@@ -0,0 +1,278 @@
|
|
|
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
|
+
<view class="profile">
|
|
12
|
+
<image :src="info.head_url"></image>
|
|
13
|
+
<!--#ifdef MP-->
|
|
14
|
+
<button type="default" open-type="chooseAvatar" @chooseavatar="handleChooseAvatar"></button>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
</view>
|
|
17
|
+
|
|
18
|
+
</view>
|
|
19
|
+
<view class="jfb-base-personal-data__body-item">
|
|
20
|
+
<view class="jfb-base-personal-data__body-item-label">账号</view>
|
|
21
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.phone_number}}</view>
|
|
22
|
+
</view>
|
|
23
|
+
<view class="jfb-base-personal-data__body-item">
|
|
24
|
+
<view class="jfb-base-personal-data__body-item-label">名称</view>
|
|
25
|
+
<!--#ifdef MP-->
|
|
26
|
+
<input
|
|
27
|
+
@change="handleWxSetInfo"
|
|
28
|
+
class="jfb-base-personal-data__body-item-value"
|
|
29
|
+
v-model="info.nickname"
|
|
30
|
+
type="nickname"
|
|
31
|
+
>
|
|
32
|
+
<!-- #endif -->
|
|
33
|
+
<!--#ifdef H5-->
|
|
34
|
+
<input
|
|
35
|
+
@blur="handleSetInfo"
|
|
36
|
+
@confirm="handleSetInfo"
|
|
37
|
+
class="jfb-base-personal-data__body-item-value"
|
|
38
|
+
v-model="info.nickname"
|
|
39
|
+
type="text"
|
|
40
|
+
>
|
|
41
|
+
<!-- #endif -->
|
|
42
|
+
</view>
|
|
43
|
+
<view class="jfb-base-personal-data__body-item">
|
|
44
|
+
<view class="jfb-base-personal-data__body-item-label">性别</view>
|
|
45
|
+
<XdSelect
|
|
46
|
+
@change="handleSetSex"
|
|
47
|
+
padding="0"
|
|
48
|
+
color="#999"
|
|
49
|
+
class="select"
|
|
50
|
+
:defaultValue="info.sex"
|
|
51
|
+
v-model="info.sex"
|
|
52
|
+
:list="sexList"
|
|
53
|
+
>
|
|
54
|
+
<template>
|
|
55
|
+
<view class="jfb-base-personal-data__body-item-value">
|
|
56
|
+
<XdFontIcon
|
|
57
|
+
class="icon"
|
|
58
|
+
color="#999999"
|
|
59
|
+
size="24"
|
|
60
|
+
icon="iconxiangyou_xian"
|
|
61
|
+
></XdFontIcon>
|
|
62
|
+
</view>
|
|
63
|
+
</template>
|
|
64
|
+
</XdSelect>
|
|
65
|
+
</view>
|
|
66
|
+
<view class="jfb-base-personal-data__body-item">
|
|
67
|
+
<view class="jfb-base-personal-data__body-item-label">生日</view>
|
|
68
|
+
<view style="display: flex;align-items: center" @click="showDate=true">
|
|
69
|
+
<view class="jfb-base-personal-data__body-item-value">{{info.birthday_date}}</view>
|
|
70
|
+
<XdFontIcon class="icon" color="#999999" size="24" icon="iconxiangyou_xian"></XdFontIcon>
|
|
71
|
+
</view>
|
|
72
|
+
</view>
|
|
73
|
+
<XdDate ref="calendar" :selectType="false" :main-color="mainColor" :current-is-show-other-month="false"
|
|
74
|
+
:show.sync="showDate" :clear-date="true" :insert="false" :lunar="false" :selected-circle="false"
|
|
75
|
+
:date="info.birthday_date" @confirm="confirmDate" @close="closeDate"></XdDate>
|
|
76
|
+
</view>
|
|
77
|
+
</view>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<script>
|
|
81
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
82
|
+
import XdDate from '@/components/XdDate/XdDate.vue'
|
|
83
|
+
import XdSelect from "@/components/XdSelect/XdSelect";
|
|
84
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
85
|
+
import JfbBasePersonalDataMixin from "./JfbBasePersonalDataMixin";
|
|
86
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
87
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
88
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
89
|
+
import {mapActions} from "vuex";
|
|
90
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
91
|
+
export default {
|
|
92
|
+
name: "JfbBasePersonalData",
|
|
93
|
+
components: {
|
|
94
|
+
XdFontIcon,
|
|
95
|
+
XdSelect,
|
|
96
|
+
XdDate
|
|
97
|
+
},
|
|
98
|
+
mixins: [
|
|
99
|
+
componentsMixins, extsMixins, JfbBasePersonalDataMixin
|
|
100
|
+
],
|
|
101
|
+
data() {
|
|
102
|
+
return {
|
|
103
|
+
info: {},
|
|
104
|
+
single: '',
|
|
105
|
+
showDate: false,
|
|
106
|
+
sexList: [
|
|
107
|
+
{
|
|
108
|
+
label: '男',
|
|
109
|
+
value: '1'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: '女',
|
|
113
|
+
value: '2'
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
watch: {
|
|
119
|
+
container(value, oldValue) {
|
|
120
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
121
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
created() {
|
|
125
|
+
this.init(this.container);
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
//#ifdef MP
|
|
129
|
+
...mapActions(['getUploadParams']),
|
|
130
|
+
|
|
131
|
+
handleChooseAvatar({detail}){
|
|
132
|
+
this.info.head_url = detail.avatarUrl;
|
|
133
|
+
let temp = detail.avatarUrl.split('.')
|
|
134
|
+
let ext = temp[temp.length -1];
|
|
135
|
+
let name = `${this.info.nickname}.${ext}`;
|
|
136
|
+
this.$xdShowLoading({});
|
|
137
|
+
this.getUploadParams({name,type: 'public'})
|
|
138
|
+
.then(res=>{
|
|
139
|
+
uni.uploadFile({
|
|
140
|
+
url: res.action,
|
|
141
|
+
filePath: detail.avatarUrl,
|
|
142
|
+
name: 'file',
|
|
143
|
+
formData: this.$xdUniHelper.cloneDeep(res),
|
|
144
|
+
success: (uploadFileRes) => {
|
|
145
|
+
this.handleSetInfo({head_url: res.url}, ()=>{
|
|
146
|
+
this.$xdHideLoading()
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
},
|
|
150
|
+
error:()=>{
|
|
151
|
+
this.$xdHideLoading()
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
})
|
|
155
|
+
.catch(err=>{
|
|
156
|
+
this.$xdHideLoading()
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
handleWxSetInfo(){
|
|
161
|
+
if(this.info.nickname) {
|
|
162
|
+
this.handleSetInfo();
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
//#endif
|
|
166
|
+
|
|
167
|
+
onJfbLoad(options) {
|
|
168
|
+
this.getInfo()
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* @description 监听事件变化
|
|
172
|
+
* @param container {object} 业务组件对象自己
|
|
173
|
+
*/
|
|
174
|
+
init(container) {
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
getInfo() {
|
|
178
|
+
jfbRootExec("getBasePersonInfo", {
|
|
179
|
+
vm: this,
|
|
180
|
+
data: {},
|
|
181
|
+
}).then(res => {
|
|
182
|
+
this.info = res
|
|
183
|
+
if(this.info.head_url) this.info.head_url = getServiceUrl(this.info.head_url,'size2')
|
|
184
|
+
})
|
|
185
|
+
},
|
|
186
|
+
confirmDate(e) {
|
|
187
|
+
this.info.birthday_date = e.fulldate
|
|
188
|
+
this.handleSetInfo()
|
|
189
|
+
},
|
|
190
|
+
closeDate() {},
|
|
191
|
+
handleSetSex(data) {
|
|
192
|
+
this.info.sex = data.item.value
|
|
193
|
+
this.handleSetInfo()
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
handleSetInfo(ext={}, cb) {
|
|
197
|
+
let params = {
|
|
198
|
+
nickname: this.info.nickname,
|
|
199
|
+
sex: this.info.sex,
|
|
200
|
+
birthday_date: this.info.birthday_date
|
|
201
|
+
}
|
|
202
|
+
//设置扩展信息
|
|
203
|
+
if(!this.$xdUniHelper.isEmpty(ext)) {
|
|
204
|
+
params = Object.assign({},params,ext);
|
|
205
|
+
}
|
|
206
|
+
debugger
|
|
207
|
+
jfbRootExec("setBasePersonInfo", {
|
|
208
|
+
vm: this,
|
|
209
|
+
data: params,
|
|
210
|
+
}).then(res => {
|
|
211
|
+
this.getInfo();
|
|
212
|
+
if(typeof cb === 'function') cb();
|
|
213
|
+
})
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
</script>
|
|
220
|
+
|
|
221
|
+
<style scoped lang="less">
|
|
222
|
+
@import "./JfbBasePersonalDataLess.less";
|
|
223
|
+
|
|
224
|
+
.jfb-base-personal-data {
|
|
225
|
+
&__body {
|
|
226
|
+
.icon {
|
|
227
|
+
margin-left: 8rpx;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&-item {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: space-between;
|
|
234
|
+
border-radius: 20rpx;
|
|
235
|
+
background: #FFFFFF;
|
|
236
|
+
padding: 32rpx 46rpx;
|
|
237
|
+
margin: 20rpx;
|
|
238
|
+
|
|
239
|
+
&-label {
|
|
240
|
+
color: #333;
|
|
241
|
+
font-size: 28rpx;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&-value {
|
|
245
|
+
color: #999999;
|
|
246
|
+
font-size: 28rpx;
|
|
247
|
+
text-align: right;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.profile {
|
|
253
|
+
width: 80rpx;
|
|
254
|
+
height: 80rpx;
|
|
255
|
+
border-radius: 50%;
|
|
256
|
+
position: relative;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
|
|
259
|
+
& > image {
|
|
260
|
+
width: 78rpx;
|
|
261
|
+
height: 78rpx;
|
|
262
|
+
border-radius: 50%;
|
|
263
|
+
border:1px solid #ccc;
|
|
264
|
+
box-sizing: border-box;
|
|
265
|
+
}
|
|
266
|
+
& > button {
|
|
267
|
+
position: absolute;
|
|
268
|
+
left: 0;
|
|
269
|
+
right: 0;
|
|
270
|
+
bottom: 0;
|
|
271
|
+
top: 0;
|
|
272
|
+
opacity: 0;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
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**/
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -395,11 +395,9 @@ export default {
|
|
|
395
395
|
if (this.jfbTimeer > 0) return;
|
|
396
396
|
const { phone_number } = this.accountForm;
|
|
397
397
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
isClose: false,
|
|
402
|
-
zIndex: 5000
|
|
398
|
+
uni.showToast({
|
|
399
|
+
title: "请填写正确的手机号",
|
|
400
|
+
icon: "none",
|
|
403
401
|
});
|
|
404
402
|
return false;
|
|
405
403
|
}
|
|
@@ -436,22 +434,8 @@ export default {
|
|
|
436
434
|
doLoginForm() {
|
|
437
435
|
const { provider_id } = this;
|
|
438
436
|
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
439
|
-
if (!phone_number || !verification_code) {
|
|
440
|
-
|
|
441
|
-
content: '手机号跟验证码不能为空',
|
|
442
|
-
time: 2500,
|
|
443
|
-
isClose: false,
|
|
444
|
-
zIndex: 5000
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
if(this.isCollectUsername && !user_name){
|
|
448
|
-
return this.$xdAlert({
|
|
449
|
-
content: '用户名不能为空',
|
|
450
|
-
time: 2500,
|
|
451
|
-
isClose: false,
|
|
452
|
-
zIndex: 5000
|
|
453
|
-
});
|
|
454
|
-
}
|
|
437
|
+
if (!phone_number || !verification_code) return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
|
|
438
|
+
if(this.isCollectUsername && !user_name) return uni.showToast({ title: "用户名不能为空", icon: "none" });
|
|
455
439
|
|
|
456
440
|
this.$xdShowLoading({})
|
|
457
441
|
jfbRootExec("phoneCollect", {
|
|
@@ -133,16 +133,27 @@
|
|
|
133
133
|
>暂不登录,去逛逛</view> -->
|
|
134
134
|
</view>
|
|
135
135
|
<xd-dialog :show.sync="showDialog"
|
|
136
|
-
title="系统提示"
|
|
137
136
|
:showClose="false"
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
maskAutoClose
|
|
138
|
+
:showTitle="false">
|
|
140
139
|
<view class="p_dialog_content">
|
|
141
|
-
<view class="
|
|
140
|
+
<view class="">
|
|
141
|
+
<xd-font-icon icon="iconmingchengtubiao" :size="48" color="#666"></xd-font-icon>
|
|
142
|
+
</view>
|
|
143
|
+
<view class="cont_text">检测到短信发送异常<br/>是否跳过手机号收集?</view>
|
|
142
144
|
</view>
|
|
143
|
-
<view slot="btn" class="btn_foot">
|
|
144
|
-
<
|
|
145
|
-
|
|
145
|
+
<view slot="btn" class="btn_foot" style="background-color: #DDD;">
|
|
146
|
+
<view class="btn_item not_jump_btn" :style="{
|
|
147
|
+
backgroundColor: '#FFF',
|
|
148
|
+
}"
|
|
149
|
+
@click="p_loginNotJump"
|
|
150
|
+
>不跳过</view>
|
|
151
|
+
<view class="btn_item" :style="{
|
|
152
|
+
backgroundColor: mainColor,
|
|
153
|
+
color: '#FFF'
|
|
154
|
+
}"
|
|
155
|
+
@click="p_loginJumpPhone"
|
|
156
|
+
>跳过</view>
|
|
146
157
|
</view>
|
|
147
158
|
</xd-dialog>
|
|
148
159
|
</view>
|
|
@@ -198,6 +209,7 @@ export default {
|
|
|
198
209
|
callback_url: "",
|
|
199
210
|
isCollectUsername: false,
|
|
200
211
|
showDialog: false,
|
|
212
|
+
share_code: "",
|
|
201
213
|
|
|
202
214
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
203
215
|
formBorderColor: "#F9F9F9", //
|
|
@@ -359,6 +371,13 @@ export default {
|
|
|
359
371
|
this.auth_code = options.auth_code;
|
|
360
372
|
this.provider_id = options.provider_id;
|
|
361
373
|
this.callback_url = options.callback_url;
|
|
374
|
+
if(options['x-share']){
|
|
375
|
+
let decodeParams = Base64.decode(options['x-share']);
|
|
376
|
+
try{
|
|
377
|
+
let commonParams = JSON.parse(decodeParams);
|
|
378
|
+
this.share_code = commonParams.share_code;
|
|
379
|
+
}catch(e){}
|
|
380
|
+
}
|
|
362
381
|
},
|
|
363
382
|
/**
|
|
364
383
|
* @description 监听事件变化
|
|
@@ -497,11 +516,9 @@ export default {
|
|
|
497
516
|
if (this.jfbTimeer > 0) return;
|
|
498
517
|
const { phone_number } = this.accountForm;
|
|
499
518
|
if (!/^1[3-9]\d{9}$/.test(phone_number)) {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
isClose: false,
|
|
504
|
-
zIndex: 5000
|
|
519
|
+
uni.showToast({
|
|
520
|
+
title: "请填写正确的手机号",
|
|
521
|
+
icon: "none",
|
|
505
522
|
});
|
|
506
523
|
return false;
|
|
507
524
|
}
|
|
@@ -557,6 +574,7 @@ export default {
|
|
|
557
574
|
auth_code,
|
|
558
575
|
provider_id,
|
|
559
576
|
phone_number,
|
|
577
|
+
share_code: this.share_code,
|
|
560
578
|
}
|
|
561
579
|
}).then(res => {
|
|
562
580
|
this.$xdHideLoading();
|
|
@@ -574,20 +592,10 @@ export default {
|
|
|
574
592
|
const { auth_code, provider_id } = this;
|
|
575
593
|
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
576
594
|
if (!phone_number || !verification_code){
|
|
577
|
-
return
|
|
578
|
-
content: '手机号跟验证码不能为空',
|
|
579
|
-
time: 2500,
|
|
580
|
-
isClose: false,
|
|
581
|
-
zIndex: 5000
|
|
582
|
-
});
|
|
595
|
+
return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
|
|
583
596
|
}
|
|
584
597
|
if(this.isCollectUsername && !user_name){
|
|
585
|
-
return
|
|
586
|
-
content: '用户名不能为空',
|
|
587
|
-
time: 2500,
|
|
588
|
-
isClose: false,
|
|
589
|
-
zIndex: 5000
|
|
590
|
-
});
|
|
598
|
+
return uni.showToast({ title: "用户名不能为空", icon: "none" });
|
|
591
599
|
}
|
|
592
600
|
this.$xdShowLoading({});
|
|
593
601
|
jfbRootExec("phoneLogin", {
|
|
@@ -597,7 +605,8 @@ export default {
|
|
|
597
605
|
provider_id,
|
|
598
606
|
phone_number,
|
|
599
607
|
verification_code,
|
|
600
|
-
user_name
|
|
608
|
+
user_name,
|
|
609
|
+
share_code: this.share_code
|
|
601
610
|
},
|
|
602
611
|
})
|
|
603
612
|
.then((res) => {
|
|
@@ -654,12 +663,12 @@ export default {
|
|
|
654
663
|
::v-deep .xd-dailog__body{
|
|
655
664
|
overflow: hidden;
|
|
656
665
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
666
|
+
::v-deep .xd-dailog__body-content{
|
|
667
|
+
padding: 0;
|
|
668
|
+
overflow: hidden;
|
|
669
|
+
}
|
|
661
670
|
.p_dialog_content{
|
|
662
|
-
padding:
|
|
671
|
+
padding: 100rpx 0rpx;
|
|
663
672
|
display: flex;
|
|
664
673
|
align-items: center;
|
|
665
674
|
justify-content: center;
|
|
@@ -667,7 +676,7 @@ export default {
|
|
|
667
676
|
text-align: left;
|
|
668
677
|
margin-left: 12rpx;
|
|
669
678
|
font-size: 32rpx;
|
|
670
|
-
color: #
|
|
679
|
+
color: #333;
|
|
671
680
|
}
|
|
672
681
|
}
|
|
673
682
|
.btn_foot{
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
];
|