From 575554ac2999572a9f920041e94f2c1566ed0800 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 28 Aug 2025 12:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E6=9D=A5=E8=A7=84=E5=88=92=E9=9D=99?= =?UTF-8?q?=E6=80=81=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CircleProgress/CircleProgress.vue | 97 +++++ main.js | 70 ++-- package-lock.json | 12 + package.json | 3 +- pages/future/future.vue | 355 ++++++++++++++++--- 5 files changed, 454 insertions(+), 83 deletions(-) create mode 100644 components/CircleProgress/CircleProgress.vue diff --git a/components/CircleProgress/CircleProgress.vue b/components/CircleProgress/CircleProgress.vue new file mode 100644 index 0000000..b63176d --- /dev/null +++ b/components/CircleProgress/CircleProgress.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/main.js b/main.js index c3b40c7..4d2e8df 100644 --- a/main.js +++ b/main.js @@ -1,68 +1,68 @@ -import Vue from 'vue' -import App from './App' -import cookies from 'weapp-cookie' -import uView from 'uview-ui' +import Vue from "vue"; +import App from "./App"; +import cookies from "weapp-cookie"; +import uView from "uview-ui"; // http接口API集中管理引入部分 // import httpApi from '@/common/http.api.js' -import store from './store/index.js' -import './uni.scss' +import store from "./store/index.js"; +import "./uni.scss"; // 公共样式与字体图标 -import './common/css/common.css' -import './common/css/iconfont.css' +import "./common/css/common.css"; +import "./common/css/iconfont.css"; -import md5 from 'js-md5' +import md5 from "js-md5"; // 引入公共组件 tabbar - -import tabbar from '@/components/tab-bar/tab-bar.vue' +import tabbar from "@/components/tab-bar/tab-bar.vue"; +import httpConfig from "@/common/http.config.js"; +// 初始化全局loading管理器 +import { initGlobalLoadingManager } from "@/utils/request.js"; +import PageScrollMixin from "./mixins/page-scroll-mixin.js"; // import customizeAnswer from'@/components/customizeAnswer/customizeAnswer.vue' // Vue.use('customizeAnswer',customizeAnswer) -Vue.use('tab-bar', tabbar) +Vue.use("tab-bar", tabbar); -Vue.use(uView) -Vue.use(cookies) -Vue.config.productionTip = false +Vue.use(uView); +uni.$u.config.unit = "rpx"; +Vue.use(cookies); +Vue.config.productionTip = false; -Vue.prototype.$md5 = md5 +Vue.prototype.$md5 = md5; -App.mpType = 'app' +App.mpType = "app"; // #ifdef APP-PLUS -Vue.prototype.$store = store +Vue.prototype.$store = store; // #endif const app = new Vue({ store, - render: h => h(App), -}).$mount('#app') -import httpConfig from '@/common/http.config.js' -Vue.use(httpConfig, app) + render: (h) => h(App), +}).$mount("#app"); -// 初始化全局loading管理器 -import { initGlobalLoadingManager } from '@/utils/request.js' -initGlobalLoadingManager() +Vue.use(httpConfig, app); + +initGlobalLoadingManager(); // Vue.use(httpApi, app) // #ifdef MP-WEIXIN Vue.prototype.wxLogin = async function () { - console.log('wxLogin') + console.log("wxLogin"); return await new Promise(function (reslove, reject) { - let that = this + let that = this; uni.login({ success: function (res) { - console.log('main.js==>res', res) - reslove(res.code) + console.log("main.js==>res", res); + reslove(res.code); }, - }) - }) -} + }); + }); +}; // #endif // app.$mount() -import PageScrollMixin from './mixins/page-scroll-mixin.js' - // 注册全局 mixin -Vue.mixin(PageScrollMixin) +Vue.mixin(PageScrollMixin); diff --git a/package-lock.json b/package-lock.json index 1db2d5c..9bded81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "mp-html": "^2.4.2", "mpvue-echarts": "^0.3.2", "qrcode": "^1.5.4", + "uv-ui": "^1.0.25", "uview-ui": "^1.8.8", "weapp-cookie": "^1.4.8" }, @@ -2140,6 +2141,12 @@ "dev": true, "license": "MIT" }, + "node_modules/uv-ui": { + "version": "1.0.25", + "resolved": "https://registry.npmjs.org/uv-ui/-/uv-ui-1.0.25.tgz", + "integrity": "sha512-vMbdewGc49rdGjIdeZdYlvGa5h9k6qks4gLbDPHZJ6PIcqhgPedFie8cIDDcS/bE2WnLxuK+XJIIHC/vPd4suA==", + "license": "MIT" + }, "node_modules/uview-ui": { "version": "1.8.8", "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.8.8.tgz", @@ -3696,6 +3703,11 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "uv-ui": { + "version": "1.0.25", + "resolved": "https://registry.npmjs.org/uv-ui/-/uv-ui-1.0.25.tgz", + "integrity": "sha512-vMbdewGc49rdGjIdeZdYlvGa5h9k6qks4gLbDPHZJ6PIcqhgPedFie8cIDDcS/bE2WnLxuK+XJIIHC/vPd4suA==" + }, "uview-ui": { "version": "1.8.8", "resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-1.8.8.tgz", diff --git a/package.json b/package.json index 15d1d06..a427259 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dianbiao", "version": "1.0.0", - "description": "", + "description": "## 📖 项目简介", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", @@ -30,6 +30,7 @@ "mp-html": "^2.4.2", "mpvue-echarts": "^0.3.2", "qrcode": "^1.5.4", + "uv-ui": "^1.0.25", "uview-ui": "^1.8.8", "weapp-cookie": "^1.4.8" }, diff --git a/pages/future/future.vue b/pages/future/future.vue index f0b9692..4d46518 100644 --- a/pages/future/future.vue +++ b/pages/future/future.vue @@ -2,63 +2,324 @@ - - - - + + + {{ projectDetails.proName }} + + {{ projectDetails.proName }}效果图 + 用善意,筑就明天的模样 + {{ projectDetails.proProfile }} + 项目介绍 + + + 项目筹款情况 + + + + + + + + 公众筹款目标(元): + {{ projectDetails.totalAmount }} + + + 当前筹款金额(元): + {{ projectDetails.amountSum }} + + + 当前捐款人次: + {{ projectDetails.donorCount }} + + + + 查看捐款记录 + + + + 最新进展 + + + + +