jufubao-base 1.0.239-beta2 → 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.
Files changed (129) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseFastLink/Attr.js +1 -12
  3. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
  4. package/src/components/JfbBaseHeader/Attr.js +0 -82
  5. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
  6. package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
  7. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
  8. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +13 -15
  9. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  10. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  11. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +9 -28
  12. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -174
  13. package/src/components/JfbBasePay/Attr.js +0 -52
  14. package/src/components/JfbBasePay/JfbBasePay.vue +6 -30
  15. package/src/components/JfbBasePay/Mock.js +9 -0
  16. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +2 -1
  17. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +19 -11
  18. package/src/components/JfbBasePoster/Attr.js +1 -1
  19. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  20. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -7
  21. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -12
  22. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -12
  23. package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
  24. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -2
  25. package/src/components/JfbBaseUserInfo/Attr.js +11 -175
  26. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +115 -337
  27. package/src/components/JfbBaseUserOrder/Attr.js +0 -16
  28. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +2 -11
  29. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +0 -10
  30. package/src/components/JfbBaseBalance/Api.js +0 -46
  31. package/src/components/JfbBaseBalance/Attr.js +0 -316
  32. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -334
  33. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
  34. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
  35. package/src/components/JfbBaseBalance/Mock.js +0 -9
  36. package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
  37. package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
  38. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
  39. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
  40. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
  41. package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
  42. package/src/components/JfbBaseConsumpCode/Api.js +0 -133
  43. package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
  44. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -1048
  45. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
  46. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
  47. package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
  48. package/src/components/JfbBaseNoticeGroup/Api.js +0 -23
  49. package/src/components/JfbBaseNoticeGroup/Attr.js +0 -237
  50. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +0 -174
  51. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +0 -79
  52. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +0 -30
  53. package/src/components/JfbBaseNoticeGroup/Mock.js +0 -13
  54. package/src/components/JfbBaseOpenVip/Api.js +0 -39
  55. package/src/components/JfbBaseOpenVip/Attr.js +0 -331
  56. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -457
  57. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
  58. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
  59. package/src/components/JfbBaseOpenVip/Mock.js +0 -7
  60. package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -131
  61. package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
  62. package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
  63. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
  64. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
  65. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
  66. package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
  67. package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
  68. package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
  69. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -234
  70. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
  71. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
  72. package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -15
  73. package/src/components/JfbBasePersonalData/Api.js +0 -26
  74. package/src/components/JfbBasePersonalData/Attr.js +0 -13
  75. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -200
  76. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
  77. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
  78. package/src/components/JfbBasePersonalData/Mock.js +0 -13
  79. package/src/components/JfbBasePointsCard/Api.js +0 -18
  80. package/src/components/JfbBasePointsCard/Attr.js +0 -187
  81. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -212
  82. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
  83. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
  84. package/src/components/JfbBasePointsCard/Mock.js +0 -5
  85. package/src/components/JfbBasePointsDetail/Api.js +0 -48
  86. package/src/components/JfbBasePointsDetail/Attr.js +0 -305
  87. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
  88. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
  89. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
  90. package/src/components/JfbBasePointsDetail/Mock.js +0 -6
  91. package/src/components/JfbBasePosterGroup/Api.js +0 -22
  92. package/src/components/JfbBasePosterGroup/Attr.js +0 -156
  93. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -268
  94. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
  95. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
  96. package/src/components/JfbBasePosterGroup/Mock.js +0 -13
  97. package/src/components/JfbBaseSavingDetail/Api.js +0 -41
  98. package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
  99. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -710
  100. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
  101. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
  102. package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
  103. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
  104. package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
  105. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
  106. package/src/components/JfbBaseShare/Api.js +0 -20
  107. package/src/components/JfbBaseShare/Attr.js +0 -59
  108. package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -276
  109. package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
  110. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
  111. package/src/components/JfbBaseShare/Mock.js +0 -16
  112. package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
  113. package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
  114. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -354
  115. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
  116. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
  117. package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
  118. package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
  119. package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
  120. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
  121. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
  122. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
  123. package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
  124. package/src/components/JfbBaseWithdraw/Api.js +0 -48
  125. package/src/components/JfbBaseWithdraw/Attr.js +0 -328
  126. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -272
  127. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
  128. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
  129. package/src/components/JfbBaseWithdraw/Mock.js +0 -7
