Commit 7fe40c65 7fe40c6583de1324db275e98e1a8cf030b83f8f8 by 牛先锋

更改设置验证码工具调用运营平台接口

1 parent 1c88dc71
......@@ -12,7 +12,14 @@
<el-input placeholder="请输入手机号" v-model="smsCode.phone" clearable></el-input>
</el-form-item>
<el-form-item>
<el-input placeholder="请输入验证码" v-model="smsCode.code" clearable></el-input>
<el-select v-model="setPhoneCode.huanjing" placeholder="请选择系统">
<el-option
v-for="item in setPhoneCodeOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
......@@ -1217,6 +1224,24 @@
value: '1',
label: '线上环境'
}],
setPhoneCode: {
phone: '',
huanjing: []
},
setPhoneCodeOptions: [{
value: '1',
label: '小佗APP'
}, {
value: '3',
label: '活动报名'
}, {
value: '6',
label: '小程序登录'
}, {
value: '5',
label: '云激活'
}],
dialogQueryPhoneCode: false,
myQueryPhoneCode: '',
createAPI: {
......@@ -1890,13 +1915,13 @@
});
})
},
smsCodeSubmit() {
smsCodeSubmit1() {
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/smsCode?'+this.$qs.stringify({
this.$http.get('/tool/smsCodeNew?'+this.$qs.stringify({
phone: this.smsCode.phone,
code: this.smsCode.code
}),config).then((res)=>{
......@@ -1929,6 +1954,45 @@
});
})
},
smsCodeSubmit() {
const loading = this.$loading({
lock: true,
text: '加载中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/smsCodeNew?'+this.$qs.stringify({
phone: this.smsCode.phone,
businessType: this.setPhoneCode.huanjing.toString()
}),config).then((res)=>{
console.log(res);
if(res.data=='') {
this.$message({
showClose: true,
message: '运营平台异常',
type: 'error'
});
} else {
this.myQueryPhoneCode = res.data
this.dialogQueryPhoneCode = true
}
loading.close();
}).catch(error=>{
console.log(error);
loading.close();
this.$message({
showClose: true,
message: '处理失败,请确认运营平台是否异常!',
type: 'error'
});
})
},
activityConfigSubmit() {
// this.$refs['activityConfig'].validate((valid) => {
// if(valid) {
......