version/0412
fanfan 9 months ago
parent 6d9010a91a
commit 7c56405a15
  1. 18
      pages/activity/newsshop.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="newsshop" :style="{backgroundImage:'url('+shopItem.index_icon+')'}"> <view class="newsshop" :style="{backgroundImage:'url('+shopItem.index_icon+')'}">
<view class="newsshop-navbar"> <view class="newsshop-navbar">
<u-navbar :title="shopItem.title" back-icon-color="#fff" :border-bottom="false" title-color="#fff" <u-navbar :title="shopItem.title" back-icon-color="#fff" :border-bottom="false" title-color="#fff"
:background="background"></u-navbar> :background="background"></u-navbar>
@ -31,7 +31,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-empty text="暂无活动数据显示哦~" v-else mode="list"></u-empty> <!-- <u-empty text="暂无活动数据显示哦~" v-else mode="list"></u-empty> -->
</view> </view>
</template> </template>
@ -89,15 +89,13 @@
} }
Api.detail(pamars) Api.detail(pamars)
.then(result => { .then(result => {
if (result.data.length>0) { result.data.col.forEach(item => {
result.data.col.forEach(item => { item.sliceIndex = 6;
item.sliceIndex = 6; item.goods_list.forEach(item1 => {
item.goods_price_min = Number(item.goods_price_min); item1.goods_price_min = Number(item1.goods_price_min);
}); });
this.shopList = result.data.col.length > 0 ? result.data.col : []; });
}else{ this.shopList = result.data.col.length > 0 ? result.data.col : [];
this.shopList=[]
}
}) })
.finally() .finally()
}, },

Loading…
Cancel
Save