فهرست منبع

feat:获取验证码修改

zhanghui 3 ماه پیش
والد
کامیت
02ba8becce
2فایلهای تغییر یافته به همراه1 افزوده شده و 13 حذف شده
  1. 0 12
      common/js/service.js
  2. 1 1
      pages/setPhone/setPhone.vue

+ 0 - 12
common/js/service.js

@@ -2,18 +2,6 @@ import request from '../js/request.js';
 
 
 export default {
-
-
-    //get请求,获取手机验证码 新模板
-    getSmsCodeByType(data) {
-        return request({
-            url: '/resource/sms/codeByType',
-            method: 'GET',
-            data: data
-        })
-    },
-
-
     // post请求,验证手机号码是否被注册
     phoneIsExist(data) {
         return request({

+ 1 - 1
pages/setPhone/setPhone.vue

@@ -205,7 +205,7 @@ export default {
       uni.showLoading({
         title: '正在获取验证码'
       })
-      this.$api.service.getSmsCodeByType({phonenumber: this.userInfo.phonenumber, auth: true, type: 0}).then((res) => {
+      this.$api.service.getSmsCode({phonenumber: this.userInfo.phonenumber}).then((res) => {
         uni.hideLoading();
         // 这里此提示会被this.start()方法中的提示覆盖
         uni.$u.toast('验证码已发送');