调整商品发布图片提示

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">
@@ -356,6 +356,13 @@
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;
// 我的资产模块

View File

@@ -24,11 +24,11 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
const token = store.getters.getToken || uni.getStorageSync('token')
// 检查是否需要微信授权
if(store.getters.getCode === '' && to.name != 'wxAuth'){
next({
name: 'wxAuth'
})
}
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
// next({
// name: 'wxAuth'
// })
// }
// 检查是否需要登录
if(to.auth && token === ''){
next({

View File

@@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>链商星球</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.61332aa4.js></script><script src=/static/js/index.f88560eb.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.61332aa4.js></script><script src=/static/js/index.e319a908.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long