配置更新和页面优化

- 更新了API和页面请求的URL配置,以指向新的服务器地址。
- 优化了首页和部分子页面的布局和交互,增强了用户体验。- 修正了个人中心页面的订单按钮布局和景区、酒店订单的路由。
- 优化了瀑布流组件的显示逻辑,确保内容加载和布局的稳定性。
-进行了各类列表展示的优化,提升了页面加载速度和性能。此次更新涉及多个页面和组件的调整,旨在提升系统的整体性能和用户交互体验。
lu_quan_dev
Tuzki 1 year ago
parent 39a3069d1d
commit 1dcb81f481
  1. 4
      common/config.js
  2. 5
      components/gaoyia-parse/components/wxParseTemplate1.vue
  3. 145
      pages/index/index.vue
  4. 618
      pages/personcenter/personcenter.1vue
  5. 68
      pages/personcenter/personcenter.vue
  6. 6
      pages/zhoubian/zhoubian/zhoubian.vue
  7. BIN
      static/animg/personCenter/hotelDd.png
  8. BIN
      static/animg/personCenter/senceDd.png
  9. 2
      subPageA/food/fooddetial/fooddetial.vue
  10. 2
      subPageA/travelroute/travelroutelist/travelroutelist.vue

@ -1,9 +1,9 @@
// const REAUEST_ROOTPATH = "https://hdyjy.jiangongtong.cn/";
// const REAUEST_ROOTPATH = "https://app.xawl.gov.cn/";
// const ROOTPATH = "https://app.xawl.gov.cn/";
const REAUEST_ROOTPATH = "http://192.168.110.113:8083";
const REAUEST_ROOTPATH = "http://192.168.130.205:8083";
// const REAUEST_ROOTPATH = "http://192.168.0.181:8083/";
const ROOTPATH = "http://192.168.110.113:8083";
const ROOTPATH = "http://192.168.130.205:8083";
//票务根
const PWPATH = "http://192.168.130.157:48080/app-api";
//手绘图项目名称

