xhj %!s(int64=2) %!d(string=hai) anos
pai
achega
d06bb0cc23

+ 20 - 0
action_sdk/actionTemplete.js

@@ -90,9 +90,29 @@ export default {
 					}else{
 						clearInterval(this.USER_TIMER)
 						this.USER_TIMER = null
+						if(pageList.length==1){
+							// 用户退出时间
+							this.ACTION_ENTER_TIME = new Date();
+							this.ACTION_OUT_TIME = new Date();
+							//停留时间(毫秒)
+							this.ACTION_STAY_TIME = this.ACTION_OUT_TIME.getTime() - this.ACTION_ENTER_TIME.getTime();
+							console.log('页面隐藏' + this.CURRENT_ROUTE.route + ':' + this.ACTION_STAY_TIME);
+							console.log('---用户浏览---',Math.ceil(this.ACTION_STAY_TIME/1000))
+							this.SEND_BROWSE_FN()
+						}
 					}
 				},500)
 		}else{
+			if(pageList.length==1){
+				// 用户退出时间
+				this.ACTION_ENTER_TIME = new Date();
+				this.ACTION_OUT_TIME = new Date();
+				//停留时间(毫秒)
+				this.ACTION_STAY_TIME = this.ACTION_OUT_TIME.getTime() - this.ACTION_ENTER_TIME.getTime();
+				console.log('页面隐藏' + this.CURRENT_ROUTE.route + ':' + this.ACTION_STAY_TIME);
+				console.log('---用户浏览---',Math.ceil(this.ACTION_STAY_TIME/1000))
+				this.SEND_BROWSE_FN()
+			}
 		}
 	},
 	onShow() {

+ 28 - 23
components/product-popup/index.vue

@@ -662,7 +662,7 @@ export default {
 			} else delete params.addType;
 			return params;
 		},
