| | |
| | | // url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。 |
| | | url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/AppSubmit?'+params, //仅为示例,并非真实接口地址。 |
| | | method:'POST', |
| | | data:{ |
| | | |
| | | }, |
| | | success: (res) => { |
| | | if(res.data.code==200){ |
| | | uni.showToast({ |
| | |
| | | <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> |
| | |
| | | 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> |
| | |
| | | |
| | | .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; |
| | | } |
| | |
| | | color: #FFFFFF; |
| | | letter-spacing: 2rpx; |
| | | } |
| | | |
| | | .region-select { |
| | | position: relative; |
| | | left: 40rpx; |
| | | top: 20rpx; |
| | | width: 400rpx; |
| | | height: 60rpx; |
| | | /* border: 1rpx solid #C8C9CC; */ |
| | | } |
| | | </style> |
| | |
| | | <view class="content"> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text> |
| | | <view class="uni-list"> |
| | | <view class="uni-list-cell"> |
| | | <view class="uni-list-cell-db"> |
| | | <picker @change="bindPickerChange" :value="index" :range="array"> |
| | | <view class="uni-input">{{array[index]}}</view> |
| | | </picker> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- <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> |
| | |
| | | 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', |
| | | array:['中国', '美国', '巴西', '日本'], |
| | | index:0 |
| | | array:[], |
| | | index:0, |
| | | value: '', |
| | | tenantlist:[ |
| | | { |
| | | value: '选项1', |
| | | label: '黄金糕' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | }, |
| | | methods: { |
| | | bindPickerChange: function(e) { |
| | | console.log('picker发送选择改变,携带值为', e.target.value) |
| | | this.index = e.target.value |
| | | }, |
| | | 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> |
| | |
| | | |
| | | .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; |
| | | } |
| | |
| | | letter-spacing: 2rpx; |
| | | } |
| | | |
| | | .uni-list { |
| | | .region-select { |
| | | position: relative; |
| | | left: 40rpx; |
| | | top: 28rpx; |
| | | width: 300rpx; |
| | | height: 30rpx; |
| | | top: 20rpx; |
| | | width: 400rpx; |
| | | height: 60rpx; |
| | | /* border: 1rpx solid #C8C9CC; */ |
| | | } |
| | | </style> |
| | |
| | | } |
| | | this.urls = "https://web.byisf.com/xcxjingqingmap/xcxmap.html?data=" + data; |
| | | // this.dataList = data; |
| | | // console.log(this.urls); |
| | | console.log(this.urls); |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | }else{ |
| | | data = options.data; |
| | | } |
| | | this.urls = "https://web.byisf.com/xcxjingqingmap/xcxmap.html?data=" + data; |
| | | // this.dataList = data; |
| | | // console.log(this.urls); |
| | | this.urls = "https://web.byisf.com/xcxjingqingmap_patrol/xcxmap.html"; |
| | | }, |
| | | } |
| | | </script> |