Commit 9a136742 authored by 肖健's avatar 肖健

轮播图没有链接不跳转

parent 6883092b
......@@ -252,6 +252,7 @@
goOtherLink(index) {
let item = this.list5[index]
let link = item.link;
if(link) {
var newStr = link.indexOf("http");
var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
......@@ -263,6 +264,7 @@
uni.navigateTo({
url: link
})
}
},
// 获取爱车列表
getCarList(){
......
......@@ -249,6 +249,7 @@
goOtherLink(index) {
let item = this.list5[index]
let link = item.link;
if(link) {
var newStr = link.indexOf("http");
var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
......@@ -260,6 +261,7 @@
uni.navigateTo({
url: link
})
}
},
// 获取爱车列表
getCarList(){
......
......@@ -249,6 +249,7 @@ export default {
goOtherLink(index){
let item = this.list3[index]
let link = item.link;
if(link) {
var newStr = link.indexOf("http");
var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
......@@ -261,6 +262,7 @@ export default {
url: link
})
}
}
},
onReady: function () {
uni.setNavigationBarTitle({
......
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