代码提交
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user