xbx #225

Merged
theluyuan merged 3 commits from xbx into master 2020-08-17 10:09:44 +00:00
4 changed files with 13 additions and 4 deletions
Showing only changes of commit 35838e3a9e - Show all commits

View File

@ -61,9 +61,10 @@ export default {
margin-top: 10rpx; margin-top: 10rpx;
} }
.price{ .price{
// display: flex; display: flex;
// align-items: center; // align-items: center;
// justify-content: space-between; align-content: flex-end;
justify-content: space-between;
margin-top: 10rpx; margin-top: 10rpx;
> view:first-child{ > view:first-child{
font-size: 26rpx; font-size: 26rpx;
@ -72,6 +73,7 @@ export default {
} }
> view:last-child{ > view:last-child{
font-size: 22rpx; font-size: 22rpx;
height: 22rpx;
color: #FDD360; color: #FDD360;
} }
} }

View File

@ -72,6 +72,7 @@ export default {
}, },
getGoodsClassRecommend() { getGoodsClassRecommend() {
this.$u.api.getGoodsClassRecommend().then(res => { this.$u.api.getGoodsClassRecommend().then(res => {
console.log(res)
if (res.errCode == 0) { if (res.errCode == 0) {
// current // current
this.current = 0; this.current = 0;
@ -84,6 +85,8 @@ export default {
page: page, page: page,
gc_id: gc_id, gc_id: gc_id,
}) })
console.log(res)
// this.swiperCurrent = this.current; // this.swiperCurrent = this.current;
if (res.errCode == 0) { if (res.errCode == 0) {
this.timer = true; this.timer = true;

View File

@ -4,7 +4,7 @@
<view class="info"> <view class="info">
<text class="title u-line-2">{{ info.goods_name }}</text> <text class="title u-line-2">{{ info.goods_name }}</text>
<!-- <text class="jianjie u-line-1">{{ info.goods_advword }}</text> --> <!-- <text class="jianjie u-line-1">{{ info.goods_advword }}</text> -->
<text class="price">{{ info.goods_price }}</text> <text class="price">{{ info.goods_price }}<text style="font-size:22rpx;color:#999;text-decoration:line-through;display: inline-block;margin-left:20rpx"> {{info.goods_marketprice}}</text></text>
</view> </view>
</view> </view>
</template> </template>

View File

@ -17,7 +17,9 @@
<view class="right"> <view class="right">
<view class="name u-line-1">{{ goods.goods_name }}</view> <view class="name u-line-1">{{ goods.goods_name }}</view>
<view class="briefing u-line-1">{{ goods.goods_advword }}</view> <view class="briefing u-line-1">{{ goods.goods_advword }}</view>
<view class="price">{{ goods.goods_price }}</view> <view class="price">{{ goods.goods_price }}
<text style="font-size:22rpx;color:#999;text-decoration:line-through;display: inline-block;margin-left:20rpx"> {{goods.goods_marketprice}}</text>
</view>
</view> </view>
</view> </view>
<u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore> <u-loadmore :status="loadStatus" bgColor="#FFFFFF" margin-top="20" margin-bottom="20" v-if="goodsList.length >= pageSize"></u-loadmore>
@ -122,6 +124,7 @@ export default {
if(load == 'reload') this.goodsList = res.data.data; if(load == 'reload') this.goodsList = res.data.data;
else if(load == 'loadmore') this.goodsList.push(...res.data.data); else if(load == 'loadmore') this.goodsList.push(...res.data.data);
} }
console.log(res)
return res.data.data.length; return res.data.data.length;
}, },
loadMore() { loadMore() {
@ -164,6 +167,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.classify-goods { .classify-goods {
.tab-container { .tab-container {
box-sizing: border-box; box-sizing: border-box;