From 2baf1f4254c5890b6a8fbd8f79e3efbef8bb2a54 Mon Sep 17 00:00:00 2001
From: han <151435705@qq.com>
Date: Tue, 10 Dec 2024 17:16:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/login.js | 5 +-
pages.json | 37 +-
pages/index/index.vue | 4 +-
pages/personcenter/personcenter.vue | 320 +++++++++---------
.../homestaydetail/homestaydetail.vue | 8 +-
.../Homestay/homestaylist/homestaylist.vue | 8 +-
subPageC/flower/index.vue | 2 +
subPageC/orderHomestay/orderDetail.vue | 14 +-
subPageC/orderHomestay/orderList.vue | 19 +-
subPageC/weather/index.vue | 70 ++--
10 files changed, 264 insertions(+), 223 deletions(-)
diff --git a/common/login.js b/common/login.js
index a34820a..bc67f38 100644
--- a/common/login.js
+++ b/common/login.js
@@ -171,9 +171,8 @@ var throttleLogin = true
export const judgeLogin = (callback) => {
console.log('judgeLogindddd', store)
const storeUserInfo = uni.getStorageSync('userInfo')
- console.log("asdfasdfafasdf",storeUserInfo)
if (!storeUserInfo) {
-
+
if (throttleLogin) {
throttleLogin = false
setTimeout(() => {
@@ -202,4 +201,4 @@ export const judgeLogin = (callback) => {
} else {
callback && callback()
}
-}
\ No newline at end of file
+}
diff --git a/pages.json b/pages.json
index c53d5b0..4a4721b 100644
--- a/pages.json
+++ b/pages.json
@@ -540,13 +540,36 @@
"navigationBarTitleText": "取消订单"
}
},
-
+ {
+ "path": "orderShop/orderList",
+ "style": {
+ "navigationBarTitleText": "订单列表"
+ }
+ },
+ {
+ "path": "orderShop/orderDetail",
+ "style": {
+ "navigationBarTitleText": "订单详情"
+ }
+ },
+ {
+ "path": "orderShop/cancelStep",
+ "style": {
+ "navigationBarTitleText": "退款详情"
+ }
+ },
+ {
+ "path": "orderShop/orderCancel",
+ "style": {
+ "navigationBarTitleText": "取消订单"
+ }
+ },
{
"path": "Ai/index",
"style": {
"navigationBarTitleText": "AI管家",
- "navigationBarBackgroundColor": "#f5f6fa"
-
+ "navigationBarBackgroundColor": "#f5f6fa"
+
}
},
{
@@ -554,8 +577,8 @@
"style": {
"navigationBarTitleText": "拍照识花",
"navigationBarBackgroundColor": "#0983ff",
- "navigationBarTextStyle":"white",
- "enablePullDownRefresh":false//开启下拉刷新
+ "navigationBarTextStyle": "white",
+ "enablePullDownRefresh": false //开启下拉刷新
}
},
{
@@ -563,8 +586,8 @@
"style": {
"navigationBarTitleText": "拍照翻译",
"navigationBarBackgroundColor": "#0983ff",
- "navigationBarTextStyle":"white",
- "enablePullDownRefresh":false//开启下拉刷新
+ "navigationBarTextStyle": "white",
+ "enablePullDownRefresh": false //开启下拉刷新
}
},
{
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 67084cf..15f90ea 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -729,9 +729,9 @@
uni.navigateTo({
url: "/subPageA/Audiovisual/AudiovisualList/AudiovisualList",
});
- }else if (type == "Ai") {
+ } else if (type == "Ai") {
uni.navigateTo({
- url: '/subPageC/Ai/index'
+ url: '/subPageC/Ai/index'
});
}
},
diff --git a/pages/personcenter/personcenter.vue b/pages/personcenter/personcenter.vue
index 30687f1..1b639d3 100644
--- a/pages/personcenter/personcenter.vue
+++ b/pages/personcenter/personcenter.vue
@@ -1,187 +1,194 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- {{ userInfo.nickName }}
- 游客
+
+
+ {{ userInfo.nickName }}
+ 游客
+
+ 手机号:{{ userInfo.phone | phone }}
+ 手机号:未绑定
- 手机号:{{ userInfo.phone | phone }}
- 手机号:未绑定
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 请点击登录
+ 登录后享受更好的服务体验
-
- 请点击登录
- 登录后享受更好的服务体验
-
-
-
-
-
-
- 我的订单
-
-
-
- 景区订单
-
+
+
-
-
-
- 住宿订单
-
+ 我的订单
+
+
+
+ 景区订单
+
+
+
+
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/subPageB/Homestay/homestaydetail/homestaydetail.vue b/subPageB/Homestay/homestaydetail/homestaydetail.vue
index 10bfeb3..d878f67 100644
--- a/subPageB/Homestay/homestaydetail/homestaydetail.vue
+++ b/subPageB/Homestay/homestaydetail/homestaydetail.vue
@@ -106,7 +106,7 @@
民宿介绍
-
+
@@ -127,7 +127,7 @@
},
data() {
return {
- rootPath: "https://eluyou.ailuquan.cn/",
+ rootPath: this.$config.ROOTPATH,
indicatorDots: false,
autoplay: true,
interval: 3000,
@@ -196,7 +196,7 @@
var data = {
hotelId: id,
};
- this.$Request.get(this.$config.getHomestayDetail, data, null, null, false, null).then((res) => {
+ this.$Request.get(this.$config.getHomestayDetail, data, null, null, false, true).then((res) => {
this.info = res.data
this.info.facilities = this.info.facilities.split(",")
this.pic_list = this.info.hotelPhoto.split(",")
@@ -374,4 +374,4 @@
left: 0;
z-index: 999;
}
-
\ No newline at end of file
+
diff --git a/subPageB/Homestay/homestaylist/homestaylist.vue b/subPageB/Homestay/homestaylist/homestaylist.vue
index b19b68f..cfba47c 100644
--- a/subPageB/Homestay/homestaylist/homestaylist.vue
+++ b/subPageB/Homestay/homestaylist/homestaylist.vue
@@ -98,7 +98,7 @@
},
listDatas: [],
topNum: 0,
- rootPath: "https://eluyou.ailuquan.cn/",
+ rootPath: this.$config.ROOTPATH,
regionname: '区域',
regionList: [],
searchTitle: '',
@@ -171,7 +171,7 @@
this.get_data();
},
confirm(e) {
- this.searchTitle = e.detail.value;
+ this.searchTitle = e.detail.value;
this.initData();
this.get_data();
},
@@ -219,7 +219,7 @@
userkey: this.$param.userkey,
hotelName: this.searchTitle
};
- this.$Request.get(this.$config.getHomestayList, requestData, '', '', false, '').then(res => {
+ this.$Request.get(this.$config.getHomestayList, requestData, '', '', false, true).then(res => {
var list = res.data.list || [] // 当前页数据
if (this.mescroll.num == 1) this.listDatas = []; // 第一页需手动制空列表
@@ -270,4 +270,4 @@
width: 24rpx;
margin-right: 8rpx;
}
-
\ No newline at end of file
+
diff --git a/subPageC/flower/index.vue b/subPageC/flower/index.vue
index b91431b..fdc3c7a 100644
--- a/subPageC/flower/index.vue
+++ b/subPageC/flower/index.vue
@@ -111,6 +111,8 @@
.v-pages-flower {
position: relative;
height: 70vh;
+ width: 100vw;
+ overflow: hidden;
&:after {
diff --git a/subPageC/orderHomestay/orderDetail.vue b/subPageC/orderHomestay/orderDetail.vue
index 63b2b53..2f264dd 100644
--- a/subPageC/orderHomestay/orderDetail.vue
+++ b/subPageC/orderHomestay/orderDetail.vue
@@ -17,7 +17,7 @@
-
+
去支付
@@ -31,7 +31,7 @@
再次预订
-
+
@@ -155,7 +155,7 @@
return {
//是否支付弹窗
isPayPopup: false,
- rootPath: "https://eluyou.ailuquan.cn",
+ rootPath: this.$config.ROOTPATH,
title: '订单详情',
homestayOrderData: {
'id': 1734877929,
@@ -191,7 +191,7 @@
}
}
},
-
+
onLoad(options) {
this.getHomestayOrderDetail(options.id)
},
@@ -201,7 +201,7 @@
let data = {
'id': orderId
}
- this.$Request.get(this.$config.getHomestayOrderDetail, data, null, null, false, null).then((res) => {
+ this.$Request.get(this.$config.getHomestayOrderDetail, data, null, null, false, true).then((res) => {
if (res.code == 0) {
this.homestayOrderData = res.data
let checkTime = this.homestayOrderData.checkTime
@@ -355,7 +355,7 @@
this.isPayPopup=false
}
}
- })
+ })
},
stateImg: function(val) {
@@ -744,4 +744,4 @@
font-weight: bold;
}
}
-
\ No newline at end of file
+
diff --git a/subPageC/orderHomestay/orderList.vue b/subPageC/orderHomestay/orderList.vue
index 4651c93..2e829d3 100644
--- a/subPageC/orderHomestay/orderList.vue
+++ b/subPageC/orderHomestay/orderList.vue
@@ -17,7 +17,7 @@
{{item.checkOutTime}}
总价:¥{{item.orderAmount}}
-
+
@@ -53,7 +53,7 @@
},
data() {
return {
- rootPath: "https://eluyou.ailuquan.cn",
+ rootPath: this.$config.ROOTPATH,
//是否支付弹窗
isPayPopup: false,
//滚动
@@ -82,7 +82,7 @@
//TODO:
this.judgeLogin()
},
- onShow() {
+ onShow() {
this.param.pageNo = 1
this.loadData()
},
@@ -122,6 +122,7 @@
/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
/*下拉刷新的回调 */
downCallback(mescroll) {
+ this.mescroll = mescroll
this.param.pageNo = 1
this.loadData();
// #ifdef H5
@@ -131,7 +132,7 @@
this.top = uni.upx2px(100) + 'px'; // 非H5不必加
// #endif
setTimeout(() => {
- mescroll.endSuccess();
+ this.mescroll.endSuccess();
this.top = 0;
}, 2500);
},
@@ -146,7 +147,7 @@
uni.showToast({
title: '支付成功',
icon: 'none'
- });
+ });
setTimeout(() => {
this.isPayPopup = false
this.param.pageNo = 1
@@ -165,13 +166,13 @@
loadData() {
// TODO: 需从缓存获取appId openId
const userInfo = uni.getStorageSync("userInfo");
- const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
+ const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {};
let appId = extConfig.app_id
this.param.openid = userInfo.openid
this.param.appid = appId
- this.$Request.get(this.$config.getHomestayOrderList, this.param, null, null, false, true).then((res) => {
+ this.$Request.get(this.$config.getHomestayOrderList, this.param, null, null, false, true).then((res) => {
const curPageData = res.data.list || [] // 当前页数据
if (this.mescroll.num == 1) this.orderList = []; // 第一页需手动制空列表
curPageData.forEach((item, index) => {
@@ -206,7 +207,7 @@
this.isPayPopup=false
}
}
- })
+ })
},
// 跳转民宿订单详情页
toHomeStayDetailPage(id) {
@@ -366,4 +367,4 @@
}
}
-
\ No newline at end of file
+
diff --git a/subPageC/weather/index.vue b/subPageC/weather/index.vue
index d9f687e..30c3128 100644
--- a/subPageC/weather/index.vue
+++ b/subPageC/weather/index.vue
@@ -1,6 +1,6 @@
-
-
+
+
鹿泉天气
@@ -60,6 +60,33 @@
tempTotal: undefined,
};
},
+ computed: {
+ TodayClass() {
+ switch (true) {
+ case this.today_data.text.includes("晴"):
+ return "sunny"
+ break;
+ case this.today_data.text.includes("阴"):
+ return "rainy"
+ break;
+ case this.today_data.text.includes("雨"):
+ return "rainy"
+ break;
+ case this.today_data.text.includes("雪"):
+ return "snowy"
+ break;
+ case this.today_data.text.includes("云"):
+ return "cloudy"
+ break;
+ case this.today_data.text.includes("雾"):
+ return "smog"
+ break;
+ default:
+ return "sunny"
+ break;
+ }
+ }
+ },
onLoad() {
this.initPages()
},
@@ -78,15 +105,16 @@
this.tempTotal = this.tempMax - this.tempMin
data.data.forEach((item, index, arr) => {
let data = {
- ...item,
- ...{
- week: this.getWeekday(item.fxDate[0] + '-' + item.fxDate[1] +
- '-' +
- item.fxDate[2])
- }
+ week: this.getWeekday(item.fxDate[0] + '-' + item.fxDate[1] +
+ '-' +
+ item.fxDate[2]),
+ iconDay: item.iconDay,
+ tempMin:item.tempMin,
+ tempMax:item.tempMax,
}
this.days_data.push(data);
})
+ console.log("asdf",this.days_data)
}
});
@@ -106,7 +134,7 @@
right: right + '%'
}
},
- gotoBack() {
+ gotoBack() {
uni.navigateBack({
delta: 1 // 默认值是1,表示返回的页面层数
});
@@ -122,28 +150,7 @@
return weekdays[weekday];
}
},
- getTodayClass(val) {
- switch (true) {
- case val.includes("晴"):
- return "sunny"
- break;
- case val.includes("雨"):
- return "rainy"
- break;
- case val.includes("雪"):
- return "snowy"
- break;
- case val.includes("云"):
- return "cloudy"
- break;
- case val.includes("雾"):
- return "smog"
- break;
- default:
- return "sunny"
- break;
- }
- }
+
}
}
@@ -153,6 +160,7 @@
.v-weather-bar {
position: relative;
+ top:88rpx;
z-index: 9;
height: 88rpx;
line-height: 88rpx;