@@ -383,12 +383,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
}else if (err.code == 11005) { | }else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -680,12 +687,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您已超过限购", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
}else if (err.code == 11005) { | }else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -397,12 +397,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -698,12 +698,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText:"去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if(res.confirm){ | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -152,12 +152,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -361,12 +361,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
} else if (err.code == 3012) { | } else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||
@@ -346,12 +346,19 @@ Page({ | |||||
mask: false | mask: false | ||||
}); | }); | ||||
}else if (err.code == 3012) { | }else if (err.code == 3012) { | ||||
wx.showToast({ | |||||
title: "您有未支付订单", | |||||
image: './../../../assets/images/fail.png', | |||||
duration: 2000, | |||||
mask: false | |||||
}); | |||||
wx.showModal({ | |||||
title: '提示', | |||||
content: '您有未支付订单,请先进行支付', | |||||
confirmText: "去支付", | |||||
success: function (res) { | |||||
console.log(res.confirm) | |||||
if (res.confirm) { | |||||
wx.navigateTo({ | |||||
url: '/pages/order/index/index?id=all', | |||||
}) | |||||
} | |||||
} | |||||
}) | |||||
} else if (err.code == 11005) { | } else if (err.code == 11005) { | ||||
/** | /** | ||||
* 将值传到用户手机号授权的页面 | * 将值传到用户手机号授权的页面 | ||||