diff --git a/pages/user/Change_phone/Change_phone.js b/pages/user/Change_phone/Change_phone.js
index a1d979a..226a86e 100644
--- a/pages/user/Change_phone/Change_phone.js
+++ b/pages/user/Change_phone/Change_phone.js
@@ -106,21 +106,23 @@ Page({
if (change_phone.length > 1) {
mobile = change_phone
}
- getApp().request.put("/api/weshop/users/updateMobile/" + r.stoid + '/' + o.user_id + '/' + code + '/' + mobile, {
- success: function(res) {
- if (res.data.code == 0) {
- getApp().my_warnning("更换成功", 0, th);
- th.setData({
- url: "/pages/user/userinfo/userinfo?change_phone" + change_phone
- })
- } else {
- getApp().my_warnning(res.data.msg, 0, th);
- return false;
- }
+ getApp().request.put("/api/weshop/users/updateMobile/" + r.stoid + '/' + o.user_id + '/' + code + '/' + mobile, {
+ success: function(res) {
+ if (res.data.code == 0) {
+
+ var url="/pages/user/userinfo/userinfo?change_phone" + change_phone
+ console.log("uuuuuuuu",url);
+ getApp().my_warnning("更换成功", 0, th);
+ getApp().goto(url);
+ } else {
+ getApp().my_warnning(res.data.msg, 0, th);
+ return false;
}
- })
-
+
+ }
+ })
+
},
//判断验证码是否正确
ver_code: function(e) {
diff --git a/pages/user/Change_phone/Change_phone.wxml b/pages/user/Change_phone/Change_phone.wxml
index 96da9ff..be714c2 100644
--- a/pages/user/Change_phone/Change_phone.wxml
+++ b/pages/user/Change_phone/Change_phone.wxml
@@ -12,7 +12,7 @@
{{mobile}}
-
+
@@ -51,10 +51,9 @@
确定更换
-
+
-
\ No newline at end of file