@@ -1,104 +1,84 @@
1
1
  <template>
2
- <view class="jfb-base-user-info" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
2
+ <view
3
+ class="jfb-base-user-info"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
3
7
  <!--#ifdef H5-->
4
- <view class="jfb-base-user-info__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
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 v-if="is_plus_site==='Y'">
11
- <view :style="[boxPlusStyleComp]" class="jfb-base-user-info__body-plus-header" v-if="userInfo !== null">
12
- <view :style="[boxPlusStyleCompTop]" :class="is_vip==='Y'?'is_vip_top':'is_normal_top'"
13
- class="jfb-base-user-info__body-plus-header-top">
14
- <view class="jfb-base-user-info__body-plus-header-top-left">
15
- <template v-if="logined">
16
- <image @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}"
17
- v-if="userInfo['head_url']" :src="userInfo['head_url']"></image>
18
- <view :style="{borderColor: imageColor, borderRadius:imageRadius}" class="no-image" v-else>
19
- <xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
20
- </view>
21
- </template>
22
- <view @click="handleToPersonal" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else class="no-image">
23
- <xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
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 class="jfb-base-user-info__body-plus-header-top-left-info">
26
- <view class="jfb-base-user-info__body-plus-header-top-left-info-name" v-if="logined">
27
- <view :style="is_vip==='Y'?[plusNickNameStyle]:[normalNickNameStyle]">{{userInfo|getName}} </view>
28
- <view v-if="is_vip==='Y'"><text>PLUS</text>会员</view>
29
- <view v-else>普通用户</view>
30
- </view>
31
- <view>{{userInfo.phone_number}}</view>
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="handleToCode" class="jfb-base-user-info__body-plus-header-right">
35
- <xd-font-icon size="40" icon="iconerweima"></xd-font-icon>
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
- </view>
47
- <view v-else>
48
- <view class="jfb-base-user-info__body-header" :style="[boxStyleComp]" v-if="userInfo !== null">
49
- <view class="jfb-base-user-info__body-header-left"
50
- :class="{center: textType === 'N',vertical: textType === 'Y'}">
51
- <template v-if="logined">
52
- <image v-if="userInfo['head_url']" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}"
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="logined && textType ==='N' && rightContent && rightContent.type !== 'hidden'" class="logout"
85
- :style="[logoutBtnStyle]">
86
- <view v-if="rightContent && rightContent.type === 'logout'" class="right_cont_i" :style="[logoutStyleComp]"
87
- @click="handleLogout()">
88
- <xd-font-icon v-if="rightContent.icon" class="xd-font-icon" :icon="rightContent.icon"
89
- :size="28"></xd-font-icon>
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 { mapState } from 'vuex';
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, extsMixins, JfbBaseUserInfoMixin],
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,77 +128,30 @@
148
128
  }
149
129
  },
150
130
 
