-
Status changed to merged
-
mentioned in commit d888be0066f464750b6c41a12b6fe29c63d0524d
-
手机发送短信 See merge request !176
Showing
1 changed file
pages/user/binding_info/binding_info.js
@@ -56,7 +56,7 @@ Page({ | @@ -56,7 +56,7 @@ Page({ | ||
56 | var th=this; | 56 | var th=this; |
57 | if ("" != this.data.bindMobile) { | 57 | if ("" != this.data.bindMobile) { |
58 | var s = this; | 58 | var s = this; |
59 | - a.get("/api/weshop/smslog/sendsms", { | 59 | + a.post("/api/weshop/smslog/sendsms", { |
60 | data: { | 60 | data: { |
61 | mobile: this.data.bindMobile, | 61 | mobile: this.data.bindMobile, |
62 | store_id: os.stoid, | 62 | store_id: os.stoid, |
@@ -66,6 +66,8 @@ Page({ | @@ -66,6 +66,8 @@ Page({ | ||
66 | if(e.data.code==0){ | 66 | if(e.data.code==0){ |
67 | th.setData({ gettime: th.data.config.time_out, canGetCode:1}); | 67 | th.setData({ gettime: th.data.config.time_out, canGetCode:1}); |
68 | th.setInt(); | 68 | th.setInt(); |
69 | + }else{ | ||
70 | + e.showWarning(e.data.msg); | ||
69 | } | 71 | } |
70 | } | 72 | } |
71 | }); | 73 | }); |