commit f34899eb819e839af64ba015edd743107787a5e5 Author: zzc <1761997216@qq.com> Date: Fri Jan 9 11:24:40 2026 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccaa112 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/unpackage +unpackage diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..c382b42 --- /dev/null +++ b/App.vue @@ -0,0 +1,49 @@ + + + diff --git a/api/auth.js b/api/auth.js new file mode 100644 index 0000000..bccbc49 --- /dev/null +++ b/api/auth.js @@ -0,0 +1,10 @@ +import { request } from "@/utils/request.js" + +export const apiLogin = async (data) => { + return request({ + url:"/api/user/login", + method: 'POST', + data + }) +} + diff --git a/common/images/preview_small.webp b/common/images/preview_small.webp new file mode 100644 index 0000000..716f2cb Binary files /dev/null and b/common/images/preview_small.webp differ diff --git a/common/style/base-style.scss b/common/style/base-style.scss new file mode 100644 index 0000000..47da42e --- /dev/null +++ b/common/style/base-style.scss @@ -0,0 +1,10 @@ +$brand-theme-color:#262626; //品牌主体红色 + +$border-color:#e0e0e0; //边框颜色 +$border-color-light:#efefef; //边框亮色 + +$text-font-color-1:#000; //文字主色 +$text-font-color-2:#676767; //副标题颜色 +$text-font-color-3:#a7a7a7; //浅色 +$text-font-color-4:#e4e4e4; //更浅 +$text-color: #B2B2B2 \ No newline at end of file diff --git a/common/style/common-style.scss b/common/style/common-style.scss new file mode 100644 index 0000000..7414c4b --- /dev/null +++ b/common/style/common-style.scss @@ -0,0 +1,8 @@ +view, swiper, swiper-item{ + box-sizing: border-box; +} + +.pageBg{ + background: $brand-theme-color; + min-height: 80vh; +} \ No newline at end of file diff --git a/components/LoginPopup/LoginPopup.vue b/components/LoginPopup/LoginPopup.vue new file mode 100644 index 0000000..b6e1b00 --- /dev/null +++ b/components/LoginPopup/LoginPopup.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/components/custom-content/custom-content.vue b/components/custom-content/custom-content.vue new file mode 100644 index 0000000..c3788c9 --- /dev/null +++ b/components/custom-content/custom-content.vue @@ -0,0 +1,69 @@ + + + + + \ No newline at end of file diff --git a/components/layout/layout.vue b/components/layout/layout.vue new file mode 100644 index 0000000..66a42e3 --- /dev/null +++ b/components/layout/layout.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..c3ff205 --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..a2c1721 --- /dev/null +++ b/main.js @@ -0,0 +1,31 @@ +import App from './App' + +// #ifndef VUE3 +import Vue from 'vue' +import './uni.promisify.adaptor' +import { createPinia } from 'pinia' + +Vue.config.productionTip = false +App.mpType = 'app' +const app = new Vue({ + ...App +}) +const pinia = createPinia() +app.use(pinia) + +app.$mount() +// #endif + +// #ifdef VUE3 +import { createSSRApp } from 'vue' +import { createPinia } from 'pinia' + +export function createApp() { + const app = createSSRApp(App) + const pinia = createPinia() + app.use(pinia) // ✅ 这句是关键 + return { + app + } +} +// #endif diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..9d2e008 --- /dev/null +++ b/manifest.json @@ -0,0 +1,72 @@ +{ + "name" : "tpl-mini", + "appid" : "", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx397b136a586c5667", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "3" +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..a256bb4 --- /dev/null +++ b/pages.json @@ -0,0 +1,67 @@ +{ + "pages": [ + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "新春祝福", + "enablePullDownRefresh": true, + "navigationStyle": "custom", + "backgroundColor": "#FFFFFF" + } + }, + { + "path": "pages/make/index", + "style": { + "navigationBarTitleText": "讨论", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, + { + "path": "pages/mine/mine", + "style": { + "navigationBarTitleText": "我的", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + }, + "tabBar": { + "color": "#999999", + "selectedColor": "#7DBB9D", + "backgroundColor": "#f6f1ec", + "iconWidth": "8px", + "list": [ + { + "text": "祝福", + "pagePath": "pages/index/index", + "iconPath": "static/images/tabBar/home.png", + "selectedIconPath": "static/images/tabBar/home_s.png" + }, + { + "text": "讨论", + "pagePath": "pages/make/index", + "iconPath": "static/images/tabBar/message.png", + "selectedIconPath": "static/images/tabBar/message_s.png" + }, + { + "text": "个人中心", + "pagePath": "pages/mine/mine", + "iconPath": "static/images/tabBar/me.png", + "selectedIconPath": "static/images/tabBar/me_s.png" + } + ] + }, + "uniIdRouter": {}, + "permission": { + "scope.userLocation": { + "desc": "用于获取您的当前位置,以显示附近景点和打卡功能" + } + } +} diff --git a/pages/index/index.vue b/pages/index/index.vue new file mode 100644 index 0000000..d450d78 --- /dev/null +++ b/pages/index/index.vue @@ -0,0 +1,263 @@ + + + + + \ No newline at end of file diff --git a/pages/make/index.vue b/pages/make/index.vue new file mode 100644 index 0000000..8faae1c --- /dev/null +++ b/pages/make/index.vue @@ -0,0 +1,599 @@ +