调整商品发布图片提示

This commit is contained in:
唐明明
2021-09-30 16:37:48 +08:00
parent 60f17db750
commit 827944a142
16 changed files with 24 additions and 17 deletions

View File

@@ -107,7 +107,7 @@
<view class="form-box picker-flex">
<label class="form-label">允许售后</label>
<view class="picker-switch">
<switch :checked="isPostSale" color="#e93340" @change="pickerChange($event, 'isPostSale')"/>
<switch :checked="isPostSale" color="#8b64fd" @change="pickerChange($event, 'isPostSale')"/>
</view>
</view>
<view class="form-box picker-flex">
@@ -355,7 +355,14 @@
submitAdd(){
let pictures = this.pictures.map(val => {return val.path}),
content = this.content.map(val => {return val.path})
if(this.pictures.length <= 0) {
uni.showToast({
title: '商品轮播图不能为空',
icon : 'none'
})
return
}
let submitData = {
name : this.name,
cover : this.pictures[0].path,

View File

@@ -50,7 +50,7 @@
</view>
<view class="poster-btn">
<view class="operate">长按图片保存</view>
<view class="operate operate-cancel" @tap="posterShow = false">确定</view>
<view class="operate operate-cancel" @tap="posterShow = false">取消</view>
</view>
</view>
</view>

View File

@@ -641,7 +641,7 @@ export default {
// 会员信息
.header {
background-image: linear-gradient(to right, #7c52fc, #976dff);
height: 314px;
height: 334px;
// user工具
.user-tool {
text-align: right;
@@ -760,7 +760,7 @@ export default {
}
// 按钮内容
.mian {
margin-top: -130px;
margin-top: -150px;
padding: 15px 30rpx 5px;
background: #F5F5F5;
// 我的资产模块