-		addCart() {
+		async addCart() {
 			let _ts = this;
 			if(_ts.initNum == 0) return req.msg('请输入商品数量');
 			if (_ts.stock === 0) return req.msg('库存不足');
@@ -675,17 +675,22 @@ export default {
 				isShowLoading = true;
 			}
 			// console.log(params);
-			req.postRequest('/api/purchase/cart', params, res => {
-				if (isShowLoading) {
-					uni.hideLoading();
-					isShowLoading = false;
-					req.msg('加入购物车成功', () => {
-						_ts.$emit('addCartSuccess', {
-							detail: {
-								quantity: params.quantity
-							}
+			let quantity = await new Promise((r,j)=>{
+				req.postRequest('/api/purchase/cart', params, res => {
+					if (isShowLoading) {
+						uni.hideLoading();
+						isShowLoading = false;
+						req.msg('加入购物车成功', () => {
+							r(params.quantity)
 						});
-					});
+					}else{
+						r(0)
+					}
+				});
+			})
+			_ts.$emit('addCartSuccess', {
+				detail: {
+					quantity: quantity
 				}
 			});
 			this.$emit('hidePopup');
@@ -741,10 +746,10 @@ export default {
 					uni.hideLoading();
 					isShowLoading = false;
 				}
-				h5util.jumpUrlExternal({url:redirect})
-				// uni.navigateTo({
-				// 	url: redirect
-				// });
+				// h5util.jumpUrlExternal({url:redirect})
+				uni.navigateTo({
+					url: redirect
+				});
 			});
 			this.$emit('hidePopup');
 			// this.$emit('hidePopup', {
@@ -767,10 +772,10 @@ export default {
 			this.$emit('hidePopup');
 			req.removeStorage('mergeProduct');
 			req.setStorage('mergeProduct',this.mergeProduct);
-			h5util.jumpUrlExternal({url:'/product/subMerge/subOrder?mergeQuantity=' + _ts.initNum + '&id=' + this.product.id})
-			// uni.navigateTo({
-			// 	url: '/product/subMerge/subOrder?mergeQuantity=' + _ts.initNum + '&id=' + this.product.id
-			// })
+			// h5util.jumpUrlExternal({url:'/product/subMerge/subOrder?mergeQuantity=' + _ts.initNum + '&id=' + this.product.id})
+			uni.navigateTo({
+				url: '/product/subMerge/subOrder?mergeQuantity=' + _ts.initNum + '&id=' + this.product.id
+			})
 			// this.$emit('hidePopup', {
 			// 	detail: this
 			// });
@@ -883,10 +888,10 @@ export default {
 						uni.hideLoading();
 						isShowLoading = false;
 					}
-					h5util.jumpUrlExternal({url:redirect})
-					// uni.navigateTo({
-					// 	url: redirect
-					// });
+					// h5util.jumpUrlExternal({url:redirect})
+					uni.navigateTo({
+						url: redirect
+					});
 				});
 			}
 

+ 0 - 5
mine/order/order.vue

@@ -1,12 +1,7 @@
 <template>
 	<view :style="[mainStyle]">
 		<!--pages/order/order.wxml-->
-		<!--#ifdef H5 -->
-		<view class="tab" :style="'top: '+systems.barHeight +'rpx;'">
-			<!--#endif-->
-			<!--#ifndef H5-->
 			<view class="tab">
-				<!--#endif-->
 				<view v-for="(item, index) in TabList" :key="index" :class="'li ' + (item.active ? 'active' : '')"
 					:data-index="index" @tap="switchTab">{{ item.label }}</view>
 			</view>

+ 7 - 4
open/index/index.vue

@@ -85,6 +85,7 @@
 	const route = require('../../utils/route');
 	const utils = require('../../utils/util.js');
 	import mpHtml from "@/components/mp-html/components/mp-html/mp-html.vue"
+import h5util from "../../utils/h5util.js";
 	export default {
 		components: {
 			mpHtml
@@ -277,10 +278,12 @@
 						scene: req.getStorage('scene')
 					},
 					data => {
-						route.vipPay(data.id, data.status, this.money, res => {
-							uni.hideLoading();
-							app.globalData.reLaunchTo('pages/index/index');
-						});
+						h5util.jumpPay({orderId:data.id,status:data.status,money:this.money,payType:'vip'})
+						uni.hideLoading();
+						// route.vipPay(data.id, data.status, this.money, res => {
+						// 	uni.hideLoading();
+						// 	app.globalData.reLaunchTo('pages/index/index');
+						// });
 					}
 				);
 			},

+ 49 - 82
product/detail/detail.vue

@@ -26,11 +26,9 @@
 							v-if="product.salePrice == product.actualPrice && product.marketPrice > 0&&product.salePrice<product.marketPrice">¥{{product.marketPrice}}</text>
 					</view>
 					<view class=" sellStock" v-if="product.sellStock>0">销量:<text>{{product.sellStock}}</text></view>
-					<!-- #ifdef MP-WEIXIN -->
 					<view class="share" @tap="showShare">
 						<image src="/static/pages/images/fxico.png"></image>分享
 					</view>
-					<!-- #endif -->
 
 
 				</view>
@@ -179,7 +177,7 @@
 					<view class="botbtn" @click="goHome()">
 						<image src="/static/pages/images/sy.png"></image>首页
 					</view>
-					<view class="botbtn" @tap="jumpCart('/pages/cart/cart')">
+					<view class="botbtn" @tap="jumpCart('pages/cart/cart')">
 						<image src="/static/pages/images/gwc.png"></image>购物车<text class="message"
 							v-if="product.count > 0">{{product.count}}</text>
 					</view>
@@ -388,7 +386,6 @@
 				}
 				await this.bindUser(params);
 			} else {
-				await req.silenceLogin();
 			}
 			return false
 			if (options.hideShop) {
@@ -425,13 +422,6 @@
 			}, 10000);
 			setTimeout(() => {
 				actionsdk.initAction();
-				// actionsdk.saveBrowse({
-				// 	type: 1,
-				// 	bindId: this.query.id,
-				// 	uid: req.getStorage('userInfo').id,
-				// 	shareUid: this.query.userId ? this.query.userId : null,
-				// 	parentCode: this.query.parentCode ? this.query.parentCode : null
-				// });
 			}, 2000)
 		},
 		async onShow() {
@@ -488,14 +478,13 @@
 			}, 4 * 1000);
 			// #endif
 		},
