jiazhipeng 2 months ago
parent
commit
bdecc22400
  1. 20
      pages.json
  2. 2
      pages/index/index.vue
  3. 39
      pages/map/map.vue
  4. 57
      subPackages/h5Web/h5Web.vue
  5. 6
      subPackages/other/consulting.vue

20
pages.json

@ -16,7 +16,7 @@
{ {
"path" : "pages/map/map", "path" : "pages/map/map",
"style" : { "style" : {
"navigationBarTitleText" : "智游常熟" "navigationBarTitleText" : "文体旅地图"
} }
}, },
{ {
@ -264,6 +264,12 @@
"style" : { "style" : {
"navigationBarTitleText" : "智游常熟" "navigationBarTitleText" : "智游常熟"
} }
},
{
"path": "h5Web/h5Web",
"style": {
"navigationBarTitleText": ""
}
} }
] ]
} }
@ -283,12 +289,12 @@
"selectedIconPath" : "/static/images/selectHome.png", "selectedIconPath" : "/static/images/selectHome.png",
"text" : "首页" "text" : "首页"
}, },
// { {
// "pagePath" : "pages/map/map", "pagePath" : "pages/map/map",
// "iconPath" : "/static/images/map.png", "iconPath" : "/static/images/map.png",
// "selectedIconPath" : "/static/images/selectMap.png", "selectedIconPath" : "/static/images/selectMap.png",
// "text" : "地图" "text" : "文体旅地图"
// }, },
{ {
"pagePath" : "pages/user/user", "pagePath" : "pages/user/user",
"iconPath" : "/static/images/mine.png", "iconPath" : "/static/images/mine.png",

2
pages/index/index.vue

@ -257,7 +257,7 @@
path: '/subPackages/other/gonggtcc' path: '/subPackages/other/gonggtcc'
}, },
{ {
title: '咨询投诉', title: '公共咨询',
img: 'https://static.ticket.sz-trip.com/changshu/images/index/2025/summer/zxts.png', img: 'https://static.ticket.sz-trip.com/changshu/images/index/2025/summer/zxts.png',
path: '/subPackages/other/consulting' path: '/subPackages/other/consulting'
}, },

39
pages/map/map.vue

@ -1,11 +1,44 @@
<template> <template>
<view class="" style="text-align: center;padding-top: 50rpx;"> <view class="content">
开发中 <web-view :src="src"></web-view>
</view> </view>
</template> </template>
<script> <script>
export default {
data() {
return {
src: ''
}
},
onShow() {
this.checkIsLoginJdsz().then(res => {
if(res) {
this.src = 'https://chang-map.js-dyyj.com?token=' + res
}
})
//
// let userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {}
// console.log(userInfo)
// if(userInfo.token) {
// this.src = 'https://chang-map.js-dyyj.com?token=' + userInfo.token
// console.log(this.src)
// }else {
// uni.navigateTo({
// url: '/pages/login/login'
// })
// }
},
methods: {
}
}
</script> </script>
<style> <style lang="scss" scoped>
.content {
width: 100vw;
height: 100vh;
padding-bottom: env(safe-area-inset-bottom)
}
</style> </style>

57
subPackages/h5Web/h5Web.vue

@ -0,0 +1,57 @@
<template>
<view></view>
</template>
<script>
export default {
data() {
return {
}
},
onShow() {
//
const oTherMiniprogramIsBack = uni.getStorageSync('oTherMiniprogramIsBack')
if(oTherMiniprogramIsBack) {
uni.showModal({
title: '是否返回常熟小程序',
success: () => {
uni.removeStorageSync('oTherMiniprogramIsBack')
uni.navigateBack();
}
})
}
},
onLoad(option) {
let data = JSON.parse(option.data)
if(data && data.type == 'xcx') {
uni.navigateToMiniProgram({
shortLink: data.url,
success(res) {
uni.setStorageSync('oTherMiniprogramIsBack', 1)
}
})
}else if(data && data.type == 'map') {
uni.openLocation({
longitude: Number(data.lon), //
latitude: Number(data.lat), //
name: data.address || data.title || data.name, //
address: data.address, //
// complete: res => {
// if(res.errMsg.indexOf("openLocation:ok") != -1) {
// uni.switchTab({
// url: '/pages/map/map'
// })
// }
// }
success: res => {
uni.setStorageSync('oTherMiniprogramIsBack', 1)
}
})
}
}
}
</script>
<style>
</style>

6
subPackages/other/consulting.vue

@ -11,15 +11,15 @@
</view> </view>
</view> </view>
<view class="tbb"> <view class="tbb">
<view class="tbboxs" v-for="(el,ind) in allData" :key="el.id" @click="go(el.tel)"> <view class="tbboxs" @click="go('0512-66555111')">
<view class="tboxbot"> <view class="tboxbot">
<view class="tbtitle"> <view class="tbtitle">
<view class="tbtitle-il"> <view class="tbtitle-il">
<image :src="$getimg('img-iphone.png')" mode="" class="il-img"></image> <image :src="$getimg('img-iphone.png')" mode="" class="il-img"></image>
</view> </view>
<view class="tbname"> <view class="tbname">
<view class="tbname-l">{{el.name}}</view> <view class="tbname-l">咨询电话</view>
<view class="tbname-k">{{el.tel}}</view> <view class="tbname-k">0512-66555111</view>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save