Browse Source

feat(pages): 添加小区概览页面并更新相关配置- 在 customTabbar.vue 中新增小区 tab 项并调整跳转逻辑- 在 pages.json 中注册小区概览页面路径和导航栏标题

- 更新 manifest.json 中的小程序 appid 配置- 升级 sass 依赖版本从 1.89.2 到 1.90.0
- 添加 dayjs 依赖版本1.11.13
- 在 api/bill.js 中添加小区相关接口注释
master
科技小王子 6 days ago
parent
commit
7372eed3e2
  1. 2
      api/bill.js
  2. 8
      components/customTabbar.vue
  3. 1
      manifest.json
  4. 14
      package-lock.json
  5. 2
      package.json
  6. 13
      pages.json
  7. 2
      pnpm-lock.yaml

2
api/bill.js

@ -3,3 +3,5 @@ import post, {get} from "@/api/request";
export const listBillReq = (params, getTask) => get('/zhsq/zhsq-tollcenter-record-bill-estate/userList', {params, getTask}) export const listBillReq = (params, getTask) => get('/zhsq/zhsq-tollcenter-record-bill-estate/userList', {params, getTask})
export const makePayReq = data => post('/union-pay/make-pay', data) export const makePayReq = data => post('/union-pay/make-pay', data)
// https://xq-api.ggsxiangan.com/api/zhsq/zhsq-base-village?withFeeItem=true&withPopulation=true

8
components/customTabbar.vue

@ -46,6 +46,12 @@ export default {
"selectedIconPath": "static/tabbar/service-active.png", "selectedIconPath": "static/tabbar/service-active.png",
"text": "服务" "text": "服务"
}, },
{
"pagePath": "pages/community/index",
"iconPath": "static/tabbar/xiaoqu.png",
"selectedIconPath": "static/tabbar/xiaoqu-active.png",
"text": "小区"
},
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/tabbar/store.png", "iconPath": "static/tabbar/store.png",
@ -67,7 +73,7 @@ export default {
tabClick(val) { tabClick(val) {
console.log('val', val) console.log('val', val)
if (val === 0 && this.current === 0) this.$jump('/pages/index/index') if (val === 0 && this.current === 0) this.$jump('/pages/index/index')
if (val === 2) {
if (val === 3) {
uni.navigateToMiniProgram({ uni.navigateToMiniProgram({
appId: 'wxad2376fd45fb7eca', appId: 'wxad2376fd45fb7eca',
complete() { complete() {

1
manifest.json

@ -50,7 +50,6 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
// "appid" : "wxd1adb2bb3c51298c",
"appid" : "wx9a7a82430d0bdd6c", "appid" : "wx9a7a82430d0bdd6c",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,

14
package-lock.json

@ -4,6 +4,9 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"dependencies": {
"dayjs": "^1.11.13"
},
"devDependencies": { "devDependencies": {
"sass": "^1.89.2", "sass": "^1.89.2",
"sass-loader": "^16.0.5" "sass-loader": "^16.0.5"
@ -333,6 +336,12 @@
"url": "https://paulmillr.com/funding/" "url": "https://paulmillr.com/funding/"
} }
}, },
"node_modules/dayjs": {
"version": "1.11.18",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.18.tgz",
"integrity": "sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA==",
"license": "MIT"
},
"node_modules/detect-libc": { "node_modules/detect-libc": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz", "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz",
@ -671,6 +680,11 @@
"readdirp": "^4.0.1" "readdirp": "^4.0.1"
} }
}, },
"dayjs": {
"version": "1.11.18",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.18.tgz",
"integrity": "sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA=="
},
"detect-libc": { "detect-libc": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz", "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz",

2
package.json

@ -1,6 +1,6 @@
{ {
"devDependencies": { "devDependencies": {
"sass": "^1.89.2",
"sass": "^1.90.0",
"sass-loader": "^16.0.5" "sass-loader": "^16.0.5"
}, },
"dependencies": { "dependencies": {

13
pages.json

@ -92,6 +92,13 @@
"style": { "style": {
"navigationBarTitleText": "我的房产" "navigationBarTitleText": "我的房产"
} }
},
{
"path" : "pages/community/index",
"style" :
{
"navigationBarTitleText" : "小区概览"
}
} }
], ],
"subPackages": [ "subPackages": [
@ -272,6 +279,12 @@
"iconPath": "static/service.png", "iconPath": "static/service.png",
"selectedIconPath": "static/service-active.png" "selectedIconPath": "static/service-active.png"
}, },
{
"pagePath": "pages/community/index",
"text": "小区",
"iconPath": "static/xiaoqu.png",
"selectedIconPath": "static/xiaoqu-active.png"
},
{ {
"pagePath": "pages/store/index", "pagePath": "pages/store/index",
"text": "商城", "text": "商城",

2
pnpm-lock.yaml

@ -13,7 +13,7 @@ importers:
version: 1.11.13 version: 1.11.13
devDependencies: devDependencies:
sass: sass:
specifier: ^1.89.2
specifier: ^1.90.0
version: 1.90.0 version: 1.90.0
sass-loader: sass-loader:
specifier: ^16.0.5 specifier: ^16.0.5

Loading…
Cancel
Save