细节修改

version/0412
fanfan 9 months ago
parent eb9e1272e9
commit 63123bb382
  1. 15
      pages/activity/charts.vue
  2. 9
      pages/activity/newGoods.vue
  3. 12
      pages/activity/newPeople.vue
  4. 5
      pages/activity/newsshop.vue
  5. 9
      pages/activity/presale.vue
  6. 9
      pages/activity/ranking.vue
  7. 14
      pages/user/vip/goods.vue

@ -41,7 +41,7 @@
</view>
<view class="opera">
<view class="price">
<text>{{item.goods_price_min}}</text>
<text>{{item.goods_price_min?Number(item.goods_price_min):''}}</text>
</view>
<view class="look">
去看看
@ -124,7 +124,9 @@
status,
message,
data
} = await GoodsApi.typeList({is_in_store: 0});
} = await GoodsApi.typeList({
is_in_store: 0
});
if (status == 200) {
this.rankList = data.list
}
@ -161,14 +163,7 @@
}
Api.chartsGoodsList(pamars)
.then(result => {
if (result.data.data.length > 0) {
result.data.data.forEach(item => {
item.goods_price_min = Number(item.goods_price_min);
});
app.jingList = result.data.data;
} else {
app.jingList = []
}
app.jingList = result.data.data || [];
})
.finally(() => app.isLoading = false)
},

@ -28,7 +28,7 @@
</view>
<view class="price">
<view class="lowPrice">
{{item.goods_price_min}}
{{item.goods_price_min?Number(item.goods_price_min):''}}
</view>
<view class="buyNow">
立即购买
@ -83,12 +83,7 @@
}
Api.brandList(pamars)
.then(result => {
if (result.data.data.length > 0) {
result.data.data.map(a => {
a.goods_price_min = Number(a.goods_price_min)
})
app.list = result.data.data;
}
app.list = result.data.data;
})
.finally(() => app.isLoading = false)
},

@ -31,8 +31,8 @@
<text>自营</text>{{item.goods_name}}
</view>
<view class="price">
<view class="n"><text>{{item.goods_price_min}}</text>到手价</view>
<view class="o">{{item.line_price_min}}</view>
<view class="n"><text>{{item.goods_price_min?Number(item.goods_price_min):''}}</text>到手价</view>
<view class="o">{{item.line_price_min?Number(item.line_price_min):''}}</view>
</view>
<!-- <view class="desc">
{{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率
@ -95,13 +95,7 @@
data
} = await Api.couponList();
if (status == 200) {
if (data.list.length > 0) {
data.list.forEach(item => {
item.reduce_price = Number(item.reduce_price)
item.min_price = Number(item.min_price)
});
this.couList = data.list
}
this.couList = data.list || []
}
},
//

@ -20,7 +20,7 @@
<view class="price">
<image class="icon" src="https://www.royaum.com.cn/static/news/newshop-05.png">
</image>
<view class="p"><text>{{i.goods_price_min}}</text></view>
<view class="p"><text>{{i.goods_price_min?Number(i.goods_price_min):''}}</text></view>
</view>
</view>
</view>
@ -92,9 +92,6 @@
if (active_id) {
result.data.col.forEach(item => {
item.sliceIndex = 6;
item.goods_list.forEach(item1 => {
item1.goods_price_min = Number(item1.goods_price_min);
});
});
this.shopList = result.data.col.length > 0 ? result.data.col : [];
} else {

@ -25,7 +25,7 @@
</view>
<view class="p">
<image :src="$picUrl+'/static/news/newPresale-2.png'"></image>
<view class="s">预约价¥{{item.goods_price_min}}</view>
<view class="s">预约价¥{{item.goods_price_min?Number(item.goods_price_min):''}}</view>
<view class="n">去预约</view>
</view>
</view>
@ -75,12 +75,7 @@
}
Api.presaleGoodsList(pamars)
.then(result => {
if (result.data.list.length > 0) {
result.data.list.map(a => {
a.goods_price_min = Number(a.goods_price_min);
})
app.goodList = result.data.list;
}
app.goodList = result.data.list ||[];
})
.finally(() => app.isLoading = false)
},

@ -43,7 +43,7 @@
{{item_1.goods_name}}
</view>
<view class="goodsPrice">
<text>{{item_1.goods_price_min}}</text>
<text>{{item_1.goods_price_min?Number(item_1.goods_price_min):''}}</text>
</view>
</view>
</view>
@ -148,12 +148,7 @@
}
Api.chartsGoodsList(pamars)
.then(result => {
if (result.data.data.length > 0) {
result.data.data.forEach(item => {
item.goods_price_min = Number(item.goods_price_min);
});
app.goodList = result.data.data;
}
app.goodList = result.data.data || [];
})
.finally(() => app.isLoading = false)
},

@ -36,8 +36,8 @@
<text>自营</text>{{item.goods_name}}
</view>
<view class="price">
<view class="n"><text>{{item.goods_price_min}}</text>到手价</view>
<view class="o">{{item.line_price_min}}</view>
<view class="n"><text>{{item.goods_price_min?Number(item.goods_price_min):''}}</text>到手价</view>
<view class="o">{{item.line_price_min?Number(item.line_price_min):''}}</view>
</view>
<!-- <view class="desc">
{{item.goods_sales}}+条评论 {{item.remaizhishu}}%好评率
@ -122,25 +122,15 @@
Api.brandList(pamars)
.then(result => {
let arr = result.data.data;
if (arr && arr.length > 0) {
arr.map(a => {
a.goods_price_min = Number(a.goods_price_min)
a.goods_price_max = Number(a.goods_price_max)
a.line_price_min = Number(a.line_price_min)
a.line_price_max = Number(a.line_price_max)
})
}
app.list = arr
})
.finally(() => app.isLoading = false)
},
tabItem(index, item) {
console.log(item, '1')
this.tabIndex = index;
this.getBrandList(item.category_id)
},
tabItem1(item, index) {
console.log(item, '2')
this.tabIndex1 = index;
let app = this;
app.categoryChildren = [];

Loading…
Cancel
Save