jufubao-base 1.0.221 → 1.0.222

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.221",
3
+ "version": "1.0.222",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -246,7 +246,7 @@ export default {
246
246
 
247
247
  if(res && res.site_entry_settings && res.site_entry_settings.length>0) {
248
248
  res.site_entry_settings = res.site_entry_settings.filter(item=>{
249
- item['image_url'] = getServiceUrl(item['image_url'])
249
+ item['image_url'] = getServiceUrl(item['image_url'], 'size2')
250
250
  return res.business_codes.includes(item.business_code)
251
251
  })
252
252
  }
@@ -240,7 +240,7 @@ export default {
240
240
  ) {
241
241
  this.info.site_entry_settings =
242
242
  this.info.site_entry_settings.filter((item) => {
243
- item["image_url"] = getServiceUrl(item["image_url"]);
243
+ item["image_url"] = getServiceUrl(item["image_url"], 'size2');
244
244
  return this.info.business_codes.includes(item.business_code);
245
245
  });
246
246
  }
@@ -363,7 +363,7 @@ export default {
363
363
 
364
364
  if(res && res.site_entry_settings && res.site_entry_settings.length > 0) {
365
365
  temp.site_entry_settings = res.site_entry_settings.filter(item=>{
366
- item['image_url'] = getServiceUrl(item['image_url'])
366
+ item['image_url'] = getServiceUrl(item['image_url'], 'size2')
367
367
  return res.business_codes.includes(item.business_code)
368
368
  })
369
369
  }
@@ -400,7 +400,7 @@ export default {
400
400
  });
401
401
  if(res && res.site_entry_settings && res.site_entry_settings.length>0) {
402
402
  temp.site_entry_settings = res.site_entry_settings.filter(item=>{
403
- item['image_url'] = getServiceUrl(item['image_url'])
403
+ item['image_url'] = getServiceUrl(item['image_url'], 'size2')
404
404
  return res.business_codes.includes(item.business_code)
405
405
  })
406
406
  }
@@ -217,7 +217,7 @@ export default {
217
217
  ) {
218
218
  this.info.site_entry_settings =
219
219
  this.info.site_entry_settings.filter((item) => {
220
- item["image_url"] = getServiceUrl(item["image_url"]);
220
+ item["image_url"] = getServiceUrl(item["image_url"], 'size2');
221
221
  return this.info.business_codes.includes(item.business_code);
222
222
  });
223
223
  }
@@ -256,7 +256,7 @@ export default {
256
256
 
257
257
  toUse() {
258
258
  console.log(this.use_url,'this.use_url');
259
-
259
+
260
260
  this.$xdUniHelper.navigateTo({
261
261
  url: `${this.use_url}`,
262
262
  });
@@ -56,17 +56,17 @@
56
56
  mixins: [componentsMixins,extsMixins,JfbBaseFooterMixin],
57
57
  computed:{
58
58
  bodyStyle(){
59
- let background = 'url(none)';
60
- if(this.backgroundImage && this.backgroundImage.url) {
61
- background = `url(${getServiceUrl(this.backgroundImage.url)})`;
62
- }
63
- return {
59
+ let params = {
64
60
  height: this.height + 'rpx',
65
- backgroundImage: background,
66
61
  backgroundSize: '100% 100%',
67
62
  backgroundRepeat: 'no-repeat',
68
63
  backgroundPosition: 'top center',
69
64
  }
65
+
66
+ if(this.backgroundImage && this.backgroundImage.url) {
67
+ params['backgroundImage'] = `url(${getServiceUrl(this.backgroundImage.url)})`;
68
+ }
69
+ return params
70
70
  }
71
71
  },
72
72
  data() {
@@ -508,9 +508,7 @@
508
508
  <view :style="{ background: mainColor }"></view>
509
509
  <view>{{ info.shop.layer_name }}</view>
510
510
  </view>
511
- <view class="jfb-base-order-detail__body-shop-name">
512
- {{ info.shop.shop_name }}
513
- </view>
511
+ <view class="jfb-base-order-detail__body-shop-name">{{ info.shop.shop_name }}</view>
514
512
  <view class="jfb-base-order-detail__body-shop-address">地址: {{ info.shop.shop_address }}</view>
515
513
  </view>
516
514
  <view
@@ -1052,7 +1050,7 @@ export default {
1052
1050
  res.sub_orders &&
1053
1051
  res.sub_orders.map((item) => {
1054
1052
  item.products = item.products.map((Sitem) => {
1055
- Sitem.product_thumb = getServiceUrl(Sitem.product_thumb);
1053
+ Sitem.product_thumb = getServiceUrl(Sitem.product_thumb, 'size4');
1056
1054
  Sitem.sale_price = this.$xdUniHelper.divisionFloatNumber(
1057
1055
  Sitem.sale_price,
1058
1056
  100
@@ -1088,7 +1086,7 @@ export default {
1088
1086
  res.codes &&
1089
1087
  res.codes.map((item) => {
1090
1088
  if(item.logo) {
1091
- item.logo = getServiceUrl(item.logo)
1089
+ item.logo = getServiceUrl(item.logo, 'size5')
1092
1090
  }
1093
1091
  if (
1094
1092
  item.show_type === "qrcode"
@@ -1131,7 +1129,7 @@ export default {
1131
1129
  res.film_show.show_time = this.$xdUniHelper.getDate(
1132
1130
  res.film_show.show_time * 1000
1133
1131
  ).fullTime;
1134
- res.film_show.thumb = getServiceUrl(res.film_show.thumb);
1132
+ res.film_show.thumb = getServiceUrl(res.film_show.thumb, 'size4');
1135
1133
  }
1136
1134
 
1137
1135
  //增加删除订单按钮
@@ -97,7 +97,7 @@
97
97
  :key="Sitem.key"
98
98
  v-if="(item['isOpen'] === false && Sindex < showLen) || item['isOpen']"
99
99
  >
100
- <image :src="setImageCdnUrl(Sitem.product_thumb)" style="background: #ffffff" mode="aspectFit"></image>
100
+ <image :src="Sitem.product_thumb" style="background: #ffffff" mode="aspectFit"></image>
101
101
  <view class="jfb-base-order-list__body-order-item-content-info">
102
102
  <view class="jfb-base-order-list__body-order-item-content-info-name">{{ Sitem.product_name }}</view>
103
103
  <view class="brand-name" v-if="Sitem.brand_name" :style="{color:brandTextColor}">{{ Sitem.brand_name }}</view>
@@ -307,9 +307,6 @@ export default {
307
307
  this.init(this.container);
308
308
  },
309
309
  methods: {
310
- setImageCdnUrl(url){
311
- return getServiceUrl(url,'size4')
312
- },
313
310
  getKey(id, index){
314
311
  return id + index;
315
312
  },
@@ -379,9 +376,6 @@ export default {
379
376
  item['isOpen'] = !item['isOpen']
380
377
  },
381
378
 
382
- switchOpen(item){
383
- item['isOpen'] = !item['isOpen']
384
- },
385
379
 
386
380
  cancelUnPayOrder(main_order_id) {
387
381
  this.$xdConfirm({
@@ -456,7 +450,7 @@ export default {
456
450
  item.products = item.products.map((prod, i) => {
457
451
  prod['key'] = prod.product_id + i;
458
452
  prod["product_thumb"] = prod.product_thumb
459
- ? getServiceUrl(prod.product_thumb)
453
+ ? getServiceUrl(prod.product_thumb, 'size3')
460
454
  : "";
461
455
  return prod;
462
456
  });