151
- boxPlusStyleComp() {
152
- let border = this.getBorderCompatibleOldStyle(this.contBorder, {
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
- plusNickNameStyle() {
194
- return {
195
- fontSize: this.plusNickStyle.fontSize || '32rpx',
196
- color: `${this.plusNickStyle.color ||'#333'}`,
197
- fontWeight: `${this.plusNickStyle.fontWeight || 'normal'}`,
198
- }
199
- },
200
- normalNickNameStyle() {
201
- return {
202
- fontSize: this.normalNickStyle.fontSize || '32rpx',
203
- color: `${this.normalNickStyle.color ||'#333'}`,
204
- fontWeight: `${this.normalNickStyle.fontWeight || 'normal'}`,
205
- }
206
- },
207
- nickNameStyle() {
139
+
140
+ nickNameStyle(){
208
141
  return {
209
142
  fontSize: this.nickStyle.fontSize || '32rpx',
210
- color: `${this.nickStyle.color ||'#333'}`,
143
+ color: `${this.nickStyle.color || '#333'}`,
211
144
  fontWeight: `${this.nickStyle.fontWeight || 'normal'}`,
212
145
  }
213
146
  },
214
- logoutStyleComp() {
147
+ logoutStyleComp(){
215
148
  return {
216
149
  fontSize: this.logoutStyle.fontSize || '20rpx',
217
150
  color: `${this.logoutStyle.color || '#333'}`,
218
151
  fontWeight: `${this.logoutStyle.fontWeight || 'normal'}`,
219
152
  }
220
153
  },
221
- logoutBtnStyle() {
154
+ logoutBtnStyle(){
222
155
  let padding = `${this.checkValue(this.rightContentPadding.top, 20)}rpx`;
223
156
  padding = `${padding} ${this.checkValue(this.rightContentPadding.right, 20)}rpx`;
224
157
  padding = `${padding} ${this.checkValue(this.rightContentPadding.bottom, 20)}rpx`;
@@ -231,8 +164,8 @@
231
164
  }
232
165
  }
233
166
  },
234
- filters: {
235
- getName(val) {
167
+ filters:{
168
+ getName(val){
236
169
  return val.nickname || val['real_name'] || val['user_name'] || val['phone_number'];
237
170
  }
238
171
  },
@@ -240,9 +173,9 @@
240
173
  return {
241
174
  logined: false,
242
175
  userInfo: null,
243
- isSetting: 'N',
176
+ isSetting:'N',
244
177
  // logoutName:'[退出登录]',
245
- imageRadius: '50%',
178
+ imageRadius:'50%',
246
179
 
247
180
  //基础
248
181
  imageColor: '#333',
@@ -251,13 +184,13 @@
251
184
  radius: 0,
252
185
 
253
186
  //投影
254
- contShadow: {},
187
+ contShadow:{},
255
188
  is_shadow: 'N',
256
189
  is_shadow_bg: 0,
257
190
  is_shadow_w: 0,
258
191
 
259
192
  //边框
260
- contBorder: {},
193
+ contBorder:{},
261
194
  is_border: 'N',
262
195
  is_border_w: 0,
263
196
  is_border_c: '',
@@ -265,69 +198,47 @@
265
198
  //其他
266
199
  margin: {},
267
200
  padding: {},
268
- nickStyle: {},
269
- normalNickStyle: {},
270
- plusNickStyle: {},
271
- logoutStyle: {},
201
+ nickStyle:{},
202
+ logoutStyle:{},
272
203
  rightContent: null,
273
204
  addressUrl: '',
274
205
  bgImage: "",
275
206
  rightContentBgColor: "",
276
207
  // rightContentTextColor: "",
277
208
  rightContentPadding: "",
278
- rightContentRadius: 0,
279
- is_plus_site: '',
280
- is_vip: 'N',
281
- is_plus_preview: 'N', //预览vip样式
282
- openVipPath: '',
283
- viewPath: '',
284
- plusTopBackgroundColor: '',
285
- plusBottomBackgroundColor: '',
286
- normalTopBackgroundColor: '',
287
- normalBottomBackgroundColor: '',
288
- codePath: '',
289
- profilePath: ''
209
+ rightContentRadius: 0
290
210
  }
291
211
  },
292
212
  watch: {
293
- container(value, oldValue) {
294
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
213
+ container(value,oldValue) {
214
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
295
215
  if (this.$configProject['isPreview']) this.init(value)
296
- },
297
- is_plus_preview() {
298
- if (this.$configProject['isPreview']) {
299
- this.is_vip = this.is_plus_preview
300
- }
301
216
  }
302
217
  },
303
218
  created() {
304
- console.log(this.getTokenForKey('user_level'),'user_leveluser_level');
305
- console.log(this.projectAttr.headers['X-Site-Group'],'this.$configProject');
306
- this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
307
- this.is_vip = this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP'?'Y':'N'
308
219
  this.init(this.container);
309
220
  },
310
221
  methods: {
311
- handleToLink() {
222
+ handleToLink(){
312
223
  this.$xdUniHelper.navigateTo({
313
224
  url: '/pages/settings/settings'
314
225
  })
315
226
  },
316
227
 
317
- async handleLogout() {
228
+ async handleLogout(){
318
229
  // #ifdef H5
319
230
  if (this.$configProject.isPreview) return;
320
231
  // #endif
321
232
 
322
233
  if (this.jfbAuthorize !== null) {
323
234
  this.$xdShowLoading({});
324
- store.dispatch('logout').then(res => {
235
+ store.dispatch('logout').then(res=>{
325
236
  let url = this.$configProject.entry || `/${this.projectAttr.deploy_dir}/`;
326
237
  this.$xdHideLoading();
327
238
  this.jfbAuthorize.removeAllCardToken();
328
239
  this.jfbAuthorize.removeAllToken()
329
240
  this.jfbAuthorize.jumpToUserLogin(this, false, url);
330
- }).catch(err => {
241
+ }).catch(err=>{
331
242
  console.error(err);
332
243
  })
333
244
  }
@@ -336,7 +247,7 @@
336
247
  async onJfbLoad(options) {
337
248
 
338
249
  //预览模式
339
- if (this.$configProject.isPreview) {
250
+ if(this.$configProject.isPreview) {
340
251
  jfbRootExec('getBaseUserInfo', {
341
252
  vm: this,
342
253
  data: {}
@@ -351,16 +262,16 @@
351
262
  }
352
263
 
353
264
  this.logined = await this.jfbAuthorize.checkUserLogin(true, this, false);
354
- if (!this.logined) return;
265
+ if(!this.logined) return;
355
266
 
356
267
  jfbRootExec('getBaseUserInfo', {
357
268
  vm: this,
358
269
  data: {}
359
- }).then(res => {
270
+ }).then(res=>{
360
271
  this.userInfo = res || {};
361
- console.log('getBaseUserInfo', res)
362
- }).catch(error => {
363
- console.log('getBaseUserInfo', error)
272
+ console.log('getBaseUserInfo',res)
273
+ }).catch(error=>{
274
+ console.log('getBaseUserInfo',error)
364
275
  })
365
276
  },
366
277
  /**
@@ -372,7 +283,7 @@
372
283
  this.padding = getContainerPropsValue(container, 'content.padding', {});
373
284
  this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
374
285
  this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
375
- this.radius = getContainerPropsValue(container, 'content.radius', '20');
286
+ this.radius = getContainerPropsValue(container, 'content.radius', '10');
376
287
  this.isSetting = getContainerPropsValue(container, 'content.isSetting', 'N');
377
288
  // this.logoutName = getContainerPropsValue(container, 'content.logoutName', '[退出登录]');
378
289
  this.imageRadius = getContainerPropsValue(container, 'content.imageRadius', '50%');
@@ -399,50 +310,18 @@
399
310
  icon: "",
400
311
  iconName: "",
401
312
  });
402
- this.addressUrl = getContainerPropsValue(container, 'content.addressUrl', { value: "" }).value;
313
+ this.addressUrl = getContainerPropsValue(container, 'content.addressUrl', {value: ""}).value;
403
314
  this.bgImage = getServiceUrl(getContainerPropsValue(container, 'content.bgImage', '').url);
404
315
  this.rightContentBgColor = getContainerPropsValue(container, 'content.rightContentBgColor', 'transparent');
405
316
  // this.rightContentTextColor = getContainerPropsValue(container, 'content.rightContentTextColor', '');
406
317
  this.rightContentPadding = getContainerPropsValue(container, 'content.rightContentPadding', {});
407
318
  this.rightContentRadius = getContainerPropsValue(container, 'content.rightContentRadius', 0);
408
- //plus
409
- this.is_plus_site = getContainerPropsValue(container, 'content.is_plus_site', 'N');
410
- this.is_plus_preview = getContainerPropsValue(container, 'content.is_plus_preview', 'N');
411
- 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%)');
412
- this.plusBottomBackgroundColor = getContainerPropsValue(container, 'content.plusBottomBackgroundColor', 'linear-gradient(90deg, #FFE4C2 0%, #FFF6E6 100%)');
413
- this.normalTopBackgroundColor = getContainerPropsValue(container, 'content.normalTopBackgroundColor', '#fff');
414
- this.normalBottomBackgroundColor = getContainerPropsValue(container, 'content.normalBottomBackgroundColor', 'linear-gradient(90deg, #FCF2DC 0%, #FAE7C4 100%)');
415
- this.openVipPath = getContainerPropsValue(container, 'content.openVipPath', { value: "" }).value;
416
- this.viewPath = getContainerPropsValue(container, 'content.viewPath', { value: "" }).value;
417
- this.codePath = getContainerPropsValue(container, 'content.codePath', { value: "" }).value;
418
- this.profilePath = getContainerPropsValue(container, 'content.profilePath', { value: "" }).value;
419
- this.plusNickStyle = getContainerPropsValue(container, 'content.plusNickStyle', {});
420
- this.normalNickStyle = getContainerPropsValue(container, 'content.normalNickStyle', {});
421
- },
422
- handleToPersonal(){
423
- this.$xdUniHelper.navigateTo({
424
- url: this.profilePath
425
- })
319
+
426
320
  },
427
- handleAddress() {
321
+ handleAddress(){
428
322
  this.$xdUniHelper.navigateTo({
429
323
  url: this.addressUrl
430
324
  })
431
- },
432
- handleToOpen(){
433
- this.$xdUniHelper.navigateTo({
434
- url: this.openVipPath
435
- })
436
- },
437
- handleToView(){
438
- this.$xdUniHelper.navigateTo({
439
- url: this.viewPath
440
- })
441
- },
442
- handleToCode() {
443
- this.$xdUniHelper.navigateTo({
444
- url: this.codePath
445
- })
446
325
  }
447
326
  }
448
327
  }
@@ -457,12 +336,10 @@
457
336
  flex-direction: column;
458
337
  justify-content: center;
459
338
  align-items: center;
460
-
461
- &>view:nth-child(2) {
339
+ & > view:nth-child(2) {
462
340
  margin-left: unit(15, rpx);
463
341
  }
464
-
465
- &>view:nth-child(3) {
342
+ & > view:nth-child(3) {
466
343
  width: 26rpx;
467
344
  height: 26rpx;
468
345
  margin-left: unit(15, rpx);
@@ -473,7 +350,7 @@
473
350
  }
474
351
 
475
352
  .jfb-base-user-info {
476
- &__body {
353
+ &__body{
477
354
  &-header {
478
355
  display: flex;
479
356
  align-items: center;
@@ -490,25 +367,22 @@
490
367
  width: 100%;
491
368
  flex-direction: column;
492
369
 
493
- &>view:last-child {
370
+ & > view:last-child {
494
371
  width: 100%;
495
372
  text-align: center;
496
373
  flex-shrink: 0;
497
374
  padding-top: unit(20, rpx);
498
375
  }
499
376
 
500
- &>image,
501
- .no-image {
377
+ & > image, .no-image {
502
378
  margin-right: unit(0, rpx);
503
379
  }
504
380
  }
505
381
 
506
- &>image,
507
- .no-image {
382
+ & > image, .no-image {
508
383
  width: unit(140, rpx);
509
384
  height: unit(140, rpx);
510
- margin-right: unit(30, rpx);
511
- ;
385
+ margin-right: unit(30, rpx);;
512
386
  display: flex;
513
387
  justify-content: center;
514
388
  align-items: center;
@@ -520,129 +394,33 @@
520
394
  border: unit(4, rpx) solid #e5e5e5;
521
395
  }
522
396
 
523
- &>view {
397
+ & > view {
524
398
  color: #383838;
525
399
  font-size: unit(32, rpx);
526
400
  }
527
401
  }
528
402
 
529
- &>view:nth-child(2) {
403
+ & > view:nth-child(2) {
530
404
  flex-shrink: 0;
531
405
  }
532
406
  }
533
-
534
- &-plus-header {
535
- .is_normal_top {
536
- color: #333333;
537
-
538
- .jfb-base-user-info__body-plus-header-top-left-info-name {
539
- &>view:nth-child(2) {
540
- color: #615850;
541
- background: #FFE6C4;
542
- }
543
- }
544
- }
545
-
546
- .is_vip_top {
547
- color: #fff;
548
-
549
- .jfb-base-user-info__body-plus-header-top-left-info-name {
550
- &>view:nth-child(2) {
551
- color: #FFEFD7;
552
- background: linear-gradient(180deg, #615243 0%, #2D2824 100%);
553
- }
554
- }
555
- }
556
-
557
- .is_normal_bottom {
558
- color: #653D11;
559
- }
560
-
561
- .is_vip_bottom {
562
- color: #915714;
563
- }
564
-
565
- &-top {
566
- display: flex;
567
- justify-content: space-between;
568
- padding: 40rpx;
569
-
570
- &-left {
571
- display: flex;
572
- align-items: center;
573
-
574
- &-info {
575
- display: flex;
576
- flex-direction: column;
577
- font-size: 24rpx;
578
-
579
- &-name {
580
- display: flex;
581
- align-items: center;
582
- margin-bottom: 16rpx;
583
-
584
- &>view:first-child {
585
- margin-right: 8rpx;
586
- font-size: 28rpx;
587
- }
588
-
589
- &>view:nth-child(2) {
590
- border-radius: 40rpx;
591
- padding: 4rpx 16rpx;
592
-
593
- &>span {
594
- font-weight: 700;
595
- }
596
- }
597
- }
598
- }
599
-
600
- &>image,
601
- .no-image {
602
- width: 80rpx;
603
- height: 80rpx;
604
- border-radius: 50%;
605
- margin-right: unit(30, rpx);
606
- display: flex;
607
- justify-content: center;
608
- align-items: center;
609
- flex-shrink: 0;
610
- overflow: hidden;
611
- }
612
-
613
- .no-image {
614
- border: unit(2, rpx) solid #C8C0B5;
615
- }
616
- }
617
- }
618
-
619
- &-bottom {
620
- font-size: 24rpx;
621
- display: flex;
622
- justify-content: space-between;
623
- padding: 20rpx 40rpx;
624
- }
625
- }
626
407
  }
627
408
 
628
409
  .logout {
629
410
  font-size: unit(24, rpx);
630
-
631
- .right_cont_i {
411
+ .right_cont_i{
632
412
  display: flex;
633
413
  align-items: center;
634
414
  font-size: 28rpx;
635
415
  color: inherit;
636
416
  font-weight: 400;
637
-
638
- .xd-font-icon {
639
- margin-right: 8rpx;
417
+ .xd-font-icon{
418
+ margin-right:8rpx;
640
419
  }
641
420
  }
642
-
643
- &>view {
421
+ & > view {
644
422
  cursor: pointer;
645
423
  }
646
424
  }
647
425
  }
648
- </style>
426
+ </style>