南昌市物联网技防平台-小程序
Administrator
2021-05-28 a2772f2e4e44a60e181e47559ce337d1fec75856
pages/infoRegistration/infoCheck.vue
@@ -2,28 +2,29 @@
   <view class="content">
           <view class="row regis-info">
            <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text>
               <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户名称" placeholder-class="placeholder" />
               <input class="input" type="text"  v-model="tenantName" placeholder="请输入客户名称" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info-linkman">
            <text class="info-title"><!-- <span style="color: red;">* --></span>联系人: </text>
             <input class="input" type="text"  v-model="linkman" placeholder="请输入联系人名称" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info">
            <text class="info-title"><!-- <span style="color: red;">* --></span>联系电话: </text>
             <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入联系电话" placeholder-class="placeholder" />
             <input class="input" type="text"  v-model="contactNumber" placeholder="请输入联系电话" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info">
            <text class="info-title"><!-- <span style="color: red;">* --></span>客户地址: </text>
             <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户地址" placeholder-class="placeholder" />
             <input class="input" type="text"  v-model="address" placeholder="请输入客户地址" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info">
            <text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text>
             <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入客户类型" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info">
            <text class="info-title"><!-- <span style="color: red;">* --></span>安防等级: </text>
             <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请选择安防等级" placeholder-class="placeholder" />
             <input class="input" type="text"  v-model="type" placeholder="请输入客户类型" placeholder-class="placeholder" />
         </view>
         <view class="row regis-info-desc">
            <text class="info-title"><!-- <span style="color: red;">* --></span>备注: </text>
             <input class="input" type="text" v-on:input ="ondeviceName" v-model="deviceName" placeholder="请输入备注" placeholder-class="placeholder" />
            <text class="info-title"><!-- <span style="color: red;">* --></span>域名地址: </text>
             <input class="input" type="text"  v-model="domain" placeholder="请输入域名地址" placeholder-class="placeholder" />
         </view>
         <button class="btn" @click="confirm">上传</button>
      </view>
   </view>
@@ -33,24 +34,55 @@
   export default{
      data () {
         return {
            deviceNumber:"",
            serialNumber:"",
            contacts:"",
            calls:"",
            paddress:"",
            deploymenttime:"",
            deviceName:"",
            tenantName:"",
            linkman:"",
            contactNumber:"",
            address:"",
            type:null,
            domain:"",
            display:'none',
            display1:'none',
            display2:'none',
            display3:'none'
            display3:'none',
            array:[],
            index:0,
            value: '',
            tenantlist:[
               {
                  value: '选项1',
                  label: '黄金糕'
               }
            ]
         }
      },
      onLoad() {
         
      },
      methods: {
         confirm(){
            uni.request({
               // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。
               url: 'https://web.byisf.com/api/blade-system/tenant/submit', //仅为示例,并非真实接口地址。
               method:'POST',
               data:{
                  "tenantName":this.tenantName,
                  "linkman":this.linkman,
                  "contactNumber":this.contactNumber,
                  "address":this.address,
                  "type":this.type,
                  "domain":this.domain,
               },
               success: (res) => {
                  if(res.data.code==200){
                     uni.showToast({
                         title: '提交成功!',
                         duration: 2000
                     });
                  }
               }
            });
         }
      }
   }
</script>
@@ -73,7 +105,22 @@
   
   .regis-info-desc input{
      position: relative;
      left: 110rpx;
      left: 40rpx;
      top: 27rpx;
      letter-spacing: 1rpx;
   }
   .regis-info-linkman{
      width: 100%;
      height: 100rpx;
      position: relative;
      left: 20rpx;
      border-bottom: 0.05px solid #B4BCCC;
   }
   .regis-info-linkman input{
      position: relative;
      left: 70rpx;
      top: 27rpx;
      letter-spacing: 1rpx;
   }
@@ -103,4 +150,13 @@
      color: #FFFFFF;
      letter-spacing: 2rpx;
   }
   .region-select {
      position: relative;
      left: 40rpx;
      top: 20rpx;
      width: 400rpx;
      height: 60rpx;
      /* border: 1rpx solid #C8C9CC; */
   }
</style>