-
 		methods: {
 			initLocation() {
 				this.getMerchant();
 			},
 
 			goHome() {
-				h5util.jumpIndex()
+				h5util.jumpIndex('/pages/tabBar/index?channel=home')
 				// app.globalData.openHome();
 			},
 
@@ -503,20 +492,14 @@
 				let merchantId = '';
 				let path = '';
 				let isSolution = '';
-				// #ifndef H5
 				isSolution = req.env[req.env.NODE_ENV].isSolution;
-				// #endif
-				// #ifdef H5
-				isSolution = false;
-				// #endif
 				let userInfo = req.getStorage('userInfo');
 				let shopId = '';
 				if (isSolution) {
 					path = '/share/home/index?appId=' + req.getStorage('appId') + '&userId=' + req.getStorage(
 						'userInfo').id;
 				} else {
-					path = '/product/detail/detail?id=' + this.query.id + '&isShare=' + true + '&appId=' + req
-						.getStorage('appId');
+					path = '/product/detail/detail?id=' + this.query.id 
 					// console.log(!req.getStorage('userInfo').id);
 					if (!userInfo.id) {} else {
 						path += '&userId=' + userInfo.id;
@@ -538,25 +521,9 @@
 					}
 				}
 				route.share(1, userInfo.id, path, merchantId, shopId, 1, this.query.id);
-
-				if (options && options.from == "menu") {
-					this.parentCode = await new Promise((r, j) => {
-						actionsdk.saveBehavior({
-							behaviorType: 5,
-							type: 1,
-							bindId: this.query.id,
-							uid: req.getStorage('userInfo').id,
-							success: (data) => {
-								r(data)
-							}
-						});
-					})
-				}
-				if (this.parentCode) {
-					path = path + '&parentCode=' + this.parentCode
-				}
-				console.log(path);
-
+				
+				path = this.SHARE_BEHAVIOR_FN({path:path,sendShare:false}).path
+				console.log('---share path----',path)
 				return {
 					title: this.product.title,
 					imageUrl: this.product.pic,
@@ -671,36 +638,23 @@
 				})
 			},
 			async showShare() {
-				this.parentCode = await new Promise((r, j) => {
-					actionsdk.saveBehavior({
-						behaviorType: 5,
-						type: 1,
-						bindId: this.query.id,
-						uid: req.getStorage('userInfo').id,
-						success: (data) => {
-							r(data)
-						}
-					});
-				})
-				// console.log(11111,this.hideShare)
-				// #ifdef H5 
-				this.setData({
-					hideShare: false
-				});
-
-				// #endif
-				// #ifndef H5
-				req.isLogin().then(success => {
-					// console.log(success)
-					if (success) {
-						this.getCodeUrl()
-						this.setData({
-							hideShare: false
-						});
-						// console.log(this.hideShare)
+				let shareD = await this.onShareMessage()
+				h5util.jumpShare({
+					title:shareD.title,
+					imageUrl:shareD.imageUrl,
+					path:shareD.path,
+					shareType:2,
+					id:this.product.id,
+					merchantId:this.query.merchantId,
+					sendBehaviorObj:{
+						BIND_TYPE : this.BIND_TYPE,
+						BIND_ID : this.BIND_ID,
+						USER_ID : this.USER_ID,
+						SHARE_USER_ID : this.SHARE_USER_ID,
+						PARENT_CODE : this.PARENT_CODE,
+						CURRENT_CODE : this.CURRENT_CODE
 					}
-				});
-				// #endif
+				})
 			},
 
 			/**
@@ -943,10 +897,18 @@
 				if (userInfo.listShopBase && userInfo.listShopBase.length > 0) {
 					form.shopId = userInfo.listShopBase[0].id;
 				}
-				req.getRequest('/api/product/detail', form, data => {
+				req.getRequest('/api/product/detail', form, async data => {
 					//富文本图片放大
 					var nodes = data.detail;
-					that.postShareMessage(data.title,data.pic)
+					let shareD = await this.onShareMessage()
+					that.postShareMessage(shareD.title,shareD.imageUrl,shareD.path,{
+						BIND_TYPE : this.BIND_TYPE,
+						BIND_ID : this.BIND_ID,
+						USER_ID : this.USER_ID,
+						SHARE_USER_ID : this.SHARE_USER_ID,
+						PARENT_CODE : this.PARENT_CODE,
+						CURRENT_CODE : this.CURRENT_CODE
+					})
 					// console.log(nodes)
 					// if (nodes) {
 					//   if (nodes.indexOf("src") >= 0) {
@@ -1100,8 +1062,8 @@
 
 			toAddress() {
 				this.changeFreshen()
-				h5util.jumpUrlExternal({url:'/mine/address/address'})
-				// app.globalData.openPage('mine/address/address');
+				// h5util.jumpUrlExternal({url:'/mine/address/address'})
+				app.globalData.openPage('mine/address/address');
 			},
 
 			atOnceBuy() {
@@ -1232,6 +1194,9 @@
 				let url = '/product/detail/detail?' + path;
 				route.share(2, userInfo.id, url, merchantId, shopId, 1, this.query.id);
 				// console.log(path, url);
+				
+				path = this.SHARE_BEHAVIOR_FN({path:path,sendShare:false}).path
+				
 				return {
 					title: this.product.title,
 					query: path,
@@ -1251,8 +1216,10 @@
 				if (this.about.User_Limit_Store == 1) {
 
 				} else {
-					h5util.jumpUrlExternal({url:url})
-					// app.globalData.openPage(url);
+					// h5util.jumpUrlExternal({url:url})
+					uni.navigateTo({
+						url:url
+					})
 				}
 			},
 
@@ -1342,10 +1309,10 @@
 			},
 			jumpUrl(url) {
 				this.changeFreshen()
-				h5util.jumpUrlExternal({url:url})
-				// uni.navigateTo({
-				// 	url: url
-				// })
+				// h5util.jumpUrlExternal({url:url})
+				uni.navigateTo({
+					url: url
+				})
 			},
 			getUpdate() {
 				let userInfos = req.getStorage('userInfo');
@@ -1373,11 +1340,11 @@
 			},
 			jumpCart(url) {
 				if (req.getStorage('cartTab')) {
-					// app.globalData.reLaunchTo(url);
-					h5util.jumpUrlExternal({url:url})
+					app.globalData.reLaunchTo(url);
+					// h5util.jumpUrlExternal({url:url})
 				} else {
-					// app.globalData.openPage(url)
-					h5util.jumpUrlExternal({url:url})
+					app.globalData.openPage(url)
+					// h5util.jumpUrlExternal({url:url})
 				}
 			}
 		}

+ 13 - 8
product/subOrder/subOrder.vue

@@ -510,12 +510,12 @@ import h5util from '../../utils/h5util.js';
 			});
 
 			// #ifdef H5
-			//校验支付成功
+			// 校验支付成功
 			if (this.orderId) {
 				req.checkPaySuccess(this.orderId, sucs => {
 					console.log('付款结果>>>>', sucs);
-					this.payJumpSuc(sucs);
-
+					// this.payJumpSuc(sucs);
+					uni.navigateBack()
 				});
 			}
 			// #endif
@@ -1272,22 +1272,27 @@ import h5util from '../../utils/h5util.js';
 				if (success) {
 					//支付成功
 					if (!this.isRx) {
-						app.globalData.redirectTab('product/pay/pay?isSuccess=true&&orderId=' + this.orderId + '&isRx=1');
+						h5util.jumpUrlExternal({url:'/product/pay/pay?isSuccess=true&&orderId=' + this.orderId + '&isRx=1',type:'redirectTo'})
+						// app.globalData.redirectTab('product/pay/pay?isSuccess=true&&orderId=' + this.orderId + '&isRx=1');
 					} else if (this.orderType == 4) {
 						//拼团订单,
 						if (this.pay == 1) {
 							uni.navigateBack();
 						} else {
+							h5util.jumpUrlExternal({url:'/activity/group/ptDetail/ptDetail?acid=' + this.activityId +
+								'&id=' + this.aprId + '&merchantId=' + this.query.merchantId,type:'redirectTo'})
 							//支付成功之后跳入到拼团页面
-							app.globalData.redirectTab('activity/group/ptDetail/ptDetail?acid=' + this.activityId +
-								'&id=' + this.aprId + '&merchantId=' + this.query.merchantId);
+							// app.globalData.redirectTab('activity/group/ptDetail/ptDetail?acid=' + this.activityId +
+							// 	'&id=' + this.aprId + '&merchantId=' + this.query.merchantId);
 						}
 					} else {
-						app.globalData.redirectTab('product/pay/pay?isSuccess=true');
+						h5util.jumpUrlExternal({url:'/product/pay/pay?isSuccess=true',type:'redirectTo'})
+						// app.globalData.redirectTab('product/pay/pay?isSuccess=true');
 					}
 					this.orderId = '';
 				} else {
-					app.globalData.redirectTab('product/pay/pay?money=' + this.money + '&id=' + res);
+					h5util.jumpUrlExternal({url:'/product/pay/pay?money=' + this.money + '&id=' + res,type:'redirectTo'})
+					// app.globalData.redirectTab('product/pay/pay?money=' + this.money + '&id=' + res);
 				}
 				
 			},

+ 31 - 26
topic/content/content.vue

@@ -48,7 +48,6 @@ const req = require('../../utils/request.js');
 const api = require('../../utils/api.js');
 const util = require('../../utils/util.js');
 import mpHtml from "../../components/mp-html/components/mp-html/mp-html";
-const actionsdk = require('../../action_sdk/actionsdk-1.0.0.js');
 const h5util = require('../../utils/h5util.js');
 export default {
 	components: {
@@ -80,10 +79,6 @@ export default {
 		await this.getDetail();
 		this.getContentList();
 		// await this.monitor();
-		setTimeout(()=>{
-			actionsdk.initAction();
-			// actionsdk.saveBrowse({type:3,bindId:this.id,uid:req.getStorage('userInfo').id,shareUid:options.userId?options.userId:null,parentCode:options.parentCode?options.parentCode:null});
-		},2000)
 	},
 	onShow(){
 		this.getConfig();
@@ -116,31 +111,22 @@ export default {
 	},
 	methods: {
 		jumpUrl(url) {
-			h5util.jumpUrlExternal({url:url})
+			uni.navigateTo({
+				url:url
+			})
+			// h5util.jumpUrlExternal({url:url})
 		},
 		async onShareMessage(){
 			let path = '';
 			let isSolution = '';
-			// #ifndef H5
 			isSolution = req.env[req.env.NODE_ENV].isSolution;
-			// #endif
-			// #ifdef H5
-			isSolution = false;
-			// #endif
 			let userInfo = req.getStorage('userInfo');
 			if(isSolution){
 				path = '/share/home/index?appId='+req.getStorage('appId')+'&userId='+userInfo.id;
 			}else{
 				path = '/topic/content/content?id=' + this.id +'&isShare=' + true+'&userId='+userInfo.id + '&appId=' + req.getStorage('appId');
 			}
-			let parentCode = await new Promise((r,j)=>{
-				actionsdk.saveBehavior({behaviorType:5,type:3,bindId:this.id,uid:req.getStorage('userInfo').id,success:(data)=>{
-					r(data)
-				}});
-			})
-			if(parentCode){
-				path = path + '&parentCode='+parentCode
-			}
+			path = this.SHARE_BEHAVIOR_FN({path:path,sendShare:false}).path
 			console.log(path)
 			return {
 				title: this.detaile.title,
@@ -181,7 +167,8 @@ export default {
 		  });
 		},
 		toIndex(){
-			app.globalData.reLaunchTo('pages/index/index')
+			h5util.jumpIndex('/pages/tabBar/index')
+			// app.globalData.reLaunchTo('pages/index/index')
 		},
 		getDateTimeStamp(dateStr){
 		 return util.getDateDiff(Date.parse(dateStr.replace(/-/gi,"/")));
@@ -195,7 +182,16 @@ export default {
 						res.productCategory = res.productCategory.split(',')
 					}
 					that.detaile = res;
-					that.postShareMessage(that.detaile.title,that.detaile.pic)
+					
+					let shareD = await that.onShareMessage()
+					that.postShareMessage(shareD.title,shareD.imageUrl,shareD.path,{
+						BIND_TYPE : this.BIND_TYPE,
+						BIND_ID : this.BIND_ID,
+						USER_ID : this.USER_ID,
+						SHARE_USER_ID : this.SHARE_USER_ID,
+						PARENT_CODE : this.PARENT_CODE,
+						CURRENT_CODE : this.CURRENT_CODE
+					})
 					let arr = [];
 					if(res.productCategory && res.productCategory.length > 0){
 						for (var i = 0; i < res.productCategory.length; i++) {
@@ -230,13 +226,22 @@ export default {
 			});
 		},
 		
-		toShare(){
+		async toShare(){
+			let shareD = await this.onShareMessage()
 			h5util.jumpShare({
-				title:this.detaile.title,
-				imageUrl:this.detaile.pic,
-				path:'/topic/content/content?id=' + this.id + '&userId='+req.getStorage('userInfo').id,
+				title:shareD.title,
+				imageUrl:shareD.imageUrl,
+				path:shareD.path,
 				shareType:1,
-				id:this.detaile.id
+				id:this.detaile.id,
+				sendBehaviorObj:{
+					BIND_TYPE : this.BIND_TYPE,
+					BIND_ID : this.BIND_ID,
+					USER_ID : this.USER_ID,
+					SHARE_USER_ID : this.SHARE_USER_ID,
+					PARENT_CODE : this.PARENT_CODE,
+					CURRENT_CODE : this.CURRENT_CODE
+				}
 			})
 		}
 	},

+ 8 - 1
utils/h5Templete.js

@@ -26,6 +26,7 @@ export default {
 		await this.getwxConfig();
 		
 		if (updata) window.location.reload();
+		
 		h5util.postMsg({
 			type: 'function', //function 直接调用方法(此时eventName必传) msg 传递参数
 			eventName: 'setPageTitle',
@@ -64,7 +65,12 @@ export default {
 				});
 			});
 		},
-		postShareMessage(title,imageUrl,path){
+		postShareMessage(title,imageUrl,path,sendBehaviorObj){
+			if(path.indexOf('/share/home/index')>-1){
+				
+			}else{
+				path = '/pages/webView/webView?url=' + encodeURIComponent(window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + path)
+			}
 			h5util.postMsg({
 				type: 'function', //function 直接调用方法(此时eventName必传) msg 传递参数
 				eventName: 'setShareDate',
@@ -72,6 +78,7 @@ export default {
 					title: title?title:'',
 					imageUrl: imageUrl?imageUrl:'',
 					path: path?path:'',
+					sendBehaviorObj:sendBehaviorObj
 				}
 			})
 		}

+ 19 - 16
utils/h5util.js

@@ -15,15 +15,6 @@ function jumpUrlExternal({url='',type='navigateTo',onlyWeb=true}) {
 		jWeixin.miniProgram[type]({
 			url: onlyWeb?'/pages/webView/webView?url=' + encodeURIComponent(webUrl):url
 		});
-		// if(!type||type=='navigateTo'){
-		// 	jWeixin.miniProgram.navigateTo({
-		// 		url: onlyWeb?'/pages/webView/webView?url=' + encodeURIComponent(webUrl):url
-		// 	});
-		// }else if(type=='switchTab'){
-		// 	jWeixin.miniProgram.switchTab({
-		// 		url: onlyWeb?'/pages/webView/webView?url=' + encodeURIComponent(webUrl):url
-		// 	});
-		// }
 	} else {
 		// #ifdef H5
 		postMsg({
@@ -84,8 +75,16 @@ function postMsg(data) {
   * @createTime: 2024-02-21 16:09:34
   */
  
- function jumpShare({title='',imageUrl='',path='',shareType='',id=''}){
-	 webUrl = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + path
+ function jumpShare({title='',imageUrl='',path='',shareType='',id='',merchantId='',sendBehaviorObj={}}){
+	 
+	 let webUrl = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + path
+	 
+	 if(path.indexOf('/share/home/index')>-1){
+	 	webUrl = path
+	 }else{
+	 	webUrl = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + path
+	 }
+	 
 	 let shareUrl = '/pages/webShare/webShare?title='+title+'&imageUrl='+imageUrl+'&path='+encodeURIComponent(webUrl) 
 	 if(shareType){
 		shareUrl = shareUrl + '&shareType='+shareType
@@ -93,6 +92,10 @@ function postMsg(data) {
 	 if(id){
 	 	shareUrl = shareUrl + '&id='+id
 	 }
+	 if(merchantId){
+		 shareUrl = shareUrl + '&merchantId='+merchantId
+	 }
+	 shareUrl = shareUrl + '&sendBehaviorObj=' + JSON.stringify(sendBehaviorObj)
 	 jumpUrlExternal({
 		 url:shareUrl,
 		 onlyWeb:false
@@ -107,9 +110,9 @@ function postMsg(data) {
    * @createTime: 2024-02-21 16:09:34
    */
   
-  function jumpPay({orderId='',isRx='',pay='',activityId='',aprId='',merchantId='',money='',orderType=''}){
+  function jumpPay({orderId='',isRx='',pay='',activityId='',aprId='',merchantId='',money='',orderType='',status='',payType='order'}){
 	  if(!orderId) return false
- 	 let payUrl = '/pages/webPay/webPay?orderId='+orderId+'&isRx='+isRx+'&pay='+pay+'&activityId='+activityId+'&aprId='+aprId+'&merchantId='+merchantId+'&money='+money+'&orderType='+orderType
+ 	 let payUrl = '/pages/webPay/webPay?orderId='+orderId+'&isRx='+isRx+'&pay='+pay+'&activityId='+activityId+'&aprId='+aprId+'&merchantId='+merchantId+'&money='+money +'&status='+status+'&orderType='+orderType+'&payType='+payType
  	 jumpUrlExternal({
  		 url:payUrl,
  		 onlyWeb:false
@@ -119,13 +122,13 @@ function postMsg(data) {
   /**
     * @Description:跳转首页
     * @author: xionghaojie
-    * @param orderId 订单id
+    * @param url //页面路径
     * @return 
     * @createTime: 2024-02-21 16:09:34
     */
    
-   function jumpIndex(){
-  	 let payUrl = '/pages/tabBar/index'
+   function jumpIndex(url){
+  	 let payUrl = url?url:'/pages/index/index'
   	 jumpUrlExternal({
   		 url:payUrl,
 		 type:'switchTab',

+ 11 - 10
utils/request.js

@@ -5,24 +5,24 @@ const app = getApp();
 // let WebIM = (wx.WebIM = require("../hxChatSDK/utils/WebIM")["default"]);
 
 /**
- * H5版的发布地址目录:148服务器
- * /data/web/c-h5.lvluocloud.com
- * 域名:c-h5.lvluocloud.com
+ * H5版的发布地址目录:测试环境
+ * /data/nginx proxy manager/data/web/xcxh5
+ * 域名:http://xcxh5.ts.zhiqiyun.com/
  */
-
-// 测试环境域名  http://c-h5.ts.zhiqiyun.com
 const env = {
 	NODE_ENV: 'dev',
 	dev: {
 		apiUrl: 'https://apitest.zhiqiyun.com',
-		isSolution: true,
-		shareAppid:'ZQ4KaYIMHTypO0T'
+		isSolution: false,
+		shareAppid:'ZQ4KaYIMHTypO0T',
+		H5_module_url:'http://xcxh5.ts.zhiqiyun.com'
 		// apiUrl: 'https://apitest.tongyu99.com'
 	},
 	prd: {
 		apiUrl: 'https://apimall.zhiqiyun.com',
 		isSolution: true,
-		shareAppid:'ZQCK1g7w7NKYAYP'
+		shareAppid:'ZQCK1g7w7NKYAYP',
+		H5_module_url:''
 	},
 	pota: {
 		// apiUrl: 'http://192.168.110.59:8098' //f
@@ -30,7 +30,8 @@ const env = {
 		apiUrl: 'http://192.168.110.195:8098', //xw
 		// apiUrl: 'http://192.168.110.182:8098' ,//zf
 		isSolution: true,
-		shareAppid:'ZQ4KaYIMHTypO0T'
+		shareAppid:'ZQ4KaYIMHTypO0T',
+		H5_module_url:''
 	}
 }
 
@@ -62,7 +63,7 @@ const publics = {
 	'weixinGzAppid': 'wxf3bf18d2889d98ad', //默认公众号appid
 	// 'appId': 'ZQCK1g7w7NKYAYP', //正式固定的appid(绿萝云助手运营后台)
 	'appId': env[env.NODE_ENV].shareAppid, //测试绿萝云运营平台appid(系统运营租户)
-
+	'H5_module_url':env[env.NODE_ENV].H5_module_url, //测试绿萝云运营平台appid(系统运营租户)
 	picUrls: 'https://zhiqiyun.oss-cn-hangzhou.aliyuncs.com/static/', //图片地址
 	'copyrighttitle': '智企云', //底部版权公司名称
 	'copyrighttel': '400-698-5980', //底部版权服务电话