@ -42,7 +42,7 @@
<!--其他标签-->
<view v-else :class="node.classStr" :style="node.styleStr">
<block v-for="(node, index) of node.nodes" :key="index">
<block v-for="(node, index) in node.nodes" :key="index">{{ node }}
<wx-parse-template :node="node.replace(/^\s+|\s+$/g, '')" />
</block>
</view>
@ -71,6 +71,9 @@
wxParseAudio,
wxParseTable
},
mounted() {
console.log(this.node,'node----')
},
methods: {
wxParseATap(attr,e) {
const {

@ -88,40 +88,35 @@
</view>
</view>
<!-- 滑动nav -->
<!-- <view class="m-slide-nav">
<view
:class="['m-slide-item', currIndex == index ? 'curr' : '']"
v-for="(item, index) in slideNav"
@tap="changeIndex(index)"
>
<view class="m-slide-nav">
<view :class="['m-slide-item', currIndex == index ? 'curr' : '']" v-for="(item, index) in slideNav"
@tap="changeIndex(index)">
{{ item }}
</view>
</view> -->
</view>
<!-- 景区 -->
<view class="amb_60" v-if="scenicList && scenicList.length > 0">
<view class="an_box_2" @click="goToPages('jingqu')">
<view class="an_t">
<view class="amb_30" v-if="scenicList && scenicList.length > 0&&currIndex == 0">
<view class="an_box_2">
<view class="an_t" @click="goToPages('jingqu')">
<view class="an_t_1">大美鹿泉</view>
<!-- <view class="an_t_2">天蓝地绿 水城共融</view> -->
<!-- <view class="an_t_2">特色文创和旅游商品</view> -->
</view>
</view>
<!-- 景区列表 -->
<view class="aml_30">
<scroll-view class="anx_scl_1" scroll-x="true" @scroll="scroll" scroll-left="0">
<view class="scl_1_ut">
<view class="dy_fx">
<view class="fx_1 scl1_pic" v-for="(item, index) in scenicList" :key="index"
@tap="goToDetail('scenic', item.guid)">
<image :src="item.slogo" mode="aspectFill" class="scl_1_img"></image>
<!-- 瀑布流 -->
<view class="amt_30">
<view class="an_pbl dy_fx_row" style="flex-wrap: wrap;">
<view class="w_two" v-for="(item, index) in scenicList" :key="index"
@tap="goToDetail('xiadan', item.guid)">
<view class="">
<image :src="item.slogo" mode="aspectFill" class="pbl_1_img"></image>
<view class="h-name">{{ item.sname }}</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<!-- 酒店 -->
<view class="amb_30" v-if="hotelList && hotelList.length > 0">
<view class="amb_30" v-if="hotelList && hotelList.length > 0 && currIndex == 2">
<view class="an_box_2">
<view class="an_t" @click="goToPages('hotel')">
<view class="an_t_1">酒店</view>
@ -142,89 +137,32 @@
</view>
</view>
<!-- 美食 -->
<view class="amb_30" v-if="foodList && foodList.length > 0">
<view class="amb_30" v-if="foodList && foodList.length > 0 && currIndex == 1">
<view class="an_box_2">
<view class="an_t" @click="goToPages('meishi')">
<view class="an_t_1">鹿泉味道</view>
<!-- <view class="an_t_2">记忆·鹿泉味道旅游美食活动</view> -->
</view>
</view>
<view @tap="goToDetail('food', item.guid, '')" v-if="index < 3" class="an_box_2"
v-for="(item, index) in foodList" :key="index">
<view class="ls_inf_box lunb_img">
<image :src="item.logo" mode="aspectFill" class="swp_2_img"></image>
<view class="an_v_inf">
<view class="lst_tit word_1">{{ item.title }}</view>
<view class="lsinf word_2">{{ item.content }}</view>
</view>
</view>
</view>
</view>
<!-- 非遗 -->
<view class="amb_30" v-if="feiyiList && feiyiList.length > 0">
<view class="an_box_2">
<view class="an_t" @click="goToPages('feiyi')">
<view class="an_t_1">非遗</view>
<!-- <view class="an_t_2">非物质文化遗产</view> -->
<!-- <view class="an_t_2">特色文创和旅游商品</view> -->
</view>
<!-- 瀑布流 -->
<view class="amt_30">
<view class="an_pbl dy_fx_row" style="flex-wrap: wrap;">
<view class="w_two" v-for="(item, index) in feiyiList" :key="index" @tap="goToDetail('feiyi', item.guid)">
<view class="w_two" v-for="(item, index) in foodList" :key="index"
@tap="goToDetail('xiadan', item.guid, '')">
<view class="">
<image :src="item.logo" mode="aspectFill" class="pbl_1_img"></image>
<view class="h-name">{{ item.title }}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 非遗 -->
<!-- 旅游线路 -->
<view class="amb_60" v-if="lineList && lineList.length > 0 || lineOneList && lineOneList!={}">
<view class="an_box_2">
<view class="an_t" @click="goToPages('line')">
<view class="an_t_1">旅游线路</view>
<!-- <view class="an_t_2">风景旅游 人生记忆</view> -->
</view>
<view class="amt_30">
<view class="anx_ls_1" @click="goToDetail('line', lineOneList.guid)">
<image :src="lineOneList.llogo" mode="aspectFill" class="an_ls_img"></image>
<view class="anxls_t">
<view class="lst_tit word_1">{{ lineOneList.lname }}</view>
</view>
</view>
<view class="amt_30" v-for="(item, index) in lineList" :key="index" @click="goToDetail('line', item.guid)">
<view class="dy_fx ls_inf_box">
<image :src="item.llogo" mode="aspectFill" class="an_ls_img2"></image>
<view class="fx_1 ls_txt">
<view class="lst_tit word_1">{{ item.lname }}</view>
<view class="lsinf word_3">{{ item.lspecial }}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!--特产 -->
<view class="amb_60" v-if="specialtyList && specialtyList.length > 0">
<view class="an_box_2">
<view class="an_t" @click="goToPages('techan')">
<view class="an_t_1">特产</view>
<!-- <view class="an_t_2">历史沿革 民俗活动</view> -->
</view>
</view>
<view @tap="goToDetail('speciallty', item.guid, '')" v-if="index < 3" class="an_box_2"
v-for="(item, index) in specialtyList" :key="index">
<view class="ls_inf_box lunb_img">
<image :src="item.logo" mode="aspectFill" class="swp_2_img"></image>
<view class="an_v_inf">
<view class="lst_tit word_1">{{ item.title }}</view>
<view class="lsinf word_2">{{ item.content }}</view>
</view>
</view>
</view>
</view>
</view>
<f-login></f-login>
</view>
@ -239,7 +177,7 @@ export default {
data() {
return {
currIndex: 0,
slideNav: ["热门推荐", "怎么玩", "吃什么", "住哪里", "去哪买"],
slideNav: ["怎么玩", "吃什么", "住哪里"],
trueVcal: true,
falseDots: false,
@ -414,7 +352,8 @@ export default {
this.image3 = this.images[0];
//
var scenicList = initData.scenicList;
var scLength = scenicList.length > 4 ? 4 : scenicList.length;
// var scLength = scenicList.length > 4 ? 4 : scenicList.length;
var scLength = scenicList.length;
var scdata = [];
for (let i = 0; i < scLength; i++) {
scenicList[i].slogo = this.$config.ROOTPATH + scenicList[i].slogo;
@ -423,7 +362,8 @@ export default {
this.scenicList = scdata;
//
var foodList = initData.foodList;
var foodLength = foodList.length > 4 ? 4 : foodList.length;
// var foodLength = foodList.length > 4 ? 4 : foodList.length;
var foodLength = foodList.length;
for (var i = 0; i < foodLength; i++) {
var item = {
logo: this.$config.ROOTPATH + foodList[i].logo,
@ -436,7 +376,8 @@ export default {
}
//线
var lineList = initData.lineList;
var lineLength = lineList.length > 4 ? 4 : lineList.length;
// var lineLength = lineList.length > 4 ? 4 : lineList.length;
var lineLength = lineList.length;
var list = [];
for (var i = 0; i < lineLength; i++) {
lineList[i].llogo = this.$config.ROOTPATH + lineList[i].llogo;
@ -455,7 +396,8 @@ export default {
//
debugger
var hotelList = initData.hotelList;
var hotelLength = hotelList.length > 4 ? 4 : hotelList.length;
// var hotelLength = hotelList.length > 4 ? 4 : hotelList.length;
var hotelLength = hotelList.length;
var list1 = [];
for (var i = 0; i < hotelLength; i++) {
hotelList[i].hlogo = this.$config.ROOTPATH + hotelList[i].hlogo;
@ -465,7 +407,8 @@ export default {
//
var specialtyList = initData.specialtyList;
var specialltyLength = specialtyList.length > 4 ? 4 : specialtyList.length;
// var specialltyLength = specialtyList.length > 4 ? 4 : specialtyList.length;
var specialltyLength = specialtyList.length;
var list2 = [];
for (var i = 0; i < specialltyLength; i++) {
specialtyList[i].slogo = this.$config.ROOTPATH + specialtyList[i].slogo;
@ -475,7 +418,8 @@ export default {
this.specialtyList = list2;
//
var feiyiList = initData.feiyiList;
var feiyiLength = feiyiList.length > 4 ? 4 : feiyiList.length;
// var feiyiLength = feiyiList.length > 4 ? 4 : feiyiList.length;
var feiyiLength = feiyiList.length;
var list3 = [];
for (var i = 0; i < feiyiLength; i++) {
feiyiList[i].logo = this.$config.ROOTPATH + feiyiList[i].logo;
@ -859,7 +803,7 @@ export default {
margin-top: 20rpx;
.m-slide-item {
width: 20%;
width: 33%;
font-family: Source Han Sans SC;
font-weight: 400;
font-size: 30rpx;
@ -868,17 +812,18 @@ export default {
transition: all ease-in-out 0.2s;
z-index: 1;
background-repeat: no-repeat;
background-size: 50%;
background-position: 0 15px;
background-size: 25%;
background-position: 50% 15px;
padding-bottom: 10px;
text-align: center;
}
.curr {
scale: 1.1;
background-image: url("@/static/animg/index/active-nav-bg.png");
background-repeat: no-repeat;
background-size: 50%;
background-position: 10px 15px;
background-size: 30%;
background-position: 50% 15px;
padding-bottom: 10px;
}
}

@ -1,618 +0,0 @@
<template>
<view>
<!-- 头部 -->
<view class="dzhi_top" >
<!-- <image src="/static/images/img2/dzhi_topbg.png" class="dzhi_t_bg" mode="aspectFill"></image> -->
<view class="mode_com">
<view class="dly_flex person_inf">
<view class="pers_box" @tap="oauthUser()">
<view class="pes_img">
<!-- 默认头像 -->
<button class="btn_dzhi">
<!--授权按钮-->
<image :src="headimgurl" mode="aspectFill" class="pers_box"></image>
</button>
</view>
</view>
<view class="pes_inf aml_30">
<!-- 用户昵称 -->
<view class="t_adm_box">
<text class="t_hi">Hi</text>
<!-- <text class="t_nic">{{nickname}}阳光夏~小葵</text> -- 已登录状态 显示用户昵称 -->
<text class="t_nic">{{ nickname }}</text>
<!--登录后 退出按钮-->
<text v-if="isLogin" class="pes_img_tc" @tap="jump('logoutWechat')" >退出</text>
</view>
</view>
<!-- 头像 -->
</view>
</view>
</view>
<view class="mode_com ">
<text class="tit_com">我的应用</text>
<view class="dly_flex hd_pter mt_hb dzhi_bq2" style="background: #fff; padding-bottom: 40rpx; border-radius: 20rpx;">
<view class="w_33" @tap="jump('myComment')">
<view class=""><image src="/static/animg/personCenter/p_wdpj.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">我的评价</text>
</view>
<view class="w_33" v-if="isFlag">
<!-- p_ddan.png p_tsu.png -->
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">我的订单</text>
</view>
<view class="w_33" v-if="isFlag">
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">在线投诉</text>
</view>
<view class="w_33" @tap="jump('tousu')">
<view class=""><image src="/static/animg/personCenter/p_lyts.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">留言投诉</text>
</view>
<view class="w_33" @tap="jump('aboutus')">
<view class=""><image src="/static/animg/personCenter/p_gywm.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">关于我们</text>
</view>
<view class="w_33" @tap="jump('update')" v-if="isUpdate">
<view class=""><image src="/static/animg/personCenter/p_xtgx.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">系统更新</text>
</view>
<view class="w_33" @tap="jump('delete')" v-if="isUpdate">
<view class=""><image src="/static/animg/personCenter/p_gly.png" class="kou_top3" mode="aspectFill"></image></view>
<text class="ht_text">注销账号</text>
</view>
</view>
</view>
<!-- 工具栏 -->
</view>
</template>
<script>
var that;
import aes from "@/common/aes.js";
export default {
data() {
that = this;
return {
headimgurl: '/static/animg/personCenter/adm_img.png',
nickname: '点击头像授权',
isUpdate: true,
isLogin: false,
isShowOnlinets: 'NO',
isFlag: false,
scenicList: [],
hotelList: [],
lineList: [],
foodImgList: [],
methodImgList: [],
scenicGZType: 'NO',
hotelGZType: 'NO',
lineGZType: 'NO',
foodGZType: 'NO',
methodGZType: 'NO',
scenicSelectStr: '',
hotelSelectStr: '',
lineSelectStr: '',
imgBase64: '',
adminId: '',
isAdminLogin: false
};
},
onShow() {
if (!this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
this.isLogin = true;
that.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
that.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
}
if (aes.aesDecrypt(uni.getStorageSync('adminId')) != undefined && aes.aesDecrypt(uni.getStorageSync('adminId')) != null && aes.aesDecrypt(uni.getStorageSync('adminId')) != '') {
this.adminId = uni.getStorageSync('adminId');
this.isAdminLogin = true;
}
},
onLoad(options) {
if (aes.aesDecrypt(uni.getStorageSync('adminId')) != undefined && aes.aesDecrypt(uni.getStorageSync('adminId')) != null && aes.aesDecrypt(uni.getStorageSync('adminId')) != '') {
this.adminId =aes.aesDecrypt(uni.getStorageSync('adminId'));
this.isAdminLogin = true;
}
this.getRedisData();
// options = this.$param.user_info;
var that = this;
this.getIsShow();
// #ifdef H5
if (this.$wechat.isWechat()) {
//weixin 是否显示更新
this.isUpdate = false;
} else {
this.isUpdate = true;
}
// #endif
if (uni.getStorageSync('oauthTime') + this.$param.update_oauthTime < new Date().getTime()) {
// uni.removeStorageSync("user_token");
uni.removeStorageSync('nickname');
uni.removeStorageSync('unionid');
uni.removeStorageSync('headimgurl');
}
uni.showLoading({
mask: true,
title: '授权中',
success() {
setTimeout(function() {
uni.hideLoading();
}, 3000);
}
});
},
methods: {
saveLoginLog: function(unionid) {
var that = this;
uni.getSystemInfo({
success(e) {
var model = e.model + ' ' + e.system;
var platform = e.platform;
var data = {
userkey: that.$param.userkey,
unionid: unionid,
model: model,
platform: platform
};
that.$Request.post(that.$config.insertLoginLog, data).then(res => {
if (res.status == 200) {
console.log('记录成功');
}
});
}
});
},
getRedisData: function() {
var data = {
key: this.$param.userkey + '_xingqu'
};
this.$Request.post(this.$config.getRedisData, data).then(res => {
if (res.status == 200) {
//所有的数据
var initData = res.data;
//景区
this.scenicList = initData.scenicList;
//酒店
this.hotelList = initData.hotelList;
//线路
this.lineList = initData.lineList;
//美食
this.foodImgList = initData.foodImgList;
for (var i = 0; i < this.foodImgList.length; i++) {
this.foodImgList[i].logo = this.$config.ROOTPATH + this.foodImgList[i].logo;
}
//攻略
this.methodImgList = initData.methodImgList;
for (var i = 0; i < this.methodImgList.length; i++) {
this.methodImgList[i].logo = this.$config.ROOTPATH + this.methodImgList[i].logo;
}
} else {
}
});
},
/* 是否显示投诉功能 */
getIsShow: function() {
this.$Request.post(this.$config.getYbsjSysParam, {}).then(res => {
var d = res.data;
this.isShowOnlinets = d.is_show_onlinets;
});
},
oauthUser: function() {
if (this.isLogin) {
return;
} else {
uni.showLoading({
mask: true,
title: '授权中',
success() {
setTimeout(function() {
// uni.showToast({
// title:"授权失败,点击"+that.nickname+"重新授权",
// icon:"none",
// duration: 1500
// })
uni.hideLoading();
}, 3000);
}
});
// #ifdef H5
if (this.$wechat.isWechat()) {
//weixin 授权
that.$util.getUser(this, 'person', '', '');
} else {
switch (uni.getSystemInfoSync().platform) {
case 'android':
//安卓授权
var that = this;
this.$util.bindGpsObj(that);
Android.gotoDetial('WxUserInfo', '');
break;
case 'ios':
//ios授权
var that = this;
this.$util.bindGpsObj(that);
window.location.href = 'https://www.baidu.com?url=wechat';
break;
}
}
// #endif
}
},
callBackMethod: function() {
// clearTimeout(timer);
this.isLogin = true;
that.nickname = aes.aesDecrypt(uni.getStorageSync('nickname'));
that.headimgurl = aes.aesDecrypt(uni.getStorageSync('headimgurl'));
that.getUserInterest(); //回显兴趣定制数据
that.getAndroidUserKey(); //推送
uni.hideLoading();
that.saveLoginLog(aes.aesDecrypt(uni.getStorageSync('unionid')));
},
jump: function(obj) {
if (obj == 'aboutus') {
uni.navigateTo({
url: '/subPageA/personcenter/aboutus'
});
} else if (obj == 'tousu') {
if (this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
uni.showToast({
title: '请先授权',
icon: 'none'
});
return;
}
uni.navigateTo({
url: '/subPageA/suggest/sug_list'
});
} else if (obj == 'update') {
uni.navigateTo({
url: '/subPageA/personcenter/update'
});
} else if (obj == 'fanyi') {
uni.navigateTo({
url: '/subPageA/translate/translate'
});
} else if (obj == 'phonetousu') {
uni.navigateTo({
url: '/subPageA/tousu/tousulist/tousulist'
});
}
// else if (obj == 'guide') {
// uni.navigateTo({
// url: '/subPageA/guide/guidelist'
// });
// }
else if (obj == 'lvxingshe') {
uni.navigateTo({
url: '/pages/travel/travellist/travellist'
});
} else if (obj == 'admin') {
uni.navigateTo({
url: '/subPageA/personcenter/adminLogin/adminLogin'
});
} else if (obj == 'logout') {
uni.removeStorageSync('adminId');
this.adminId = '';
this.isAdminLogin = false;
} else if (obj == 'logoutWechat') {
if (!this.$util.isBlack(aes.aesDecrypt(uni.getStorageSync('unionid')))) {
uni.removeStorageSync('nickname');
uni.removeStorageSync('headimgurl');
uni.removeStorageSync('oauthTime');
uni.removeStorageSync('openid');
uni.removeStorageSync('unionid');
this.nickname = "点击头像授权";
this.headimgurl = "/static/animg/personCenter/adm_img.png";
this.isLogin = false;
}
} else if (obj == 'delete') {
var that = this;
uni.showModal({
title: '提示',
icon: 'none',
content:"该操作将会清空所有用户数据!是否注销账户",
success: function (res) {
if (res.confirm) {
that.deleteUserApp();
this.scenicGZType = 'NO',
this.hotelGZType = 'NO',
this.lineGZType = 'NO',
this.foodGZType = 'NO',
this.methodGZType = 'NO',
uni.removeStorageSync('nickname');
uni.removeStorageSync('headimgurl');
uni.removeStorageSync('oauthTime');
uni.removeStorageSync('openid');
uni.removeStorageSync('unionid');
this.nickname = "点击头像授权";
this.headimgurl = "/static/animg/personCenter/adm_img.png";
this.isLogin = false;
that.getRedisData();
} else if (res.cancel) {
}
}
});
}
},
scenicSelectXQ: function(dicnum, strType) {
console.log(dicnum);
var that = this;
var scenicList = this.scenicList;
for (var i = 0; i < scenicList.length; i++) {
var msgList = scenicList[i].msg;
var type = true;
for (var j = 0; j < msgList.length; j++) {
var json = msgList[j];
if (dicnum.indexOf('scenic') != -1) {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.scenicSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
type = false;
}
if (!type) {
if (json.dicnum.indexOf('scenic') == -1) {
json.isSelected = '';
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
}
} else {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.scenicSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
that.scenicSelectStr = that.scenicSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
msgList[0].isSelected = '';
type = false;
}
}
}
if (!type) {
if (strType == '') {
that.addUserInterest();
}
return;
}
}
},
hotelSelectXQ: function(dicnum, strType) {
var hotelList = this.hotelList;
for (var i = 0; i < hotelList.length; i++) {
var msgList = hotelList[i].msg;
var type = true;
for (var j = 0; j < msgList.length; j++) {
var json = msgList[j];
if (dicnum.indexOf('hotel') != -1) {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.hotelSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
type = false;
}
if (!type) {
if (json.dicnum.indexOf('hotel') == -1) {
json.isSelected = '';
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
}
} else {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.hotelSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
that.hotelSelectStr = that.hotelSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
msgList[0].isSelected = '';
type = false;
}
}
}
if (!type) {
if (strType == '') {
that.addUserInterest();
}
return;
}
}
},
lineSelectXQ: function(dicnum, strType) {
var lineList = this.lineList;
for (var i = 0; i < lineList.length; i++) {
var msgList = lineList[i].msg;
var type = true;
for (var j = 0; j < msgList.length; j++) {
var json = msgList[j];
if (dicnum.indexOf('line') != -1) {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.lineSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
type = false;
}
if (!type) {
if (json.dicnum.indexOf('line') == -1) {
json.isSelected = '';
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
}
} else {
if (json.dicnum == dicnum) {
json.isSelected = json.isSelected == '' ? 'select' : '';
if (json.isSelected == 'select') {
that.lineSelectStr += json.queryType + '_' + dicnum + ',';
} else {
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + json.dicnum + ',', '');
}
that.lineSelectStr = that.lineSelectStr.replace(json.queryType + '_' + msgList[0].dicnum + ',', '');
msgList[0].isSelected = '';
type = false;
}
}
}
if (!type) {
if (strType == '') {
that.addUserInterest();
}
return;
}
}
},
guanzhuTap: function(type) {
if (type == 'scenic') {
this.scenicGZType = this.scenicGZType == 'NO' ? 'YES' : 'NO';
that.addUserInterest();
} else if (type == 'hotle') {
this.hotelGZType = this.hotelGZType == 'NO' ? 'YES' : 'NO';
that.addUserInterest();
} else if (type == 'line') {
this.lineGZType = this.lineGZType == 'NO' ? 'YES' : 'NO';
that.addUserInterest();
} else if (type == 'food') {
this.foodGZType = this.foodGZType == 'NO' ? 'YES' : 'NO';
that.addUserInterest();
} else if (type == 'method') {
this.methodGZType = this.methodGZType == 'NO' ? 'YES' : 'NO';
that.addUserInterest();
}
},
getUserInterest: function() {
var that = this;
var data = {
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
userkey: this.$param.userkey
//userid: "2"
};
this.$Request.post(this.$config.getUserInterest, data).then(res => {
var data = res.data;
that.scenicGZType = data.scenic_isShow;
that.hotelGZType = data.hotel_isShow;
that.lineGZType = data.line_isShow;
that.foodGZType = data.food_isShow;
that.methodGZType = data.method_isShow;
var scenicArr = data.scenic_msg.split(',');
var hotelArr = data.hotel_msg.split(',');
var lineArr = data.line_msg.split(',');
for (var i = 0; i < scenicArr.length; i++) {
if (!this.$util.isBlack(scenicArr[i])) {
that.scenicSelectXQ(scenicArr[i].split('_')[1], 'hx');
}
}
for (var i = 0; i < hotelArr.length; i++) {
if (!this.$util.isBlack(hotelArr[i])) {
that.hotelSelectXQ(hotelArr[i].split('_')[1], 'hx');
}
}
for (var i = 0; i < lineArr.length; i++) {
if (!this.$util.isBlack(lineArr[i])) {
that.lineSelectXQ(lineArr[i].split('_')[1], 'hx');
}
}
});
},
addUserInterest: function() {
var data = {
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
//userid: "2",
scenicGZType: this.scenicGZType,
hotelGZType: this.hotelGZType,
lineGZType: this.lineGZType,
foodGZType: this.foodGZType,
methodGZType: this.methodGZType,
scenicSelectStr: this.scenicSelectStr,
hotelSelectStr: this.hotelSelectStr,
lineSelectStr: this.lineSelectStr,
userkey: this.$param.userkey
};
this.$Request.post(this.$config.addUserInterest, data).then(res => {
/* if(res.status == 200){
uni.showToast({
title: "保存成功",
duration: 2000
});
} */
});
},
deleteUserApp:function(){
var data = {
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
userkey: this.$param.userkey
};
this.$Request.post(this.$config.deleteUserApp, data).then(res => {
uni.showToast({
title: "注销成功!",
duration: 2000
});
});
},
getAndroidUserKey: function() {
this.$util.bindGpsObj(this);
switch (uni.getSystemInfoSync().platform) {
case 'android':
console.log('运行Android上');
Android.gotoDetial('DEVICEID', '');
break;
case 'ios':
console.log('运行iOS上');
window.location.href = 'https://www.baidu.com?url=tuisong';
break;
default:
break;
}
},
imgPushTest: function(code) {
if (!aes.aesDecrypt(uni.getStorageSync('imgPushType'))) {
var data = {
areacode: this.$config.ARER_CODE_FOUR,
userStr: code,
lng: this.$param.lng,
lat: this.$param.lat,
imgUrl: this.$config.REAUEST_ROOTPATH,
userkey: this.$param.userkey,
userid: aes.aesDecrypt(uni.getStorageSync('unionid')),
pageType: ''
};
this.$Request.post(this.$config.imgPushFun, data).then(res => {});
}
},
imgDistinguish: function() {
var that = this;
var pics = that.pics;
uni.chooseImage({
count: 1, // 最多可以选择的图片张数,默认9
sizeType: ['original', 'compressed'], // original 原图,compressed 压缩图,默认二者都有
sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有
success: function(res) {
uni.navigateTo({
url: '/subPageA/imgDistinguish/imgDistinguish?tempFilePaths=' + res.tempFilePaths[0]
});
}
});
}
}
};
</script>
<style>
@import url('/static/css/common.css');
@import url('/static/css/hebei.css');
</style>

@ -34,12 +34,20 @@
</view>
<!-- #endif -->
</view>
<view class="order-btn-box" @click="goPage('order')">
<view class="left">
<view class="top">我的订单</view>
<view class="feet">立即查看</view>
<view class="order-btn-box">
<view class="left" @click="goPage('ticketOrder')">
<image src="/static/animg/personCenter/senceDd.png"></image>
<view class="top">景区订单</view>
<view class="right"><u-icon name="arrow-right" size="13"></u-icon></view>
</view>
<view class="left rights" @click="goPage('hotelOrder')">
<image src="/static/animg/personCenter/hotelDd.png"></image>
<view class="top">酒店订单</view>
<view class="right"><u-icon name="arrow-right" size="13"></u-icon></view>
</view>
<view class="right"><u-icon name="arrow-right" size="13"></u-icon></view>
</view>
<view class="m-my-menu-list">
<view class="btn-item" :hover-class="active - btn" @click="goPage('yijian')">
@ -327,49 +335,47 @@ export default {
}
.order-btn-box {
border-radius: 20rpx;
border: 1px solid #0983FF;
background-color: #F0F6FC;
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 40rpx;
margin: 20rpx;
&::after {
content: "";
width: 270rpx;
.left {
display: flex;
justify-content: flex-end;
align-items: center;
width: 48%;
height: 128rpx;
position: absolute;
right: 100rpx;
top: -25rpx;
background-image: url('http://192.168.130.205:8083/upload/image/2024/mapIcon/daolan/ddbg.png');
background-repeat: no-repeat;
background-position: top;
background-size: contain;
}
position: relative;
.left {
image {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.top {
font-family: Source Han Sans SC;
font-weight: 500;
font-size: 32rpx;
color: #0983FF;
color: #113961;
z-index: 9;
}
.feet {
font-family: Source Han Sans SC;
font-weight: 400;
font-size: 20rpx;
color: #FFFFFF;
padding: 5rpx 10rpx;
background: linear-gradient(-90deg, #0983FF, #57ABFF);
border-radius: 16rpx;
text-align: center;
.right {
margin-right: 40rpx;
margin-left: 20rpx;
}
}
.rights{
.top{
color: #612C11;
}
}
}
.m-my-menu-list {

@ -40,7 +40,7 @@
<image class="cb" :src="hotel"></image>
<view class="ico-text">酒店</view>
</view>
<view class="ico-box" :class="chose == 'restaurant' ? 'curr' : ''" @click="selectIcon('restaurant')">
<!-- <view class="ico-box" :class="chose == 'restaurant' ? 'curr' : ''" @click="selectIcon('restaurant')">
<image class="cb" :src="restaurant"></image>
<view class="ico-text">餐馆</view>
</view>
@ -51,7 +51,7 @@
<view class="ico-box" :class="chose == 'ent' ? 'curr' : ''" @click="selectIcon('ent')">
<image class="cb" :src="ent"></image>
<view class="ico-text">娱乐</view>
</view>
</view> -->
</view>
</view>
<view class="tan" v-if="isShow" :style="{ height: height_2 + 'px' }">
@ -776,7 +776,7 @@ map {
right: 15px;
width: 55px;
z-index: 5;
bottom: 35%;
bottom: 55%;
}
.rightChoose_2 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -9,7 +9,7 @@
<view class="lst_tit"><u-parse :content="foodDetail.content" :loading="loading" @preview="preview" @navigate="navigate" /></view>
<view @tap="opens()" :class="[zhankai > shouqi ? 'hide' : 'nr_hide']">
+ 查看详细
<image src="/subPageA/images/btn_more.png" class="data-is-bottom"></image>
<image src="../../subPageA/images/btn_more.png" class="data-is-bottom"></image>
</view>
<!-- 内容显示完全出现 THE END-->
<!-- <view class="amt_30"><view class="cont_end">-THE END-</view></view> -->

@ -41,7 +41,7 @@
<view class="">
<view class="aml_30 amr_30">
<navigator class="amt_30" hover-class="none"
:url="'/pages/travelroute/travelroutedetail/travelroutedetail?id=' + itemName.id"
:url="'/subpageA/travelroute/travelroutedetail/travelroutedetail?id=' + itemName.id"
v-for="(itemName, index) in listDatas" :key="index">
<view class="ls_inf_box lunb_img">
<image mode="aspectFill" class="swp_2_img" :src="itemName.hlogo"></image>

Loading…
Cancel
Save