twt 2 тижнів тому
батько
коміт
3e92897974

+ 33 - 6
pages/mobile/SelectCarTwo.vue

@@ -66,8 +66,8 @@
 				xingList: [],
 				peizhiList:[],
 				modelname:'',
-				 noClick:true,
-			
+				noClick:true,
+			    carName:'',
 			}
 		},
 		onLoad(opt) {
@@ -89,6 +89,7 @@
 				if (item.next_restrain == 1) {
 					this.title += ' > ' + item.model_name;
 					this.modelname += ' ' + item.model_name;
+					this.carName=this.modelname
 					this.getYueSuData(item)
 				}
 				else{
@@ -155,16 +156,42 @@
 			},
 			
 			gogroup(item) {
-				uni.navigateTo({
-					url: 'group?type=2&token='+item.token+'&param='+item.param+'&access_time='+this.access_time+'&epc_id='+this.epc_id+'&modelname='+this.modelname
-				})
+				console.log(item)
+				var json={
+					brand: this.brand_name,
+					epc_id:this.epc_id,
+					param:item.param,
+					token:item.token,
+					access_time:this.access_time,
+					modelname:this.modelname,
+					carName:this.carName,
+				}
+				uni.showLoading({
+					title: '加载中'
+				});
+				this.$http('advancedEpc/cachekey', {
+					value: JSON.stringify(json),
+					
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					console.log(res.data)
+					uni.setStorageSync('cachekey',res.data ) 
+				});
+				 uni.navigateTo({
+					url: 'group?type=2&cart='+item.token+'&param='+item.param+'&access_time='+this.access_time+'&epc_id='+this.epc_id+'&modelname='+this.modelname
+				}) 
+				
+				/*  */
 			},
 
 			goOemSearch() {
+				
+				
 				uni.navigateTo({
 					url: 'OemSearch?brand=' + this.brand_name + '&epc_id=' + this.epc_id + '&param=' + this.param +
 						'&token=' + this.token + '&access_time=' + this.access_time
-				})
+				}) 
+				
 			},
 			goback() {
 				console.log('返回');

+ 12 - 4
pages/mobile/group.vue

@@ -65,8 +65,8 @@
 		<view class="mainBox" v-if="groupShow">
 			<view class="maintitle">{{caption}}</view>
 			<view class="mainLine" v-for="(item,index) in zlist" @click="goTwo(item)">
-				<!-- <view class="lineName">{{item.caption}}</view> -->
-				<view class="lineName">{{item.car_name}}</view> 
+				 <view class="lineName">{{item.caption}}</view>
+				<!-- <view class="lineName">{{item.car_name}}</view> -->
 				<image src="../../static/img/jt.png" mode="" class="mainLineJt"></image>
 			</view>
 		</view>
@@ -74,6 +74,7 @@
 </template>
 
 <script>
+	import { getHashQuery } from '../../utils/index.js'
 	export default {
 		data() {
 			return {
@@ -99,9 +100,15 @@
 		},
 		onLoad(opt) {
 			this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
+			var token=getHashQuery('token')
+			console.log(token)
+			if(token){
+				uni.setStorageSync('token',token ) 
+			}
+			
 			if (opt.type == 2) {
 				this.type = 2
-				this.token = opt.token;
+				this.token = opt.cart;
 				this.param = opt.param;
 				this.access_time = opt.access_time;
 				this.epc_id = opt.epc_id;
@@ -306,7 +313,8 @@
 			},
 			goHome(){
 				var token= uni.getStorageSync("token")
-				var url = 'http://byweb.66km.cn/#/home?token='+token
+				var cachekey= uni.getStorageSync("cachekey")
+				var url = 'http://byweb.66km.cn/#/home?token='+token+'&cachekey='+cachekey
 				window.location.href =url
 			},
 			goTwo(item) {

+ 2 - 1
pages/mobile/modelTwo.vue

@@ -144,7 +144,8 @@
 			},
 			goHome(){
 				var token= uni.getStorageSync("token")
-				var url = 'http://byweb.66km.cn/#/home?token='+token
+				var cachekey= uni.getStorageSync("cachekey")
+				var url = 'http://byweb.66km.cn/#/home?token='+token+'&cachekey='+cachekey
 				window.location.href =url
 			},
 			restrainClickOne(item) {

+ 2 - 1
pages/mobile/vinDetail.vue

@@ -119,7 +119,8 @@
 			},
 			goHome(){
 				var token= uni.getStorageSync("token")
-				var url = 'http://byweb.66km.cn/#/home?token='+token
+				var cachekey= uni.getStorageSync("cachekey")
+				var url = 'http://byweb.66km.cn/#/home?token='+token+'&cachekey='+cachekey
 				window.location.href =url
 			},
 			upGroup() {