jufubao-base 1.0.46-beta1 → 1.0.46-beta2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.46-beta1",
3
+ "version": "1.0.46-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -40,10 +40,16 @@
40
40
  <view class="no-image" :style="{borderColor: color}" v-else>
41
41
  <xd-font-icon :color="color" icon="iconwode_mian" size="90"></xd-font-icon>
42
42
  </view>
43
- <view v-if="logined" :style="{color:color}">{{userInfo|getName}}</view>
43
+ <view v-if="logined && textType ==='N'" :style="{color:color}">{{userInfo|getName}}</view>
44
+ <view class="vertical-user" v-if="logined && textType ==='Y'" :style="{color:color}">
45
+ <view>{{userInfo|getName}}</view>
46
+ <view @click="handleToLink()">
47
+ <xd-font-icon :color="color" size="40" icon="iconshezhi_mian"></xd-font-icon>
48
+ </view>
49
+ </view>
44
50
  </view>
45
- <view @click="handleToLink()" v-if="logined && 0">
46
- <xd-font-icon :color="color" size="28" icon="iconshezhi_mian"></xd-font-icon>
51
+ <view @click="handleToLink()" v-if="logined && textType ==='N' ">
52
+ <xd-font-icon :color="color" size="40" icon="iconshezhi_mian"></xd-font-icon>
47
53
  </view>
48
54
  </view>
49
55
  </view>
@@ -145,7 +151,7 @@
145
151
  methods: {
146
152
  handleToLink(){
147
153
  this.$xdUniHelper.navigateTo({
148
- url: this.address_url
154
+ url: '/pages/settings/settings'
149
155
  })
150
156
  },
151
157
  async onJfbLoad(options) {
@@ -189,6 +195,7 @@
189
195
  this.color = getContainerPropsValue(container, 'content.textColor', '#333');
190
196
  this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', 'rgba(0,0,0,0)');
191
197
  this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
198
+ this.textType = 'Y'
192
199
 
193
200
  this.is_shadow = getContainerPropsValue(container, 'content.is_shadow', 'N');
194
201
  this.is_shadow_bg = getContainerPropsValue(container, 'content.is_shadow_bg', '#fff');
@@ -207,6 +214,15 @@
207
214
 
208
215
  <style scoped lang="less">
209
216
  @import "./JfbBaseUserInfoLess.less";
217
+
218
+ .vertical-user {
219
+ display: flex;
220
+ justify-content: center;
221
+ align-items: center;
222
+ & > view:nth-child(2) {
223
+ margin-left: unit(10, rpx);
224
+ }
225
+ }
210
226
 
211
227
  .jfb-base-user-info {
212
228
  &__body{
@@ -219,6 +235,7 @@
219
235
  &-left {
220
236
  display: flex;
221
237
  align-items: center;
238
+ flex: 1;
222
239
 
223
240
  &.vertical {
224
241
  width: 100%;
@@ -230,6 +247,10 @@
230
247
  flex-shrink: 0;
231
248
  padding-top: unit(20, rpx);
232
249
  }
250
+
251
+ & > image, .no-image {
252
+ margin-right: unit(0, rpx);
253
+ }
233
254
  }
234
255
 
235
256
  & > image, .no-image {
@@ -254,6 +275,9 @@
254
275
  }
255
276
  }
256
277
 
278
+ & > view:nth-child(2) {
279
+ flex-shrink: 0;
280
+ }
257
281
  }
258
282
  }
259
283
  }