diff --git a/package-lock.json b/package-lock.json index 922878f..50708b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,14 @@ { - "requires": true, + "name": "cgc_wechat", + "version": "1.0.0", "lockfileVersion": 1, + "requires": true, "dependencies": { + "moment": { + "version": "2.30.1", + "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==" + }, "ydui-district": { "version": "1.1.0", "resolved": "https://registry.npmmirror.com/ydui-district/-/ydui-district-1.1.0.tgz", diff --git a/package.json b/package.json index 2f2856a..8d1b0c0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "", "main": "main.js", "dependencies": { + "moment": "^2.30.1", "ydui-district": "^1.1.0" }, "devDependencies": {}, diff --git a/pages.json b/pages.json index 6130a54..deb249e 100644 --- a/pages.json +++ b/pages.json @@ -12,6 +12,12 @@ "navigationBarTitleText": "我的", "navigationStyle": "custom" } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "大美非遗" + } } ], "subPackages": [{ @@ -102,6 +108,24 @@ "style": { "navigationBarTitleText": "确认订单" } + }, + { + "path": "shiguang/index", + "style": { + "navigationBarTitleText": "非遗拾光" + } + }, + { + "path": "user/profile", + "style": { + "navigationBarTitleText": "个人信息" + } + }, + { + "path" : "user/changeNickname", + "style" : { + "navigationBarTitleText" : "修改昵称" + } } ] }], diff --git a/pages/index/index.vue b/pages/index/index.vue index ab461d7..7d4e1b1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -47,7 +47,7 @@ - + @@ -142,6 +142,7 @@ this.getLocation() } + this.topBanner() this.changeType(0) }, onReachBottom() { @@ -150,10 +151,16 @@ }, 1000); }, methods: { - goTeChan (item) { - uni.navigateTo({ - url: item.path - }) + getBanner() { + // 大轮播 + // this.Post({ + // type_id: 3, + // position: 6, + // }, '/api/adv/getAdv').then(res => { + // if (res.data) { + // // this.topBanner = res.data; + // } + // }); }, // 瀑布流 getColumnItems(columnIndex) { diff --git a/pages/login/login.vue b/pages/login/login.vue new file mode 100644 index 0000000..1de3eb8 --- /dev/null +++ b/pages/login/login.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/pages/user/user.vue b/pages/user/user.vue index af8b3a5..16a3054 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -2,7 +2,7 @@ 我的 - + {{userInfo.nickname}} 请登录/注册 > - + 个人中心 @@ -84,7 +84,7 @@ + + \ No newline at end of file diff --git a/subPackages/shiguang/shiguang.vue b/subPackages/shiguang/shiguang.vue deleted file mode 100644 index 30cc112..0000000 --- a/subPackages/shiguang/shiguang.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - - - \ No newline at end of file diff --git a/subPackages/user/changeNickname.vue b/subPackages/user/changeNickname.vue new file mode 100644 index 0000000..d35cfb4 --- /dev/null +++ b/subPackages/user/changeNickname.vue @@ -0,0 +1,89 @@ + + + + + \ No newline at end of file diff --git a/subPackages/user/profile.vue b/subPackages/user/profile.vue new file mode 100644 index 0000000..4419f2b --- /dev/null +++ b/subPackages/user/profile.vue @@ -0,0 +1,407 @@ + + + + +