From 848a169221668413691f44e1fcbd219e32c1431c Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期一, 31 七月 2023 16:19:49 +0800
Subject: [PATCH] no message

---
 h5/apph5/pages/takeout/mt.vue |   59 ++++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 36 insertions(+), 23 deletions(-)

diff --git a/h5/apph5/pages/takeout/mt.vue b/h5/apph5/pages/takeout/mt.vue
index c6f6a64..1f9012a 100644
--- a/h5/apph5/pages/takeout/mt.vue
+++ b/h5/apph5/pages/takeout/mt.vue
@@ -1,34 +1,35 @@
 <template>
-	<view class="bodycont">
-	<!-- 	<view class="toptxt">
+	<view class="mtbodycont">
+		<!-- 	<view class="toptxt">
 			缇庡洟澶栧崠
 		</view> -->
 		<view class="tabcont">
 			<view class="tabcont tabcontsp">
-				<span class="tabconttxt tabconttxt-check">
+				<span class="tabconttxt mttabconttxt-check">
 					缇庡洟
 				</span>
-				<span class="tabconttxt getBtn-containe-uncheck">
+				<span class="tabconttxt getBtn-containe-uncheck" @click="toElm()">
 					楗夸簡涔�
 				</span>
 			</view>
-			
+
 		</view>
 		<view>
 			<image class="pageBac" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5mt1.png"></image>
 		</view>
 		<view class="code-cont">
-			<view class="code-flow">
-				<image class="code-flow-img" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5huanstep.png"></image>
+			<view class="mtcode-flow">
+				<image class="code-flow-img"
+					src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5huanstep.png"></image>
 			</view>
 			<view class="code-img">
 				<image class="code-img-code" :src="qrcode"></image>
 			</view>
-			<view class="code-btn" @click="shareClick()">
+			<view v-if="qrcode" class="code-btn" @click="shareClick()">
 				棰嗙孩鍖呯偣澶栧崠
 			</view>
 		</view>
-		
+
 		<view class="rulesContent">
 			<view class="txt-title">
 				瑙勫垯璇存槑锛�
@@ -41,20 +42,19 @@
 				楗搧棰戦亾浣跨敤; </br>
 				(3)澶栧崠鏂颁汉棣栧崟绾㈠寘闄愭柊鐢ㄦ埛(璁惧銆佹墜鏈哄彿銆� 绾㈠寘
 				鍙峰潎鏈湪缇庡洟澶栧崠涓嬭繃鍗�)棣栨涓嬪崟浣跨敤锛屼笖涓嶄笌鍏朵粬浼樻儬(棣栧噺銆佹弧鍑忋�佹弧璧犮�佸椁愬銆佹姌鎵h彍)鍚屼韩;闈為鍗曠孩鍖呭彲涓庝笂杩颁紭鎯犲彔鍔犱娇鐢�;</br>
-				(4)浣跨敤绾㈠寘鏃朵笅鍗曟墜鏈哄彿鐮佸繀椤讳笌鏀堕浜烘墜鏈哄彿鐮併�侀鍙栫孩鍖呮椂杈撳叆鐨勬墜鏈哄彿鐮佷竴鑷�:</br>
-				3.璁㈠崟璺熷崟瑙勫垯涓烘偍閫氳繃鏈椿鍔ㄩ〉鐐瑰嚮璺宠浆鑷崇編鍥㈠悗鍙浜х敓鏈夋晥鐐瑰嚮鍗冲彲杩涜璺熷崟锛岀偣鍑绘湁鏁堟湡鏈�闀夸负7澶�</br>
 			</view>
 		</view>
 	</view>
 </template>
 <script>
 	import './mt.css'
+	import comUtils from '../../utils/ComUtils.js'
 	export default {
 		data() {
 			return {
-				optionsCurrent:1,
-				qrcode:'',
-				mtInfo:{},
+				optionsCurrent: 1,
+				qrcode: '',
+				mtInfo: {},
 				optionsList: [{
 						label: "缇庡洟",
 						type: 1
@@ -71,19 +71,23 @@
 		},
 		methods: {
 			IntiData() {
+				uni.showLoading({
+					title: '鍔犺浇涓�',
+					mask: true
+				});
 				var that = this;
 				this.$http.post('/api/taoke/meituan_act', {
 					type: this.optionsCurrent
 				}).then(e => {
-					if (e.code != 0)
-					{
+					uni.hideLoading();
+					if (e.code != 0) {
 						uni.showToast({
-						        title:res.data.msg,
-						        icon:'none'
+							title: res.data.msg,
+							icon: 'none'
 						});
 						return;
 					}
-					
+
 					that.mtInfo = e.data.info;
 					that.qrcode = that.mtInfo.we_app_info.miniCode;
 					console.log(that.qrcode);
@@ -91,13 +95,22 @@
 					console.log(err);
 				})
 			},
+			toElm() {
+				uni.redirectTo({
+					url: './elm?dfgtoken=' + comUtils.getUrlPar('dfgtoken')
+				})
+			},
 			shareClick() {
-				if(this.mtInfo)
-				{
-					window.location.href=this.mtInfo.deeplink;
+				var that=this;
+				var ua = navigator.userAgent.toLowerCase();
+				if (ua.match(/MicroMessenger/i) == "micromessenger") {
+					window.location.href = this.mtInfo.h5;
+				}
+				else{
+					window.location.href = this.mtInfo.deeplink;
 				}
 			},
-			
+
 		}
 	}
 </script>
\ No newline at end of file

--
Gitblit v1.9.3