|
|
@@ -3,13 +3,15 @@
|
|
|
<view :class="['info',equipInfo.is_online==1?'on':'off']">
|
|
|
<view class="" @click="copy(equipInfo)">
|
|
|
设备ID:{{equipInfo.imei||equipInfo.device_id}}
|
|
|
- <image src="http://www.hnyfwlw.com:8006/bigdata_app/image/environment/fuzhi.png" mode="" class="tishi"></image>
|
|
|
+ <image src="http://www.hnyfwlw.com:8006/bigdata_app/image/environment/fuzhi.png" mode="" class="tishi">
|
|
|
+ </image>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
设备名称:{{equipInfo.device_name==""?"无":equipInfo.device_name}}
|
|
|
</view>
|
|
|
<view class="">
|
|
|
- 设备类型:<span v-if="equipInfo.type">{{equipInfo.type|equipType}}</span><span v-else>{{equipInfo.type_name}}</span>
|
|
|
+ 设备类型:<span v-if="equipInfo.type">{{equipInfo.type|equipType}}</span><span
|
|
|
+ v-else>{{equipInfo.type_name}}</span>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
最新上报时间:{{equipInfo.addtime||equipInfo.uptime | timeFormat}}
|
|
|
@@ -26,20 +28,23 @@
|
|
|
<u-icon name="edit-pen" color="#f0ad4e" size="28"></u-icon>
|
|
|
</view>
|
|
|
<u-popup v-model="setTimeShow" mode="center" width="600rpx">
|
|
|
- <u-field label="载玻片更换时间" placeholder="选择日期" label-width='240' required :error-message="glassErr" v-model="glass_slide_time"
|
|
|
- @click="glass_show=true" :field-style="fieldstyle" disabled>
|
|
|
+ <u-field label="载玻片更换时间" placeholder="选择日期" label-width='240' required :error-message="glassErr"
|
|
|
+ v-model="glass_slide_time" @click="glass_show=true" :field-style="fieldstyle" disabled>
|
|
|
</u-field>
|
|
|
- <u-field label="培养液更换时间" placeholder="选择日期" label-width='240' required :error-message="culErr" v-model="cultivate_time"
|
|
|
- @click="cultivate_show=true" :field-style="fieldstyle" disabled>
|
|
|
+ <u-field label="培养液更换时间" placeholder="选择日期" label-width='240' required :error-message="culErr"
|
|
|
+ v-model="cultivate_time" @click="cultivate_show=true" :field-style="fieldstyle" disabled>
|
|
|
</u-field>
|
|
|
<view class="btn-box">
|
|
|
<u-button @click="setTimeSubmit" size="mini" type="success">确定</u-button>
|
|
|
</view>
|
|
|
- <u-calendar v-model="glass_show" mode="date" :max-date="date" @change="timeChange($event,'glass')"></u-calendar>
|
|
|
- <u-calendar v-model="cultivate_show" mode="date" :max-date="date" @change="timeChange($event,'cultivate')"></u-calendar>
|
|
|
+ <u-calendar v-model="glass_show" mode="date" :max-date="date" @change="timeChange($event,'glass')">
|
|
|
+ </u-calendar>
|
|
|
+ <u-calendar v-model="cultivate_show" mode="date" :max-date="date"
|
|
|
+ @change="timeChange($event,'cultivate')"></u-calendar>
|
|
|
</u-popup>
|
|
|
<u-popup v-model="yxShow" mode="center" width="600rpx">
|
|
|
- <u-field label="监测害虫名称" label-width='240' required :error-message="xyErr" v-model="decoy" :field-style="fieldstyle">
|
|
|
+ <u-field label="监测害虫名称" label-width='240' required :error-message="xyErr" v-model="decoy"
|
|
|
+ :field-style="fieldstyle">
|
|
|
</u-field>
|
|
|
<view class="btn-box">
|
|
|
<u-button @click="yxSubmit" size="mini" type="success">确定</u-button>
|
|
|
@@ -101,102 +106,98 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- fieldstyle:{
|
|
|
- border:"2rpx solid #f6f6f6",
|
|
|
- "border-radius":"24px",
|
|
|
- "padding-left":"20rpx",
|
|
|
- "background-color":"#f6f6f6"
|
|
|
+ fieldstyle: {
|
|
|
+ border: "2rpx solid #f6f6f6",
|
|
|
+ "border-radius": "24px",
|
|
|
+ "padding-left": "20rpx",
|
|
|
+ "background-color": "#f6f6f6"
|
|
|
},
|
|
|
- city:"",
|
|
|
+ city: "",
|
|
|
type: null, //设备类型
|
|
|
device_status: null,
|
|
|
equipInfo: {},
|
|
|
cbd: [{
|
|
|
- icon: '/image/cb/1.png',
|
|
|
- tex: '查看图片',
|
|
|
- path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
- tf:false
|
|
|
- },
|
|
|
- // {
|
|
|
- // icon: '/image/cb/2.png',
|
|
|
- // tex: '历史数据',
|
|
|
- // path: '/pages/cb/cbd/equip-set/historyfile',
|
|
|
- // tf:false
|
|
|
- // },
|
|
|
- {
|
|
|
- icon: '/image/cb/3.png',
|
|
|
- tex: '害虫统计',
|
|
|
- path: '/pages/cb/cbd/equip-set/statistics',
|
|
|
- tf:false
|
|
|
- }, {
|
|
|
- icon: '/image/cb/4.png',
|
|
|
- tex: '设备控制',
|
|
|
- path: '/pages/cb/cbd/equip-set/equip-set',
|
|
|
- tf:false
|
|
|
- }, {
|
|
|
- icon: '/image/cb/5.png',
|
|
|
- tex: '短信预警',
|
|
|
- path: '/pages/cb/cbd/equip-set/note',
|
|
|
- tf:false
|
|
|
- }, {
|
|
|
- icon: '/image/cb/6.png',
|
|
|
- tex: 'sim卡详情',
|
|
|
- path: '/pages/cb/sim/sim',
|
|
|
- tf:true
|
|
|
- },{
|
|
|
- icon: '/image/environment/7.png',
|
|
|
- tex: '一键报修',
|
|
|
- path: '/pages/afterSale/addafter',
|
|
|
- tf:true
|
|
|
- }],
|
|
|
+ icon: '/image/cb/1.png',
|
|
|
+ tex: '查看图片',
|
|
|
+ path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
+ tf: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: '/image/cb/3.png',
|
|
|
+ tex: '害虫统计',
|
|
|
+ path: '/pages/cb/cbd/equip-set/statistics',
|
|
|
+ tf: true
|
|
|
+ }, {
|
|
|
+ icon: '/image/cb/4.png',
|
|
|
+ tex: '设备控制',
|
|
|
+ path: '/pages/cb/cbd/equip-set/equip-set',
|
|
|
+ tf: false
|
|
|
+ }, {
|
|
|
+ icon: '/image/cb/5.png',
|
|
|
+ tex: '短信预警',
|
|
|
+ path: '/pages/cb/cbd/equip-set/note',
|
|
|
+ tf: false
|
|
|
+ }, {
|
|
|
+ icon: '/image/cb/6.png',
|
|
|
+ tex: 'sim卡详情',
|
|
|
+ path: '/pages/cb/sim/sim',
|
|
|
+ tf: true
|
|
|
+ }, {
|
|
|
+ icon: '/image/environment/7.png',
|
|
|
+ tex: '一键报修',
|
|
|
+ path: '/pages/afterSale/addafter',
|
|
|
+ tf: true
|
|
|
+ }
|
|
|
+ ],
|
|
|
bzy: [{
|
|
|
- icon: '/image/cb/4.png',
|
|
|
- tex: '设备控制',
|
|
|
- path: '/pages/cb/bzy/equip-set/equip-set',
|
|
|
- tf:false
|
|
|
- }, {
|
|
|
- icon: '/image/cb/1.png',
|
|
|
- tex: '查看图片',
|
|
|
- path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
- tf:false
|
|
|
- },
|
|
|
- // {
|
|
|
- // icon: '/image/cb/2.png',
|
|
|
- // tex: '历史数据',
|
|
|
- // path: '/pages/cb/bzy/equip-set/bzyhistoryile',
|
|
|
- // tf:false
|
|
|
- // },
|
|
|
- {
|
|
|
- icon: '/image/cb/6.png',
|
|
|
- tex: 'sim卡详情',
|
|
|
- path: '/pages/cb/sim/sim',
|
|
|
- tf:false
|
|
|
- },{
|
|
|
- icon: '/image/environment/7.png',
|
|
|
- tex: '一键报修',
|
|
|
- path: '/pages/afterSale/addafter',
|
|
|
- tf:true
|
|
|
- }],
|
|
|
+ icon: '/image/cb/4.png',
|
|
|
+ tex: '设备控制',
|
|
|
+ path: '/pages/cb/bzy/equip-set/equip-set',
|
|
|
+ tf: false
|
|
|
+ }, {
|
|
|
+ icon: '/image/cb/1.png',
|
|
|
+ tex: '查看图片',
|
|
|
+ path: '/pages/cb/cbd/equip-set/imgpage',
|
|
|
+ tf: false
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // icon: '/image/cb/2.png',
|
|
|
+ // tex: '历史数据',
|
|
|
+ // path: '/pages/cb/bzy/equip-set/bzyhistoryile',
|
|
|
+ // tf:false
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ icon: '/image/cb/6.png',
|
|
|
+ tex: 'sim卡详情',
|
|
|
+ path: '/pages/cb/sim/sim',
|
|
|
+ tf: false
|
|
|
+ }, {
|
|
|
+ icon: '/image/environment/7.png',
|
|
|
+ tex: '一键报修',
|
|
|
+ path: '/pages/afterSale/addafter',
|
|
|
+ tf: true
|
|
|
+ }
|
|
|
+ ],
|
|
|
xy: [{
|
|
|
icon: '/image/cb/4.png',
|
|
|
tex: '设备控制',
|
|
|
path: '/pages/cb/xy/equip-set/equip-set',
|
|
|
- tf:false
|
|
|
+ tf: false
|
|
|
}, {
|
|
|
icon: '/image/cb/6.png',
|
|
|
tex: 'sim卡详情',
|
|
|
path: '/pages/cb/sim/sim',
|
|
|
- tf:false
|
|
|
+ tf: false
|
|
|
}, {
|
|
|
icon: '/image/cb/2.png',
|
|
|
tex: '历史数据',
|
|
|
path: '/pages/cb/xy/equip-set/xyhistoryile',
|
|
|
- tf:false
|
|
|
- },{
|
|
|
+ tf: false
|
|
|
+ }, {
|
|
|
icon: '/image/environment/7.png',
|
|
|
tex: '一键报修',
|
|
|
path: '/pages/afterSale/addafter',
|
|
|
- tf:true
|
|
|
+ tf: true
|
|
|
}],
|
|
|
newState: {}, //设备最新状态
|
|
|
setTimeShow: false,
|
|
|
@@ -209,8 +210,8 @@
|
|
|
yxShow: false, //诱芯弹框
|
|
|
xyErr: '',
|
|
|
decoy: '',
|
|
|
- newtishitf:false,
|
|
|
- date:""//最大可选时间
|
|
|
+ newtishitf: false,
|
|
|
+ date: "" //最大可选时间
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -265,11 +266,13 @@
|
|
|
}, {
|
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25.0"||this.newState.at==""||this.newState.at=="25"?this.newState.new_tem:this.newState.at
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25.0" || this.newState.at ==
|
|
|
+ "" || this.newState.at == "25" ? this.newState.new_tem : this.newState.at
|
|
|
}, {
|
|
|
icon: '/image/cb/icon07.png',
|
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30.0"||this.newState.ah=="30.0"||this.newState.ah==""||this.newState.ah=="30"?this.newState.new_hum:this.newState.ah
|
|
|
+ value: this.newState.ah == "30.0" || this.newState.ah == "30.0" || this.newState.ah ==
|
|
|
+ "" || this.newState.ah == "30" ? this.newState.new_hum : this.newState.ah
|
|
|
}, {
|
|
|
icon: '/image/cb/icon16.png',
|
|
|
txt: '信号强度',
|
|
|
@@ -328,11 +331,13 @@
|
|
|
}, {
|
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""||this.newState.at=="25.0"?this.newState.new_tem:this.newState.at
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25" || this.newState.at ==
|
|
|
+ "" || this.newState.at == "25.0" ? this.newState.new_tem : this.newState.at
|
|
|
}, {
|
|
|
icon: '/image/prevention/66.png',
|
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""||this.newState.ah=="30.0"?this.newState.new_hum:this.newState.ah
|
|
|
+ value: this.newState.ah == "30" || this.newState.ah == "3.0" || this.newState.ah ==
|
|
|
+ "" || this.newState.ah == "30.0" ? this.newState.new_hum : this.newState.ah
|
|
|
}, {
|
|
|
icon: '/image/cb/icon16.png',
|
|
|
txt: '信号强度',
|
|
|
@@ -379,12 +384,14 @@
|
|
|
{
|
|
|
icon: '/image/cb/icon08.png',
|
|
|
txt: '环境温度(℃)',
|
|
|
- value: this.newState.at=="2.5"||this.newState.at=="25"||this.newState.at==""||this.newState.at=="25.0"?this.newState.new_tem:this.newState.at
|
|
|
+ value: this.newState.at == "2.5" || this.newState.at == "25" || this.newState.at ==
|
|
|
+ "" || this.newState.at == "25.0" ? this.newState.new_tem : this.newState.at
|
|
|
},
|
|
|
{
|
|
|
icon: '/image/cb/icon07.png',
|
|
|
txt: '环境湿度(%)',
|
|
|
- value:this.newState.ah=="30"||this.newState.ah=="3.0"||this.newState.ah==""||this.newState.ah=="30.0"?this.newState.new_hum:this.newState.ah
|
|
|
+ value: this.newState.ah == "30" || this.newState.ah == "3.0" || this.newState.ah ==
|
|
|
+ "" || this.newState.ah == "30.0" ? this.newState.new_hum : this.newState.ah
|
|
|
},
|
|
|
{
|
|
|
icon: '/image/prevention/105.png',
|
|
|
@@ -448,57 +455,61 @@
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.equipInfo = JSON.parse(option.info)
|
|
|
- this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type)|| Number(this.equipInfo.device_type_id)
|
|
|
+ this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type) || Number(this.equipInfo
|
|
|
+ .device_type_id)
|
|
|
this.equipInfo.type = this.type
|
|
|
this.device_status = this.equipInfo.is_online
|
|
|
this.getState()
|
|
|
console.log(this.equipInfo)
|
|
|
- this.selectaddress(Number(this.equipInfo.lat),Number(this.equipInfo.lng))
|
|
|
+ if(this.equipInfo.disable){
|
|
|
+ if(this.equipInfo.disable==0){
|
|
|
+ this.cbd[3].tf=false
|
|
|
+ }else{
|
|
|
+ this.cbd[3].tf=true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.selectaddress(Number(this.equipInfo.lat), Number(this.equipInfo.lng))
|
|
|
var times = new Date()
|
|
|
- this.date = times.getFullYear()+1 + "-" + Number(times.getMonth()+1) + "-" + times.getDate()
|
|
|
+ this.date = times.getFullYear() + 1 + "-" + Number(times.getMonth() + 1) + "-" + times.getDate()
|
|
|
uni.getStorage({
|
|
|
- key:"jurisdiction",
|
|
|
- success:(res)=>{
|
|
|
+ key: "jurisdiction",
|
|
|
+ success: (res) => {
|
|
|
console.log(JSON.parse(res.data))
|
|
|
- let items = JSON.parse(res.data).filter((item)=>{
|
|
|
+ let items = JSON.parse(res.data).filter((item) => {
|
|
|
return item.purview_name == "测报系统"
|
|
|
})
|
|
|
console.log(items)
|
|
|
- let items2 = items[0].children.filter((item)=>{
|
|
|
+ let items2 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "虫情测报灯"
|
|
|
})
|
|
|
- let items3 = items[0].children.filter((item)=>{
|
|
|
+ let items3 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "性诱测报"
|
|
|
})
|
|
|
- let items4 = items[0].children.filter((item)=>{
|
|
|
+ let items4 = items[0].children.filter((item) => {
|
|
|
return item.purview_name == "孢子仪"
|
|
|
})
|
|
|
console.log(items2)
|
|
|
var arr = items2[0].children
|
|
|
- for(var i =0;i<arr.length;i++){
|
|
|
- switch (arr[i].purview_name){
|
|
|
+ for (var i = 0; i < arr.length; i++) {
|
|
|
+ switch (arr[i].purview_name) {
|
|
|
case "数据详情":
|
|
|
- this.cbd[1].tf = true
|
|
|
+ // this.cbd[1].tf = true
|
|
|
break
|
|
|
case "查看图片":
|
|
|
this.cbd[0].tf = true
|
|
|
break
|
|
|
case "设备控制":
|
|
|
- this.cbd[3].tf = true
|
|
|
- break
|
|
|
- case "害虫统计":
|
|
|
this.cbd[2].tf = true
|
|
|
- this.cbd[4].tf = true
|
|
|
break
|
|
|
- case "SIM卡":
|
|
|
- this.cbd[5].tf = true
|
|
|
+ case "害虫统计":
|
|
|
+ this.cbd[1].tf = true
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
- console.log(items3[0].children)
|
|
|
+ // console.log(items3[0].children)
|
|
|
var arr2 = items3[0].children
|
|
|
- for(var i =0;i<arr2.length;i++){
|
|
|
- switch (arr2[i].purview_name){
|
|
|
+ for (var i = 0; i < arr2.length; i++) {
|
|
|
+ switch (arr2[i].purview_name) {
|
|
|
case "设备控制":
|
|
|
this.xy[0].tf = true
|
|
|
break;
|
|
|
@@ -512,8 +523,8 @@
|
|
|
}
|
|
|
console.log(items4[0].children)
|
|
|
var arr3 = items4[0].children
|
|
|
- for(var i =0;i<arr3.length;i++){
|
|
|
- switch (arr3[i].purview_name){
|
|
|
+ for (var i = 0; i < arr3.length; i++) {
|
|
|
+ switch (arr3[i].purview_name) {
|
|
|
case "设备控制":
|
|
|
this.bzy[0].tf = true
|
|
|
break;
|
|
|
@@ -536,7 +547,8 @@
|
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
|
|
|
data: {
|
|
|
- device_type_id: this.equipInfo.type || this.equipInfo.equip_type || this.equipInfo.device_type_id,
|
|
|
+ device_type_id: this.equipInfo.type || this.equipInfo.equip_type || this.equipInfo
|
|
|
+ .device_type_id,
|
|
|
device_id: this.equipInfo.imei || this.equipInfo.device_id,
|
|
|
page: 1,
|
|
|
page_size: 1,
|
|
|
@@ -544,10 +556,10 @@
|
|
|
})
|
|
|
console.log(res)
|
|
|
console.log(1222)
|
|
|
- if(res.counts!=0){
|
|
|
+ if (res.counts != 0) {
|
|
|
this.newState = res.data[0].d_h_t
|
|
|
this.newtishitf = true
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.newtishitf = false
|
|
|
}
|
|
|
},
|
|
|
@@ -555,19 +567,21 @@
|
|
|
console.log(path)
|
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
|
uni.navigateTo({
|
|
|
- url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type="+this.type
|
|
|
+ url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type=" + this
|
|
|
+ .type
|
|
|
});
|
|
|
},
|
|
|
- partClicks(){
|
|
|
+ partClicks() {
|
|
|
var path = ""
|
|
|
var device_id = this.equipInfo.device_id || this.equipInfo.imei
|
|
|
- if(this.type==3){
|
|
|
- path="/pages/cb/cbd/equip-set/historyfile"
|
|
|
- }else if(this.type == 7){
|
|
|
- path="/pages/cb/bzy/equip-set/bzyhistoryile"
|
|
|
+ if (this.type == 3) {
|
|
|
+ path = "/pages/cb/cbd/equip-set/historyfile"
|
|
|
+ } else if (this.type == 7) {
|
|
|
+ path = "/pages/cb/bzy/equip-set/bzyhistoryile"
|
|
|
}
|
|
|
uni.navigateTo({
|
|
|
- url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id+ "&device_type="+this.type
|
|
|
+ url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type=" + this
|
|
|
+ .type
|
|
|
});
|
|
|
},
|
|
|
async setTime(d_id) {
|
|
|
@@ -578,8 +592,10 @@
|
|
|
d_id
|
|
|
}
|
|
|
})
|
|
|
- this.glass_slide_time = res.glass_slide_time ? this.formatTime(res.glass_slide_time * 1000, 'yyyy-MM-dd') : ''
|
|
|
- this.cultivate_time = res.cultivate_time ? this.formatTime(res.cultivate_time * 1000, 'yyyy-MM-dd') : ''
|
|
|
+ this.glass_slide_time = res.glass_slide_time ? this.formatTime(res.glass_slide_time * 1000,
|
|
|
+ 'yyyy-MM-dd') : ''
|
|
|
+ this.cultivate_time = res.cultivate_time ? this.formatTime(res.cultivate_time * 1000, 'yyyy-MM-dd') :
|
|
|
+ ''
|
|
|
this.setTimeShow = true
|
|
|
},
|
|
|
timeChange(e, a) {
|
|
|
@@ -633,6 +649,17 @@
|
|
|
this.decoy = res.decoy;
|
|
|
this.yxShow = true
|
|
|
},
|
|
|
+ async cbnote(d_id) {
|
|
|
+ const res = await this.$myRequest({
|
|
|
+ url: '/api/api_gateway?method=device.device_manage.get_spore_time',
|
|
|
+ data: {
|
|
|
+ device_type_id: this.type,
|
|
|
+ d_id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.decoy = res.decoy;
|
|
|
+ this.yxShow = true
|
|
|
+ },
|
|
|
async yxSubmit() {
|
|
|
if (!this.decoy) {
|
|
|
this.xyErr = "请填写监测害虫名称";
|
|
|
@@ -651,7 +678,7 @@
|
|
|
this.yxShow = false
|
|
|
}
|
|
|
},
|
|
|
- selectaddress(lat,lng) { //获取分布位置
|
|
|
+ selectaddress(lat, lng) { //获取分布位置
|
|
|
uni.request({
|
|
|
type: "GET",
|
|
|
url: "https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=" + lng + "," + lat +
|
|
|
@@ -660,21 +687,21 @@
|
|
|
complete: ress => {
|
|
|
console.log(ress)
|
|
|
// this.city = ress.data.regeocode.formatted_address
|
|
|
- if(ress.data.regeocode.formatted_address.length==0){
|
|
|
- this.city="--"
|
|
|
- }else{
|
|
|
+ if (ress.data.regeocode.formatted_address.length == 0) {
|
|
|
+ this.city = "--"
|
|
|
+ } else {
|
|
|
this.city = ress.data.regeocode.formatted_address
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- copy(item){
|
|
|
+ copy(item) {
|
|
|
console.log(item)
|
|
|
uni.setClipboardData({
|
|
|
- data: item.imei||item.device_id,
|
|
|
- success: function () {
|
|
|
- console.log('success');
|
|
|
- }
|
|
|
+ data: item.imei || item.device_id,
|
|
|
+ success: function() {
|
|
|
+ console.log('success');
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
@@ -685,6 +712,7 @@
|
|
|
page {
|
|
|
padding: 20rpx;
|
|
|
box-sizing: border-box;
|
|
|
+
|
|
|
.info {
|
|
|
padding: 20rpx 40rpx;
|
|
|
color: #fff;
|
|
|
@@ -696,7 +724,8 @@
|
|
|
background-position: top left;
|
|
|
box-sizing: border-box;
|
|
|
width: 100%;
|
|
|
- .tishi{
|
|
|
+
|
|
|
+ .tishi {
|
|
|
width: 28rpx;
|
|
|
height: 28rpx;
|
|
|
margin: 0rpx 0 0 20rpx;
|
|
|
@@ -718,6 +747,7 @@
|
|
|
font-size: 28rpx;
|
|
|
color: #666;
|
|
|
line-height: 50rpx;
|
|
|
+
|
|
|
image {
|
|
|
width: 52rpx;
|
|
|
}
|
|
|
@@ -734,7 +764,8 @@
|
|
|
flex-basis: 33%;
|
|
|
/* flex-grow: 1; */
|
|
|
}
|
|
|
- .item3{
|
|
|
+
|
|
|
+ .item3 {
|
|
|
padding: 20rpx 0;
|
|
|
box-sizing: border-box;
|
|
|
flex-basis: 25%;
|
|
|
@@ -748,7 +779,8 @@
|
|
|
margin-bottom: 20rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
- .span{
|
|
|
+
|
|
|
+ .span {
|
|
|
color: #6e6c76;
|
|
|
font-size: 24rpx;
|
|
|
display: flex;
|
|
|
@@ -756,13 +788,15 @@
|
|
|
/* margin-top: 12rpx; */
|
|
|
}
|
|
|
}
|
|
|
- .newtishi{
|
|
|
+
|
|
|
+ .newtishi {
|
|
|
width: 90%;
|
|
|
margin: 0 auto;
|
|
|
text-align: center;
|
|
|
padding-top: 40rpx;
|
|
|
font-size: 32rpx;
|
|
|
}
|
|
|
+
|
|
|
.newState {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
@@ -797,6 +831,7 @@
|
|
|
text-align: center;
|
|
|
padding: 30rpx;
|
|
|
}
|
|
|
+
|
|
|
.field {
|
|
|
/deep/.uni-input-input {
|
|
|
border: 2rpx solid #FF0000;
|
|
|
@@ -807,10 +842,12 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- /deep/.u-calendar__action{
|
|
|
+
|
|
|
+ /deep/.u-calendar__action {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
- .u-calendar__action__text{
|
|
|
+
|
|
|
+ .u-calendar__action__text {
|
|
|
line-height: 25px;
|
|
|
}
|
|
|
}
|