jufubao-base 1.0.45 → 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.45",
3
+ "version": "1.0.46-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -481,16 +481,18 @@ export default {
481
481
  this.inCallback = inCallback || this.allEntryPath || this.settings.index;
482
482
  this.getContent();
483
483
 
484
- this.getCardList();
484
+ this.getCardList(options);
485
485
  },
486
486
 
487
- getCardList() {
487
+ getCardList(options) {
488
+ let params = {is_all: 'Y'};
489
+ if(options['jfb_business_code']) {
490
+ params['card_business_code'] = options['jfb_business_code'];
491
+ }
488
492
  this.$xdShowLoading({});
489
493
  jfbRootExec("getListCardBind", {
490
494
  vm: this,
491
- data: {
492
- is_all: "Y",
493
- },
495
+ data: params
494
496
  })
495
497
  .then((res) => {
496
498
  this.showDisabled = res.is_show_invalid_card_entrance;
@@ -124,12 +124,15 @@
124
124
  let { inCallback } = options;
125
125
  if (inCallback) inCallback = Base64.decode(inCallback);
126
126
  this.inCallback = inCallback || this.settings.index;
127
-
127
+
128
+ let params = {is_all: 'Y'};
129
+ if (options['jfb_business_code']) {
130
+ params['card_business_code'] = options['jfb_business_code'];
131
+ }
132
+
128
133
  jfbRootExec("getListCardBind", {
129
134
  vm: this,
130
- data: {
131
- is_all: "Y",
132
- },
135
+ data: params,
133
136
  }).then((res) => {
134
137
  this.cardList = res.list.map((item) => {
135
138
  item['card_point'] = this.$xdUniHelper.divisionFloatNumber(item.card_point,100);
@@ -83,12 +83,15 @@
83
83
  let { inCallback } = options;
84
84
  if (inCallback) inCallback = Base64.decode(inCallback);
85
85
  this.inCallback = inCallback || this.settings.index;
86
-
86
+
87
+ let params = {is_all: 'Y'};
88
+ if (options['jfb_business_code']) {
89
+ params['card_business_code'] = options['jfb_business_code'];
90
+ }
91
+
87
92
  jfbRootExec("getListCardBind", {
88
93
  vm: this,
89
- data: {
90
- is_all: "Y",
91
- },
94
+ data: params,
92
95
  }).then((res) => {
93
96
  this.cardList = res.list.map((item) => {
94
97
  item['card_point'] = this.$xdUniHelper.divisionFloatNumber(item.card_point,100);
@@ -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
  }