Commit 726d23b9 by 陈超

T

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