@@ -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({
@@ -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('验证码已发送');