|
@@ -14,27 +14,51 @@
|
|
<view class="ms">
|
|
<view class="ms">
|
|
<text class="icon"></text>
|
|
<text class="icon"></text>
|
|
<text>谢通门县欢迎您</text>
|
|
<text>谢通门县欢迎您</text>
|
|
- <navigator url="/pages/index/index" class="jb">旧版首页</navigator>
|
|
|
|
|
|
+ <!-- <navigator url="/pages/index/index" class="jb">旧版首页</navigator> -->
|
|
</view>
|
|
</view>
|
|
- <view class="top"><image :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg1 : '../../static/bj.jpg'"></image></view>
|
|
|
|
|
|
+ <view class="top"><image :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg1 : '../../static/bj.jpg'" mode="aspectFill"></image></view>
|
|
<view class="flex menu">
|
|
<view class="flex menu">
|
|
<view class="f" @click="tab('/pages/travel/index')">
|
|
<view class="f" @click="tab('/pages/travel/index')">
|
|
- <view class="icon" style="background-color: #0f0b51;"></view>
|
|
|
|
|
|
+ <image src="../../static/icon3.png" mode="widthFix" class="icon1"></image>
|
|
<view class="title">景区介绍</view>
|
|
<view class="title">景区介绍</view>
|
|
</view>
|
|
</view>
|
|
<view class="f" @click="navigate('/pages/travel/introduction')">
|
|
<view class="f" @click="navigate('/pages/travel/introduction')">
|
|
- <view class="icon" style="background-color: #2cc937;"></view>
|
|
|
|
|
|
+ <image src="../../static/icon1.png" mode="widthFix" class="icon1"></image>
|
|
<view class="title">旅游攻略</view>
|
|
<view class="title">旅游攻略</view>
|
|
</view>
|
|
</view>
|
|
<view class="f" @click="navigate('/pages/government/activity')">
|
|
<view class="f" @click="navigate('/pages/government/activity')">
|
|
- <view class="icon" style="background-color: #e23e33;"></view>
|
|
|
|
|
|
+ <image src="../../static/icon2.png" mode="widthFix" class="icon1"></image>
|
|
<view class="title">热门活动</view>
|
|
<view class="title">热门活动</view>
|
|
</view>
|
|
</view>
|
|
<view class="f" @click="navigate('/pages/government/index')">
|
|
<view class="f" @click="navigate('/pages/government/index')">
|
|
- <view class="icon" style="background-color: #e23e33;"></view>
|
|
|
|
|
|
+ <image src="../../static/icon4.png" mode="widthFix" class="icon1"></image>
|
|
<view class="title">党政服务</view>
|
|
<view class="title">党政服务</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="flex" style="margin-top: 10px;">
|
|
|
|
+ <view class="f" style="padding-right:8px;">
|
|
|
|
+ <image
|
|
|
|
+ @click="tab('/pages/travel/index')"
|
|
|
|
+ :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg2 : '../../static/bj.jpg'"
|
|
|
|
+ style="height: 164px;width: 100%;border-radius: 5px;"
|
|
|
|
+ mode="aspectFill"
|
|
|
|
+ /></image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="f">
|
|
|
|
+ <image
|
|
|
|
+ @click="tab('/pages/shop/hotel/index')"
|
|
|
|
+ :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg3 : '../../static/bj.jpg'"
|
|
|
|
+ style="height: 77px;width: 100%;border-radius: 5px;"
|
|
|
|
+ mode="aspectFill"
|
|
|
|
+ ></image>
|
|
|
|
+ <image
|
|
|
|
+ @click="navigate('/pages/other/feedback')"
|
|
|
|
+ :src="aboutUs.bgImg1 ? ip + aboutUs.bgImg4 : '../../static/bj.jpg'"
|
|
|
|
+ style="height: 77px;width: 100%;margin-top: 5px;border-radius: 5px;"
|
|
|
|
+ mode="aspectFill"
|
|
|
|
+ ></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="it">
|
|
<view class="it">
|
|
<view class="v_title">
|
|
<view class="v_title">
|
|
<image src="../../static/lo.png" class="lo" mode="widthFix"></image>
|
|
<image src="../../static/lo.png" class="lo" mode="widthFix"></image>
|
|
@@ -46,7 +70,7 @@
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="jq_item" v-for="(item, index) in hot_list" :key="index" @click="detail(item)">
|
|
<view class="jq_item" v-for="(item, index) in hot_list" :key="index" @click="detail(item)">
|
|
- <image :src="ip + item.showPictures" class="bmg"></image>
|
|
|
|
|
|
+ <image :src="ip + item.showPictures" class="bmg" mode="aspectFill"></image>
|
|
<view class="tit omit">{{ item.title }}</view>
|
|
<view class="tit omit">{{ item.title }}</view>
|
|
<view class="desc omit">{{ item.briefContent }}</view>
|
|
<view class="desc omit">{{ item.briefContent }}</view>
|
|
</view>
|
|
</view>
|
|
@@ -62,11 +86,11 @@
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="jq_item flex" v-for="(item, index) in zn_list" :key="index" @click="detail(item)">
|
|
<view class="jq_item flex" v-for="(item, index) in zn_list" :key="index" @click="detail(item)">
|
|
- <view class="f" style="height: 200px;border-radius: 5px;"><image :src="ip + item.showPictures" class="img"></image></view>
|
|
|
|
|
|
+ <view class="f" style="height: 200px;border-radius: 5px;"><image :src="ip + item.showPictures" mode="aspectFill" class="img"></image></view>
|
|
<view class="f" style="padding: 10px;">
|
|
<view class="f" style="padding: 10px;">
|
|
- <view class="tit omit">{{ item.title }}</view>
|
|
|
|
|
|
+ <view class="tit omit" style="margin-top: -12px;">{{ item.title }}</view>
|
|
<view class="str-summery">{{ item.briefContent }}</view>
|
|
<view class="str-summery">{{ item.briefContent }}</view>
|
|
- <view class="lx">浏览</view>
|
|
|
|
|
|
+ <view class="lx" style="margin-top: 14px; width: 82px;float: right;">浏览</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -91,18 +115,21 @@ export default {
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
this.getData();
|
|
this.getData();
|
|
- //天气接口
|
|
|
|
- uni.request({
|
|
|
|
- url: this.$http.urls.weather,
|
|
|
|
- success: res => {
|
|
|
|
- if (!res.data.errcode) {
|
|
|
|
- this.weather = res.data;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ 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"})
|
|
//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: {
|
|
methods: {
|
|
|
|
+ getWeather() {
|
|
|
|
+ //天气接口
|
|
|
|
+ uni.request({
|
|
|
|
+ url: this.$http.urls.weather,
|
|
|
|
+ success: res => {
|
|
|
|
+ if (!res.data.errcode) {
|
|
|
|
+ this.weather = res.data;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
getData() {
|
|
getData() {
|
|
this.$http.request({
|
|
this.$http.request({
|
|
url: this.$http.urls.home,
|
|
url: this.$http.urls.home,
|
|
@@ -162,7 +189,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.ms {
|
|
.ms {
|
|
- font-size: 22px;
|
|
|
|
|
|
+ font-size: 20px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
@@ -181,6 +208,9 @@ export default {
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.a1 {
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+}
|
|
.it {
|
|
.it {
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
}
|
|
}
|