From c1e78b9425374025fad98dfc9ac735f8ae4a8bbd Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期三, 09 七月 2025 18:02:24 +0800 Subject: [PATCH] update 设置默认抽成比例为5 --- manager/src/views/goods/goods-info/goodsDetail.vue | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/manager/src/views/goods/goods-info/goodsDetail.vue b/manager/src/views/goods/goods-info/goodsDetail.vue index 60d4c41..1f96c75 100644 --- a/manager/src/views/goods/goods-info/goodsDetail.vue +++ b/manager/src/views/goods/goods-info/goodsDetail.vue @@ -18,6 +18,9 @@ <FormItem label="鍟嗗搧鍗栫偣"> {{ goods.sellingPoint }} </FormItem> + <FormItem label="鎶芥垚姣斾緥"> + {{ goods.commission }}% + </FormItem> <FormItem label="鍟嗗搧鍙傛暟"> <div v-if="goods.goodsParamsDTOList && goods.goodsParamsDTOList.length" v-for="(item,index) in goods.goodsParamsDTOList" :key="index"> <div style="margin-bottom: 10px; display: flex; align-items: center;" > @@ -32,7 +35,12 @@ <div class="form-item-view"> <FormItem label="璁¢噺鍗曚綅"> {{ goods.goodsUnit }}</FormItem> <FormItem label="閿�鍞ā寮�"> - {{ goods.salesModel === "RETAIL" ? "闆跺敭鍨�" : "鎵瑰彂鍨�" }} + <span v-if="goods.salesModel ==='RETAIL'">闆跺敭鍨�</span> + <span v-else-if="goods.salesModel ==='PRESALE'">棰勫敭</span> + <span v-else-if="goods.salesModel ==='WHOLESALE'">鎵瑰彂鍨�</span> + <span v-else>鍏朵粬绫诲瀷</span> + +<!-- {{ goods.salesModel === "RETAIL" ? "闆跺敭鍨�" : "鎵瑰彂鍨�" }}--> </FormItem> <FormItem label="閿�鍞鍒�" v-if="goods.salesModel !== 'RETAIL'"> <Table @@ -78,6 +86,8 @@ controls class="player" :src="goods.goodsVideo" + width="200" + height="180" /> </FormItem> <FormItem label="鍟嗗搧瑙勬牸"> @@ -143,6 +153,7 @@ </template> <script> import { getGoodsDetail } from "@/api/goods"; +import {getSts} from '@/api/file' export default { name: "goodsDetail", data() { @@ -193,6 +204,26 @@ initGoods(id) { getGoodsDetail(id).then((res) => { this.goods = res.result; + if (this.goods.goodsVideo != null && this.goods.goodsVideo !== '') { + getSts().then(res => { + console.log('--------------->',this.goods.goodsVideo.indexOf('http')!== -1) + if (this.goods.goodsVideo !== null && this.goods.goodsVideo.indexOf('http')=== -1) { + this.goods.goodsVideo = res.data.endpoint+'/'+this.goods.goodsVideo; + } + }) + } + if (this.goods.goodsGalleryList != null && this.goods.goodsGalleryList.length > 0) { + getSts().then(res => { + this.goods.goodsGalleryList = this.goods.goodsGalleryList.map((item) => { + if (item !== null&&item.indexOf('http')===-1) { + return res.data.endpoint+'/'+item; + }else { + return item; + } + }) + }) + } + let that = this; res.result.skuList.forEach(function (sku, index, array) { that.skuData.push({ -- Gitblit v1.8.0