|
@@ -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) {
|