| 
					
				 | 
			
			
				@@ -44,7 +44,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="subtotal">小计 ¥ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<text v-if="buyType == 1">0.00</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<text v-if="buyType == 1">{{ (0+ totalInsurePrice).toFixed(2) }}</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<text v-else>{{ previewCourseInfo?.originalPrice ? (previewCourseInfo?.sellingPrice * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					countTotal).toFixed(2) : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					(previewCourseInfo?.sellingPrice.toFixed(2) - (previewCourseInfo?.sellingPrice - 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -174,7 +174,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="footer-btn" @click="submitOrder"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<view class="btn-price"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						<text v-if="buyType == 1">0.00</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<text v-if="buyType == 1">{{ (0 + totalInsurePrice).toFixed(2) }}</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<text v-else> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							¥{{ previewCourseInfo?.originalPrice ? (previewCourseInfo?.sellingPrice * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								countTotal).toFixed(2) : 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,7 +207,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script lang="ts" setup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { ref, onMounted, computed } from 'vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { onLoad, onShareAppMessage } from '@dcloudio/uni-app'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { RouterUtils, TipsUtils, idCardHide,debounce } from '@/utils/util'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { RouterUtils, TipsUtils, idCardHide, debounce } from '@/utils/util'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { http } from '@/utils/http' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useCacheStore } from '@/stores/cache' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const cache = useCacheStore() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -228,7 +228,7 @@ onLoad((options) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 onShareAppMessage((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	if (res.from === 'button') {// 来自页面内分享按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	if (res.from === 'button') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		console.log(res.target) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -265,7 +265,7 @@ const get_userData = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const deleteUser = async (e) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	let res = await TipsUtils.tips_alert('确定删除该用户吗?', true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	let res:any = await TipsUtils.tips_alert('确定删除该用户吗?', true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if (res.confirm) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		userData.value = userData.value.filter(user => user.id !== e.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -438,13 +438,13 @@ const submitOrderImpl = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		success(res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			TipsUtils.tips_toast('订阅成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			http.post('/order/createOrder', data, { loading: true }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				getOrderQuery(res.result.orderCode,res.result.orderId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				getOrderQuery(res.result.orderCode, res.result.orderId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		fail(err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			console.log(err, '订阅消息失败') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			http.post('/order/createOrder', data, { loading: true }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				getOrderQuery(res.result.orderCode,res.result.orderId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				getOrderQuery(res.result.orderCode, res.result.orderId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -453,13 +453,13 @@ const submitOrderImpl = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const submitOrder = debounce(submitOrderImpl, 500) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // code编码 "100001支付成功";"100002查询失败"; "100003查询中 "; "100004支付失败" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const getOrderQuery = (orderCode: string,orderId:string, retryCount = 0) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const getOrderQuery = (orderCode: string, orderId: string, retryCount = 0) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	http.get('/order/orderQuery', { data: { orderCode: orderCode }, loading: true }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (res.result == '100001') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			RouterUtils.to_page(`/pages/index/toBeUsed/index?orderId=${orderId}&orderType=${orderFormData.value.orderType}`) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} else if (retryCount <= 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				getOrderQuery(orderCode,orderId, retryCount + 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				getOrderQuery(orderCode, orderId, retryCount + 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 1000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (res.result == '100003') { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -475,7 +475,7 @@ const getOrderQuery = (orderCode: string,orderId:string, retryCount = 0) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		console.error('查询订单失败:', error) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (retryCount < 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				getOrderQuery(orderCode,orderId, retryCount + 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				getOrderQuery(orderCode, orderId, retryCount + 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 1000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}) 
			 |