测试分支提交,详情页字段修改

pull/9/head
落日晚风 2023-10-31 10:09:45 +08:00
parent 150e56fce3
commit 6a327ac0e7
3 changed files with 9 additions and 6 deletions

View File

@ -47,7 +47,8 @@
const { data } = await sheep.$api.goods.comment(id, {
list_rows: 3,
});
state.commentList = data.data;
console.log(data)
state.commentList = data;
state.total = data.total;
}
onBeforeMount(() => {

View File

@ -256,10 +256,12 @@
if (res.code === 0) {
//
res.data.sales=res.data.salesCount
res.data.original_price=res.data.price
res.data.introduction=res.data.title
res.data.original_price=res.data.marketPrice/100
res.data.subtitle=res.data.introduction
res.data.title=res.data.name
res.data.price=[res.data.price/100]
state.goodsInfo = res.data;
state.goodsSwiper = formatGoodsSwiper(state.goodsInfo.picUrl.split(','));
state.goodsSwiper = formatGoodsSwiper(state.goodsInfo.sliderPicUrls);
} else {
//
state.goodsInfo = null;

View File

@ -40,8 +40,8 @@ export default {
// 商品评价列表
comment: (id, params = {}) =>
request({
url: 'goods/comment/' + id,
request2({
url: 'product/comment/list?spuId=' + id,
method: 'GET',
params,
custom: {