Browse Source

公共服务、图游改版

master
jiazhipeng 7 months ago
parent
commit
7c9e2e60c2
  1. 2
      app.js
  2. 12
      pages/index/index.js
  3. 6
      pages/index/index.wxml
  4. 10
      pages/map/index.wxml
  5. 2
      pages/map/index.wxss

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件 // 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest128? true : false; data.isTest = data.isTest129? true : false;
data.indexSeason = null data.indexSeason = null
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {

12
pages/index/index.js

@ -410,6 +410,7 @@ Page({
hotIndex: 0, hotIndex: 0,
indexHot: [], indexHot: [],
weather: null, weather: null,
showMore: false,
// 页面图片 // 页面图片
// imageSourceList:imageSource, // imageSourceList:imageSource,
@ -462,6 +463,7 @@ Page({
}) })
this.getUrlToPage() this.getUrlToPage()
this.getShowMore()
}, },
showImg (img) { showImg (img) {
@ -518,7 +520,7 @@ Page({
}) })
} else { } else {
// 小程序是3 // 小程序是3
commonApi._post("adv/get_home_ui", {type_id: 15}).then(res => { commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
let obj = {}; let obj = {};
(res.data.content||[]).forEach(item => { (res.data.content||[]).forEach(item => {
obj[item.id] = item.image obj[item.id] = item.image
@ -588,6 +590,14 @@ Page({
}) })
}, },
getShowMore () {
commonApi._post("multimedia/detail", {id: 2462}).then(res => {
this.setData({
showMore: res.data.company_name ==1?true:false
})
})
},
// --------------------banner 相关--------------------------- // --------------------banner 相关---------------------------

6
pages/index/index.wxml

@ -170,10 +170,10 @@
<!-- 公共服务 --> <!-- 公共服务 -->
<view class="sale-road-boxes" style="margin-top:0;" wx:if="{{func_data.service_public}}"> <view class="sale-road-boxes" style="margin-top:0;" wx:if="{{func_data.service_public}}">
<image lazy-load class="common-header-img" mode="heightFix" src="{{indexSeason.ggfw}}"></image> <image lazy-load class="common-header-img" mode="heightFix" src="{{indexSeason.ggfw}}"></image>
<!-- <navigator url="/pages/pbService/index" catchtap="pagePoint" data-event="public_view" class="title-more"> <navigator url="/pages/pbService/index" catchtap="pagePoint" data-event="public_view" class="title-more" wx:if="{{showMore}}">
<view style="height: 40rpx;line-height: 40rpx;">更多 ></view> --> <view style="height: 40rpx;line-height: 40rpx;">更多 ></view>
<!-- <image lazy-load style="width: 12rpx;height: 20rpx;margin-left: 8rpx;" src="https://static.ticket.sz-trip.com/uploads/20250526/e6b945c42851563e9672c6992057bd91.png" mode="" /> --> <!-- <image lazy-load style="width: 12rpx;height: 20rpx;margin-left: 8rpx;" src="https://static.ticket.sz-trip.com/uploads/20250526/e6b945c42851563e9672c6992057bd91.png" mode="" /> -->
<!-- </navigator> --> </navigator>
</view> </view>
<view wx:if="{{func_data.service_public}}"> <view wx:if="{{func_data.service_public}}">
<view class="ggfw-list" style="width:100%;margin-top: 30rpx;"> <view class="ggfw-list" style="width:100%;margin-top: 30rpx;">

10
pages/map/index.wxml

@ -28,9 +28,13 @@
<image lazy-load class="menu-item-img" src="{{type==3?'https://static.ticket.sz-trip.com/uploads/20240123/bf35245fe360ee8ff7194deff26285e5.png':'https://static.ticket.sz-trip.com/uploads/20240123/8e81faa85e98a7bee269ef9fdbfd6628.png'}}" mode="aspectFill"/> <image lazy-load class="menu-item-img" src="{{type==3?'https://static.ticket.sz-trip.com/uploads/20240123/bf35245fe360ee8ff7194deff26285e5.png':'https://static.ticket.sz-trip.com/uploads/20240123/8e81faa85e98a7bee269ef9fdbfd6628.png'}}" mode="aspectFill"/>
<text class="text">酒店</text> <text class="text">酒店</text>
</view> </view>
<view class="menu-item{{type==4?' active':''}}" bindtap="changeType" data-title="公共自行车" data-type="4"> <!-- <view class="menu-item{{type==4?' active':''}}" bindtap="changeType" data-title="公共自行车" data-type="4">
<image lazy-load class="menu-item-img" src="{{type==4?'https://static.ticket.sz-trip.com/uploads/20240123/8a953d4354ce4fd6b63832d00ba1d93a.png':'https://static.ticket.sz-trip.com/uploads/20240123/47a1dc475686ef5a080ba2a297dd78d8.png'}}" mode="aspectFill"/> <image lazy-load class="menu-item-img" src="{{type==4?'https://static.ticket.sz-trip.com/uploads/20240123/8a953d4354ce4fd6b63832d00ba1d93a.png':'https://static.ticket.sz-trip.com/uploads/20240123/47a1dc475686ef5a080ba2a297dd78d8.png'}}" mode="aspectFill"/>
<text class="text">公共自行车</text> <text class="text">公共自行车</text>
</view> -->
<view class="menus-item{{type==7?' active':''}}" bindtap="changeType" data-title="运河十景" data-type="7">
<image lazy-load class="menu-item-img" src="{{type==7?'https://static.ticket.sz-trip.com/uploads/20240123/c57bfbb67fe73593904e92188399ea10.png':'https://static.ticket.sz-trip.com/uploads/20240123/c99e25679e5c1d5a9e0587ddcb278948.png'}}" mode="aspectFill"/>
<text class="text">运河十景</text>
</view> </view>
</view> </view>
</view> </view>
@ -71,10 +75,10 @@
<image lazy-load class="menu-item-img" src="{{type==5?'https://static.ticket.sz-trip.com/uploads/20240123/a1c54d7b95d69646d55a7cb66a5b7ba2.png':'https://static.ticket.sz-trip.com/uploads/20240123/491264b09539365d16c8f625a5c40258.png'}}" mode="aspectFill"/> <image lazy-load class="menu-item-img" src="{{type==5?'https://static.ticket.sz-trip.com/uploads/20240123/a1c54d7b95d69646d55a7cb66a5b7ba2.png':'https://static.ticket.sz-trip.com/uploads/20240123/491264b09539365d16c8f625a5c40258.png'}}" mode="aspectFill"/>
<text class="text">美食</text> <text class="text">美食</text>
</view> </view>
<view class="menus-item{{type==4?' active':''}}" bindtap="changeType" data-title="公共自行车" data-type="4"> <!-- <view class="menus-item{{type==4?' active':''}}" bindtap="changeType" data-title="公共自行车" data-type="4">
<image lazy-load class="menu-item-img" src="{{type==4?'https://static.ticket.sz-trip.com/uploads/20240123/8a953d4354ce4fd6b63832d00ba1d93a.png':'https://static.ticket.sz-trip.com/uploads/20240123/47a1dc475686ef5a080ba2a297dd78d8.png'}}" mode="aspectFill"/> <image lazy-load class="menu-item-img" src="{{type==4?'https://static.ticket.sz-trip.com/uploads/20240123/8a953d4354ce4fd6b63832d00ba1d93a.png':'https://static.ticket.sz-trip.com/uploads/20240123/47a1dc475686ef5a080ba2a297dd78d8.png'}}" mode="aspectFill"/>
<text class="text">公共自行车</text> <text class="text">公共自行车</text>
</view> </view> -->
<view class="menus-item{{type==7?' active':''}}" bindtap="changeType" data-title="运河十景" data-type="7"> <view class="menus-item{{type==7?' active':''}}" bindtap="changeType" data-title="运河十景" data-type="7">
<image lazy-load class="menu-item-img" src="{{type==7?'https://static.ticket.sz-trip.com/uploads/20240123/c57bfbb67fe73593904e92188399ea10.png':'https://static.ticket.sz-trip.com/uploads/20240123/c99e25679e5c1d5a9e0587ddcb278948.png'}}" mode="aspectFill"/> <image lazy-load class="menu-item-img" src="{{type==7?'https://static.ticket.sz-trip.com/uploads/20240123/c57bfbb67fe73593904e92188399ea10.png':'https://static.ticket.sz-trip.com/uploads/20240123/c99e25679e5c1d5a9e0587ddcb278948.png'}}" mode="aspectFill"/>
<text class="text">运河十景</text> <text class="text">运河十景</text>

2
pages/map/index.wxss

@ -583,7 +583,7 @@
display: flex; display: flex;
/* justify-content: space-around; */ /* justify-content: space-around; */
flex-wrap: wrap; flex-wrap: wrap;
width: calc(170rpx * 8); width: calc(170rpx * 7);
margin: 0 20rpx; margin: 0 20rpx;
} }

Loading…
Cancel
Save