fix: 🐛 修复投诉功未填写信息导致后端报错问题,优化投诉模块显示

master
学习很差啦 2023-03-02 11:39:00 +08:00
parent 38a00e6177
commit b2a448447c
4 changed files with 25 additions and 14 deletions

View File

@ -45,13 +45,13 @@
<view class="cell-item">
<view class="cell-title"> 投诉凭证 </view>
<view class="cell-view">
<u-upload ref="uUpload" :header=" { accessToken: storage.getAccessToken() }" upload-text="" :action="action" width="100" @on-uploaded="onUploaded" :max-count="5">
<u-upload ref="uUpload" :header=" { accessToken: storage.getAccessToken() }" :action="action" width="200" @on-uploaded="onUploaded" :max-count="5">
</u-upload>
</view>
</view>
</view>
<view class="submit-btn" @click="handleSumit"></view>
<view class="submit-btn" @click="handleSubmit"></view>
</view>
</template>
@ -109,7 +109,15 @@ export default {
/**
* 提交
*/
handleSumit() {
handleSubmit() {
if(!this.images.length && !this.complainValue){
uni.showToast({
title:'请上传图片凭证和投诉内容',
icon:'none'
})
return
}
//
let goods = this.orderGoodsList.filter((item) => {
return item.skuId == this.skuId;

View File

@ -49,11 +49,13 @@ export default {
return {
complainDetail: "", //
statusData: {
NEW: "新投诉",
NO_APPLY: "未申请",
APPLYING: "申请中",
COMPLETE: "已完成,此时可申请",
EXPIRED: "已失效,不可申请",
COMPLETE: "已完成",
EXPIRED: "已失效",
CANCEL: "已取消",
WAIT_ARBITRATION:"等待仲裁"
},
};
},

View File

@ -48,12 +48,13 @@ export default {
data() {
return {
statusData: {
NEW: "新订单",
NEW: "新投诉",
NO_APPLY: "未申请",
APPLYING: "申请中",
COMPLETE: "已完成",
EXPIRED: "已失效",
CANCEL: "已取消",
WAIT_ARBITRATION:"等待仲裁"
},
show: false,
content: "是否撤销投诉?",

View File

@ -232,14 +232,14 @@ text.shop {
width: 92%;
margin: 0 auto 40rpx;
border-radius: 100px;
animation: mymove 5s infinite;
-webkit-animation: mymove 5s infinite; /*Safari and Chrome*/
animation-direction: alternate; /*轮流反向播放动画。*/
animation-timing-function: ease-in-out; /*动画的速度曲线*/
/* Safari 和 Chrome */
-webkit-animation: mymove 5s infinite;
-webkit-animation-direction: alternate; /*轮流反向播放动画。*/
-webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
// animation: mymove 5s infinite;
// -webkit-animation: mymove 5s infinite; /*Safari and Chrome*/
// animation-direction: alternate; /**/
// animation-timing-function: ease-in-out; /*线*/
// /* Safari Chrome */
// -webkit-animation: mymove 5s infinite;
// -webkit-animation-direction: alternate; /**/
// -webkit-animation-timing-function: ease-in-out; /*线*/
}
.btn-callback {
text-align: center;