From 73a9dfeae79c0bd2bd267983ed2c2c1401c37b2c Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Mon, 16 Aug 2021 11:02:17 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=BA=E6=B0=94=E7=88=86?=
=?UTF-8?q?=E6=AC=BE=E5=88=97=E8=A1=A8/=E4=BC=98=E5=8C=96=E6=97=B6?=
=?UTF-8?q?=E9=97=B4=E6=97=A5=E6=9C=9F=E6=98=BE=E7=A4=BA/=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E9=A2=91=E9=81=93=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/api.js | 5 +-
common/uploadFile.js | 2 +-
pages.json | 6 ++
pages/collect/index.vue | 2 +-
pages/goodsList/index.vue | 2 +-
pages/hot/index.vue | 110 ++++++++++++++++++++++++++++++++++
pages/index/index.vue | 6 +-
pages/message/index.vue | 2 +-
pages/order/order.vue | 2 +-
pages/order/order_details.vue | 4 +-
pages/order/unpay_details.vue | 2 +-
11 files changed, 131 insertions(+), 12 deletions(-)
create mode 100644 pages/hot/index.vue
diff --git a/common/api.js b/common/api.js
index ac904a0..b4fb3cd 100644
--- a/common/api.js
+++ b/common/api.js
@@ -1,7 +1,8 @@
// appId: 正式 null | 测试 wxb35ef055a4dd8ad4
export const DEV = "dev"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号
-export const DEVURL = 'http://hainan.lanzulive.com'; // 测试服请求地址
+// export const DEVURL = 'http://hainan.lanzulive.com'; // 测试服请求地址
+export const DEVURL = 'http://hainan.com'; // 测试服请求地址
export const PRODURL = ''; // 正式服请求地址
@@ -26,6 +27,8 @@ export const API_ADVICEDETAILS = '/api/agent_product/show'; //推荐列表详情
export const API_PRODUCTLIST = '/api/channel/product'; //频道产品列表
export const API_SPECIALLIST = '/api/special/show'; //专题列表
+export const API_HOTLIST = '/api/agent_product/hot'; //热门爆款推荐
+
export const API_NOTICEDETAILS = '/api/notice/show'; //公告详情
export const API_REGISTERAGREE = '/api/agent_info/reg_protocol'; //注册协议
diff --git a/common/uploadFile.js b/common/uploadFile.js
index 889a938..9c16ddf 100644
--- a/common/uploadFile.js
+++ b/common/uploadFile.js
@@ -35,7 +35,7 @@ const uploadFile = function (filePath, successc, failc) {
filePath: filePath,//要上传文件资源的路径
name: 'image',
header: {
- appid: 'wx0e8ebcd9ca9e4b97',
+ appid: 'wxb35ef055a4dd8ad4',
Authentication: uni.getStorageSync('userinfo').token
},
diff --git a/pages.json b/pages.json
index e298fa4..2f99fd1 100644
--- a/pages.json
+++ b/pages.json
@@ -17,6 +17,12 @@
"navigationBarTitleText": "我的"
}
},
+ {
+ "path": "pages/hot/index",
+ "style": {
+ "navigationBarTitleText": "人气爆款"
+ }
+ },
{
"path": "pages/notice/notice",
"style": {
diff --git a/pages/collect/index.vue b/pages/collect/index.vue
index b6ca1a6..e2ee809 100644
--- a/pages/collect/index.vue
+++ b/pages/collect/index.vue
@@ -5,7 +5,7 @@
{{ item.product.title }}
- {{ $timer(item.created_at*1000) || '' }}
+ {{ item.created_at || '' }}
diff --git a/pages/goodsList/index.vue b/pages/goodsList/index.vue
index d4e66e5..e42c25b 100644
--- a/pages/goodsList/index.vue
+++ b/pages/goodsList/index.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/pages/hot/index.vue b/pages/hot/index.vue
new file mode 100644
index 0000000..835858d
--- /dev/null
+++ b/pages/hot/index.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+ {{item.product.title}}
+ 本套票只包含两个成人不可带小孩
+
+
+ ¥{{item.original_price}}
+
+
+
+
+
+
+ {{ loadingText }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0043ca6..f2c9918 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -43,7 +43,7 @@
人气爆款
-
+
更多
@@ -162,9 +162,9 @@
this.home_ad1 = res.data?.special
uni.stopPullDownRefresh();
console.log(this.home_ad1)
- }).catch(err => {
+ }).catch(err => {})
- })
+
},
// tabs标签切换时件,现已费弃
tabChange(current){
diff --git a/pages/message/index.vue b/pages/message/index.vue
index 139d957..e52f8f1 100644
--- a/pages/message/index.vue
+++ b/pages/message/index.vue
@@ -7,7 +7,7 @@
收到一条新消息
- {{$timer(item.created_at*1000) || ''}}
+ {{item.created_at}}
{{item.title}}
diff --git a/pages/order/order.vue b/pages/order/order.vue
index 57cb1b9..4cbac4e 100644
--- a/pages/order/order.vue
+++ b/pages/order/order.vue
@@ -34,7 +34,7 @@
- {{$timer(item.created_at*1000)}}
+ {{item.created_at}}
{{item.status_text}}
diff --git a/pages/order/order_details.vue b/pages/order/order_details.vue
index 92ab0a2..a4f59d3 100644
--- a/pages/order/order_details.vue
+++ b/pages/order/order_details.vue
@@ -36,12 +36,12 @@
下单时间
- {{ $timer(orderDetails.created_at*1000)}}
+ {{ orderDetails.created_at }}
付款时间
暂未付款
- {{ $timer(orderDetails.paid_at*1000)}}
+ {{ orderDetails.paid_at }}
支付方式
diff --git a/pages/order/unpay_details.vue b/pages/order/unpay_details.vue
index 60e07c0..df5c06d 100644
--- a/pages/order/unpay_details.vue
+++ b/pages/order/unpay_details.vue
@@ -36,7 +36,7 @@
下单时间
- {{$timer(orderDetails.created_at*1000)}}
+ {{orderDetails.created_at}}
支付方式