|
|
|
@ -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; |
|
|
|
|