Browse Source

隐藏温馨提示

1410417013 7 months ago
parent
commit
fff13b1dd8

+ 1 - 1
pages/chooseCar/chooseCar.vue

@@ -303,7 +303,7 @@ const getCommonData = async () => {
 	let data = {
 		page: currentPage.value,
 		rows: pageSize.value,
-		mobile: userInfo.mobile
+		mobile: userInfo.mobile?userInfo.mobile:''
 	}
 	try {
 	    const res = await myRequest({

+ 31 - 3
pages/home/home.vue

@@ -72,16 +72,16 @@
 		</view>
 
 		<!-- 温馨提示区域 -->
-		<view class="box_info">
+		<!-- <view class="box_info">
 			<view class="info_title">温馨提示</view>
 			<view class="info_detail">
 				预约截止时间为发车前{{ yy_end }}分钟,车队长联系方式:
-				<span @click="handlePhone('13576937506')">13576937506</span>
+				<span @click="handlePhone(workTele)">{{workTele}}</span>
 				,技术支持联系方式:
 				<span @click="handlePhone(`0791 - 82293574`)">0791-82293574</span>
 				,候补功能仅当日开放。
 			</view>
-		</view>
+		</view> -->
 	</view>
 
 	<!-- 授权手机号 -->
@@ -116,6 +116,8 @@ const busList = ref([])
 
 // 预约截止时间
 const yy_end = ref(0)
+//客服信息 
+const workTele = ref('')
 
 // 截取箭头前后的文字
 const getRouteParts = (str) => {
@@ -174,6 +176,23 @@ async function getBusList(route) {
 	
 }
 
+//客服电话
+async function getTuigai() {
+	const res = await myRequest({
+		url: '/carBook/cnqueryHb.action',
+		data: {
+		}
+	})
+	if(res.code==200){  
+		workTele.value=res.data.workMobile   
+	}else{
+		uni.showToast({   
+		  title: res.message,
+		  icon: 'none'
+		});
+	}
+}
+
 // 获取所有的发车路线
 async function getPathList() {
 	const res = await myRequest({
@@ -195,6 +214,7 @@ onMounted(() => {
 		currentTime.value = dayjs(Date.now()).format('YYYY-MM-DD')
 	}
 	paddingTop.value = uni.getMenuButtonBoundingClientRect().top
+	getTuigai()
 	getOrderConfig()
 	getPathList()
 })
@@ -237,6 +257,14 @@ function handlePhone(phoneNumber) {
 const handleClose = () => {
 	show.value = false
 }
+
+const onShareAppMessage = (res) => { //发送给朋友
+	return {
+		// title: this.tuiguang,
+		path: '/pages/home/home',
+		// imageUrl: this.tuiguangImg,
+	}
+}
 </script>
 
 <style lang="scss" scoped>

+ 7 - 0
pages/mine/mine.vue

@@ -277,6 +277,13 @@ async function saomaCha() {
 		});
 	}
 }
+const onShareAppMessage = (res) => { //发送给朋友
+	return {
+		// title: this.tuiguang,
+		path: '/pages/home/home',
+		// imageUrl: this.tuiguangImg,
+	}
+}
 </script>
 
 <style lang="scss" scoped>

+ 7 - 0
pages/order/order.vue

@@ -374,6 +374,13 @@ const tuiPay = async (item) => {
 		uni.showToast({ title: res.message });
 	}
 }
+const onShareAppMessage = (res) => { //发送给朋友
+	return {
+		// title: this.tuiguang,
+		path: '/pages/home/home',
+		// imageUrl: this.tuiguangImg,
+	}
+}
 </script>
 
 <style lang="scss" scoped>

+ 1 - 1
pages/orderDetail/orderDetail.vue

@@ -80,7 +80,7 @@
 					<view class="box_bottom"> 
 						<view class="bottom_time"></view>  
 						<view v-if="info.payState==1 &&info.state!=4"> 
-							<view class="bottom_btns" v-if="info.byState==3||info.byState==2">
+							<view class="bottom_btns" v-if="info.byState==3">
 								<view class="btn_item pay">退款</view>
 							</view>
 						</view>

+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/chooseCar/chooseCar.js

@@ -105,7 +105,7 @@ const _sfc_main = {
       let data = {
         page: currentPage.value,
         rows: pageSize.value,
-        mobile: userInfo.mobile
+        mobile: userInfo.mobile ? userInfo.mobile : ""
       };
       try {
         const res = await utils_api.myRequest({

+ 19 - 10
unpackage/dist/dev/mp-weixin/pages/home/home.js

@@ -25,6 +25,7 @@ const _sfc_main = {
     const currentIndex = common_vendor.ref(0);
     const busList = common_vendor.ref([]);
     const yy_end = common_vendor.ref(0);
+    const workTele = common_vendor.ref("");
     const getRouteParts = (str) => {
       if (typeof str === "string" && str.length > 0) {
         return str.split("→");
@@ -57,6 +58,20 @@ const _sfc_main = {
         console.log(busList.value, "车次");
       }
     }
+    async function getTuigai() {
+      const res = await utils_api.myRequest({
+        url: "/carBook/cnqueryHb.action",
+        data: {}
+      });
+      if (res.code == 200) {
+        workTele.value = res.data.workMobile;
+      } else {
+        common_vendor.index.showToast({
+          title: res.message,
+          icon: "none"
+        });
+      }
+    }
     async function getPathList() {
       var _a;
       const res = await utils_api.myRequest({
@@ -76,6 +91,7 @@ const _sfc_main = {
         currentTime.value = common_vendor.dayjs(Date.now()).format("YYYY-MM-DD");
       }
       paddingTop.value = common_vendor.index.getMenuButtonBoundingClientRect().top;
+      getTuigai();
       getOrderConfig();
       getPathList();
     });
@@ -97,11 +113,6 @@ const _sfc_main = {
         url: `/pages/chooseCar/chooseCar?info=${info}`
       });
     }
-    function handlePhone(phoneNumber) {
-      common_vendor.index.makePhoneCall({
-        phoneNumber
-      });
-    }
     const handleClose = () => {
       show.value = false;
     };
@@ -166,11 +177,8 @@ const _sfc_main = {
           tip: "暂无数据"
         })
       } : {}, {
-        m: common_vendor.t(yy_end.value),
-        n: common_vendor.o(($event) => handlePhone("13576937506")),
-        o: common_vendor.o(($event) => handlePhone(`0791 - 82293574`)),
-        p: common_vendor.o(handleClose),
-        q: common_vendor.p({
+        m: common_vendor.o(handleClose),
+        n: common_vendor.p({
           show: show.value
         })
       });
@@ -178,4 +186,5 @@ const _sfc_main = {
   }
 };
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-07e72d3c"], ["__file", "D:/创海项目/CH2025/约车小程序/yueche_app/pages/home/home.vue"]]);
+_sfc_main.__runtimeHooks = 2;
 wx.createPage(MiniProgramPage);

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/home.wxml


+ 1 - 0
unpackage/dist/dev/mp-weixin/pages/mine/mine.js

@@ -255,4 +255,5 @@ const _sfc_main = {
   }
 };
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c2ebfa5"], ["__file", "D:/创海项目/CH2025/约车小程序/yueche_app/pages/mine/mine.vue"]]);
+_sfc_main.__runtimeHooks = 2;
 wx.createPage(MiniProgramPage);

+ 1 - 0
unpackage/dist/dev/mp-weixin/pages/order/order.js

@@ -338,4 +338,5 @@ const _sfc_main = {
   }
 };
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-93207a4f"], ["__file", "D:/创海项目/CH2025/约车小程序/yueche_app/pages/order/order.vue"]]);
+_sfc_main.__runtimeHooks = 2;
 wx.createPage(MiniProgramPage);

+ 2 - 2
unpackage/dist/dev/mp-weixin/pages/orderDetail/orderDetail.js

@@ -205,8 +205,8 @@ const _sfc_main = {
         H: common_vendor.n(info.value.payState === 0 || info.value.byState === 3 || info.value.byState === 1 ? "info_price" : "info_price1"),
         I: info.value.payState == 1 && info.value.state != 4
       }, info.value.payState == 1 && info.value.state != 4 ? common_vendor.e({
-        J: info.value.byState == 3 || info.value.byState == 2
-      }, info.value.byState == 3 || info.value.byState == 2 ? {} : {}) : {}, {
+        J: info.value.byState == 3
+      }, info.value.byState == 3 ? {} : {}) : {}, {
         K: info.value.payState === 0
       }, info.value.payState === 0 ? {
         L: common_vendor.t(info.value.payAmount),