代码提交

This commit is contained in:
黄少君
2023-11-17 20:55:32 +08:00
parent 35b43ffd97
commit c3e62f8922
73 changed files with 1808 additions and 781 deletions

View File

@ -1,7 +1,7 @@
<script setup>
import UvNavbar from "@/uni_modules/uv-navbar/components/uv-navbar/uv-navbar.vue";
import { useRouter } from "@/hooks/useRouter";
import { onLoad, onPageScroll } from "@dcloudio/uni-app";
import { onLoad, onPageScroll, onShow } from "@dcloudio/uni-app";
import { ref, unref } from "vue";
import { useMainStore } from '@/store/store';
import { storeToRefs } from "pinia";
@ -159,7 +159,7 @@ async function doCreateServiceOrder() {
}
}
useScroll()
const {scrollTop} = useScroll()
/**
* 检查路由参数
@ -176,18 +176,20 @@ onLoad(async options => {
try {
const params = getParams(options)
await checkRouterParam(params)
await doGetSelectAddress()
await doGetInitConfirmOrder()
} catch (e) {
console.error(e)
}
})
onShow(async ()=>{
await doGetSelectAddress()
})
</script>
<template>
<view class="order-confirm">
<!-- header -->
<Header>
<Header :scroll-top="scrollTop">
提交订单
</Header>
<!-- 地址 -->
@ -235,7 +237,7 @@ onLoad(async options => {
</view>
<image
class="arrow-icon"
src="@/static/images/next.png"
src="https://b2c-pro-static-dev.zkthink.com/static/images/next.png"
alt=""
/>
</view>
@ -247,7 +249,7 @@ onLoad(async options => {
点击添加地址
<image
class="arrow-icon"
src="@/static/images/next.png"
src="https://b2c-pro-static-dev.zkthink.com/static/images/next.png"
alt=""
/>
</view>
@ -313,8 +315,9 @@ onLoad(async options => {
{{ row.prefix }}
{{ orderDetail["priceGroup"][row.field]?.toFixed(2) }}
<image
v-if="row.field=== 'couponPrice'"
class="arrow-icon"
src="@/static/images/next.png"
src="https://b2c-pro-static-dev.zkthink.com/static/images/next.png"
alt=""
/>
</view>