合并master

master
lemon橪 2021-08-13 11:30:47 +08:00
commit 826454e164
9 changed files with 15 additions and 33 deletions

View File

@ -155,7 +155,7 @@ export default {
count: 1, // count: 1, //
imgIndex: 0, // imgIndex: 0, //
currentSelceted: [], // sku currentSelceted: [], // sku
imgList: this.detail.data.specList[0].specImage || [{}], // imgList: [{}], //
skuDetail: this.detail.data, // sku skuDetail: this.detail.data, // sku
goodsSpecList: this.detail.specs, // spec goodsSpecList: this.detail.specs, // spec
promotionMap: { // promotionMap: { //
@ -329,6 +329,11 @@ export default {
} }
}) })
} }
this.detail.data.specList.forEach(e => {
if (e.specName === 'images') {
this.imgList = e.specImage
}
})
this.formatSku(this.goodsSpecList); this.formatSku(this.goodsSpecList);
this.promotion() this.promotion()
document.title = this.skuDetail.goodsName document.title = this.skuDetail.goodsName

View File

@ -16,9 +16,9 @@
<span class="mr_10" v-if="goodsMsg.data"><router-link <span class="mr_10" v-if="goodsMsg.data"><router-link
:to="'Merchant?id=' + goodsMsg.data.storeId">{{ goodsMsg.data.storeName }}</router-link></span> :to="'Merchant?id=' + goodsMsg.data.storeId">{{ goodsMsg.data.storeName }}</router-link></span>
<span @click="collect"><Icon type="ios-heart" <span @click="collect"><Icon type="ios-heart"
:color="storeCollected ? '#ed3f14' : '#666'"/>{{ :color="storeCollected ? '#ed3f14' : '#666'"/>
storeCollected ? '已收藏店铺' : '收藏店铺' {{storeCollected ? '已收藏店铺' : '收藏店铺'}}
}}</span> </span>
<span @click="connectCs(storeMsg.yzfSign)" class="ml_10"><Icon <span @click="connectCs(storeMsg.yzfSign)" class="ml_10"><Icon
custom="icomoon icon-customer-service"/>联系客服</span> custom="icomoon icon-customer-service"/>联系客服</span>
</div> </div>

View File

@ -8,7 +8,7 @@
<h3>积分日志</h3> <h3>积分日志</h3>
<Table :columns="logColumns" :data="logData.records"> <Table :columns="logColumns" :data="logData.records">
<template slot-scope="{ row }" slot="point"> <template slot-scope="{ row }" slot="point">
<div :style="{color:row.pointType === 'INCREASE' ? 'green' : 'red'}"><span>{{row.pointType === "INCREASE" ? '+' : ''}}</span>{{ row.variablePoint }}</div> <div :style="{color:row.pointType === 'INCREASE' ? 'green' : 'red'}"><span>{{row.pointType === "INCREASE" ? '+' : '-'}}</span>{{ row.variablePoint }}</div>
</template> </template>
</Table> </Table>
<!-- 分页 --> <!-- 分页 -->

View File

@ -1,5 +1,3 @@
<template> <template>
<div> <div>
<Card class="change-pass"> <Card class="change-pass">
@ -143,24 +141,3 @@ export default {
} }
}; };
</script> </script>
<style lang="scss" scoped>
.change-pass {
&-btn-box {
margin-bottom: 10px;
button {
padding-left: 0;
span {
color: #2d8cf0;
transition: all 0.2s;
}
span:hover {
color: #0c25f1;
transition: all 0.2s;
}
}
}
}
</style>

View File

@ -2,7 +2,7 @@
<div class="model-carousel"> <div class="model-carousel">
<div class="nav-body clearfix"> <div class="nav-body clearfix">
<!-- 侧边导航 --> <!-- 侧边导航 -->
<div class="nav-side">导航栏占位区</div> <div class="nav-side">分类占位区</div>
<div class="nav-content setup-content"> <div class="nav-content setup-content">
<!-- 轮播图 --> <!-- 轮播图 -->
<Carousel autoplay> <Carousel autoplay>

View File

@ -2,7 +2,7 @@
<div class="model-carousel1" :style="{background: bgColor}"> <div class="model-carousel1" :style="{background: bgColor}">
<div class="nav-body clearfix"> <div class="nav-body clearfix">
<!-- 侧边导航 --> <!-- 侧边导航 -->
<div class="nav-side">导航栏占位区</div> <div class="nav-side">分类占位区</div>
<div class="nav-content setup-content"> <div class="nav-content setup-content">
<!-- 轮播图 --> <!-- 轮播图 -->
<Carousel autoplay @on-change="autoChange"> <Carousel autoplay @on-change="autoChange">

View File

@ -2,7 +2,7 @@
<div class="model-carousel2"> <div class="model-carousel2">
<div class="nav-body clearfix"> <div class="nav-body clearfix">
<!-- 侧边导航 --> <!-- 侧边导航 -->
<div class="nav-side">导航栏占位区</div> <div class="nav-side">分类占位区</div>
<div class="nav-content setup-content"> <div class="nav-content setup-content">
<!-- 轮播图 --> <!-- 轮播图 -->
<Carousel autoplay> <Carousel autoplay>

View File

@ -433,7 +433,7 @@
style: { style: {
color: 'red' color: 'red'
} }
}, params.row.variablePoint), }, '-' + params.row.variablePoint),
]); ]);
} }
} }

View File

@ -106,7 +106,7 @@
style: { style: {
color: 'red' color: 'red'
} }
}, params.row.variablePoint), }, '-' + params.row.variablePoint),
]); ]);
} }