From 3494a779b0a0de00154363b4ab88c1676f8735c4 Mon Sep 17 00:00:00 2001
From: "3321822538@qq.com" <3321822538@qq.com>
Date: Thu, 26 Sep 2024 17:35:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=8A=E5=9E=AB=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
page_user/deviceedit.vue | 492 +++++++++++++++++++++++++++++++++++++-
page_user/fuwu.vue | 193 +++++----------
page_user/homepage.vue | 40 +++-
page_user/mydetail.vue | 18 +-
page_user/mydingdan.vue | 8 +-
page_user/orderdetail.vue | 10 +-
page_user/yewuyuanxq.vue | 28 ++-
pages.json | 15 ++
pages/my.vue | 31 ++-
pages/zhuce.vue | 241 +++++++++++--------
10 files changed, 825 insertions(+), 251 deletions(-)
diff --git a/page_user/deviceedit.vue b/page_user/deviceedit.vue
index f38a12a..f9ae04f 100644
--- a/page_user/deviceedit.vue
+++ b/page_user/deviceedit.vue
@@ -45,6 +45,55 @@
+
+
+
+ 开关操作
+
+
+
+
+
+
+
+
+
+
+ 设备已离线,正在连接该设备蓝牙
+
+
+ 请将手机与设备尽量靠近,连接成功后可操作
+
+
+
+
+
+
+
+
+ 蓝牙连接失败
+
+
+ 请确保手机足够靠近设备
+
+
+ 并且设备处于上电状态
+
+
+
+ 取消
+
+
+ 重新连接
+
+
+
+
+
+
@@ -105,26 +154,46 @@
收益明细
- {{item.arrivalName == undefined ? '--' : item.arrivalName}}(平台公司合作伙伴渠道商创业者经营场所){{item.point}}%
-
+ {{item.arrivalName == undefined ? '--' : item.arrivalName}}
+ (平台
+ 公司
+ 合作伙伴
+ 渠道商
+ 创业者
+ 经营场所){{item.point}}%
@@ -326,6 +329,7 @@
background-color: #F7FAFE !important;
height: 100vh;
width: 100%;
+ overflow: scroll;
padding: 28rpx;
box-sizing: border-box;
.box{
diff --git a/page_user/yewuyuanxq.vue b/page_user/yewuyuanxq.vue
index 64d6ab7..8019fce 100644
--- a/page_user/yewuyuanxq.vue
+++ b/page_user/yewuyuanxq.vue
@@ -30,7 +30,7 @@
分成比例:
- {{obj.point}}%
+ {{obj.point == undefined ? '--' : obj.point}}%
创建时间:
@@ -52,6 +52,14 @@
累计订单:
{{obj.billCount == undefined ? '--' : obj.billCount}}单
+
+ 本月新增设备:
+ {{obj.currentMonthAddDevice == undefined ? '--' : obj.currentMonthAddDevice}}台
+
+
+ 上月新增设备:
+ {{obj.lastMonthAddDevice == undefined ? '--' : obj.lastMonthAddDevice}}台
+
@@ -65,13 +73,15 @@
backgroundColor: "#8883f0",
},
userId:'',
- obj:{}
+ obj:{},
+ type:''
}
},
onLoad(option) {
+ this.getuser()
this.userId = option.userId
this.getxq()
- },
+ },
// 分享到好友(会话)
onShareAppMessage: function() {
return {
@@ -96,7 +106,15 @@
this.obj = res.data
}
})
- }
+ },
+ // 获取本人信息
+ getuser(){
+ this.$u.get(`app/user/userInfo`).then(res =>{
+ if(res.code == 200){
+ this.type = res.data.type
+ }
+ })
+ }
}
@@ -150,7 +168,7 @@
}
.jiben{
width: 680rpx;
- max-height: 480rpx;
+ max-height: 530rpx;
background: #FFFFFF;
border-radius: 24rpx 24rpx 24rpx 24rpx;
margin: auto;
diff --git a/pages.json b/pages.json
index c2e667f..151e029 100644
--- a/pages.json
+++ b/pages.json
@@ -30,6 +30,14 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/luru",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/tj",
"style": {
@@ -330,6 +338,13 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
+ },{
+ "path": "dingdan",
+ "style": {
+ "navigationBarTitleText": "上传",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
}
]
}
diff --git a/pages/my.vue b/pages/my.vue
index 75fc7ec..ae6de20 100644
--- a/pages/my.vue
+++ b/pages/my.vue
@@ -1,6 +1,6 @@
- 333
+
@@ -17,6 +17,35 @@
}
},
methods: {
+ click(){
+ // 检查是否支持生物认证
+ uni.checkIsSupportSoterAuthentication({
+ success: (res) => {
+ // 调用人脸识别API
+ wx.startFacialRecognitionVerify({
+ name: '吴鹏', // 用户名称
+ idCardNumber: '430523200402073551', // 身份证号码
+ success: (result) => {
+ if (result.errMsg === 'startFacialRecognitionVerify:ok') {
+ // 处理人脸识别成功的情况
+ console.log('人脸识别成功');
+ }
+ },
+ fail: (error) => {
+ // 处理人脸识别失败的情况
+ uni.showToast({
+ title: '人脸识别失败',
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ });
+ },
+ fail: (err) => {
+ console.log('支持生物认证失败', err);
+ }
+ });
+ }
}
}
diff --git a/pages/zhuce.vue b/pages/zhuce.vue
index bd12172..d3f3159 100644
--- a/pages/zhuce.vue
+++ b/pages/zhuce.vue
@@ -7,16 +7,14 @@
-
+
- 状态:已录入 已录入 未录入
-
- SN码:
+
+ SN码:{{item.sn == undefined ? '--' : item.sn}}
@@ -25,15 +23,16 @@
蓝牙强度:{{item.RSSI}}
-
型号选择:{{item.xuanz == undefined ? '--' : item.xuanz}}
-
+ -->
-
- 开关
- 扫码
- 录入
+
+
+ 选择
+
@@ -62,7 +61,7 @@