Browse Source

分包

master
longjieli 4 months ago
parent
commit
25723f0f2d
25 changed files with 68 additions and 104 deletions
  1. +2
    -2
      config.js
  2. +2
    -1
      manifest.json
  3. +40
    -78
      pages.json
  4. +5
    -5
      pages/index/center.vue
  5. +6
    -6
      pages/index/index.vue
  6. +6
    -5
      pages/login/wxUserInfo.vue
  7. +2
    -2
      pages/subPack/autonym/autonym.vue
  8. +5
    -5
      pages/subPack/human/human.vue
  9. +0
    -0
      pages/subPack/punchCard/punchCard.vue
  10. +0
    -0
      pages/subPack/record/record.vue
  11. +0
    -0
      pages/subPack/team/team.vue
  12. BIN
      static/image/autonym/autonum-bg.png
  13. BIN
      static/image/autonym/info.png
  14. BIN
      static/image/center/center-bg.png
  15. BIN
      static/image/center/menu1.png
  16. BIN
      static/image/center/menu2.png
  17. BIN
      static/image/center/menu3.png
  18. BIN
      static/image/home/change.png
  19. BIN
      static/image/home/location.png
  20. BIN
      static/image/home/sign.png
  21. BIN
      static/image/home/top-bg.png
  22. BIN
      static/image/human/icon1.png
  23. BIN
      static/image/human/icon2.png
  24. BIN
      static/image/human/icon3.png
  25. BIN
      static/image/human/img.png

+ 2
- 2
config.js View File

@ -25,7 +25,7 @@ const config = {
const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss : {
url : 'https://tennis-oss.xzaiyp.top/',
url : 'https://oss.mxqih.top/',
config : {
//桶的地址
region: 'oss-cn-guangzhou',
@ -35,7 +35,7 @@ const defaultConfig = {
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
//桶的名字
bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com',
endpoint:'oss-cn-guangzhou.aliyuncs.com'
}
},
}


+ 2
- 1
manifest.json View File

@ -65,7 +65,8 @@
"desc" : "你的位置信息将用于小程序位置接口的效果展示"
}
},
"requiredPrivateInfos" : [ "chooseLocation", "getLocation" ]
"requiredPrivateInfos" : [ "chooseLocation", "getLocation" ],
"lazyCodeLoading" : "requiredComponents"
},
"mp-alipay" : {
"usingComponents" : true


+ 40
- 78
pages.json View File

@ -4,7 +4,7 @@
"style": {
"navigationBarTitleText": "登录"
}
},{
}, {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "打卡"
@ -16,91 +16,53 @@
"navigationBarTitleText": "我的"
}
},
{
"path": "pages/record/record",
"style": {
"navigationBarTitleText": "打卡记录"
}
},
{
"path": "pages/autonym/autonym",
"style": {
"navigationBarTitleText": "身份认证"
}
},
{
"path": "pages/human/human",
"style": {
"navigationBarTitleText": "人脸识别"
}
},
{
"path": "pages/login/wxUserInfo",
"style": {
"navigationBarTitleText": "用户设置"
}
},
{
"path" : "pages/punchCard/punchCard",
"style" :
}
],
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": ["pages/subPack"]
}
},
"subPackages": [{
"root": "pages/subPack",
"pages": [{
"path": "record/record",
"style": {
"navigationBarTitleText": "打卡记录"
}
},
{
"navigationBarTitleText" : "打卡"
}
},
{
"path" : "pages/team/team",
"style" :
"path": "autonym/autonym",
"style": {
"navigationBarTitleText": "实名认证"
}
},
{
"path": "punchCard/punchCard",
"style": {
"navigationBarTitleText": "打卡"
}
},
{
"navigationBarTitleText" : ""
"path": "human/human",
"style": {
"navigationBarTitleText": "人脸识别"
}
},
{
"path": "team/team",
"style": {
"navigationBarTitleText": "选择工程"
}
}
}
],
// "preloadRule": {
// "pages/index/index": {
// "network": "all",
// "packages": ["pages"]
// }
// },
// "subPackages": [{
// "root": "pages",
// "pages": [{
// "path": "login/login",
// "style": {
// "navigationBarTitleText": "登录"
// }
// },
// {
// "path": "login/wxUserInfo",
// "style": {
// "navigationBarTitleText": "用户信息"
// }
// },
// {
// "path": "record/record",
// "style": {
// "navigationBarTitleText": "打卡记录"
// }
// },
// {
// "path": "autonym/autonym",
// "style": {
// "navigationBarTitleText": "实名认证"
// }
// },
// {
// "path": "punchCard/punchCard",
// "style": {
// "navigationBarTitleText": "打卡"
// }
// },
// {
// "path": "human/human",
// "style": {
// "navigationBarTitleText": "人脸识别"
// }
// }
// ]
// }],
]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "工程打卡",


