Browse Source

删除

newStyle
风继续吹 1 year ago
parent
commit
6deb385086
4 changed files with 70 additions and 48 deletions
  1. +65
    -46
      App.vue
  2. +1
    -0
      config.js
  3. +2
    -1
      pages/reportExcel/dayReport.vue
  4. +2
    -1
      pages/reportExcel/weekReport.vue

+ 65
- 46
App.vue View File

@@ -30,29 +30,40 @@
this.bulidIngObj = uni.getStorageSync('buildingID') this.bulidIngObj = uni.getStorageSync('buildingID')
}, },
addLookingCount(id) { addLookingCount(id) {
// uni.request({
// url: config.service.addLog
// })
// this.$u.post('/user/addLookingCount', { houseId: uni.getStorageSync('buildingID').id, recordId: id })
let obj = {
id: id,
}
this.sendLog(obj)
uni.request({
url: config.service.addLookingCount,
method: "POST",
header: {
'content-type': 'application/json',
'Authorization': 'Bearer ' + uni.getStorageSync(
'weapp_session_login_data').token
},
data: {
houseId: data.houseId || uni.getStorageSync(
'buildingID').id,
houseName: data.houseName || uni.getStorageSync(
'buildingID').name,
recordId: id
},
})
}, },
sendLog(data) { sendLog(data) {
uni.request({ uni.request({
url: config.service.addLog, url: config.service.addLog,
method: "POST", method: "POST",
header: { header: {
'content-type': 'application/json', 'content-type': 'application/json',
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
'Authorization': 'Bearer ' + uni.getStorageSync(
'weapp_session_login_data').token
}, },
data: { data: {
houseId: data.houseId || uni.getStorageSync('buildingID').id,
houseName: data.houseName ||uni.getStorageSync('buildingID').name,
houseId: data.houseId || uni.getStorageSync(
'buildingID').id,
houseName: data.houseName || uni.getStorageSync(
'buildingID').name,
serviceId: "test", serviceId: "test",
recordId: data.id
recordId: data.id
}, },
success: (data) => { success: (data) => {
console.log(data) console.log(data)
@@ -113,7 +124,7 @@
} }
return obj return obj
}, },
// 检测权限 返回 Boolean类型 // 检测权限 返回 Boolean类型
CHECKAUTHORITY(name = '') { CHECKAUTHORITY(name = '') {
let menu = uni.getStorageSync('weapp_session_Menu_data') let menu = uni.getStorageSync('weapp_session_Menu_data')
@@ -212,29 +223,29 @@
} }
} }
}) })
this.$u.get(config.service.notReadNum, {
id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
projectId: uni.getStorageSync('buildingID').id
}).then(res => {
console.log(res)
if (res > 0) {
uni.setTabBarBadge({ //显示数字
index: 4, //tabbar下标
text: res || 0 //数字
})
} else {
uni.removeTabBarBadge({
index: 4
})
}
}).catch(e => {


this.$u.get(config.service.notReadNum, {
id: uni.getStorageSync('weapp_session_userInfo_data').accountId,
projectId: uni.getStorageSync('buildingID').id
}).then(res => {
console.log(res)
if (res > 0) {
uni.setTabBarBadge({ //显示数字
index: 4, //tabbar下标
text: res || 0 //数字
})
} else {
uni.removeTabBarBadge({ uni.removeTabBarBadge({
index: 4 index: 4
}) })
}
}).catch(e => {
uni.removeTabBarBadge({
index: 4
}) })
})

// this.$u.get("/user/getUser") // this.$u.get("/user/getUser")
// .then(data => { // .then(data => {
// if (data.user.total==0) { // if (data.user.total==0) {
@@ -331,11 +342,12 @@
color: #333333; color: #333333;
line-height: 42rpx; line-height: 42rpx;
margin-right: 30rpx; margin-right: 30rpx;

.righttochoose { .righttochoose {
width: 24rpx;
height: 12rpx;
margin-left: 12rpx;
}
width: 24rpx;
height: 12rpx;
margin-left: 12rpx;
}
} }
} }


@@ -389,6 +401,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 38rpx; margin-bottom: 38rpx;

.jindu-name { .jindu-name {
width: 120rpx; width: 120rpx;
font-size: 28rpx; font-size: 28rpx;
@@ -398,28 +411,33 @@
line-height: 40rpx; line-height: 40rpx;
} }


.progress-cus{
.progress-cus {
flex: 1; flex: 1;
height: 30rpx; height: 30rpx;
margin-left: 10rpx; margin-left: 10rpx;
background: #F0F1F2; background: #F0F1F2;
.color{

.color {
height: 30rpx; height: 30rpx;
background: linear-gradient(90deg, #3A82EF 0%, #7EB2FF 100%); background: linear-gradient(90deg, #3A82EF 0%, #7EB2FF 100%);
} }
.color4{

.color4 {
height: 30rpx; height: 30rpx;
background: linear-gradient(270deg, #6DC5B8 0%, #07B79D 100%); background: linear-gradient(270deg, #6DC5B8 0%, #07B79D 100%);
} }
.color1{

.color1 {
height: 30rpx; height: 30rpx;
background: linear-gradient(270deg, #F88881 0%, #E6625B 100%);//1
background: linear-gradient(270deg, #F88881 0%, #E6625B 100%); //1
} }
.color2{

.color2 {
height: 30rpx; height: 30rpx;
background: linear-gradient(270deg, #FFC940 0%, #FF981E 100%);//2
background: linear-gradient(270deg, #FFC940 0%, #FF981E 100%); //2
} }
.color3{

.color3 {
height: 30rpx; height: 30rpx;
background: linear-gradient(270deg, #FFE800 0%, #FFCC00 100%); //3 background: linear-gradient(270deg, #FFE800 0%, #FFCC00 100%); //3
} }
@@ -502,7 +520,8 @@
line-height: 40rpx; line-height: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.circle{

.circle {
width: 20rpx; width: 20rpx;
height: 20rpx; height: 20rpx;
background: #FFFFFF; background: #FFFFFF;


+ 1
- 0
config.js View File

@@ -90,6 +90,7 @@ var config = {
notReadNum: `${host}/zkMessage/findFlagCount`, notReadNum: `${host}/zkMessage/findFlagCount`,
// 隐私协议 // 隐私协议
privacyAgr: `${host}/zkPrivate/findById`, privacyAgr: `${host}/zkPrivate/findById`,
addLookingCount: `${hostAdmin}/log/addLookingCount`,
} }
}; };
module.exports = config; module.exports = config;

+ 2
- 1
pages/reportExcel/dayReport.vue View File

@@ -608,7 +608,8 @@
forShare() { forShare() {
this.$u.get("/zkMessage/shareMessage", { this.$u.get("/zkMessage/shareMessage", {
id: this.id, id: this.id,
houseId: uni.getStorageSync('buildingID').id
houseId: uni.getStorageSync('buildingID').id,
username: uni.getStorageSync('weapp_session_userInfo_data').username
}) })
}, },




+ 2
- 1
pages/reportExcel/weekReport.vue View File

@@ -600,7 +600,8 @@
forShare() { forShare() {
this.$u.get("/zkMessage/shareMessage", { this.$u.get("/zkMessage/shareMessage", {
id: this.id, id: this.id,
houseId: uni.getStorageSync('buildingID').id
houseId: uni.getStorageSync('buildingID').id,
username: uni.getStorageSync('weapp_session_userInfo_data').username
}) })
}, },




Loading…
Cancel
Save