|
|
@@ -0,0 +1,29 @@
|
|
|
+<script setup lang="ts">
|
|
|
+definePage({ name: 'smqjh-threePay', islogin: false, style: { navigationBarTitleText: '下单' } })
|
|
|
+
|
|
|
+const orderNumber = ref()
|
|
|
+onLoad((options: any) => {
|
|
|
+ orderNumber.value = options.orderNumber
|
|
|
+ handlePay()
|
|
|
+})
|
|
|
+async function handlePay() {
|
|
|
+ const res = await useUserStore().handleCommonPayMent(orderNumber.value)
|
|
|
+ if (res.payType !== 1) {
|
|
|
+ try {
|
|
|
+ await useUserStore().getWxCommonPayment(res)
|
|
|
+ await useUserStore().paySuccess('xsb-order', 'subPack-xsb/commonTab/index')
|
|
|
+ }
|
|
|
+ catch {
|
|
|
+ await useUserStore().payError('xsb-order', 'subPack-xsb/commonTab/index')
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <view class="">
|
|
|
+ view
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|