+ 5
- 5
pages/index/center.vue View File

@ -11,7 +11,7 @@
<div class="user-project">高新区项目一队项目1</div>
</div>
</div>
<image class="user-bg" src="@/static/image/center/center-bg.png" mode="widthFix"></image>
<image class="user-bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b51d97b2-f2a1-4471-9b6d-7fbc2f3f774a.png" mode="widthFix"></image>
</div>
<!-- 菜单 -->
@ -19,17 +19,17 @@
<uv-cell-group :border="false">
<uv-cell @click="clickMenu(1)" title="打卡记录" isLink arrow-direction="right" center>
<template v-slot:icon>
<image style="width: 30rpx;" src="@/static/image/center/menu1.png" mode="widthFix"></image>
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png" mode="widthFix"></image>
</template>
</uv-cell>
<uv-cell @click="clickMenu(2)" icon="setting-fill" isLink arrow-direction="right" title="实名认证" center>
<template v-slot:icon>
<image style="width: 30rpx;" src="@/static/image/center/menu2.png" mode="widthFix"></image>
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" mode="widthFix"></image>
</template>
</uv-cell>
<uv-cell @click="clickMenu" icon="integral-fill" title="版本" value="版本1.0" center>
<template v-slot:icon>
<image style="width: 30rpx;" src="@/static/image/center/menu3.png" mode="widthFix"></image>
<image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png" mode="widthFix"></image>
</template>
</uv-cell>
</uv-cell-group>
@ -59,7 +59,7 @@
})
}else if(index == 2){
uni.navigateTo({
url: "/pages/autonym/autonym"
url: "/pages/subPack/autonym/autonym"
})
}
}


+ 6
- 6
pages/index/index.vue View File

@ -2,14 +2,14 @@
<view class="home">
<!-- 顶部背景 -->
<view class="home-top">
<image class="home-top-bg" src="@/static/image/home/top-bg.png" mode="widthFix"></image>
<image class="home-top-bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/81f3569e-c60c-4945-bfc9-b0e976f26d8e.png" mode="widthFix"></image>
</view>
<!-- 卡片(地图) -->
<view class="card">
<view @click="openBroadside" class="team">
<view class="change-icon">
<image src="@/static/image/home/change.png" mode="widthFix"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/4e624b94-e080-4ec4-86de-196ad83538a5.png" mode="widthFix"></image>
</view>
<view class="project">
高新区项目一队项目1
@ -32,7 +32,7 @@
<!-- 签到记录 -->
<div @click="toRecord" class="sign">
<div class="sign-title">
<image class="sign-title-img" src="@/static/image/home/sign.png" mode="widthFix"></image>
<image class="sign-title-img" src="https://tennis-oss.xzaiyp.top/2024-10-22/3d70c0d0-f298-4187-8b01-d809757f4049.png" mode="widthFix"></image>
<div class="title">打卡记录</div>
</div>
<div class="project">
@ -74,7 +74,7 @@
//
toRecord() {
uni.navigateTo({
url: "/pages/record/record"
url: "/pages/subPack/record/record"
})
},
@ -96,7 +96,7 @@
id: 1,
latitude: res.latitude,
longitude: res.longitude,
iconPath: '/static/image/home/location.png',
iconPath: 'https://tennis-oss.xzaiyp.top/2024-10-22/103fa1db-8524-45e6-8d00-c36a69977a5b.png',
width: 30,
height: 30
})
@ -153,7 +153,7 @@
//()
callCard(){
uni.navigateTo({
url: "/pages/human/human"
url: "/pages/subPack/human/human"
})
}
}


+ 6
- 5
pages/login/wxUserInfo.vue View File

@ -19,7 +19,8 @@
头像
</view>
<view class="">
<image :src="userInfo.headImage" v-if="userInfo.headImage"
<image
:src="userInfo.headImage ? userInfo.headImage : 'https://oss.mxqih.top/2024-10-22/c2d91371-915f-4822-bc54-0da5706cd090.jpeg'"
style="width: 70rpx;height: 70rpx;border-radius: 50%;" mode="widthFix"></image>
<!-- <image src="@/static/login/logo.png" v-else style="width: 70rpx;height: 70rpx;border-radius: 50%;" mode="widthFix"></image> -->
</view>
@ -45,7 +46,7 @@
data() {
return {
userInfo: {
headImage: '../static/login/user.png', //
headImage: '', //
nickName: '',
name: ''
}
@ -75,7 +76,7 @@
self.userInfo.name = nickName
if (self.$utils.verificationAll(self.userInfo, {
headImage: '请选择头像',
headImage: '请更换默认头像',
nickName: '请填写昵称',
})) {
return
@ -89,9 +90,9 @@
// })
// }
// })
uni.reLaunch({
url: "/pages/team/team"
url: "/pages/subPack/team/team"
})
})
},


