Commit 276caf6b authored by zhengke's avatar zhengke

修改积分商城

parent 500c351a
...@@ -28,14 +28,14 @@ ...@@ -28,14 +28,14 @@
<el-row class="IntegralMall"> <el-row class="IntegralMall">
<el-row class="w1180"> <el-row class="w1180">
<IntegralHead/> <IntegralHead/>
<div class="_block"> <div class="_block" v-for="item in dataList" v-if="item.activityId==1">
<el-row class="tit"> <el-row class="tit">
<div> <div>
<img src="../../assets/img/ps/jifendui.png" alt=""> <img :src="item.activityImg" alt="">
<p>热门精品推荐</p> <p>{{item.activityName}}</p>
</div> </div>
</el-row> </el-row>
<commodity v-bind:message="dataList[0].list"/> <commodity v-bind:message="item.list"/>
</div> </div>
<div class="_block"> <div class="_block">
<el-row class="tit"> <el-row class="tit">
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
} }
.IntegralHead .bottom_class ._class p{ .IntegralHead .bottom_class ._class p{
margin-top: 5px; margin-top: 5px;
color:#222222;
} }
</style> </style>
<template> <template>
...@@ -33,13 +34,13 @@ ...@@ -33,13 +34,13 @@
<img src="../../../assets/img/ps/IntegralHead.png" alt=""> <img src="../../../assets/img/ps/IntegralHead.png" alt="">
</div> </div>
<el-row class="bottom_class"> <el-row class="bottom_class">
<template v-for="item in list"> <template v-for="item in dataList">
<router-link :to="{path: '/productDetail/1'}">
<el-col :span="3" class="_class"> <el-col :span="3" class="_class">
<img src="../../../assets/img/img-01.png" alt=""> <div @click="goList(item.id)">
<p>家纺家饰</p> <img :src="item.icon" alt=""/>
<p>{{item.name}}</p>
</div>
</el-col> </el-col>
</router-link>
</template> </template>
</el-row> </el-row>
</el-row> </el-row>
...@@ -52,12 +53,28 @@ export default { ...@@ -52,12 +53,28 @@ export default {
}, },
data(){ data(){
return{ return{
list:[1,2,3,4,5,6,7,8] dataList:[]
} }
},methods:{ },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(){ },mounted(){
this.getList();
} }
} }
</script> </script>
...@@ -194,14 +194,7 @@ ...@@ -194,14 +194,7 @@
<el-col :span="14" class="pd_top_info_right"> <el-col :span="14" class="pd_top_info_right">
<p class="_tit">{{detail.name}}</p> <p class="_tit">{{detail.name}}</p>
<p class="_sub_tit">{{detail.packing}}</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> <p class="_price">售价<span class="jifen">¥ <span>{{detail.price}}</span> {{detail.priceUnit === 1 ? '现金' : '积分'}}</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>
<div class="_numbers"> <div class="_numbers">
<span class="_numbers_name">数量</span> <span class="_numbers_name">数量</span>
<el-input-number v-model="numbers" :min="1" :max="detail.quota === 0 ? '' : detail.quota" size="mini"></el-input-number> <el-input-number v-model="numbers" :min="1" :max="detail.quota === 0 ? '' : detail.quota" size="mini"></el-input-number>
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
</template> </template>
</div> </div>
</el-row> </el-row>
<el-row class="tabs"> <!-- <el-row class="tabs">
<span class="_name">品牌</span> <span class="_name">品牌</span>
<div class="tabs_box"> <div class="tabs_box">
<template v-for="(item, index) in brandList"> <template v-for="(item, index) in brandList">
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
</span> </span>
</span> </span>
</div> </div>
</el-row> </el-row> -->
</div> </div>
<div class="list_item" > <div class="list_item" >
<div class="list_item_box" v-for="item in dataList" :key="item.id" @click="goDetail(item.id)"> <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