xhj vor 2 Jahren
Ursprung
Commit
dc303718ae

+ 53 - 10
card/cardDetail/cardDetail.vue

@@ -1,35 +1,36 @@
 <template>
 	<view>
-		<view class="card-box clearfix">
+		<view class="card-box clearfix" v-if="!loading">
 			<image class="card-bottom" src="/static/images/card_bottom.png" mode="widthFix"></image>
 			<view class="hearder">
-				<image src="../../static/images/userimg.png"></image>
+				<image :src="cardInfo.avatar" style="border-radius: 100%;"></image>
 			</view>
-			<view class="user-name">杜平</view>
+			<view class="user-name">{{ cardInfo.realName }}</view>
 			<view class="user-tag ddflex">
-				<view class="user-tag-item" v-for="item in 2">高级组经理</view>
+				<view class="user-tag-item">{{ cardInfo.jobName }}</view>
+				<view class="user-tag-item">入司{{cardInfo.inDate?getAge(cardInfo.inDate):1}}年</view>
 			</view>
 			<view class="pf">
 				<view class="pf-title">综合评分</view>
-				<uni-rate style="justify-content: center;" class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="18" allow-half :value="4" />
+				<uni-rate style="justify-content: center;" class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="18" allow-half :value="evaluateInfo.evaluateDTO.serveScore/2" />
 			</view>
 			<view class="user-data ddflex">
 				<view>
-					<view class="user-data-num">1678</view>
+					<view class="user-data-num">{{cardInfo.cntCust?cardInfo.cntCust:0}}</view>
 					<view class="user-data-label ddflex">
 						<image src="/static/pages/images/fw_hui.png"></image>
 						<view>服务客户</view>
 					</view>
 				</view>
 				<view style="margin-left: 109rpx;">
-					<view class="user-data-num">1678</view>
+					<view class="user-data-num">{{cardInfo.cntCntr?cardInfo.cntCntr:0}}</view>
 					<view class="user-data-label ddflex">
 						<image src="/static/pages/images/cy_hui.png"></image>
 						<view>保单件数</view>
 					</view>
 				</view>
 				<view style="margin-left: 109rpx;">
-					<view class="user-data-num">1678</view>
+					<view class="user-data-num">{{cardInfo.thumbs?cardInfo.thumbs:0}}</view>
 					<view class="user-data-label ddflex">
 						<image src="/static/pages/images/dz_hui.png"></image>
 						<view>点赞量</view>
@@ -37,10 +38,10 @@
 				</view>
 			</view>
 			<view class="user-des">
-				本人拥有丰富的保险知识及行业经验,可为您和您的家庭提供专业合理的保障规划,让保险成为您生活的P士,免去您的后顾之忧,守护您的幸福人生。
+				<rich-text :nodes="cardInfo.brief ? cardInfo.brief : ''"></rich-text>
 			</view>
 			<image class="user-code" src="/static/images/lj_img.png"></image>
-			<view class="user-btn">
+			<view class="user-btn" @click="submit">
 				选TA做专属顾问
 			</view>
 			<view class="user-btn-text" @click="jumpUrl('/card/cardFound/cardFound')">
@@ -53,6 +54,7 @@
 <script>
 	const app = getApp();
 	const req = require("../../utils/request.js");