pages/autonym/autonym.vue → pages/subPack/autonym/autonym.vue View File

@ -3,7 +3,7 @@
<view class="autonym">
<!-- 实名认证顶部背景 -->
<view class="autonym-top">
<image class="bg" src="@/static/image/autonym/autonum-bg.png" mode="widthFix"></image>
<image class="bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b0182213-365c-482d-9218-e532df187fdc.png" mode="widthFix"></image>
</view>
<!-- 实名认证表单 -->
@ -24,7 +24,7 @@
<!-- 说明 -->
<view class="autonym-info">
<image class="autonum-info-icon" src="@/static/image/autonym/info.png" mode="widthFix"></image>
<image class="autonum-info-icon" src="https://tennis-oss.xzaiyp.top/2024-10-22/fb858755-ada3-49c3-87c7-c28a585dcbc0.png" mode="widthFix"></image>
<view class="text">实名仅用于您是否为真人用户不会对信息做任何采集与保留请放心使用</view>
</view>

pages/human/human.vue → pages/subPack/human/human.vue View File

@ -10,7 +10,7 @@
<!-- 人脸识别图片 -->
<view class="human-face-img">
<image src="@/static/image/human/img.png" mode="widthFix"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/508376c5-64b2-472f-8e25-a2469b632a39.png" mode="widthFix"></image>
</view>
<!-- 人脸识别说明 -->
@ -21,15 +21,15 @@
<!-- 说明 -->
<view class="desc">
<view class="desc-item">
<image src="@/static/image/human/icon1.png" mode="widthFix"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/a0bf2da9-c25a-4d5c-8c77-7318bd86227d.png" mode="widthFix"></image>
<view class="text">避免遮挡</view>
</view>
<view class="desc-item">
<image src="@/static/image/human/icon2.png" mode="widthFix"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/feb72bfb-8271-4e48-8081-d72811543918.png" mode="widthFix"></image>
<view class="text">光线充足</view>
</view>
<view class="desc-item">
<image src="@/static/image/human/icon3.png" mode="widthFix"></image>
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/5fd8a6a7-a13e-44d6-acf1-a7ada94c699d.png" mode="widthFix"></image>
<view class="text">正对充足</view>
</view>
</view>
@ -66,7 +66,7 @@
console.log(JSON.stringify(res.tempFilePaths));
//
uni.navigateTo({
url: "/pages/punchCard/punchCard"
url: "/pages/subPack/punchCard/punchCard"
})
}
});

pages/punchCard/punchCard.vue → pages/subPack/punchCard/punchCard.vue View File


pages/record/record.vue → pages/subPack/record/record.vue View File


pages/team/team.vue → pages/subPack/team/team.vue View File


BIN
static/image/autonym/autonum-bg.png View File

Before After
Width: 2250  |  Height: 1466  |  Size: 152 KiB

BIN
static/image/autonym/info.png View File

Before After
Width: 70  |  Height: 70  |  Size: 3.8 KiB

BIN
static/image/center/center-bg.png View File

Before After
Width: 2250  |  Height: 978  |  Size: 41 KiB

BIN
static/image/center/menu1.png View File

Before After
Width: 112  |  Height: 108  |  Size: 2.9 KiB

BIN
static/image/center/menu2.png View File

Before After
Width: 111  |  Height: 103  |  Size: 5.7 KiB

BIN
static/image/center/menu3.png View File

Before After
Width: 116  |  Height: 116  |  Size: 7.9 KiB

BIN
static/image/home/change.png View File

Before After
Width: 256  |  Height: 256  |  Size: 4.0 KiB

BIN
static/image/home/location.png View File

Before After
Width: 256  |  Height: 256  |  Size: 10 KiB

BIN
static/image/home/sign.png View File

Before After
Width: 101  |  Height: 97  |  Size: 2.5 KiB

BIN
static/image/home/top-bg.png View File

Before After
Width: 2250  |  Height: 1466  |  Size: 81 KiB

BIN
static/image/human/icon1.png View File

Before After
Width: 276  |  Height: 276  |  Size: 14 KiB

BIN
static/image/human/icon2.png View File

Before After
Width: 274  |  Height: 274  |  Size: 14 KiB

BIN
static/image/human/icon3.png View File

Before After
Width: 273  |  Height: 273  |  Size: 12 KiB

BIN
static/image/human/img.png View File

Before After
Width: 1338  |  Height: 1338  |  Size: 124 KiB

Loading…
Cancel
Save