From 769b5904a27a10688f6f838885aca53b138ff568 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Tue, 29 Jun 2021 16:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/process/payment/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/process/payment/index.js b/pages/process/payment/index.js index e0c3185..fe019ec 100644 --- a/pages/process/payment/index.js +++ b/pages/process/payment/index.js @@ -176,7 +176,7 @@ Scene({ }).catch(err => { wx.hideLoading() this.data.requesting = false - if(err.code = 200101){ + if((typeof err == 'object') && err.code == 200101){ Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => { var cid = this.data.orderList[0].factoryCustomerId wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid }) @@ -193,7 +193,7 @@ Scene({ wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid }) }).catch(err => { }) - } else if(err.indexOf('没有开通代付') >= 0){ + } else if(err.indexOf('没有开通') >= 0){ Dialog.confirm({ title: '温馨提示', message: '您还没有开通千鸟代付,现在去了解并开通?' }).then(() => { wx.navigateTo({ url: '/pages/htmls/auths/index' }) }).catch(err => {