From 90ef820cdc18a108b67aef0c7d6c3fa1e8ecb3f7 Mon Sep 17 00:00:00 2001
From: heyuntao <heyuntao@LAPTOP-MP4HD5NS>
Date: 星期四, 01 六月 2023 11:24:38 +0800
Subject: [PATCH] Merge branch 'master' of http://60.204.153.149:8081/r/dfgApp

---
 uniapp/pages/mine/mine.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue
index 05781b9..61fa61f 100644
--- a/uniapp/pages/mine/mine.vue
+++ b/uniapp/pages/mine/mine.vue
@@ -129,7 +129,7 @@
 				<swiper class="banerContent" :autoplay="true" :interval="3000" :duration="1000" circular>
 					<swiper-item v-for="(items,index) in bannerList" :key="index" @tap="goUrl(items)">
 						<view class="swiper-items defIcon">
-							<image :src="items.pic" mode="aspectFit"></image>
+							<image :src="items.image" mode="aspectFit"></image>
 						</view>
 					</swiper-item>
 				</swiper>
@@ -322,12 +322,12 @@
 					console.log(err)
 				})
 			},
-
 			getbanner() {
 				// banner鏁版嵁
 				var that = this;
 				this.$u.api.getBanner({type:'2'}).then(e => {
 					if(e.code == 1)return that.$alert(e.msg);
+					console.log(e.data.info)
 					that.bannerList = e.data.info;
 				}).catch(function (err) {
 				})
@@ -381,7 +381,40 @@
 			},
 
 			goUrl(info) {
-				util.goUrl(info,this)
+				console.log(info)
+				if(info.url_type == 15)
+				{//寰俊瀹㈡湇
+					let wechat = null
+					let parameter = info.parameter_json;
+					plus.share.getServices(res => {
+						wechat = res.find(i => i.id === 'weixin')
+						if (wechat) {
+							wechat.openCustomerServiceChat({
+								corpid: parameter.cmark, //浼佷笟ID
+								url: parameter.url, //瀹㈡湇鍦板潃
+							}, src => {
+								console.log("success:", JSON.stringify(src))
+							}, err => {
+								console.log("error:", JSON.stringify(err))
+							})
+						} else {
+							uni.showToast({
+								title: '褰撳墠鐜涓嶆敮鎸佸井淇℃搷浣�',
+								icon: "error"
+							});
+						}
+					}, function() {
+						uni.showToast({
+							title: "鑾峰彇鏈嶅姟澶辫触锛屼笉鏀寔璇ユ搷浣溿��" + JSON.stringify(e),
+							icon: 'none'
+						})
+						});
+				}
+				else
+				{
+					util.goUrl(info,this)
+				}
+				
 			},
 
 			

--
Gitblit v1.9.3