jufubao-base 1.0.237-beta4 → 1.0.237
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/JfbBaseMySetting/JfbBaseMySetting.vue +8 -0
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -25
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -11
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -8
- package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
- package/src/components/JfbBaseUserInfo/Attr.js +10 -114
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +114 -312
- package/src/components/JfbBaseBalance/Api.js +0 -46
- package/src/components/JfbBaseBalance/Attr.js +0 -316
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -331
- 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 -961
- 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/JfbBaseOpenVip/Api.js +0 -39
- package/src/components/JfbBaseOpenVip/Attr.js +0 -290
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -430
- 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 -125
- 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 -223
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
- package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -13
- package/src/components/JfbBasePersonalData/Api.js +0 -26
- package/src/components/JfbBasePersonalData/Attr.js +0 -12
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -198
- 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 -208
- 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 -304
- 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 -146
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -265
- 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 -679
- 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 -270
- 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 -334
- 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 -245
- 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,104 +1,84 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-user-info"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
3
7
|
<!--#ifdef H5-->
|
|
4
|
-
<view
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-user-info__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
5
13
|
<view class="jfb-base-user-info__edit-icon" @click="delEdit">删除</view>
|
|
6
14
|
</view>
|
|
7
15
|
<!-- #endif -->
|
|
8
16
|
<view class="jfb-base-user-info__body">
|
|
9
17
|
<view class="x-line"></view>
|
|
10
|
-
<view
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
18
|
+
<view
|
|
19
|
+
class="jfb-base-user-info__body-header"
|
|
20
|
+
:style="[boxStyleComp]"
|
|
21
|
+
v-if="userInfo !== null"
|
|
22
|
+
>
|
|
23
|
+
<view
|
|
24
|
+
class="jfb-base-user-info__body-header-left"
|
|
25
|
+
:class="{center: textType === 'N',vertical: textType === 'Y'}"
|
|
26
|
+
>
|
|
27
|
+
<template v-if="logined">
|
|
28
|
+
<image v-if="userInfo['head_url']" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}" :src="userInfo['head_url']"></image>
|
|
29
|
+
<view class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else>
|
|
30
|
+
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
|
|
31
|
+
</view>
|
|
32
|
+
</template>
|
|
33
|
+
<view v-else class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}">
|
|
34
|
+
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
|
|
35
|
+
</view>
|
|
36
|
+
<view v-if="logined && textType ==='N'" :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
37
|
+
<view class="vertical-user" v-if="logined && textType ==='Y'">
|
|
38
|
+
<view :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
39
|
+
<view v-if="rightContent && rightContent.type !== 'hidden'"
|
|
40
|
+
class="logout" style="margin-top: 16rpx;"
|
|
41
|
+
:style="[logoutBtnStyle]"
|
|
42
|
+
>
|
|
43
|
+
<view v-if="rightContent && rightContent.type === 'logout'"
|
|
44
|
+
class="right_cont_i"
|
|
45
|
+
:style="[logoutStyleComp]"
|
|
46
|
+
@click="handleLogout()"
|
|
47
|
+
>
|
|
48
|
+
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon" :size="28"></xd-font-icon>
|
|
49
|
+
{{rightContent.name || '退出登录'}}
|
|
24
50
|
</view>
|
|
25
|
-
<view
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
<view v-if="rightContent && rightContent.type === 'addr'"
|
|
52
|
+
class="right_cont_i"
|
|
53
|
+
:style="[logoutStyleComp]"
|
|
54
|
+
@click="handleAddress()"
|
|
55
|
+
>
|
|
56
|
+
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon" :size="28"></xd-font-icon>
|
|
57
|
+
{{ rightContent.name || '地址' }}
|
|
32
58
|
</view>
|
|
33
59
|
</view>
|
|
34
|
-
<view @click="
|
|
35
|
-
<xd-font-icon size="
|
|
60
|
+
<view @click="handleToLink()" v-if="isSetting === 'Y'">
|
|
61
|
+
<xd-font-icon size="26" icon="iconshezhi_mian"></xd-font-icon>
|
|
36
62
|
</view>
|
|
37
63
|
</view>
|
|
38
|
-
<view :style="[boxPlusStyleCompBottom]" :class="is_vip==='Y'?'is_vip_bottom':'is_normal_bottom'"
|
|
39
|
-
class="jfb-base-user-info__body-plus-header-bottom">
|
|
40
|
-
<view v-if="is_vip==='Y'">点击查看更多会员权益</view>
|
|
41
|
-
<view v-else>开通 <span :style="{color:mainColor}">PLUS会员</span>享受更多内容</view>
|
|
42
|
-
<view v-if="is_vip==='Y'" @click="handleToView">立即查看</view>
|
|
43
|
-
<view v-else @click="handleToOpen">立即开通</view>
|
|
44
|
-
</view>
|
|
45
64
|
</view>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
:src="userInfo['head_url']"></image>
|
|
54
|
-
<view class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else>
|
|
55
|
-
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
|
|
56
|
-
</view>
|
|
57
|
-
</template>
|
|
58
|
-
<view v-else class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}">
|
|
59
|
-
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
|
|
60
|
-
</view>
|
|
61
|
-
<view v-if="logined && textType ==='N'" :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
62
|
-
<view class="vertical-user" v-if="logined && textType ==='Y'">
|
|
63
|
-
<view :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
64
|
-
<view v-if="rightContent && rightContent.type !== 'hidden'" class="logout" style="margin-top: 16rpx;"
|
|
65
|
-
:style="[logoutBtnStyle]">
|
|
66
|
-
<view v-if="rightContent && rightContent.type === 'logout'" class="right_cont_i"
|
|
67
|
-
:style="[logoutStyleComp]" @click="handleLogout()">
|
|
68
|
-
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon"
|
|
69
|
-
:size="28"></xd-font-icon>
|
|
70
|
-
{{rightContent.name || '退出登录'}}
|
|
71
|
-
</view>
|
|
72
|
-
<view v-if="rightContent && rightContent.type === 'addr'" class="right_cont_i"
|
|
73
|
-
:style="[logoutStyleComp]" @click="handleAddress()">
|
|
74
|
-
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon"
|
|
75
|
-
:size="28"></xd-font-icon>
|
|
76
|
-
{{ rightContent.name || '地址' }}
|
|
77
|
-
</view>
|
|
78
|
-
</view>
|
|
79
|
-
<view @click="handleToLink()" v-if="isSetting === 'Y'">
|
|
80
|
-
<xd-font-icon size="26" icon="iconshezhi_mian"></xd-font-icon>
|
|
81
|
-
</view>
|
|
82
|
-
</view>
|
|
65
|
+
<view v-if="logined && textType ==='N' && rightContent && rightContent.type !== 'hidden'" class="logout" :style="[logoutBtnStyle]">
|
|
66
|
+
<view v-if="rightContent && rightContent.type === 'logout'" class="right_cont_i"
|
|
67
|
+
:style="[logoutStyleComp]"
|
|
68
|
+
@click="handleLogout()"
|
|
69
|
+
>
|
|
70
|
+
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon" :size="28"></xd-font-icon>
|
|
71
|
+
{{rightContent.name || '退出登录'}}
|
|
83
72
|
</view>
|
|
84
|
-
<view v-if="
|
|
85
|
-
:style="[
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
{{rightContent.name || '退出登录'}}
|
|
91
|
-
</view>
|
|
92
|
-
<view v-if="rightContent && rightContent.type === 'addr'" class="right_cont_i" :style="[logoutStyleComp]"
|
|
93
|
-
@click="handleAddress()">
|
|
94
|
-
<xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon"
|
|
95
|
-
:size="28"></xd-font-icon>
|
|
96
|
-
{{ rightContent.name || '地址' }}
|
|
97
|
-
</view>
|
|
73
|
+
<view v-if="rightContent && rightContent.type === 'addr'" class="right_cont_i"
|
|
74
|
+
:style="[logoutStyleComp]"
|
|
75
|
+
@click="handleAddress()"
|
|
76
|
+
>
|
|
77
|
+
<xd-font-icon v-if="rightContent.icon"class="xd-font-icon" :icon="rightContent.icon" :size="28"></xd-font-icon>
|
|
78
|
+
{{ rightContent.name || '地址' }}
|
|
98
79
|
</view>
|
|
99
80
|
</view>
|
|
100
81
|
</view>
|
|
101
|
-
|
|
102
82
|
</view>
|
|
103
83
|
</view>
|
|
104
84
|
</template>
|
|
@@ -111,7 +91,7 @@
|
|
|
111
91
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
112
92
|
import extsMixins from "@/mixins/extsMixins"
|
|
113
93
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
114
|
-
import {
|
|
94
|
+
import {mapState} from 'vuex';
|
|
115
95
|
import store from "@/store";
|
|
116
96
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
117
97
|
export default {
|
|
@@ -119,11 +99,11 @@
|
|
|
119
99
|
components: {
|
|
120
100
|
XdFontIcon
|
|
121
101
|
},
|
|
122
|
-
mixins: [componentsMixins,
|
|
102
|
+
mixins: [componentsMixins,extsMixins,JfbBaseUserInfoMixin],
|
|
123
103
|
computed: {
|
|
124
104
|
...mapState(['jfbAuthorize']),
|
|
125
105
|
|
|
126
|
-
boxStyleComp()
|
|
106
|
+
boxStyleComp(){
|
|
127
107
|
let border = this.getBorderCompatibleOldStyle(this.contBorder, {
|
|
128
108
|
color: this.is_border_c,
|
|
129
109
|
width: this.is_border_w,
|
|
@@ -138,7 +118,7 @@
|
|
|
138
118
|
})
|
|
139
119
|
return {
|
|
140
120
|
margin: this.getMarginAndPadding(this.margin, 20),
|
|
141
|
-
backgroundColor: this.backgroundColor,
|
|
121
|
+
backgroundColor : this.backgroundColor,
|
|
142
122
|
backgroundImage: `url(${this.bgImage})`,
|
|
143
123
|
padding: this.getMarginAndPadding(this.padding, 20),
|
|
144
124
|
boxShadow: shadow,
|
|
@@ -148,64 +128,30 @@
|
|
|
148
128
|
}
|
|
149
129
|
},
|
|
150
130
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
color: this.is_border_c,
|
|
154
|
-
width: this.is_border_w,
|
|
155
|
-
type: this.is_border,
|
|
156
|
-
style: 'solid'
|
|
157
|
-
})
|
|
158
|
-
let shadow = this.getShadowCompatibleOldStyle(this.contShadow, {
|
|
159
|
-
color: this.is_shadow_bg,
|
|
160
|
-
width: this.is_shadow_w,
|
|
161
|
-
type: this.is_shadow,
|
|
162
|
-
})
|
|
163
|
-
return {
|
|
164
|
-
margin: this.getMarginAndPadding(this.margin, 20),
|
|
165
|
-
padding: this.getMarginAndPadding(this.padding, 0),
|
|
166
|
-
boxShadow: shadow,
|
|
167
|
-
border: border,
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
boxPlusStyleCompTop() {
|
|
172
|
-
return {
|
|
173
|
-
borderRadius: `${this.radius + 'rpx'} ${this.radius + 'rpx'} 0 0`,
|
|
174
|
-
background: this.is_vip === 'Y' ? this.plusTopBackgroundColor : this.normalTopBackgroundColor
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
boxPlusStyleCompBottom() {
|
|
179
|
-
return {
|
|
180
|
-
borderRadius: `0 0 ${this.radius + 'rpx'} ${this.radius + 'rpx'}`,
|
|
181
|
-
background: this.is_vip === 'Y' ? this.plusBottomBackgroundColor : this.normalBottomBackgroundColor
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
shadow() {
|
|
186
|
-
if (this.is_shadow === 'Y') return `0 0 ${this.is_shadow_w}rpx ${this.is_shadow_bg}`;
|
|
131
|
+
shadow(){
|
|
132
|
+
if(this.is_shadow === 'Y') return `0 0 ${this.is_shadow_w}rpx ${this.is_shadow_bg}`;
|
|
187
133
|
else return '0 0 0 rgba(0,0,0,0)';
|
|
188
134
|
},
|
|
189
|
-
borderBox()
|
|
135
|
+
borderBox(){
|
|
190
136
|
if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
|
|
191
137
|
else return '0';
|
|
192
138
|
},
|
|
193
139
|
|
|
194
|
-
nickNameStyle()
|
|
140
|
+
nickNameStyle(){
|
|
195
141
|
return {
|
|
196
142
|
fontSize: this.nickStyle.fontSize || '32rpx',
|
|
197
|
-
color: `${this.nickStyle.color ||'#333'}`,
|
|
143
|
+
color: `${this.nickStyle.color || '#333'}`,
|
|
198
144
|
fontWeight: `${this.nickStyle.fontWeight || 'normal'}`,
|
|
199
145
|
}
|
|
200
146
|
},
|
|
201
|
-
logoutStyleComp()
|
|
147
|
+
logoutStyleComp(){
|
|
202
148
|
return {
|
|
203
149
|
fontSize: this.logoutStyle.fontSize || '20rpx',
|
|
204
150
|
color: `${this.logoutStyle.color || '#333'}`,
|
|
205
151
|
fontWeight: `${this.logoutStyle.fontWeight || 'normal'}`,
|
|
206
152
|
}
|
|
207
153
|
},
|
|
208
|
-
logoutBtnStyle()
|
|
154
|
+
logoutBtnStyle(){
|
|
209
155
|
let padding = `${this.checkValue(this.rightContentPadding.top, 20)}rpx`;
|
|
210
156
|
padding = `${padding} ${this.checkValue(this.rightContentPadding.right, 20)}rpx`;
|
|
211
157
|
padding = `${padding} ${this.checkValue(this.rightContentPadding.bottom, 20)}rpx`;
|
|
@@ -218,8 +164,8 @@
|
|
|
218
164
|
}
|
|
219
165
|
}
|
|
220
166
|
},
|
|
221
|
-
filters:
|
|
222
|
-
getName(val)
|
|
167
|
+
filters:{
|
|
168
|
+
getName(val){
|
|
223
169
|
return val.nickname || val['real_name'] || val['user_name'] || val['phone_number'];
|
|
224
170
|
}
|
|
225
171
|
},
|
|
@@ -227,9 +173,9 @@
|
|
|
227
173
|
return {
|
|
228
174
|
logined: false,
|
|
229
175
|
userInfo: null,
|
|
230
|
-
isSetting:
|
|
176
|
+
isSetting:'N',
|
|
231
177
|
// logoutName:'[退出登录]',
|
|
232
|
-
imageRadius:
|
|
178
|
+
imageRadius:'50%',
|
|
233
179
|
|
|
234
180
|
//基础
|
|
235
181
|
imageColor: '#333',
|
|
@@ -238,13 +184,13 @@
|
|
|
238
184
|
radius: 0,
|
|
239
185
|
|
|
240
186
|
//投影
|
|
241
|
-
contShadow:
|
|
187
|
+
contShadow:{},
|
|
242
188
|
is_shadow: 'N',
|
|
243
189
|
is_shadow_bg: 0,
|
|
244
190
|
is_shadow_w: 0,
|
|
245
191
|
|
|
246
192
|
//边框
|
|
247
|
-
contBorder:
|
|
193
|
+
contBorder:{},
|
|
248
194
|
is_border: 'N',
|
|
249
195
|
is_border_w: 0,
|
|
250
196
|
is_border_c: '',
|
|
@@ -252,66 +198,47 @@
|
|
|
252
198
|
//其他
|
|
253
199
|
margin: {},
|
|
254
200
|
padding: {},
|
|
255
|
-
nickStyle:
|
|
256
|
-
logoutStyle:
|
|
201
|
+
nickStyle:{},
|
|
202
|
+
logoutStyle:{},
|
|
257
203
|
rightContent: null,
|
|
258
204
|
addressUrl: '',
|
|
259
205
|
bgImage: "",
|
|
260
206
|
rightContentBgColor: "",
|
|
261
207
|
// rightContentTextColor: "",
|
|
262
208
|
rightContentPadding: "",
|
|
263
|
-
rightContentRadius: 0
|
|
264
|
-
is_plus_site: '',
|
|
265
|
-
is_vip: 'N',
|
|
266
|
-
is_plus_preview: 'N', //预览vip样式
|
|
267
|
-
openVipPath: '',
|
|
268
|
-
viewPath: '',
|
|
269
|
-
plusTopBackgroundColor: '',
|
|
270
|
-
plusBottomBackgroundColor: '',
|
|
271
|
-
normalTopBackgroundColor: '',
|
|
272
|
-
normalBottomBackgroundColor: '',
|
|
273
|
-
codePath: ''
|
|
209
|
+
rightContentRadius: 0
|
|
274
210
|
}
|
|
275
211
|
},
|
|
276
212
|
watch: {
|
|
277
|
-
container(value,
|
|
278
|
-
if
|
|
213
|
+
container(value,oldValue) {
|
|
214
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
279
215
|
if (this.$configProject['isPreview']) this.init(value)
|
|
280
|
-
},
|
|
281
|
-
is_plus_preview() {
|
|
282
|
-
if (this.$configProject['isPreview']) {
|
|
283
|
-
this.is_vip = this.is_plus_preview
|
|
284
|
-
}
|
|
285
216
|
}
|
|
286
217
|
},
|
|
287
218
|
created() {
|
|
288
|
-
console.log(this.getTokenForKey('user_level'),'user_leveluser_level');
|
|
289
|
-
console.log(this.projectAttr.headers['X-Site-Group'],'this.$configProject');
|
|
290
|
-
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
291
|
-
this.is_vip = this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP'?'Y':'N'
|
|
292
219
|
this.init(this.container);
|
|
293
220
|
},
|
|
294
221
|
methods: {
|
|
295
|
-
handleToLink()
|
|
222
|
+
handleToLink(){
|
|
296
223
|
this.$xdUniHelper.navigateTo({
|
|
297
224
|
url: '/pages/settings/settings'
|
|
298
225
|
})
|
|
299
226
|
},
|
|
300
227
|
|
|
301
|
-
async handleLogout()
|
|
228
|
+
async handleLogout(){
|
|
302
229
|
// #ifdef H5
|
|
303
230
|
if (this.$configProject.isPreview) return;
|
|
304
231
|
// #endif
|
|
305
232
|
|
|
306
233
|
if (this.jfbAuthorize !== null) {
|
|
307
234
|
this.$xdShowLoading({});
|
|
308
|
-
store.dispatch('logout').then(res
|
|
235
|
+
store.dispatch('logout').then(res=>{
|
|
309
236
|
let url = this.$configProject.entry || `/${this.projectAttr.deploy_dir}/`;
|
|
310
237
|
this.$xdHideLoading();
|
|
311
238
|
this.jfbAuthorize.removeAllCardToken();
|
|
312
239
|
this.jfbAuthorize.removeAllToken()
|
|
313
240
|
this.jfbAuthorize.jumpToUserLogin(this, false, url);
|
|
314
|
-
}).catch(err
|
|
241
|
+
}).catch(err=>{
|
|
315
242
|
console.error(err);
|
|
316
243
|
})
|
|
317
244
|
}
|
|
@@ -320,7 +247,7 @@
|
|
|
320
247
|
async onJfbLoad(options) {
|
|
321
248
|
|
|
322
249
|
//预览模式
|
|
323
|
-
if
|
|
250
|
+
if(this.$configProject.isPreview) {
|
|
324
251
|
jfbRootExec('getBaseUserInfo', {
|
|
325
252
|
vm: this,
|
|
326
253
|
data: {}
|
|
@@ -335,16 +262,16 @@
|
|
|
335
262
|
}
|
|
336
263
|
|
|
337
264
|
this.logined = await this.jfbAuthorize.checkUserLogin(true, this, false);
|
|
338
|
-
if
|
|
265
|
+
if(!this.logined) return;
|
|
339
266
|
|
|
340
267
|
jfbRootExec('getBaseUserInfo', {
|
|
341
268
|
vm: this,
|
|
342
269
|
data: {}
|
|
343
|
-
}).then(res
|
|
270
|
+
}).then(res=>{
|
|
344
271
|
this.userInfo = res || {};
|
|
345
|
-
console.log('getBaseUserInfo',
|
|
346
|
-
}).catch(error
|
|
347
|
-
console.log('getBaseUserInfo',
|
|
272
|
+
console.log('getBaseUserInfo',res)
|
|
273
|
+
}).catch(error=>{
|
|
274
|
+
console.log('getBaseUserInfo',error)
|
|
348
275
|
})
|
|
349
276
|
},
|
|
350
277
|
/**
|
|
@@ -356,7 +283,7 @@
|
|
|
356
283
|
this.padding = getContainerPropsValue(container, 'content.padding', {});
|
|
357
284
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
358
285
|
this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
|
|
359
|
-
this.radius = getContainerPropsValue(container, 'content.radius', '
|
|
286
|
+
this.radius = getContainerPropsValue(container, 'content.radius', '10');
|
|
360
287
|
this.isSetting = getContainerPropsValue(container, 'content.isSetting', 'N');
|
|
361
288
|
// this.logoutName = getContainerPropsValue(container, 'content.logoutName', '[退出登录]');
|
|
362
289
|
this.imageRadius = getContainerPropsValue(container, 'content.imageRadius', '50%');
|
|
@@ -383,42 +310,18 @@
|
|
|
383
310
|
icon: "",
|
|
384
311
|
iconName: "",
|
|
385
312
|
});
|
|
386
|
-
this.addressUrl = getContainerPropsValue(container, 'content.addressUrl', {
|
|
313
|
+
this.addressUrl = getContainerPropsValue(container, 'content.addressUrl', {value: ""}).value;
|
|
387
314
|
this.bgImage = getServiceUrl(getContainerPropsValue(container, 'content.bgImage', '').url);
|
|
388
315
|
this.rightContentBgColor = getContainerPropsValue(container, 'content.rightContentBgColor', 'transparent');
|
|
389
316
|
// this.rightContentTextColor = getContainerPropsValue(container, 'content.rightContentTextColor', '');
|
|
390
317
|
this.rightContentPadding = getContainerPropsValue(container, 'content.rightContentPadding', {});
|
|
391
318
|
this.rightContentRadius = getContainerPropsValue(container, 'content.rightContentRadius', 0);
|
|
392
|
-
|
|
393
|
-
this.is_plus_site = getContainerPropsValue(container, 'content.is_plus_site', 'N');
|
|
394
|
-
this.is_plus_preview = getContainerPropsValue(container, 'content.is_plus_preview', 'N');
|
|
395
|
-
this.plusTopBackgroundColor = getContainerPropsValue(container, 'content.plusTopBackgroundColor', 'linear-gradient(270deg, rgba(250, 211, 140, 1) 0%, rgba(235, 185, 99, 1) 21.19%, rgba(232, 169, 66, 1) 100%)');
|
|
396
|
-
this.plusBottomBackgroundColor = getContainerPropsValue(container, 'content.plusBottomBackgroundColor', 'linear-gradient(90deg, #FFE4C2 0%, #FFF6E6 100%)');
|
|
397
|
-
this.normalTopBackgroundColor = getContainerPropsValue(container, 'content.normalTopBackgroundColor', '#fff');
|
|
398
|
-
this.normalBottomBackgroundColor = getContainerPropsValue(container, 'content.normalBottomBackgroundColor', 'linear-gradient(90deg, #FCF2DC 0%, #FAE7C4 100%)');
|
|
399
|
-
this.openVipPath = getContainerPropsValue(container, 'content.openVipPath', { value: "" }).value;
|
|
400
|
-
this.viewPath = getContainerPropsValue(container, 'content.viewPath', { value: "" }).value;
|
|
401
|
-
this.codePath = getContainerPropsValue(container, 'content.codePath', { value: "" }).value;
|
|
319
|
+
|
|
402
320
|
},
|
|
403
|
-
handleAddress()
|
|
321
|
+
handleAddress(){
|
|
404
322
|
this.$xdUniHelper.navigateTo({
|
|
405
323
|
url: this.addressUrl
|
|
406
324
|
})
|
|
407
|
-
},
|
|
408
|
-
handleToOpen(){
|
|
409
|
-
this.$xdUniHelper.navigateTo({
|
|
410
|
-
url: this.openVipPath
|
|
411
|
-
})
|
|
412
|
-
},
|
|
413
|
-
handleToView(){
|
|
414
|
-
this.$xdUniHelper.navigateTo({
|
|
415
|
-
url: this.viewPath
|
|
416
|
-
})
|
|
417
|
-
},
|
|
418
|
-
handleToCode() {
|
|
419
|
-
this.$xdUniHelper.navigateTo({
|
|
420
|
-
url: this.codePath
|
|
421
|
-
})
|
|
422
325
|
}
|
|
423
326
|
}
|
|
424
327
|
}
|
|
@@ -433,12 +336,10 @@
|
|
|
433
336
|
flex-direction: column;
|
|
434
337
|
justify-content: center;
|
|
435
338
|
align-items: center;
|
|
436
|
-
|
|
437
|
-
&>view:nth-child(2) {
|
|
339
|
+
& > view:nth-child(2) {
|
|
438
340
|
margin-left: unit(15, rpx);
|
|
439
341
|
}
|
|
440
|
-
|
|
441
|
-
&>view:nth-child(3) {
|
|
342
|
+
& > view:nth-child(3) {
|
|
442
343
|
width: 26rpx;
|
|
443
344
|
height: 26rpx;
|
|
444
345
|
margin-left: unit(15, rpx);
|
|
@@ -449,7 +350,7 @@
|
|
|
449
350
|
}
|
|
450
351
|
|
|
451
352
|
.jfb-base-user-info {
|
|
452
|
-
&__body
|
|
353
|
+
&__body{
|
|
453
354
|
&-header {
|
|
454
355
|
display: flex;
|
|
455
356
|
align-items: center;
|
|
@@ -466,25 +367,22 @@
|
|
|
466
367
|
width: 100%;
|
|
467
368
|
flex-direction: column;
|
|
468
369
|
|
|
469
|
-
|
|
370
|
+
& > view:last-child {
|
|
470
371
|
width: 100%;
|
|
471
372
|
text-align: center;
|
|
472
373
|
flex-shrink: 0;
|
|
473
374
|
padding-top: unit(20, rpx);
|
|
474
375
|
}
|
|
475
376
|
|
|
476
|
-
|
|
477
|
-
.no-image {
|
|
377
|
+
& > image, .no-image {
|
|
478
378
|
margin-right: unit(0, rpx);
|
|
479
379
|
}
|
|
480
380
|
}
|
|
481
381
|
|
|
482
|
-
|
|
483
|
-
.no-image {
|
|
382
|
+
& > image, .no-image {
|
|
484
383
|
width: unit(140, rpx);
|
|
485
384
|
height: unit(140, rpx);
|
|
486
|
-
margin-right: unit(30, rpx)
|
|
487
|
-
;
|
|
385
|
+
margin-right: unit(30, rpx);;
|
|
488
386
|
display: flex;
|
|
489
387
|
justify-content: center;
|
|
490
388
|
align-items: center;
|
|
@@ -496,129 +394,33 @@
|
|
|
496
394
|
border: unit(4, rpx) solid #e5e5e5;
|
|
497
395
|
}
|
|
498
396
|
|
|
499
|
-
|
|
397
|
+
& > view {
|
|
500
398
|
color: #383838;
|
|
501
399
|
font-size: unit(32, rpx);
|
|
502
400
|
}
|
|
503
401
|
}
|
|
504
402
|
|
|
505
|
-
|
|
403
|
+
& > view:nth-child(2) {
|
|
506
404
|
flex-shrink: 0;
|
|
507
405
|
}
|
|
508
406
|
}
|
|
509
|
-
|
|
510
|
-
&-plus-header {
|
|
511
|
-
.is_normal_top {
|
|
512
|
-
color: #333333;
|
|
513
|
-
|
|
514
|
-
.jfb-base-user-info__body-plus-header-top-left-info-name {
|
|
515
|
-
&>view:nth-child(2) {
|
|
516
|
-
color: #615850;
|
|
517
|
-
background: #FFE6C4;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.is_vip_top {
|
|
523
|
-
color: #fff;
|
|
524
|
-
|
|
525
|
-
.jfb-base-user-info__body-plus-header-top-left-info-name {
|
|
526
|
-
&>view:nth-child(2) {
|
|
527
|
-
color: #FFEFD7;
|
|
528
|
-
background: linear-gradient(180deg, #615243 0%, #2D2824 100%);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.is_normal_bottom {
|
|
534
|
-
color: #653D11;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.is_vip_bottom {
|
|
538
|
-
color: #915714;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
&-top {
|
|
542
|
-
display: flex;
|
|
543
|
-
justify-content: space-between;
|
|
544
|
-
padding: 40rpx;
|
|
545
|
-
|
|
546
|
-
&-left {
|
|
547
|
-
display: flex;
|
|
548
|
-
align-items: center;
|
|
549
|
-
|
|
550
|
-
&-info {
|
|
551
|
-
display: flex;
|
|
552
|
-
flex-direction: column;
|
|
553
|
-
font-size: 24rpx;
|
|
554
|
-
|
|
555
|
-
&-name {
|
|
556
|
-
display: flex;
|
|
557
|
-
align-items: center;
|
|
558
|
-
margin-bottom: 16rpx;
|
|
559
|
-
|
|
560
|
-
&>view:first-child {
|
|
561
|
-
margin-right: 8rpx;
|
|
562
|
-
font-size: 28rpx;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
&>view:nth-child(2) {
|
|
566
|
-
border-radius: 40rpx;
|
|
567
|
-
padding: 4rpx 16rpx;
|
|
568
|
-
|
|
569
|
-
&>span {
|
|
570
|
-
font-weight: 700;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
&>image,
|
|
577
|
-
.no-image {
|
|
578
|
-
width: 80rpx;
|
|
579
|
-
height: 80rpx;
|
|
580
|
-
border-radius: 50%;
|
|
581
|
-
margin-right: unit(30, rpx);
|
|
582
|
-
display: flex;
|
|
583
|
-
justify-content: center;
|
|
584
|
-
align-items: center;
|
|
585
|
-
flex-shrink: 0;
|
|
586
|
-
overflow: hidden;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.no-image {
|
|
590
|
-
border: unit(2, rpx) solid #C8C0B5;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
&-bottom {
|
|
596
|
-
font-size: 24rpx;
|
|
597
|
-
display: flex;
|
|
598
|
-
justify-content: space-between;
|
|
599
|
-
padding: 20rpx 40rpx;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
407
|
}
|
|
603
408
|
|
|
604
409
|
.logout {
|
|
605
410
|
font-size: unit(24, rpx);
|
|
606
|
-
|
|
607
|
-
.right_cont_i {
|
|
411
|
+
.right_cont_i{
|
|
608
412
|
display: flex;
|
|
609
413
|
align-items: center;
|
|
610
414
|
font-size: 28rpx;
|
|
611
415
|
color: inherit;
|
|
612
416
|
font-weight: 400;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
margin-right: 8rpx;
|
|
417
|
+
.xd-font-icon{
|
|
418
|
+
margin-right:8rpx;
|
|
616
419
|
}
|
|
617
420
|
}
|
|
618
|
-
|
|
619
|
-
&>view {
|
|
421
|
+
& > view {
|
|
620
422
|
cursor: pointer;
|
|
621
423
|
}
|
|
622
424
|
}
|
|
623
425
|
}
|
|
624
|
-
</style>
|
|
426
|
+
</style>
|