Commit 276caf6b authored by zhengke's avatar zhengke

修改积分商城

parent 500c351a
......@@ -28,14 +28,14 @@
<el-row class="IntegralMall">
<el-row class="w1180">
<IntegralHead/>
<div class="_block">
<div class="_block" v-for="item in dataList" v-if="item.activityId==1">
<el-row class="tit">
<div>
<img src="../../assets/img/ps/jifendui.png" alt="">
<p>热门精品推荐</p>
<img :src="item.activityImg" alt="">
<p>{{item.activityName}}</p>
</div>
</el-row>
<commodity v-bind:message="dataList[0].list"/>
<commodity v-bind:message="item.list"/>
</div>
<div class="_block">
<el-row class="tit">
......
......@@ -25,6 +25,7 @@
}
.IntegralHead .bottom_class ._class p{
margin-top: 5px;
color:#222222;
}
</style>
<template>
......@@ -33,13 +34,13 @@
<img src="../../../assets/img/ps/IntegralHead.png" alt="">
</div>
<el-row class="bottom_class">
<template v-for="item in list">
<router-link :to="{path: '/productDetail/1'}">
<template v-for="item in dataList">
<el-col :span="3" class="_class">
<img src="../../../assets/img/img-01.png" alt="">
<p>家纺家饰</p>
<div @click="goList(item.id)">
<img :src="item.icon" alt=""/>
<p>{{item.name}}</p>
</div>
</el-col>
</router-link>
</template>
</el-row>
</el-row>
......@@ -52,12 +53,28 @@ export default {
},
data(){
return{
list:[1,2,3,4,5,6,7,8]
dataList:[]
}
},methods:{
getList(){
this.apiJavaPost("/api/IntegralManager/goodsTypeManager",
{reqType: 'find'},
res => {
if (res.data.resultCode === 1) {
console.log(res,'ressssssss');
this.dataList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
goList: function (type) {
this.$router.push({path: 'productList', query: {type: type}})
}
},mounted(){
this.getList();
}
}
</script>
......@@ -194,14 +194,7 @@
<el-col :span="14" class="pd_top_info_right">
<p class="_tit">{{detail.name}}</p>
<p class="_sub_tit">{{detail.packing}}</p>
<p class="_price">售价<span class="jifen">¥ <span>{{detail.price}}</span> {{detail.priceUnit === 1 ? '现金' : '积分'}}</span> <span class="yishou">已售 <span>99</span></span></p>
<div class="_colors">
<span class="_colors_name">颜色</span>
<!-- <template v-for="(item, index) in colors">
<span class="_colors_item" :class="{'_active': colorsIndex === index}" @click="colorsIndex = index">{{item}}</span>
</template> -->
<span class=""></span>
</div>
<p class="_price">售价<span class="jifen">¥ <span>{{detail.price}}</span> {{detail.priceUnit === 1 ? '现金' : '积分'}}</span></p>
<div class="_numbers">
<span class="_numbers_name">数量</span>
<el-input-number v-model="numbers" :min="1" :max="detail.quota === 0 ? '' : detail.quota" size="mini"></el-input-number>
......
......@@ -166,7 +166,7 @@
</template>
</div>
</el-row>
<el-row class="tabs">
<!-- <el-row class="tabs">
<span class="_name">品牌</span>
<div class="tabs_box">
<template v-for="(item, index) in brandList">
......@@ -184,7 +184,7 @@
</span>
</span>
</div>
</el-row>
</el-row> -->
</div>
<div class="list_item" >
<div class="list_item_box" v-for="item in dataList" :key="item.id" @click="goDetail(item.id)">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment