IP小卡片

master
chaiyapeng 2024-08-23 21:38:26 +08:00
parent 621ee3387d
commit 6d37054cfc
1 changed files with 33 additions and 6 deletions

View File

@ -5,10 +5,19 @@
<span>手机号查询归属地</span> <span>手机号查询归属地</span>
<el-button style="float: right; padding: 3px 0" type="text">购买</el-button> <el-button style="float: right; padding: 3px 0" type="text">购买</el-button>
</div> </div>
<span>{{'列表内容 ' }}</span> <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
<span>{{'列表内容 ' }}</span> <el-form-item placeholder="请输入手机号">
<span>{{'列表内容 ' }}</span> <el-input v-model="formLabelAlign.tel"></el-input>
<span>{{'列表内容 ' }}</span> </el-form-item>
<el-form-item>
<button @click="getPhonePlace"></button>
</el-form-item>
</el-form>
<span>省份{{this.formLabelAlign.province}}</span><br>
<span>城市{{this.formLabelAlign.city}}</span><br>
<span>区号{{this.formLabelAlign.areacode}}</span><br>
<span>邮编{{this.formLabelAlign.zip}}</span><br>
<span>运营商{{this.formLabelAlign.company}}</span>
</el-card> </el-card>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
@ -33,14 +42,32 @@ export default {
data() { data() {
//" //"
return {}; return {
formLabelAlign:{
province:"",
city:"",
areacode:"",
zip:"",
company:"",
},
};
}, },
// data", // data",
computed: {}, computed: {},
//data", //data",
watch: {}, watch: {},
//", //",
methods: {}, methods: {
getPhonePlace(){
getPhonePlace().then((res)=>{
this.formLabelAlign.province=res.data.province;
this.formLabelAlign.city=res.data.city;
this.formLabelAlign.areacode=res.data.areacode;
this.formLabelAlign.zip=res.data.zip;
this.formLabelAlign.company=res.data.company;
})
}
},
// - 访this", // - 访this",
created() { created() {
}, },