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

优化

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