diff --git a/hangout-master/README.md b/hangout-master/README.md new file mode 100644 index 0000000..6eadf93 --- /dev/null +++ b/hangout-master/README.md @@ -0,0 +1,313 @@ +# Handgout 项目 + +## 文件目录 + + + +```shell +# Handgout 项目 + +## 文件目录 + +hangout +├─ .git +├─ Pages (页面) +│ ├─ HGBot (憨狗bot) +│ │ ├─ Home (憨狗Bot主页面) +│ │ │ ... +│ │ │ └─ Home.wxml +│ │ ├─ Rd (抽签页) +│ │ │ ... +│ │ │ └─ Rd.wxss +│ │ ├─ Vote (投票) +│ │ │ ├─ received (收到某用户发起的投票) +│ │ │ │ ... +│ │ │ │ └─ received.wxml +│ │ │ └─ send (用户发起投票) +│ │ │ ... +│ │ │ └─ send.wxml +│ │ └─ Whisper (悄悄话) +│ │ ├─ received (收到悄悄话) +│ │ │ ├─ received.wxml (收到某人的悄悄话) +│ │ │ ... +│ │ │ └─ total.wxml (过往收到的所有悄悄话) +│ │ └─ send (发送悄悄话) +│ │ ├─ OK.wxml (悄悄话发送成功) +│ │ ... +│ │ ├─ getMsg.wxml (悄悄话信息录入) +│ │ ... +│ │ └─ send.wxml (选择发送悄悄话) +│ ├─ community (社区分享) +│ │ ├─ index (社区主页面) +│ │ │ ... +│ │ │ └─ index.wxml +│ │ └─ plan (动态) +│ │ ├─ info.wxml (查看某人动态圈) +│ │ ... +│ │ ├─ new.wxml (发布新动态) +│ │ ... +│ │ └─ view.wxml (查看某动态) +│ ├─ homepage (欢迎页面) +│ │ ... +│ │ └─ homepage.wxml +│ ├─ id (我的账号页面) +│ │ ... +│ │ └─ id.wxml +│ ├─ menu (菜单) +│ │ ├─ menu.wxml (主菜单页面) +│ │ ... +│ │ ├─ new_usr.wxml (新用户完善个人信息) +│ │ ... +│ │ └─ pre.wxml (新手教程) +│ └─ travel (行程安排) +│ ├─ evaluation (行程评价) +│ │ └─ index (主页面) +│ │ ... +│ │ └─ index.wxml +│ ├─ follow (行程跟进) +│ │ └─ index (主页面) +│ │ ... +│ │ └─ index.wxml +│ ├─ home (我的行程页面菜单) +│ │ ... +│ │ └─ home.wxml +│ ├─ plan (行程安排) +│ │ ├─ main (主页面) +│ │ │ ├─ assistant (攻略) +│ │ │ │ ... +│ │ │ │ └─ somewhere.wxml (附近某地点的详细展示) +│ │ │ ├─ index (规划中行程主页面) +│ │ │ │ ... +│ │ │ │ └─ index.wxml +│ │ │ ├─ member (成员信息列表) +│ │ │ │ ├─ leader.wxml (组长信息页) +│ │ │ │ ... +│ │ │ │ └─ member.wxml (普通成员信息页) +│ │ │ ... +│ │ │ ├─ menu.wxml (有过往行程时的主界面) +│ │ │ └─ wish (愿望清单) +│ │ │ ├─ vote (投票) +│ │ │ │ ├─ fail (非组长发起投票导致失败页面) +│ │ │ │ │ ... +│ │ │ │ │ └─ fail.wxss +│ │ │ │ ├─ finish (结果展示) +│ │ │ │ │ ├─ finish.wxml (结束投票页面(仅组长可见)) +│ │ │ │ │ ... +│ │ │ │ │ └─ result.wxml (展示投票结果) +│ │ └─ new (创建新行程) +│ │ ├─ create.wxml (创建行程) +│ │ ... +│ │ ├─ new.wxml (无过往行程时的主页面) +│ │ ... +│ │ └─ share.wxml (新行程分享邀请加入(分享之后跳转至愿望清单)) +│ └─ preparation (行前准备) +│ ├─ index (行前准备主页面) +│ │ ... +│ │ └─ index.wxml +│ └─ message (当地信息) +│ ├─ eat (当地饮食信息界面) +│ │ ... +│ │ └─ eat.wxml +│ ├─ epidemic (地方防疫政策相关信息) +│ │ ... +│ │ └─ epidemic.wxml +│ ├─ play (娱乐信息) +│ │ ... +│ │ └─ play.wxml +│ ├─ travel (交通信息) +│ │ ... +│ │ └─ travel.wxml +│ └─ weather (天气信息) +│ ... +│ └─ weather.wxml +├─ asset (媒体文件) +│ └─ img (图像) +│ ├─ erweima.png +... ... +│ └─ wechat.png +├─ components (组件库) +│ ├─ assistant (副日程页面) +│ │ ... +│ │ └─ assistant.wxml +│ ├─ bill (行程账单记录) +│ │ ... +│ │ └─ bill.wxml +│ ├─ checked (出行地点打卡) +│ │ ... +│ │ └─ checked.wxml +│ ├─ community (社区页面) +│ │ ... +│ │ └─ community.wxml +│ ├─ eat (干饭地点投票) +│ │ ... +│ │ └─ eat.wxml +│ ├─ eval (行程满意度打分) +│ │ ... +│ │ └─ eval.wxml +│ ├─ half (半日日程投票) +│ │ ... +│ │ └─ half.wxml +│ ├─ history (浏览历史) +│ │ ... +│ │ └─ history.wxml +│ ├─ id (个人主页) +│ │ ... +│ │ └─ id.wxml +│ ├─ list (物品清单) +│ │ ... +│ │ └─ list.wxml +│ ├─ main (主行程规划页面) +│ │ ... +│ │ └─ main.wxml +│ ├─ member (成员信息列表) +│ │ ... +│ │ └─ member.wxml +│ ├─ memory (备忘录) +│ │ ... +│ │ └─ memory.wxml +│ ├─ message (当地信息) +│ │ ... +│ │ └─ message.wxml +│ ├─ note (旅行手札记录) +│ │ ... +│ │ └─ note.wxml +│ ├─ report (中途离开时行动报备) +│ │ ... +│ │ └─ report.wxml +│ ├─ share (旅行计划分享) +│ │ ... +│ │ └─ share.wxml +│ ├─ star (收藏夹) +│ │ ... +│ │ └─ star.wxml +│ ├─ whole (一日日程投票) +│ │ ... +│ │ └─ whole.wxml +│ ├─ wish (未发起投票时的愿望清单页面) +│ │ ... +│ │ └─ wish.wxml +│ ├─ wish1 (组长发起投票后愿望清单主页面) +│ │ ... +│ │ └─ wish1.wxml +│ └─ wish2 (投票结束后愿望清单主页面) +│ ... +│ └─ wish2.wxml +├─ README.md +├─ app.js +├─ app.json +├─ app.wxss +├─ project.config.json +├─ project.private.config.json +└─ sitemap.json +``` + + + +## 前端 + +- asset:图片库 +- Pages:所有文件 +- components:组件库 + +- /Pages/homepage:欢迎页面 + +- /Pages/menu/menu:主菜单页面 +- /Pages/menu/new_usr:新用户完善个人信息 +- /Pages/menu/pre:新手教程 + +### 我的账号 + +-/Pages/id:我的账号页面 + +### 我的行程 +- /Pages/travel/home/home:我的行程页面菜单 + +#### 行前准备 +- /Pages/travel/preparation/index/index:行前准备主页面 +- /components/list/list:物品清单 +- /components/memory/memory:备忘录 + +- /components/message/message:当地信息 +- /Pages/travel/preparation/message/eat/eat:当地饮食信息界面 +- /Pages/travel/preparation/message/play/play:娱乐信息 +- /Pages/travel/preparation/message/travel/travel:交通信息 +- /Pages/travel/preparation/message/weather/weather:天气信息 +- /Pages/travel/preparation/message/epidemic/epidemic:地方防疫政策相关信息 + +#### 行程安排 + +- /Pages/travel/plan/new/new:无过往行程时的主页面 +- /Pages/travel/plan/new/create:创建行程 +- /Pages/travel/plan/new/share:新行程分享邀请加入(分享之后跳转至愿望清单) + +- /Pages/travel/plan/main/menu:有过往行程时的主界面 +- /Pages/travel/plan/main/index/index:规划中行程主页面 +- /components/main/main:主行程规划页面(点某一具体时间段跳转到计划打卡页面完成打卡) + +- /components/wish/wish:未发起投票时的愿望清单页面 +- /Pages/travel/plan/main/wish/vote/fail/fail:非组长发起投票导致失败页面 +- /components/wish1/wish1:组长发起投票后愿望清单主页面(和下面那个二选1删因为我不知道用哪个) +- /Pages/travel/plan/main/wish/vote/index/index:组长发起投票后愿望清单主页面 +- /components/half/half:半日日程投票 +- /components/whole/whole:一日日程投票 +- /components/eat/eat:干饭地点投票 +- /Pages/travel/plan/main/wish/vote/vote:对某地点投票页面 +- /Pages/travel/plan/main/wish/vote/finish/result:展示投票结果 +- /Pages/travel/plan/main/wish/vote/finish/finish:结束投票页面(仅组长可见) +- /components/wish2/wish2:投票结束后愿望清单主页面(和下面那个二选1删因为我不知道用哪个 +- /Pages/travel/plan/main/wish/wish/wish:投票结束后愿望清单主页面(用于展示目前所得愿望) +- /Pages/travel/plan/main/wish/wish/new:新增愿望 + +- /components/assistant/assistant:副日程页面 +- /Pages/travel/plan/main/assistant/somewhere:附近某地点的详细展示 + +- /components/member/member:成员信息列表 +- /Pages/travel/plan/main/member/leader:组长信息页 +- /Pages/travel/plan/main/member/member:普通成员信息页 + +#### 行程跟进 +- /Pages/travel/follow/index/index:行程跟进主页面 +- /components/report/report:中途离开时行动报备 +- /components/bill/bill:行程账单记录 +- /components/checked/checked:出行地点打卡 + +#### 行程测评 +- /Pages/travel/evaluation/index/index:行程评价主页面 +- /components/eval/eval:行程满意度打分 +- /components/note/note:旅行手札记录 +- /components/share/share:旅行计划分享 + +### 社区分享 + +- /Pages/community/index/index:社区主页面 +- /components/community/community:社区页面 +- /Pages/community/plan/new:发布新动态 +- /Pages/community/plan/view:查看某动态 +- /Pages/community/plan/info:查看某人动态圈儿 + +- /components/history/history:浏览历史 +- /components/star/star:收藏夹 +- /components/id/id:个人主页 + +### 憨狗bot + +- /Pages/HGBot/Home/Home:憨狗Bot主页面 +- /Pages/HGBot/Rd/Rd:抽签页 +- /Pages/HGBot/Vote/send:用户发起投票 +- /Pages/HGBot/Vote/received:收到某用户发起的投票 +- /Pages/HGBot/Whisper/send/getMsg:悄悄话信息录入 +- /Pages/HGBot/Whisper/send/send:选择发送悄悄话 +- /Pages/HGBot/Whisper/send/OK:悄悄话发送成功 +- /Pages/HGBot/Whisper/received/received:收到某人的悄悄话 +- /Pages/HGBot/Whisper/received/total:过往收到的所有悄悄话 + + + +在此总结一下问题 + +- 需要从后端传数据的一律没有具体函数 +- 部分页面可能渲染起来会很卡 +- 插入页面后导航栏不固定在底部的问题暂未解决 +- `/components/list` 和 `/components/memory` 中的交互问题 +- 到底哪些页面在跳转时需要记录上一个页面? + diff --git a/hangout-master/app.js b/hangout-master/app.js new file mode 100644 index 0000000..9f712a1 --- /dev/null +++ b/hangout-master/app.js @@ -0,0 +1,9 @@ +//app.js +App({ + onLaunch: function () { + + }, + globalData: { + userInfo: null + } + }) \ No newline at end of file diff --git a/hangout-master/app.json b/hangout-master/app.json new file mode 100644 index 0000000..f9f2ddb --- /dev/null +++ b/hangout-master/app.json @@ -0,0 +1,62 @@ +{ + "entryPagePath": "Pages/homepage/homepage", + "pages": [ + "Pages/homepage/homepage", + "Pages/menu/menu", + "Pages/menu/new_usr", + "Pages/menu/pre", + + "Pages/id/id", + + "Pages/HGBot/Whisper/received/total", + "Pages/HGBot/Whisper/received/received", + "Pages/HGBot/Whisper/send/send", + "Pages/HGBot/Whisper/send/getMsg", + "Pages/HGBot/Whisper/send/OK", + "Pages/HGBot/Vote/received/received", + "Pages/HGBot/Vote/send/send", + "Pages/HGBot/Home/Home", + "Pages/HGBot/Rd/Rd", + + "Pages/travel/preparation/index/index", + "Pages/travel/preparation/message/eat/eat", + "Pages/travel/preparation/message/play/play", + "Pages/travel/preparation/message/travel/travel", + "Pages/travel/preparation/message/weather/weather", + "Pages/travel/preparation/message/epidemic/epidemic", + "Pages/travel/evaluation/index/index", + "Pages/travel/follow/index/index", + "Pages/travel/home/home", + "Pages/travel/plan/new/new", + "Pages/travel/plan/new/create", + "Pages/travel/plan/new/share", + + "Pages/travel/plan/main/menu", + "Pages/travel/plan/main/index/index", + "Pages/travel/plan/main/wish/vote/index/index", + "Pages/travel/plan/main/wish/vote/fail/fail", + "Pages/travel/plan/main/wish/vote/vote", + "Pages/travel/plan/main/wish/vote/finish/finish", + "Pages/travel/plan/main/wish/vote/finish/result", + "Pages/travel/plan/main/wish/wish/wish", + "Pages/travel/plan/main/wish/wish/new", + "Pages/travel/plan/main/member/leader", + "Pages/travel/plan/main/member/member", + "Pages/travel/plan/main/assistant/somewhere", + + "Pages/community/index/index", + "Pages/community/plan/new", + "Pages/community/plan/view", + "Pages/community/plan/info" + + ], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#7B8B6F", + "navigationBarTitleText": "憨狗糖 HanGouT", + "navigationBarTextStyle": "white", + "backgroundColor": "#D8CAAF" + }, + "sitemapLocation": "sitemap.json", + "usingComponents": {} +} \ No newline at end of file diff --git a/hangout-master/app.wxss b/hangout-master/app.wxss new file mode 100644 index 0000000..95df3cf --- /dev/null +++ b/hangout-master/app.wxss @@ -0,0 +1,3 @@ +page{ + background-color: #F0EBE5; +} \ No newline at end of file diff --git a/hangout-master/project.config.json b/hangout-master/project.config.json new file mode 100644 index 0000000..02afb4e --- /dev/null +++ b/hangout-master/project.config.json @@ -0,0 +1,77 @@ +{ + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "es6": true, + "enhance": true, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": false, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "enableEngineNative": false, + "useIsolateContext": false, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "minifyWXML": true, + "showES6CompileOption": false, + "useCompilerPlugins": false + }, + "compileType": "miniprogram", + "libVersion": "2.21.4", + "appid": "wxd0fc3ce95c6d5b80", + "projectname": "HanGouT", + "debugOptions": { + "hidedInDevtools": [] + }, + "scripts": {}, + "staticServerOptions": { + "baseURL": "", + "servePath": "" + }, + "isGameTourist": false, + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "game": { + "list": [] + }, + "plugin": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [] + } + } +} \ No newline at end of file diff --git a/hangout-master/project.private.config.json b/hangout-master/project.private.config.json new file mode 100644 index 0000000..178e7f0 --- /dev/null +++ b/hangout-master/project.private.config.json @@ -0,0 +1,17 @@ +{ + "setting": {}, + "condition": { + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [] + } + } +} \ No newline at end of file diff --git a/hangout-master/sitemap.json b/hangout-master/sitemap.json new file mode 100644 index 0000000..cd24f35 --- /dev/null +++ b/hangout-master/sitemap.json @@ -0,0 +1,7 @@ +{ + "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", + "rules": [{ + "action": "allow", + "page": "*" + }] +} \ No newline at end of file