This commit is contained in:
donqi 2023-04-01 18:56:30 +08:00
parent 0bd86a8496
commit 2429af9ae1
4 changed files with 13 additions and 9 deletions

View File

@ -69,7 +69,7 @@
<button class="cu-btn line-main-color margin-right-xs margin-top-sm" v-if="good.status === 1" @click="onGood(good)">上架</button>
<!-- <button class="cu-btn line-main-color margin-right-xs margin-top-sm" @click="copyGood(good)">复制</button> -->
<!-- <button class="cu-btn line-main-color margin-right-xs margin-top-sm">优惠券</button> -->
<button class="cu-btn line-red shadow-blur margin-right-xs margin-top-sm" @click="delGood(good)">删除</button>
<!-- <button class="cu-btn line-red shadow-blur margin-right-xs margin-top-sm" @click="delGood(good)">删除</button> -->
</view>
</view>
</view>

View File

@ -5,11 +5,14 @@
<!-- 个人信息栏 -->
<view class="flex justify-between padding-bottom align-center solid-bottom">
<view class="flex justify-start align-center">
<view class="cu-avatar round" @click="test"
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.bannerUrl + ');'">
<!-- <view class="cu-avatar round" @click="test"
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.bannerUrl + ');'"> -->
<view style="width: 120rpx; height: 120rpx;">
<image class="round" src="/static/dept-logo.jpg" mode="aspectFit" style="width: 120rpx; height: 120rpx;"></image>
</view>
<view class="margin-lr-sm">
<view class="text-xl margin-bottom-xs" v-if="curUserInfo && curUserInfo.openId">{{curUserInfo.deptName}}</view>
<!-- <view class="text-xl margin-bottom-xs" v-if="curUserInfo && curUserInfo.openId">{{curUserInfo.deptName}}</view> -->
<view class="text-xl margin-bottom-xs" v-if="curUserInfo && curUserInfo.openId">工盟互联</view>
<view class="text-xl margin-bottom-xs" v-else @click="authLogin">请先登录</view>
<!-- <view class="padding-xs text-sm">
<view class='cu-tag bg-white radius'>编辑</view>

View File

@ -19,12 +19,13 @@
<view class="cu-form-group">
<view class="title">选择类目<text class="text-red">*</text></view>
<picker :mode="'multiSelector'" @change="categoryChange" @columnchange="categoryColChange"
:value="categoryMultiIndex" :range-key="'goodsCategoryName'" :range="categoryList">
:value="categoryMultiIndex" :range-key="'goodsCategoryName'" :range="categoryList"
:disabled="goodsId">
<input v-if="formData.category" disabled class="line-input radius-input"
:value="formData.category && formData.category.length ? formData.category[0].goodsCategoryName + '-' + formData.category[1].goodsCategoryName + '-' + formData.category[2].goodsCategoryName : ''"
placeholder="请选择类目"/>
<input v-else-if="formData.categoryConcatName" disabled class="line-input radius-input"
:value="formData.categoryConcatName" placeholder="请选择类目" />
:value="formData.categoryConcatName" placeholder="请选择类目" :class="goodsId ? 'bg-gray' : ''"/>
</picker>
</view>
<view v-if="formData.specsList && formData.specsList.length > 0">
@ -33,8 +34,8 @@
<view v-for="(item, index) in formData.specsList" class="padding-tb-sm">
<view class="flex">
<view class="flex-sub">
<checkbox style="transform:scale(1)" class="main-color margin-right-xs"
:value="index" :checked="item.checked"></checkbox>
<checkbox style="transform:scale(1)" class="margin-right-xs"
:value="index" :checked="item.checked" :class="goodsId && item.checked ? 'grey' : 'main-color'" :disabled="goodsId && item.checked"></checkbox>
<text>{{item.goodsCategoryName}}</text>
</view>`
<view class="flex-sub">

BIN
static/dept-logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB