Commit 37479a47 by 陈玉桐

fix

parent 34d94e2e
......@@ -24,11 +24,27 @@ router.beforeEach((to, from, next) => {
location.href = 'api/MarketingToolApi/Wechat/index'
// next()
}else{
next()
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// XXX: 修复iOS版微信HTML5 History兼容性问题
if (isiOS && to.path !== location.pathname) {
// 此处不可使用location.replace
location.assign(to.fullPath)
} else {
next()
}
}
}else{//地址携带 token 获取url上的值 并存储 再跳转
localStorage.setItem("token",getUrlParam('token'))
next()
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// XXX: 修复iOS版微信HTML5 History兼容性问题
if (isiOS && to.path !== location.pathname) {
// 此处不可使用location.replace
location.assign(to.fullPath)
} else {
next()
}
}
})
......
<template>
<div id="posterHistory">
<ul id="posterHistoryList" v-if="list!=''">
<ul id="posterHistoryList" v-if="list.length>0">
<li v-for="(item,index) in list" :class="index.toString().substr(index.toString().length-1,1)==0 || index.toString().substr(index.toString().length-1,1)==1 || index.toString().substr(index.toString().length-1,1)==5 || index.toString().substr(index.toString().length-1,1)==6 ?'single':'double'" :key="index">
<img :src="item.imgUrl">
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment