提交 766cb48c authored 作者: 刘旭's avatar 刘旭

优化

上级 2629d51c
......@@ -78,7 +78,7 @@
</template>
<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app';
import { onLoad, onBackPress } from '@dcloudio/uni-app';
import { ref, computed } from 'vue';
import { quotationInitAgain, fillQuotation } from '@/api/cart';
import { getTax } from '@/api/index';
......@@ -210,6 +210,12 @@ let init = () => {
}
});
};
// onBackPress((options: any) =>{
// if(options.from === 'navigateBack') {
// return false
// }
// })
</script>
<style lang="scss" scoped>
......
......@@ -229,6 +229,7 @@ let initQuotationInit = (orderId: number) => {
let initOrderData = (orderId: number) => {
orderDetail({ orderId }).then((res: any) => {
if (res.data.code === 200) {
enclosure.value = res.data.data.orderInfo.enclosure
res.data.data.orderGoods.map((item: any) => {
initProductLineIndex(item.goodsId);
});
......
......@@ -43,7 +43,7 @@ function request(url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', data?:
title: res.data.msg,
icon: 'none',
});
} else if (res.data.code == 911) {
} else if (res.data.code == 501 || res.data.code == 911) {
uni.reLaunch({
url: '/pages/login/login',
success() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论