+	import util from '../../utils/util.js';
 
 	export default {
 		components: {},
@@ -61,9 +63,18 @@
 			return {
 				systems: {},
 				isTop:0,
+				id:null,
+				cardInfo:{},
+				evaluateInfo:{},
+				loading:true
 			}
 		},
 		onLoad(options) {
+			this.id = options.id
+			uni.showLoading({
+				title:'加载中'
+			})
+			this.getCardInfo()
 		},
 		onShow() {
 			
@@ -73,6 +84,38 @@
 				uni.navigateTo({
 					url:url
 				})
+			},
+			getCardInfo() {
+				var url = '';
+				var dataP = {
+					id:this.id
+				};
+				url = '/api/visiting/card/info';
+				req.getRequest(url, dataP, data => {
+					this.cardInfo = data;
+					uni.hideLoading()
+					this.loading = false
+					this.getEvaluate()
+				});
+			},
+			// 获取评论
+			getEvaluate(){
+				req.getRequest('/api/evaluate/cardInfo',{bindId:this.id,type:2},res=>{
+					this.evaluateInfo = res
+				})
+			},
+			getAge(date) {
+				return util.getAge(date)
+			},
+			submit(){
+				req.postRequest('/api/visiting/card/bindManageSaleNo',{manageSaleNo:this.cardInfo.jobNumber},res=>{
+					req.msg('已切换专属顾问')
+					setTimeout(()=>{
+						uni.switchTab({
+							url:'/pages/index/index'
+						})
+					},1000)
+				})
 			}
 		},
 		mounted() {

+ 34 - 46
card/cardFound/cardFound.vue

@@ -18,26 +18,27 @@
 	</view>
 	<view class="cabinet" :style="'bottom:' + cabBottom">
 		<view class="register-box">
-			<view class="register-title ddflex fflex" @click.stop="jumpUrl('/card/cardDetail/cardDetail')">
-				<image class="register-title-icon" :src="item.avatar?item.avatar:'/static/images/userimg.png'"></image>
+			<view class="register-title ddflex fflex" @click.stop="jumpUrl('/card/cardDetail/cardDetail?id='+cabInfo.id)">
+				<image class="register-title-icon" :src="cabInfo.avatar?cabInfo.avatar:'/static/images/userimg.png'"></image>
 				<view class="flex" style="min-width: 0;">
 					<view class="ddflex">
-						<view class="card-name fflex tover">{{item.nickName?item.nickName:'杜平'}}</view>
+						<view class="card-name fflex tover">{{cabInfo.realName?cabInfo.realName:''}}</view>
 						<uni-rate class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="16" allow-half :value="4" />
 					</view>
 					<view class="ddflex" style="margin-top: 4rpx;">
-						<view class="card-tag">高级组经理</view>
-						<view class="card-tag">入司10年</view>
+						<view class="card-tag">{{cabInfo.jobName}}</view>
+						<view class="card-tag">入司{{cabInfo.inDate?getAge(cabInfo.inDate):1}}年</view>
 					</view>
 					<view class="card-area ddflex">
 						<image src="/static/pages/images/dzico.png"></image>
-						<view class="flex tover">中电软件园中电软件园中电软件园中电软件园</view>
-						<view style="color: #A1A1A1;margin-left: 10rpx;">距离5.23km</view>
+						<view class="flex tover">{{cabInfo.address}}</view>
+						<view style="color: #A1A1A1;margin-left: 10rpx;">距离{{cabInfo.distance>1000?((cabInfo.distance/1000).toFixed(2)+'km'):(cabInfo.distance+'m')}}</view>
 					</view>
 				</view>
 			</view>
 		</view>
-		<view class="found-more ddflex">
+		<!-- @click="jumpUrl('/card/cardList/cardList')" -->
+		<view class="found-more ddflex" >
 			<image src="../../static/images/found_more.png"></image>
 			寻找更多保险顾问
 		</view>
@@ -137,7 +138,7 @@ export default {
 			app.globalData.clickBanner(item)
 		},
 		getConfig(){
-			req.getRequest('/api/config',{},data=>{
+			req.getRequest('/api/other/config',{},data=>{
 				req.setStorage('configRes',JSON.stringify(data));
 				this.config = data;
 			})
@@ -179,23 +180,7 @@ export default {
 			// if(this.markerId == this.covers[markerId-1].column && this.markerId != 0) return false;
 			this.cabBottom = '-100%';
 			this.storeBottom = '-100%';
-			this.getCabInfo(markerId);
-			
-			// let covers = JSON.parse(JSON.stringify(this.covers)); //this.addNearby();
-			// covers[index] = {
-			// 	id:covers[index].id,
-			// 	type: 0,
-			// 	latitude: covers[index].latitude,
-			// 	longitude: covers[index].longitude,
-			// 	width: 80,
-			// 	height: 92,
-			// 	logo:covers[index].logo,
-			// 	// iconPath: '/static/images/jg_map_ico.png',
-			// 	// 'https://img.zhiqiyun.com/test/2023/07/27/ec50eeee1ab3358d9ba397c86ae8fcc6.jpeg'
-			// 	iconPath: await this.getMarkerLogo(covers[index].logo,2)//显示的图标     
-			// 	// radius: it.column_4[0].radius,//检索的半径,单位为米
-			// 	// joinCluster: true
-			// }
+			this.getCabInfo(index);
 			let covers = [];
 			// this.covers = []
 			if(this.covers&&this.covers.length>0){
@@ -254,15 +239,22 @@ export default {
 			let form = {
 				latitude: this.latitude,
 				longitude: this.longitude,
-				distance: 2000
+				page:1,
+				limit:30
+				// distance: 2000
 			}
 			return new Promise(async(resolve,reject)=>{
-				// req.getRequest(api.cab_page,form,data=>{
-					let data= {list:[
-						{id:0,latitude:28.235202,longitude:112.930116,logo:'https://img.zhiqiyun.com/test/2023/07/27/15623154b01098483ae01bb99ac17c77.png'},
-						{id:0,latitude:28.233202,longitude:112.931116,logo:'https://img.zhiqiyun.com/test/2023/07/27/ec50eeee1ab3358d9ba397c86ae8fcc6.jpeg'},
-						{id:0,latitude:28.233202,longitude:112.930116,logo:'https://img.zhiqiyun.com/test/2023/07/27/623f217fc7aa3eb7a3dcd0897f4cb80c.png'}
-					]}
+				req.getRequest('/api/visiting/card/cardInfoList',form,async res=>{
+					let data = {list:[]}
+					data.list = res.list.map(item=>{
+						let obj = {
+							userId:item.id,
+							latitude:item.latitude,
+							longitude:item.longitude,
+							logo:item.avatar
+						}
+						return obj
+					})
 					let covers = this.covers; //this.addNearby();
 					if(data.list&&data.list.length>0){
 						for(let i=0;i<data.list.length;i++){
@@ -290,21 +282,15 @@ export default {
 						})
 					}
 					that.covers = covers
-					this.cabList = data.list;
+					this.cabList = res.list;
+					this.getCabInfo(0)
 					resolve();
-				// })
+				})
 			})
 		},
-		getCabInfo(id){
-			let params = {
-				latitude: this.latitude,
-				longitude: this.longitude,
-				devId: id
-			}
-			// req.getRequest(api.cab_detail,params,data=>{
-				this.cabInfo = {};
-				this.cabBottom = 0;
-			// })
+		getCabInfo(index){
+			this.cabInfo = this.cabList[index];
+			this.cabBottom = 0;
 		},
 		routePlan(type){
 			let that = this;
@@ -349,7 +335,9 @@ export default {
 			})
 		},
 		
-		
+		getAge(date) {
+			return util.getAge(date)
+		},
 		
 		
 		// 获取markerLogo

+ 1 - 1
card/cardList/cardList.vue

@@ -285,7 +285,7 @@
 				if (this.stateIndex != -1) {
 					queryParams.state = this.stateList[this.stateIndex].value;
 				}
-				req.getRequest('/api/visiting/card/info', queryParams, data => {
+				req.getRequest('/api/visiting/card/cardInfoList', queryParams, data => {
 					data = [1,2]
 					if (data != null && data.length == this.limit) {
 						this.isLoad = true;

+ 1 - 1
card/index/index.vue

@@ -49,7 +49,7 @@
 						</view>
 						<view class="company ddflex">
 							<image src="/card/static/images/area.png"></image>
-							服务区域 {{ cardInfo.industryName }}
+							服务区域 {{ cardInfo.industryName?cardInfo.industryName:'湖南' }}
 						</view>
 						<view class="company">
 							执业证书:02000043090080002013000260

+ 96 - 68
pages/index/index.vue

@@ -85,10 +85,10 @@
 			<view class="index-box-title">热门活动</view>
 			<view class="ddflex" style="margin-top: 20rpx;">
 				<view style="margin-right: 20rpx;">
-					<image class="pic230" :src="hotActivityList[0].pic"></image>
-					<image class="pic230" style="margin-top: 20rpx;" :src="hotActivityList[1].pic"></image>
+					<image class="pic230" :src="hotActivityList[0].pic" @click="getUrl2(hotActivityList[0])"></image>
+					<image class="pic230" style="margin-top: 20rpx;" :src="hotActivityList[1].pic" @click="getUrl2(hotActivityList[1])"></image>
 				</view>
-				<image class="pic480" :src="hotActivityList[2].pic"></image>
+				<image class="pic480" :src="hotActivityList[2].pic" @click="getUrl2(hotActivityList[2])"></image>
 			</view>
 		</view>
 
@@ -475,14 +475,14 @@
 				});
 			}, 10000); // this.init();
 
-			QQMapWX.initMap();
-			req.getLocation(res => {
-				const to = {
-					latitude: res.latitude,
-					longitude: res.longitude
-				};
-				QQMapWX.reverseGeocoder(to, resp => {});
-			});
+			// QQMapWX.initMap();
+			// req.getLocation(res => {
+			// 	const to = {
+			// 		latitude: res.latitude,
+			// 		longitude: res.longitude
+			// 	};
+			// 	QQMapWX.reverseGeocoder(to, resp => {});
+			// });
 
 		},
 
@@ -503,7 +503,15 @@
 			this.getTbal()
 			this.getLpal()
 			this.getFx()
-			this.getRecommendCard()
+			QQMapWX.initMap();
+			req.getLocation(res => {
+				const to = {
+					latitude: res.latitude,
+					longitude: res.longitude
+				};
+				QQMapWX.reverseGeocoder(to, resp => {});
+				this.getRecommendCard(to)
+			});
 			// console.log('this.freshen=='+this.freshen)
 			let first = req.getStorage('first');
 			if (first !== false)
@@ -559,8 +567,9 @@
 				}
 			},
 			// 获取推荐销售
-			getRecommendCard() {
-				req.getRequest('/api/visiting/card/recommendCardInfo', {}, res => {
+			getRecommendCard(loction) {
+				let params = loction
+				req.getRequest('/api/visiting/card/recommendCardInfo', params, res => {
 					this.recommendCard = res
 					console.log('获取推荐销售》》》》》', res);
 					setTimeout(() => {
@@ -686,59 +695,6 @@
 				that.logo = true;
 			},
 
-			getUrl2(e) {
-				// 2 普通产品详情  4社区团购产品详情   5优惠券列表  6直播列表  7社区团购列表 9分类列表 10直播间 11拼团列表  12秒杀列表 13砍价列表 14新客列表 15新客详情 16秒杀详情 17砍价详情 18 拼团详情
-				var dt = e.currentTarget.dataset;
-				var url = '';
-				var id = '';
-				var acid = '';
-
-				if (dt.content != '') {
-					let conunt = dt.content.split('_');
-					id = conunt[1];
-					acid = conunt[0];
-				}
-
-				if (dt.type * 1 == 2 && dt.content != '') {
-					url = 'product/detail/detail?id=' + dt.content;
-				} else if (dt.type * 1 == 4) {
-					url = 'product/groupDetail/groupDetail?acid=' + acid + '&id=' + id;
-				} else if (dt.type * 1 == 5) {
-					url = 'product/coupon/coupon';
-				} else if (dt.type * 1 == 6) {
-					url = 'pages/live/live';
-				} else if (dt.type * 1 == 7) {
-					url = 'product/groupList/groupList' + dt.merchant;
-				} else if (dt.type * 1 == 9 && dt.content != '') {
-					url = 'product/list/list?id=' + dt.content;
-				} else if (dt.type * 1 == 10) {
-					url = 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + dt.content;
-					// console.log(
-					// 	url); // url=`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${dt.content}`
-				} else if (dt.type * 1 == 11) {
-					url = 'activity/group/index/index' + dt.merchant;
-				} else if (dt.type * 1 == 12) {
-					url = 'activity/seckill/seckill' + dt.merchant;
-				} else if (dt.type * 1 == 13) {
-					url = 'activity/bargain/index/index' + dt.merchant;
-				} else if (dt.type * 1 == 14) {
-					url = 'activity/newbornZone/newbornZone' + dt.merchant;
-				} else if (dt.type * 1 == 15 && dt.content != '') {
-					url = 'activity/newbornDetails/newbornDetails?acid=' + acid + '&id=' + id;
-				} else if (dt.type * 1 == 16 && dt.content != '') {
-					url = 'activity/seckillDetails/seckillDetails?acid=' + acid + '&id=' + id;
-				} else if (dt.type * 1 == 17 && dt.content != '') {
-					url = 'activity/bargain/detail/detail?acid=' + acid + '&id=' + id;
-				} else if (dt.type * 1 == 18 && dt.content != '') {
-					url = 'activity/group/detail/detail?acid=' + acid + '&id=' + id;
-				} else {
-					url = '';
-				}
-
-				if (dt.type * 1 == 6) app.globalData.switchTab(url);
-				else app.globalData.openPage(url);
-				this.hideAd();
-			},
 
 			//获取首页模板配置
 			getHomeTemplateConfig() {
@@ -1005,7 +961,79 @@
 			},
 			getAge(date) {
 				return utils.getAge(date)
-			}
+			},
+			// 热门活动
+			getUrl2(item) {
+				console.log(item)
+				var dt = item
+				var url = "";
+				var id = "";
+				var acid = "";
+			
+				if (dt.content != "") {
+					let conunt = dt.content.split("_");
+					id = conunt[1];
+					acid = conunt[0];
+				}
+			
+				if (dt.type * 1 == 2 && dt.content != "") {
+					url = "product/detail/detail?id=" + dt.content;
+				} else if (dt.type * 1 == 3) {
+					url = dt.content;
+					console.log('url===',url)
+					if(!url){
+						req.msg('功能待接入')
+						return false
+					}
+					if(url=='pages/index/index'||url=='pages/matchList/index'||url=='pages/interactive/index'||url=='pages/found/found'||url=='pages/user/user'){
+						app.globalData.switchTab(url)
+						return false
+					}else{
+						if(url.indexOf('http')!=-1){
+							app.globalData.openPage('pages/web/web?url='+url);
+							return false
+						}
+					}
+				} else if (dt.type * 1 == 4) {
+					url = "product/groupDetail/groupDetail?acid=" + acid + "&id=" + id;
+				} else if (dt.type * 1 == 5) {
+					url = "product/coupon/coupon";
+				} else if (dt.type * 1 == 6) {
+					url = "pages/live/live";
+				} else if (dt.type * 1 == 7) {
+					url = "product/groupList/groupList" + dt.merchant;
+				} else if (dt.type * 1 == 9 && dt.content != "") {
+					url = "product/list/list?id=" + dt.content + '&title=' + dt.title + this.web;
+				} else if (dt.type * 1 == 10) {
+					url = "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=" + dt.content;
+					// console.log(
+					// url); // url=`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${dt.content}`
+				} else if (dt.type * 1 == 11) {
+					url = "activity/group/index/index" + dt.merchant;
+				} else if (dt.type * 1 == 12) {
+					url = "activity/seckill/seckill" + dt.merchant;
+				} else if (dt.type * 1 == 13) {
+					url = "activity/bargain/index/index" + dt.merchant;
+				} else if (dt.type * 1 == 14) {
+					url = "activity/newbornZone/newbornZone" + dt.merchant;
+				} else if (dt.type * 1 == 15 && dt.content != "") {
+					url = "activity/newbornDetails/newbornDetails?acid=" + acid + "&id=" + id;
+				} else if (dt.type * 1 == 16 && dt.content != "") {
+					url = "activity/seckillDetails/seckillDetails?acid=" + acid + "&id=" + id;
+				} else if (dt.type * 1 == 17 && dt.content != "") {
+					url = "activity/bargain/detail/detail?acid=" + acid + "&id=" + id;
+				} else if (dt.type * 1 == 18 && dt.content != "") {
+					url = "activity/group/detail/detail?acid=" + acid + "&id=" + id;
+				}else if (dt.type * 1 == 19 && dt.content != "") {
+					url = "topic/content/content?id=" + dt.content;
+				} else {
+					url = "";
+				}
+			
+				if (dt.type * 1 == 6) app.globalData.switchTab(url);
+				else app.globalData.openPage(url);
+				this.hideAd();
+			},
 		},
 		mounted() {
 			const systemInfo = uni.getSystemInfoSync();

+ 68 - 0
pages/web/web - 副本.vue

@@ -0,0 +1,68 @@
+<template>
+	<!--pages/web/web.wxml-->
+	<view>
+		<web-view :src="webUrl" v-if="webUrl!==''"></web-view>
+	</view>
+</template>
+
+<script>
+	// pages/web/web.js
+	const req = require("../../utils/request");
+	const app = getApp();
+
+	export default {
+		data() {
+			return {
+				webUrl: '',
+				back: false,
+			};
+		},
+
+		components: {},
+		props: {},
+		onLoad: function(options) {
+			this.query = options;
+			let that = this;
+			let token = req.getStorage('AUTH_TOKEN');
+			let webUrl = req.public.storemanagers + req.header.appId + '&token=' + token;
+			console.log('地址>>>>>',webUrl)
+
+			if (!req.getStorage('userInfo')) {
+				// console.log("111111111111111");
+				app.globalData.openPage('pages/authorize/authorize');
+			} else {
+				if (this.query.scene) {
+					let form = {
+						scene: this.query.scene
+					};
+					req.getRequest('/api/code/params', form, data => {
+						// console.log(
+						// 	"====================================================================================" +
+						// 	data.scene);
+						webUrl += '&orderId=' + data.scene;
+						this.setData({
+							webUrl: webUrl
+						});
+						// console.log(webUrl, "+++++++++++");
+					});
+				} else {
+					that.setData({
+						webUrl: webUrl
+					});
+					// console.log(webUrl);
+				}
+			}
+		},
+
+		onShow() {
+			if (this.back) {
+				uni.navigateBack();
+			}
+		},
+
+		methods: {}
+	};
+</script>
+<style>
+	@import "./web.css";
+</style>

+ 27 - 26
pages/web/web.vue

@@ -24,34 +24,35 @@
 			this.query = options;
 			let that = this;
 			let token = req.getStorage('AUTH_TOKEN');
-			let webUrl = req.public.storemanagers + req.header.appId + '&token=' + token;
+			let webUrl = options.url
+			this.webUrl = webUrl
 			console.log('地址>>>>>',webUrl)
 
-			if (!req.getStorage('userInfo')) {
-				// console.log("111111111111111");
-				app.globalData.openPage('pages/authorize/authorize');
-			} else {
-				if (this.query.scene) {
-					let form = {
-						scene: this.query.scene
-					};
-					req.getRequest('/api/code/params', form, data => {
-						// console.log(
-						// 	"====================================================================================" +
-						// 	data.scene);
-						webUrl += '&orderId=' + data.scene;
-						this.setData({
-							webUrl: webUrl
-						});
-						// console.log(webUrl, "+++++++++++");
-					});
-				} else {
-					that.setData({
-						webUrl: webUrl
-					});
-					// console.log(webUrl);
-				}
-			}
+			// if (!req.getStorage('userInfo')) {
+			// 	// console.log("111111111111111");
+			// 	app.globalData.openPage('pages/authorize/authorize');
+			// } else {
+			// 	if (this.query.scene) {
+			// 		let form = {
+			// 			scene: this.query.scene
+			// 		};
+			// 		req.getRequest('/api/code/params', form, data => {
+			// 			// console.log(
+			// 			// 	"====================================================================================" +
+			// 			// 	data.scene);
+			// 			webUrl += '&orderId=' + data.scene;
+			// 			this.setData({
+			// 				webUrl: webUrl
+			// 			});
+			// 			// console.log(webUrl, "+++++++++++");
+			// 		});
+			// 	} else {
+			// 		that.setData({
+			// 			webUrl: webUrl
+			// 		});
+			// 		// console.log(webUrl);
+			// 	}
+			// }
 		},
 
 		onShow() {

+ 13 - 0
template/king_kong_district/king_kong_district.vue

@@ -145,6 +145,19 @@
 				} else if (dt.type * 1 == 3) {
 					url = dt.content;
 					console.log('url===',url)
+					if(!url){
+						req.msg('功能待接入')
+						return false
+					}
+					if(url=='pages/index/index'||url=='pages/matchList/index'||url=='pages/interactive/index'||url=='pages/found/found'||url=='pages/user/user'){
+						app.globalData.switchTab(url)
+						return false
+					}else{
+						if(url.indexOf('http')!=-1){
+							app.globalData.openPage('pages/web/web?url='+url);
+							return false
+						}
+					}
 				} else if (dt.type * 1 == 4) {
 					url = "product/groupDetail/groupDetail?acid=" + acid + "&id=" + id;
 				} else if (dt.type * 1 == 5) {

+ 2 - 2
utils/request.js

@@ -2,9 +2,9 @@ const app = getApp();
 let WebIM = (wx.WebIM = require("../hxChatSDK/utils/WebIM")["default"]);
 
 const env = {
-	NODE_ENV: 'pota',
+	NODE_ENV: 'dev',
 	dev: {
-		apiUrl: 'https://apitest.zhiqiyun.com'
+		apiUrl: 'https://rsapi.zhiqiyun.net'
 	},
 	prd: {
 		apiUrl: 'https://apimall.zhiqiyun.com'