master
王文杰 7 months ago
parent f1c1a0f430
commit 5c237bcfb0

@ -2,8 +2,8 @@
import { OrderState } from '@/services/constants'
import { orderStateList } from '@/services/constants'
import { getListOrderAPI, postOrderAcceptAPI, postOrderReachAPI } from '@/services/order'
import { ref, reactive } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import { ref, reactive, watch } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { useMemberStore } from '@/stores'
import QQMapWX from '@/libs/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.min.js'
//
@ -19,6 +19,16 @@ let location = reactive({
const props = defineProps<{
orderState: string
}>()
// watch(
// () => props.orderState,
// (newVal, oldVal) => {
// getSettingInfo()
// },
// {
// immediate: true,
// },
// )
const memberStore = useMemberStore()
const staffId = memberStore.profile?.id
//
@ -62,7 +72,7 @@ const getMemberOrderData = async () => {
isFinish.value = true
}
}
onShow(() => {
onLoad(() => {
getSettingInfo()
})
// const handleTimeup = async (item: Object) => {
@ -442,4 +452,4 @@ const getAuthorizeInfo = () => {
padding: 20rpx 0;
}
}
</style>, onShow
</style>onLoad,, watch

@ -84,7 +84,6 @@ const handleOrderAccept = (item: any) => {
v-if="item.isRender"
:order-state="item.orderState"
@accept="handleOrderAccept"
@pay="handleOrderPay"
/>
</swiper-item>
</swiper>

@ -23,6 +23,7 @@ const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => {
iv,
userType: 2, // 1 2
}
// uni.switchTab({ url: '/pages/index/index' })
const res = await postLoginWxMinAPI(params)
loginSuccess(res.data)
} else {

Loading…
Cancel
Save