Przeglądaj źródła

用户订单状态修改/支付成功订单页

jiayubo 1 tydzień temu
rodzic
commit
67e3d15266

+ 0 - 3
components/its-calendar/its-calendar.vue

@@ -29,9 +29,6 @@
 		<view class="calendar_footer">
 			<view class="remark_content">{{remark}}</view>
 		</view>
-		<!-- <view class="sub" @click="sub()">
-			立即预约
-		</view> -->
 	</view>
 </template>
 <script>

+ 2 - 2
config.js

@@ -2,8 +2,8 @@
 const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
-	// baseUrl: 'http://192.168.100.95:9527',//嵘哥
-	baseUrl: 'http://192.168.100.121:9527',//龙哥
+	baseUrl: 'http://192.168.100.95:9527',//嵘哥
+	// baseUrl: 'http://192.168.100.121:9527',//龙哥
 	// baseUrl: 'https://zybooks.tech/prod-api',
 	mapKey:'KFEBZ-P2GKZ-A5PX4-7Q6Y7-KXOBF-XCB4C',
 	appName: '金邻助家',

+ 5 - 2
pages/common/orderList/userItem.vue

@@ -13,6 +13,9 @@
                 </view>
                 <view class="item-de">
                     类别:{{data.businessTierName}}
+                </view>
+                 <view class="item-de">
+                    日期:{{ data.createTime }}
                 </view>
                 <view class="item-time skill-description">
                     技能介绍:{{ data.skillDescribe }}
@@ -58,7 +61,7 @@ const btns = [
     {
         name: '退款',
         onClick: (e)=>handleRefund(e),
-        show: (item) => ['3','1'].includes(item.orderStatus),
+        show: (item) => ['3'].includes(item.orderStatus),
         type: 'error'
     },
     {
@@ -70,7 +73,7 @@ const btns = [
     {
         name: '查看',
         onClick: (e)=>handlClick(e),
-        show: (item) => item.orderStatus !== '1',
+        // show: (item) => item.orderStatus !== '1',
         type: 'info'
     },
 ]

+ 14 - 0
pages_home/pages/Volunteerside/goodsDetails.vue

@@ -708,6 +708,20 @@ const proceedToPayment = async () => {
         })
       })
     }
+    // 如果是钱包支付
+    if (paymentMethod.value === 1) {
+      uni.showToast({
+        title: '支付成功',
+        icon: 'success',
+        duration: 1500,
+        mask: true,
+      })
+      setTimeout(() => {
+        uni.reLaunch({
+          url: '/pages/classify'
+        })
+      }, 1500)
+    }
   } catch (error) {
     console.error('支付失败:', error)
     uni.showToast({

+ 12 - 0
pages_home/pages/Volunteerside/paymentDetails.vue

@@ -0,0 +1,12 @@
+<template>
+  <view>
+    
+  </view>
+</template>
+<script setup>
+
+</script>
+<style scoped>
+
+</style>
+