dev201310
zhangqun 2 years ago
parent cdf35167f7
commit 5c5094f802
  1. 4
      pages/airport/airport-runData/form.vue
  2. 5
      pages/home/index.vue
  3. 2
      util/request.js

@ -599,7 +599,9 @@
}) })
this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/saveOrUpdate', this.form, this.$request(getApp().globalData.baseUrl + '/api/biz/airportRunData/saveOrUpdate', this.form,
'POST').then(res => { 'POST').then(res => {
setTimeout(() => {
uni.hideLoading(); uni.hideLoading();
}, 2000);
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '报送提交成功', title: '报送提交成功',
@ -618,7 +620,9 @@
}) })
} }
}).catch(() => { }).catch(() => {
setTimeout(() => {
uni.hideLoading(); uni.hideLoading();
}, 2000);
}) })
}, },
} }

@ -8,7 +8,7 @@
<image v-if="routersData.name" :src="'../../static/image/' + routersData.name.replace('/','') + '01.png'" class="highway_logo"></image> <image v-if="routersData.name" :src="'../../static/image/' + routersData.name.replace('/','') + '01.png'" class="highway_logo"></image>
<view class="home_title">{{routersData.meta.title}}</view> <view class="home_title">{{routersData.meta.title}}</view>
</view> </view>
<view class="act_wrap" v-for="(item,index) in routersData.children" :key="index"> <view class="act_wrap" v-for="(item,index) in routersData.children" v-if="filterRoute.indexOf(item.meta.title) < 0" :key="index">
<view class="act_box" @click="changeShowStatus(index)"> <view class="act_box" @click="changeShowStatus(index)">
<image v-if="index == 0" src="../../static/image/icon_rundata.png" class="act_logo"></image> <image v-if="index == 0" src="../../static/image/icon_rundata.png" class="act_logo"></image>
<image v-else src="../../static/image/icon_runstatus.png" class="act_logo"></image> <image v-else src="../../static/image/icon_runstatus.png" class="act_logo"></image>
@ -37,7 +37,8 @@
return { return {
routersData: [], routersData: [],
showIndex: 0, showIndex: 0,
mobile: getApp().globalData.mobile mobile: getApp().globalData.mobile,
filterRoute: ['高速收费站'],//
} }
}, },
onLoad(options) { onLoad(options) {

@ -25,11 +25,13 @@ const request = (url, data, method = 'GET') => {
}) })
} else { } else {
resolve(res.data) resolve(res.data)
setTimeout(() => {
uni.showToast({ uni.showToast({
title: res.data.msg, title: res.data.msg,
icon: "none", icon: "none",
duration: 2000 duration: 2000
}) })
}, 1000)
} }
} else { } else {
reject(res) reject(res)

Loading…
Cancel
Save