Merge branch 'feature/comment-0620-ch' into msb_test

fix/0701-ch
ch 2 years ago
commit 410a721436

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-20 14:55:54 * @Date: 2022-06-20 14:55:54
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-29 20:36:47 * @LastEditTime: 2022-06-29 20:57:06
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -65,6 +65,21 @@ export default {
} }
}, },
beforeRouteLeave(to, from, next) {
if(this.list.findIndex(i => i.isEdit) > -1){
uni.showModal({
content : '你正在进行商品评价,退出后评价的内容将不保存!',
cancelColor : '#999',
confirmColor : '#3A83FB',
success: async ({confirm}) => {
if(confirm){
next()
}
}
});
}
},
methods: { methods: {
async getOrderCommentDetail() { async getOrderCommentDetail() {
const { error, result } = await ApiGetOrderCommentDetail({ const { error, result } = await ApiGetOrderCommentDetail({

Loading…
Cancel
Save