变更退货提示信息组件,调整提示信息显示异常bug

This commit is contained in:
唐明明
2021-11-10 13:43:56 +08:00
parent ea94e54d2b
commit 87369721b8
2 changed files with 36 additions and 49 deletions

View File

@@ -23,7 +23,7 @@
<view class="list">
<view class="list-left">退货图片</view>
<view class="list-right-img">
<view class="upImg" v-for="(item,index) in pictures.showpath">
<view class="upImg" v-for="(item,index) in pictures.showpath" :key="index">
<image @click="priviewImg(index)" mode="aspectFill" :src="item" />
<u-icon name="close" @click='closeImg(index)' class='closeImg' />
</view>
@@ -48,9 +48,6 @@
<view class="actions">
<view class="nowPay" @click="sure">确认退货</view>
</view>
<!-- <u-toast ref="uToast" /> -->
<u-toast ref="uToast" />
</view>
</template>
@@ -78,9 +75,6 @@
};
},
onLoad(e) {
// this.shipment_no = this.$route.params.no
// this.getInfo(this.shipment_no)
this.shipment_no = e.no
this.getInfo(e.no)
},
@@ -134,10 +128,10 @@
})
this.list = lists
}).catch(err => {
this.$refs.uToast.show({
uni.showToast({
title: err.message,
type: 'error',icon:false,
duration: 3000
icon : 'none',
mask : true
})
})
},
@@ -152,18 +146,18 @@
pictures:this.pictures.path
}
if (data.title === '') {
this.$refs.uToast.show({
uni.showToast({
title: '请选择退货原因',
type: 'error',icon:false,
duration: 3000
icon : 'none',
mask : true
})
return;
}
if (data.remark === '') {
this.$refs.uToast.show({
uni.showToast({
title: '请填写备注信息',
type: 'error',icon:false,
duration: 3000
icon : 'none',
mask : true
})
return;
}
@@ -174,32 +168,31 @@
success: (res) => {
if (res.confirm) {
mallShipmentsRefund(data).then(res => {
this.$refs.uToast.show({
title: res,
type: 'error',icon:false,
duration: 3000
})
uni.setStorageSync('refresh', true)
setTimeout(res => {
uni.navigateBack()
}, 2000)
uni.showModal({
title: '提示',
content: res,
showCancel:false,
success: ModalRes => {
if(ModalRes.confirm) uni.navigateBack()
}
})
}).catch(err => {
this.$refs.uToast.show({
uni.showToast({
title: err.message,
type: 'error',icon:false,
duration: 3000
icon : 'none',
mask : true
})
})
} else if (res.cancel) {
this.$refs.uToast.show({
uni.showToast({
title: '放弃了~',
type: 'error',icon:false,
duration: 3000
icon : 'none',
mask : true
})
}
}
});
})
}
}
}
@@ -214,8 +207,8 @@
//
.mes-des {
background-color: rgba($color: #ff0000, $alpha: .1);
color: #ff0000;
background-color: rgba($color: $mian-color, $alpha: .1);
color: $mian-color;
text-shadow: 0 0 6rpx rgba($color: #000000, $alpha:.1);
padding: 32rpx;
text-align: center;

File diff suppressed because one or more lines are too long