Commit 726d23b9 by 陈超

T

parent f985a76d
......@@ -179,8 +179,10 @@
methods: {
onItem: function(item) {
if(this.tab == 2) {
console.log("{:U('mall/Goods/view')}" + "/" + item.uid)
//window.location.href = "{:U('mall/Goods/view')}" + "/" + item.uid
let url = "{:U('mall/Goods/view')}"
console.log(url.replace(/\[.*?\]/g, item.uid))
return
window.location.href = url.replace(/\[.*?\]/g, item.uid)
}
},
onTab: function(idx) {
......
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