Commit 9081568d authored by sjf1256754123's avatar sjf1256754123

d

parent 699ee2ed
......@@ -13,8 +13,8 @@
<input class="text-right" placeholder="请输入手机号码" type="number" :value="form.phone" name="input" @input="updateInputVal($event,'phone')"></input>
</view>
<view class="cu-form-group">
<view class="title"><span style="color:red;display: inline-block; vertical-align:inherit;margin-right:4upx">*</span>身份证</view>
<input class="text-right" type="idcard" placeholder="请输入身份证号码" :value="form.idCard" name="input" @input="updateInputVal($event,'idCard')"></input>
<view class="title"><span style="color:red;display: inline-block; vertical-align:inherit;margin-right:4upx">*</span>身份证/护照号</view>
<input class="text-right" type="idcard" placeholder="请输入身份证号码/护照号" :value="form.idCard" name="input" @input="updateInputVal($event,'idCard')"></input>
</view>
<view class="padding">
<button form-type="submit" class="cu-btn block bg-blue margin-tb-sm lg">提交</button>
......@@ -40,7 +40,7 @@
this.form[props] = event.target.value
},
formSubmit(){
if(this.form.name && this.form.phone.length == 11 && this.form.idCard.length==18){
if(this.form.name && this.form.phone.length == 11){
this.$http.post(`/sict-ncov/user/vip/register?name=${this.form.name}&phone=${this.form.phone}&idCard=${this.form.idCard}`).then(res => {
const d = res.data
if(d.code == 1){
......
......@@ -10,7 +10,8 @@
import store from '../store'
export default class Request {
config = {
baseUrl: 'https://health.sh-sict.com/ncov-api',
// baseUrl: 'https://health.sh-sict.com/ncov-api',
baseUrl: 'https://health.sh-sict.com/ncov-test-api',
// baseUrl: 'http://139.9.163.126/ncov-api',
header: {
'content-type': 'application/json;charset=UTF-8',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment