更改扫码api、添加邮箱绑定功能
diff --git a/static/js/http.interceptor.js b/static/js/http.interceptor.js
index 89d1562..4087b6c 100644
--- a/static/js/http.interceptor.js
+++ b/static/js/http.interceptor.js
@@ -4,6 +4,7 @@
// baseUrl: 'https://yy.dlsmk.cn/payapi/mobileapi', // 大理智警域名
baseUrl:'https://yy.dlsmk.cn/portal/mobileapi', //正式地址
// baseUrl:'http://yy.dlsmk.cn:8080/portal/mobileapi', //测试地址
+ // baseUrl:'/api',
// baseUrl: "http://172.28.43.20:8089/portal/mobileapi",//本地地址
// method: 'POST',
// 设置为json,返回后会对数据进行一次JSON.parse()
@@ -30,7 +31,8 @@
}
//console.log(config.url,config.header['Authorization'])
config.header["X-TENANT-ID"] = tenantid;
- if (config.url == "/i/activity" || config.url == "/v1/feedback/release" || config.url == '/medicineapi/medicalcard/add') {
+ if (config.url == "/i/activity" || config.url == "/v1/feedback/release"
+ || config.url == '/medicineapi/medicalcard/add' || config.url == '/medicalapi/pay') {
config.header['content-type'] = "application/json";
} else {
config.header['content-type'] = "application/x-www-form-urlencoded";
@@ -87,6 +89,13 @@
// content: `${res.data.status}:${res.data.message}`,
showCancel: false,
})
+ }else{
+ uni.showModal({
+ title: "错误",
+ content: res.errMsg,
+ // content: `${res.data.status}:${res.data.message}`,
+ showCancel: false,
+ })
}
return false;
}