添加loding

dev
Tuzki 2 years ago
parent 6eebdc28c2
commit 61b84c6be7
  1. 11
      pages/daolan/zhdl.vue
  2. 50
      pages/index/index.vue

@ -124,10 +124,10 @@ export default {
this.addThings();
this.getScreeningData();
this.getLineData();
// uni.showLoading({
// title: '...',
// mask: true
// });
uni.showLoading({
title: '手绘图加载中...',
mask: true
});
// setTimeout(function () {
// uni.hideLoading();
// }, 6000);
@ -196,12 +196,15 @@ export default {
},
success(res) {
console.log(res);
uni.hideLoading();
},
fail(err) {
console.log(err);
uni.hideLoading();
},
complete(das) {
console.log(das);
uni.hideLoading();
}
});
},

@ -30,7 +30,7 @@
<view class="at_t">景点介绍</view>
</view>
</view>
</view>
</view>
</view>
@ -77,13 +77,13 @@
</view>
<!-- 非遗文化 -->
<!-- 历史影像 -->
<!-- 活动风采 -->
</view>
</view>
</template>
@ -172,6 +172,7 @@ export default {
this.getRedisData();
this.getZiXunList();
this.getWeather();
// this.getWhitePic();
let video = uni.createVideoContext('myVideo');
this.video = video;
setInterval(
@ -249,6 +250,41 @@ export default {
}
},
methods: {
//
getWhitePic(){
let this_ = this
uni.request({
url: this.$config.ROOTPATH + '/mobile/mapScenic/qylyMapScenicAndSpotInfo',
method: 'get',
data: {
userkey: '95034a2bb9a843b79dbc93f74599282b',
// id: '334',
id: '363',
spotType: ''
},
success(res) {
const arr = res.data.data;
this_.datas = arr;
//
arr.forEach((item) => {
if (item.id == 363) {
// if (item.id == 334) {
wx.getImageInfo({
src: this_.$config.ROOTPATH + item.mapurl,
success(res) {
const data = res.data;
this_.$util.setImage(this_.$config.ROOTPATH + item.mapurl, data);
}
})
}
});
},
fail(err) {
console.log(err);
}
});
},
//
getWeather: function (region) {
let this_ = this
@ -290,7 +326,7 @@ export default {
// this.weatherImgUrl = '../../../static/images/whe_cloudy.png';
// }
// });
uni.request({
url: `https://restapi.amap.com/v3/weather/weatherInfo?city=130500&key=7d0d358762ba1af430645a7592f75789`,
method: 'get',
@ -692,8 +728,8 @@ export default {
align-items: center;
padding: 15rpx 20rpx;
background-color: #fff;
}
.we-item{
font-size: 26rpx;

Loading…
Cancel
Save