|
@@ -10,11 +10,14 @@ import { requestToast } from '../../../../core/utils/common'
|
|
|
import { useMessage } from 'wot-design-uni'
|
|
|
import { right } from '@/core/libs/svgs'
|
|
|
import CouponRecord from '@/pages/common/components/coupon-record.vue'
|
|
|
+import {useRouter} from "@/core/utils/router";
|
|
|
|
|
|
const { confirm } = useMessage()
|
|
|
const id = ref()
|
|
|
+const router = useRouter()
|
|
|
const status = ref({ '0': '已报名', '1': '已完成', '2': '未核销', '3': '已取消', '4': '待交付' })
|
|
|
const payTypes = ref({ '0': '积分支付', '1': '现金支付' })
|
|
|
+const title = ref({4:'案例拍摄',5:'微信代运营',3:'品质商城'})
|
|
|
const { data, run: setData } = useRequest(() => getPointsOrder(id.value), {})
|
|
|
const handleSubmit = async () => {
|
|
|
await confirm({
|
|
@@ -31,6 +34,22 @@ const handleSubmit = async () => {
|
|
|
},
|
|
|
})
|
|
|
}
|
|
|
+const routhInfo = (product) =>{
|
|
|
+ if (product.orderType == 0){
|
|
|
+ router.push('/pages/home/activity/detail/index?id='+product.projectId+'&type=studyTour')
|
|
|
+ }
|
|
|
+ if (product.orderType == 1){
|
|
|
+ router.push('/pages/home/activity/detail/index?id='+product.projectId+'&type=activity')
|
|
|
+ }
|
|
|
+ if (product.orderType == 2 ){
|
|
|
+ if(product.item == 5 || product.item == 4){
|
|
|
+ router.push('/pages/home/spread/product-detail/index?id='+product.productId+'&title='+title.value[product.item]+'&item='+product.item)
|
|
|
+ }
|
|
|
+ if (product.item == 3){
|
|
|
+ router.push('/pages/home/spread/product-detail/index?id='+product.productId+'&title='+title.value[product.item])
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
onLoad((query: { id: string }) => {
|
|
|
id.value = query.id
|
|
|
setData()
|
|
@@ -45,7 +64,7 @@ onLoad((query: { id: string }) => {
|
|
|
{{ status[data?.orderStatus] }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="flex gap-4 border-b border-b-solid border-b-[#f2f2f2] pb-5">
|
|
|
+ <div class="flex gap-4 border-b border-b-solid border-b-[#f2f2f2] pb-5" @click="routhInfo(data)">
|
|
|
<wd-img
|
|
|
width="94"
|
|
|
height="94"
|