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

File diff suppressed because one or more lines are too long