watch: {
'$route' (to, from) {
if(to.path == '/index/detail/payDetail'||to.path == '/plan/detail/payDetail'||to.path == '/mine/myJoin/detail/payDetail'){
this.loadData()
}
}
},
v-if="datas.login_status==1"
v-else
v-for="(item, index) in data" :key="index"
@click='payDetail(item.id)'
that.title = res.data.data.title;
//缓存
localStorage.setItem("userToken",res.data.data.token)
//取
localStorage.getItem('userToken'),
路由跳转
this.$router.push({path:'/member/gold/transmit',query:{reid:that.reid,tk:that.tk,yes:true}})
this.$router.push({path:item.push,query:item.query});
监听返回
watch: {
'$route' (to, from) {
if(to.path == '/index/detail/payDetail'||to.path == '/plan/detail/payDetail'||to.path == '/mine/myJoin/detail/payDetail'){
this.loadData()
}
}
},
//验签;加密
let datasms = {
token: 'xxx',
registration:'xxx',
}
let datajson = this.$utils.jsonSort(datasms)+'&xxxx';
let sign = this.$md5(datajson)
datasms['sign'] = sign;
axios.post('/member/transmitPost', qs.stringify(datasms))
.then (function(res) {
if(res.data.code == 1000){
console.log(res.data.data)
that.datas = res.data.data;
that.$router.push({path:'/member/transmit/success'})
}
}).catch(function (error) {
alert(error);
})
that.$loading('');
that.$loading.close();
页面跳转传值
this.$router.push({path:'/mine/myJoin',query:{tab_type:type}})
页面传值取值
that.$route.query.tab_type
background:linear-gradient(90deg,rgba(237,52,65,1),rgba(235,181,56,1));
border-radius :6px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
:class="aaa ? 'odd-check':''"> 胜{{item.odds.list.zhu}}
v-if="items==arrindex"
:class="arritem.color == 'blue'?'number-bule':(arritem.color == 'red'?'number-red':'number-green')"
v-for="(items, index1) in item.number" :key="index1">
{{items}}