Commit a1bc1902 authored by 肖健's avatar 肖健

Merge remote-tracking branch 'remotes/origin/dev_cd' into dev_jd

parents 6ed7336f 90697d3c
...@@ -252,17 +252,19 @@ ...@@ -252,17 +252,19 @@
goOtherLink(index) { goOtherLink(index) {
let item = this.list5[index] let item = this.list5[index]
let link = item.link; let link = item.link;
var newStr = link.indexOf("http"); if(link) {
var newStr2 = link.indexOf("https"); var newStr = link.indexOf("http");
if (newStr == 0 || newStr2 == 0) { var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
})
return
}
uni.navigateTo({ uni.navigateTo({
url: '/pages/webview/webview?url=' + link url: link
}) })
return
} }
uni.navigateTo({
url: link
})
}, },
// 获取爱车列表 // 获取爱车列表
getCarList(){ getCarList(){
......
...@@ -249,17 +249,19 @@ ...@@ -249,17 +249,19 @@
goOtherLink(index) { goOtherLink(index) {
let item = this.list5[index] let item = this.list5[index]
let link = item.link; let link = item.link;
var newStr = link.indexOf("http"); if(link) {
var newStr2 = link.indexOf("https"); var newStr = link.indexOf("http");
if (newStr == 0 || newStr2 == 0) { var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
})
return
}
uni.navigateTo({ uni.navigateTo({
url: '/pages/webview/webview?url=' + link url: link
}) })
return
} }
uni.navigateTo({
url: link
})
}, },
// 获取爱车列表 // 获取爱车列表
getCarList(){ getCarList(){
......
...@@ -68,12 +68,13 @@ export default { ...@@ -68,12 +68,13 @@ export default {
return { return {
show:false, show:false,
logoutFlag : true, logoutFlag : true,
menu: [{ menu: [
icon: require("@/static/my/my01.png"), // {
title: "我的订单", // icon: require("@/static/my/my01.png"),
url: "", // title: "我的订单",
type:"jd" // url: "",
}, // type:"jd"
// },
// { // {
// icon: require("@/static/my/my12.png"), // icon: require("@/static/my/my12.png"),
// title: "我的地址", // title: "我的地址",
......
...@@ -249,17 +249,19 @@ export default { ...@@ -249,17 +249,19 @@ export default {
goOtherLink(index){ goOtherLink(index){
let item = this.list3[index] let item = this.list3[index]
let link = item.link; let link = item.link;
var newStr = link.indexOf("http"); if(link) {
var newStr2 = link.indexOf("https"); var newStr = link.indexOf("http");
if (newStr == 0 || newStr2 == 0) { var newStr2 = link.indexOf("https");
if (newStr == 0 || newStr2 == 0) {
uni.navigateTo({
url: '/pages/webview/webview?url=' + link
})
return
}
uni.navigateTo({ uni.navigateTo({
url: '/pages/webview/webview?url=' + link url: link
}) })
return }
}
uni.navigateTo({
url: link
})
} }
}, },
onReady: function () { onReady: function () {
......
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: res.data.msg, title: res.data.msg,
icon: "error", icon: "none",
}); });
} }
}) })
......
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