Bladeren bron

删除

newStyle
风继续吹 1 jaar geleden
bovenliggende
commit
6deb385086
4 gewijzigde bestanden met toevoegingen van 70 en 48 verwijderingen
  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 Bestand weergeven

@@ -30,29 +30,40 @@
this.bulidIngObj = uni.getStorageSync('buildingID')
},
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) {
uni.request({
url: config.service.addLog,
method: "POST",
header: {
'content-type': 'application/json',
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
'Authorization': 'Bearer ' + uni.getStorageSync(
'weapp_session_login_data').token
},
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",
recordId: data.id
recordId: data.id
},
success: (data) => {
console.log(data)
@@ -113,7 +124,7 @@
}
return obj
},
// 检测权限 返回 Boolean类型
CHECKAUTHORITY(name = '') {
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({
index: 4
})
}
}).catch(e => {
uni.removeTabBarBadge({
index: 4
})
})

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

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

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

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

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

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

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

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

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

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

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


+ 1
- 0
config.js Bestand weergeven

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

+ 2
- 1
pages/reportExcel/dayReport.vue Bestand weergeven

@@ -608,7 +608,8 @@
forShare() {
this.$u.get("/zkMessage/shareMessage", {
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 Bestand weergeven

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



Laden…
Annuleren
Opslaan