|
@@ -135,7 +135,23 @@ Page({
|
|
|
title: '请上传品牌LOGO!',
|
|
|
icon: "none"
|
|
|
});
|
|
|
- /* 发送请求 */
|
|
|
+ const that = this;
|
|
|
+ if (this.data.requestType == '普通修改') {
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: "是否确认修改商户信息",
|
|
|
+ success: (res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.requestToSend();
|
|
|
+ };
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ that.requestToSend();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ /* 发送请求 */
|
|
|
+ requestToSend() {
|
|
|
_Http.basic({
|
|
|
"accesstoken": wx.getStorageSync('userData').token,
|
|
|
"classname": "customer.tagents.tagents",
|
|
@@ -240,7 +256,7 @@ Page({
|
|
|
let errTips = this.data.errTips;
|
|
|
/* 联系方式验证 */
|
|
|
if (name == 'fphonenumber') {
|
|
|
- if(!_Verify.phoneNumber(this.data.fphonenumber, true)) errTips[name] = true;
|
|
|
+ if (!_Verify.phoneNumber(this.data.fphonenumber, true)) errTips[name] = true;
|
|
|
}
|
|
|
if (value.trim() == "") {
|
|
|
errTips[name] = true;
|