From 94bf9245258861374ab5cea020b72fe071082dc8 Mon Sep 17 00:00:00 2001
From: popup <18690563721@163.com>
Date: Thu, 8 Jan 2026 17:41:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 482 +++++++++++++++++-------
main.js | 1 +
manifest.json | 3 +-
pages.json | 12 +
pages/home/home.vue | 32 +-
pages/mine/mine.vue | 865 +++++++++++++++++++++++++++++---------------
pages/more/more.vue | 5 +-
7 files changed, 954 insertions(+), 446 deletions(-)
diff --git a/App.vue b/App.vue
index 213191b..7af639b 100644
--- a/App.vue
+++ b/App.vue
@@ -1,177 +1,383 @@
+
\ No newline at end of file
diff --git a/main.js b/main.js
index afc6b08..cb506c4 100644
--- a/main.js
+++ b/main.js
@@ -2,6 +2,7 @@ import App from './App'
// #ifndef VUE3
import Vue from 'vue'
+
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
diff --git a/manifest.json b/manifest.json
index e838df9..33d2e98 100644
--- a/manifest.json
+++ b/manifest.json
@@ -108,7 +108,8 @@
"urlCheck" : false,
"minified" : true
},
- "usingComponents" : true
+ "usingComponents" : true,
+ "permission" : {}
},
"mp-alipay" : {
"usingComponents" : true
diff --git a/pages.json b/pages.json
index 0882f95..32499bb 100644
--- a/pages.json
+++ b/pages.json
@@ -96,6 +96,18 @@
"enablePullDownRefresh": true
}
+ },
+ {
+ "path": "pages/mine/mine/mine",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/test/test",
+ "style": {
+ "navigationBarTitleText": ""
+ }
}
],
"globalStyle": {
diff --git a/pages/home/home.vue b/pages/home/home.vue
index df7e392..114f3b3 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -94,20 +94,34 @@
// 初始化左右盒子高度
"leftH": 0,
"rightH": 0,
- 'tip': '',
- 'swiper': '',
- 'pics': ''
+ tip: {},
+ swiper: {
+ background: [],
+ indicatorDots: true,
+ autoplay: true,
+ interval: 2000,
+ duration: 500,
+ vertical: false,
+ circular: true
+ },
+ pics:[]
}
},
onLoad() {
+ const app = getApp();
+ const gData = app.globalData;
this.getDataByOnline();
+ this.tip = gData.homePageData.tip;
+ this.swiper = gData.homePageData.swiper;
+ this.pics = gData.homePageData.pics;
+ this.showPics();
},
onPullDownRefresh() {
const that = this;
this.leftList = [];
this.rightList = [];
this.tip = {};
- this.swiper = {};
+ //this.swiper = {};
this.pics = '';
setTimeout(function() {
that.getDataByOnline();
@@ -128,14 +142,15 @@
methods: {
getDataByOnline() {
const that = this;
- uni.request({
+ //console.log("tip:",this.tip);
+ /*uni.request({
url: 'https://www.lailab.cn/miniprogram/data.php?type=all',
success(rst) {
that.tip = rst.data.tip;
that.swiper = rst.data.swiper;
that.showPics();
},
- });
+ });*/
},
doList() {
const that = this;
@@ -179,7 +194,7 @@
},
showPics() {
const that = this;
- uni.request({
+ /*uni.request({
url: "https://www.lailab.cn/miniprogram/pics.php?page=" + that.picPage + "&size=" + that
.picSize,
success(rst) {
@@ -187,7 +202,8 @@
that.pics = rst.data;
that.doList();
}
- })
+ })*/
+ that.doList()
},
showImg(pic) {
uni.navigateTo({
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 16dc0f1..de4f79d 100644
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -1,169 +1,412 @@
-
-
-
-
-
+
+
+
+
+
+
-
- {{hasUserInfo?userInfo.nickName:"点击登录"}}
+
+
+ {{ hasUserInfo ? userInfo.nickName : "点击登录" }}
+
+
+ {{ hasUserInfo ? "已登录" : "未登录" }}
+
-
-
-
+
+
+ /* 分割线 */
+ .function-item + .logout-item {
+ margin-top: 0;
+ border-top: 1rpx solid #f0f0f0;
+ }
+
\ No newline at end of file
diff --git a/pages/more/more.vue b/pages/more/more.vue
index 6931b46..49415ca 100644
--- a/pages/more/more.vue
+++ b/pages/more/more.vue
@@ -21,11 +21,14 @@
},
data() {
return {
- tools: []
+ tools:[]
}
},
onLoad() {
+ const app = getApp();
+ const gData = app.globalData;
this.getDataByOnline();
+ this.tools = gData.morePageData.tools;
},
methods: {
getDataByOnline() {