测试环境链接替换,部分问题修复,增加批量退菜功能
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class=" goods">
|
||||
|
||||
<view class="u-flex u-row-between">
|
||||
<view class="u-flex">
|
||||
<view class="color-333">
|
||||
@@ -19,17 +20,18 @@
|
||||
|
||||
|
||||
<view class="u-m-t-48 u-flex u-col-top u-relative">
|
||||
<view v-if="props.showChecked">
|
||||
<label class="radio">
|
||||
<radio :color="$utils.ColorMain" style="transform: scale(0.7);" @click="radioClick"
|
||||
:checked="props.data.checked" /><text></text>
|
||||
</label>
|
||||
</view>
|
||||
<view class="img">
|
||||
<up-image :width="63" :height="63" :radius="3" :src="data.coverImg"></up-image>
|
||||
<view class="img u-flex">
|
||||
<view v-if="props.showChecked">
|
||||
<label class="radio-checked">
|
||||
<radio color="#00aeff" style="transform: scale(0.7);" @click="radioClick"
|
||||
:checked="props.data.checked" /><text></text>
|
||||
</label>
|
||||
</view>
|
||||
<up-image width="126rpx" height="126rpx" radius="6rpx" :src="data.coverImg"></up-image>
|
||||
</view>
|
||||
|
||||
<view class="w-full info">
|
||||
<view class="info-p-l color-333 u-flex u-row-between">
|
||||
<view class="info-p-l color-333 u-flex u-row-between" :style="infoPL">
|
||||
<view class="u-flex">
|
||||
<text class="u-m-r-24">{{data.name}}</text>
|
||||
</view>
|
||||
@@ -42,7 +44,7 @@
|
||||
<view class="u-m-t-24">
|
||||
<template v-if="data.type == 'sku' && data.skuList.length>=1">
|
||||
<view class="u-flex u-flex-wrap w-full gap-10 u-col-top" :style="skuStyle">
|
||||
<view class="u-font-24 info-p-l u-m-t-6">规格:</view>
|
||||
<view class="u-font-24 info-p-l u-m-t-6" :style="infoPL">规格:</view>
|
||||
<view class="skd" v-for="(item,index) in data.skuList" :key="index"
|
||||
@click="guigeClick(index)">
|
||||
<text>{{item.specInfo}}</text>
|
||||
@@ -102,7 +104,6 @@
|
||||
import { updateProduct,productOnOff,productMarkIsSoldOut } from '@/http/api/product.js'
|
||||
import go from '@/commons/utils/go.js';
|
||||
import {hasPermission} from '@/commons/utils/hasPermission.js';
|
||||
|
||||
const emits = defineEmits(['radioClick', 'xiajia', 'del', 'changePrice', 'baosun', 'guigeClick','update',
|
||||
'editStock'
|
||||
])
|
||||
@@ -126,7 +127,11 @@
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
const infoPL=computed(()=>{
|
||||
return {
|
||||
'padding-left': !props.showChecked?'142rpx': '214rpx'
|
||||
}
|
||||
})
|
||||
let isShowSkuAll=ref(false)
|
||||
const skuStyle=computed(()=>{
|
||||
if(isShowSkuAll.value){
|
||||
|
||||
Reference in New Issue
Block a user