jufubao-mall 2.0.78-beta2 → 2.0.78-beta4

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-mall",
3
- "version": "2.0.78-beta2",
3
+ "version": "2.0.78-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -497,17 +497,8 @@
497
497
  //设置业务请求代码
498
498
  this.setNameSpace(options);
499
499
  this.special_id = options.special_id;
500
- this.category_id = options.category_id;
501
500
  this.options = options;
502
- this.$xdShowLoading({});
503
- Promise.all([this.getSpecialHomeInfo(), this.getList()])
504
- .then(res=>{
505
- this.done = true;
506
- this.$xdHideLoading();
507
- })
508
- .catch(err=>{
509
- this.$xdHideLoading();
510
- })
501
+ this.getSpecialHomeInfo()
511
502
  },
512
503
 
513
504
  getItemData(cellIndex,data){
@@ -543,6 +534,7 @@
543
534
  .then(res => {
544
535
  this.loading = false;
545
536
  this.$xdHideLoading();
537
+ this.done = true;
546
538
  let list = res.list.map((item,index) => {
547
539
  item['thumb'] = item.thumb ? getServiceUrl(item.thumb, "size4") : "";
548
540
  if(this.productConfig.isPrice==='N'){
@@ -682,12 +674,14 @@
682
674
 
683
675
  //分类列表信息
684
676
  this.categories = this.$xdUniHelper.cloneDeep(new_categories);
677
+ this.category_id = this.categories[0].category_id;
685
678
  //专题信息 - 广告位类型:视频|图片
686
679
  let new_special = await this.getPoster(special);
687
680
  this.special = Object.assign({}, new_special, {
688
681
  banner_img: new_special.banner_img ? getServiceUrl(new_special.banner_img) : "",
689
682
  });
690
683
  console.log(this.special, 'special')
684
+ this.getList()
691
685
  resolve()
692
686
  }).catch(err=>{
693
687
  reject(err)