|
@@ -1,9 +1,5 @@
|
|
|
<template>
|
|
|
<view class="page">
|
|
|
- <view class="sos" @click="call()">
|
|
|
- <view class="icon"></view>
|
|
|
- SOS
|
|
|
- </view>
|
|
|
<view class="wd">
|
|
|
<view class="qw">{{ weather.tem }}°</view>
|
|
|
<view class="xs">
|
|
@@ -14,14 +10,18 @@
|
|
|
<view class="ms">
|
|
|
<text class="icon"></text>
|
|
|
<text>谢通门县欢迎您</text>
|
|
|
+ <view class="sos" @click="call()">
|
|
|
+ <text class="icon"></text>
|
|
|
+ 求助
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="top"><image :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg1 : '../../static/loading.gif'" mode="aspectFill"></image></view>
|
|
|
+ <view class="top"><image :src="ip + aboutUs.bgImg1" mode="aspectFill"></image></view>
|
|
|
<view class="flex menu">
|
|
|
- <view class="f" @click="tab('/pages/travel/index')">
|
|
|
+ <view class="f" @click="navigate('/pages/travel/detail?id=43')">
|
|
|
<image src="../../static/icon3.png" mode="widthFix" class="icon1"></image>
|
|
|
- <view class="title">景区介绍</view>
|
|
|
+ <view class="title">谢通门介绍</view>
|
|
|
</view>
|
|
|
- <view class="f" @click="navigate('/pages/travel/introduction')">
|
|
|
+ <view class="f" @click="navigate('/pages/travel/list?type=3')">
|
|
|
<image src="../../static/icon1.png" mode="widthFix" class="icon1"></image>
|
|
|
<view class="title">旅游攻略</view>
|
|
|
</view>
|
|
@@ -36,26 +36,11 @@
|
|
|
</view>
|
|
|
<view class="flex" style="margin-top: 10px;">
|
|
|
<view class="f" style="padding-right:8px;">
|
|
|
- <image
|
|
|
- @click="navigate('/pages/travel/detail?id=41')"
|
|
|
- :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg2 : '../../static/loading.gif'"
|
|
|
- style="height: 164px;width: 100%;border-radius: 5px;"
|
|
|
- mode="aspectFill"
|
|
|
- /></image>
|
|
|
+ <image @click="navigate(2)" :src="ip + aboutUs.bgImg2" style="height: 164px;width: 100%;border-radius: 5px;" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
<view class="f">
|
|
|
- <image
|
|
|
- @click="navigate('/pages/travel/detail?id=42')"
|
|
|
- :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg3 : '../../static/loading.gif'"
|
|
|
- style="height: 77px;width: 100%;border-radius: 5px;"
|
|
|
- mode="aspectFill"
|
|
|
- ></image>
|
|
|
- <image
|
|
|
- @click="navigate('/pages/other/feedback')"
|
|
|
- :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg4 : '../../static/loading.gif'"
|
|
|
- style="height: 77px;width: 100%;margin-top: 5px;border-radius: 5px;"
|
|
|
- mode="aspectFill"
|
|
|
- ></image>
|
|
|
+ <image @click="navigate(3)" :src="ip + aboutUs.bgImg3" style="height: 77px;width: 100%;border-radius: 5px;" mode="aspectFill"></image>
|
|
|
+ <image @click="navigate(4)" :src="ip + aboutUs.bgImg4" style="height: 77px;width: 100%;margin-top: 5px;border-radius: 5px;" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="it">
|
|
@@ -98,11 +83,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
|
|
+ <help ref="help"></help>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import help from '../../components/help.vue';
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ help
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
ip: this.$http.urls.ip,
|
|
@@ -118,7 +108,7 @@ export default {
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
this.getData();
|
|
|
- this.getWeather();
|
|
|
+ //this.getWeather();
|
|
|
//uni.setStorageSync("user",{"searchValue":null,"createBy":null,"createTime":null,"updateBy":null,"updateTime":null,"remark":null,"params":{},"memberId":27,"name":"wx_1011223213","mobile":"","email":null,"registerTime":"2021-11-23 21:39:27","lastLoginTime":"2021-11-23 21:53:20","lastLoginIp":"127.0.0.1","loginNum":2,"unionid":null,"openid":"ok3qt5FMehpGy6aOtqPd9pnPLC_Q","nickName":"西域男孩","avatarUrl":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLeSLQBtiavUU0ByFbXtND7iaricbNU81HSdaV9bQLTfciaMV604u5TNIdjLiaarL7MIZQXIrWFZfNiaZIQ/132","gender":"0","province":"","city":"","country":"","language":"zh_CN","lastLat":null,"lastLng":null,"isShop":0,"apiToken":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIyNyIsImlhdCI6MTYzNzY3NTYwMCwiZXhwIjoxNjM4MjgwNDAwfQ.vRPuNnLrUH1T8_qOL6Ti4TT2Akw29Set18kiavbjJynol52cxHXqeRoStyF4afdcsiipELdVW9G8-zh52voOFg"})
|
|
|
},
|
|
|
methods: {
|
|
@@ -153,12 +143,26 @@ export default {
|
|
|
detail(item) {
|
|
|
uni.navigateTo({ url: '/pages/travel/detail?id=' + item.contentId });
|
|
|
},
|
|
|
- navigate(url) {
|
|
|
- uni.navigateTo({ url: url });
|
|
|
+ //根据后台的选择跳转id跳转到指定文章
|
|
|
+ navigate(index) {
|
|
|
+ let id;
|
|
|
+ if (index == 2) {
|
|
|
+ id = this.$http.getParam(this.aboutUs.briefText1, '?');
|
|
|
+ }
|
|
|
+ if (index == 2) {
|
|
|
+ id = this.$http.getParam(this.aboutUs.briefText2, '?');
|
|
|
+ }
|
|
|
+ if (index == 3) {
|
|
|
+ id = this.$http.getParam(this.aboutUs.briefText3, '?');
|
|
|
+ }
|
|
|
+ if (index == 4) {
|
|
|
+ id = this.$http.getParam(this.aboutUs.briefText4, '?');
|
|
|
+ }
|
|
|
+ uni.navigateTo({ url: '/pages/travel/detail?id=' + id });
|
|
|
},
|
|
|
//拨打求助电话
|
|
|
call() {
|
|
|
- this.$http.call(this.aboutUs);
|
|
|
+ this.$refs.help.init();
|
|
|
}
|
|
|
},
|
|
|
//下拉刷新
|