大屏评估内容完成

This commit is contained in:
jxg 2024-10-02 15:59:53 +08:00
parent 6bc44aa11a
commit 2b1c66b0f7
8 changed files with 221 additions and 90 deletions

View File

@ -1,4 +1,17 @@
.pageBox{
.back-btn {
width: 136px;
height: 76px;
position: fixed;
right: 0;
top: 1400px;
z-index: 666;
.back-img {
width: 136px;
height: 76px;
}
}
.bgBackground {
position: fixed;
top: 0;

View File

@ -65,7 +65,8 @@
<view class="line flex-conter habit" style="color: #3F4040;width: 30%;">
<view>{{ item1.habitType }}</view>
<view>
<span :style="{ 'color': index1 == 0 ? '#10AB4A' :index1 == 1?'#FF901C':'#FF7B7B' }">{{ item1.score }}</span></view>
<span :style="{ 'color': index1 == 0 ? '#10AB4A' :index1 == 1?'#FF901C':'#FF7B7B' }">{{
item1.score }}</span></view>
</view>
<!-- <view class="line flex-sub flex-conter" :style="{'color':index1==0?'#3F4040':'#FF7B7B'}">
{{item1.score}}</view> -->
@ -93,13 +94,15 @@
<block v-for="(item1,index1) in formeDate.assessList" :key="index1">
<view class="tableList flex text-sm">
<!-- 危险因素 -->
<view class="line flex-sub factor" style="color: #17191A;text-align: left;">{{item1.name}}</view>
<view class="line flex-sub factor" style="color: #17191A;text-align: left;">{{item1.name}}
</view>
<!-- 本次评估 -->
<view class="line flex-sub factor" style="color:#D95959;text-align: left;">
{{item1.newAssess}}
</view>
<!-- 理想水平 -->
<view class="line flex-sub factor" style="color: #3F4040;text-align: left;">{{item1.idealValue}}</view>
<view class="line flex-sub factor" style="color: #3F4040;text-align: left;">
{{item1.idealValue}}</view>
</view>
</block>
</view>
@ -127,9 +130,13 @@
<!-- <view class="btnBottom">
<view class="btn" @tap="goPage">查看个人自主计划</view>
</view> -->
<view class="btnBottom" v-if="formeDate.id!=null && isBtn">
<view class="btnBottom" v-if="formeDate.id!=null && isBtn == true">
<view class="btn" @tap="goPages" v-if="Statusdata>0">{{'查看个人自主计划'}}</view>
<view class="btn" @tap="goPage">{{'创建个人自主计划'}}</view>
<view class="btn" @tap="goPage">{{ '创建个人自主计划' }}</view>
</view>
<view class="back-btn" v-if="isBtn == false" @click="onGoHome">
<image src="https://shayu5qny.yhy.ren/shoye_back.png" class="back-img"></image>
</view>
</view>
</template>
@ -166,7 +173,9 @@
}
console.log(JSON.stringify(a))
let data = JSON.parse(decodeURIComponent(opt.params))
this.isBtn = data.isBtn?data.isBtn:true
console.log("data11111",data)
this.isBtn = data.isBtn == false ?data.isBtn:true
console.log("this.isBtn",this.isBtn)
if (data.userParameters) {
this.userParameters = JSON.parse(data.userParameters)
} else {
@ -186,6 +195,12 @@
this.getInfo()
},
methods: {
//
onGoHome() {
uni.reLaunch({
url: '/pages/largeScreenEvaluation/evaluationIndex'
})
},
getInfo() {
let that = this
showLoading('加载中...')

View File

@ -7,7 +7,19 @@
height: 606rpx;
background: linear-gradient(145deg, #E4F5EB 0%, rgba(228, 245, 235, 0) 100%);
}
.back-btn {
width: 136px;
height: 76px;
position: fixed;
right: 0;
top: 1400px;
z-index: 666;
.back-img {
width: 136px;
height: 76px;
}
}
.themColor {
color: $uni-color;
}

View File

@ -227,6 +227,9 @@
<nothing :marginTop='40' context='暂无评估数据~'></nothing>
</block>
</view>
<view class="back-btn" v-if="isBtn == false" @click="onGoHome">
<image src="https://shayu5qny.yhy.ren/shoye_back.png" class="back-img"></image>
</view>
</view>
</template>
@ -314,11 +317,14 @@
series: '', //
healthList: {},
isChart: false, //
isBtn:true,
}
},
onLoad(opt) {
let data = JSON.parse(decodeURIComponent(opt.params))
console.log("带进来的参数",data)
this.isBtn = data.isBtn == false ?data.isBtn:true
console.log("this.isBtn",this.isBtn)
uni.setNavigationBarTitle({
title: data.title?data.title + '评估报告':"评估报告",
success: () => {
@ -345,6 +351,12 @@
this.getInfo()
},
methods: {
//
onGoHome() {
uni.reLaunch({
url: '/pages/largeScreenEvaluation/evaluationIndex'
})
},
getFunnelData() {
//
//

View File

@ -1,6 +1,19 @@
.pageBox{
background-color: #E6EFF1;
height: 100%;
.back-btn {
width: 136px;
height: 76px;
position: fixed;
right: 0;
top: 1400px;
z-index: 666;
.back-img {
width: 136px;
height: 76px;
}
}
.themColor{
color: $uni-color;
}

View File

@ -75,12 +75,15 @@
</view>
</view>
<!-- 底部按钮 -->
<view class="bottomBtn flex-conter" @click="viewPlan">
<view class="bottomBtn flex-conter" v-if="isBtn == true" @click="viewPlan">
<view class="btn">点击领取您的专属健康计划</view>
</view>
</scroll-view>
</block>
</view>
<view class="back-btn" v-if="isBtn == 'false'" @click="onGoHome">
<image src="https://shayu5qny.yhy.ren/shoye_back.png" class="back-img"></image>
</view>
</view>
</template>
@ -105,6 +108,7 @@
memberId: '',
userInfo:{},
userId:"",
isBtn:true
}
},
//
@ -123,6 +127,8 @@
}else{
this.userInfo = uni.getStorageSync("info")
}
this.isBtn = opt.isBtn == 'false' ?opt.isBtn:true
console.log("this.isBtn ",this.isBtn )
this.$set(this,'memberId',opt.memberId)
this.userId = opt.userId
this.getInfo()
@ -133,6 +139,12 @@
}
},
methods: {
//
onGoHome() {
uni.reLaunch({
url: '/pages/largeScreenEvaluation/evaluationIndex'
})
},
getInfo() {
let that = this
let a = ''

View File

@ -4,8 +4,8 @@
<view class="top-part">
<image src="https://shayu5qny.yhy.ren/company_icon.png" class="icon"></image>
<view class="userInfo-group">
<image src="" class="avatar"></image>
<view class="name">一只小蜜蜂</view>
<image :src="userInfo.avatar" class="avatar"></image>
<view class="name">{{ userInfo.nickName }}</view>
</view>
</view>
<view class="center-part">
@ -40,23 +40,27 @@
export default {
data() {
return {
userInfo:{},
}
},
onLoad(){
this.userInfo = uni.getStorageSync('userInfo').sysUser
console.log("userInfo",this.userInfo)
},
methods: {
//
onJumpLifeEvaluation(){
let params = {
age: 30,
age: this.userInfo.age,
cno: "",
dicCode: "",
diseases: "95",
headSculpture: "https://sharkbaby.yhy.ren/微信图片_20221014085453.png",
headSculpture: this.userInfo.avatar,
id: "",
memberId: "0",
name: "快乐的大太阳",
name: this.userInfo.nickName,
typed: 2,
userId: "8779"
userId: this.userInfo.userId
}
uni.navigateTo({
url: '/pages/largeScreenEvaluation/detail?params=' + JSON.stringify(params)
@ -108,7 +112,6 @@ export default {
height: 66px;
width: 66px;
border-radius: 50%;
background: red;
margin-right: 20px;
}

View File

@ -205,16 +205,50 @@ export default {
isShow: 0, //0
categoryId: "",//ID
mindOtherList: [],//-
userInfo:{},//
customer:11,
deptId: 327, //
agentMerId:"",
agentMerCode:"",
customerCode:"",
customerId:"",
customerLoginId:"",
token:"",
openId:"",
}
},
onLoad(option) {
console.log("option",option.groupShow,uni.getStorageSync('userInfo'))
this.userInfo = uni.getStorageSync('userInfo').sysUser
this.token = uni.getStorageSync('userInfo').token
this.openId = this.userInfo.openId
let agentMerId = (this.userInfo['agentMerId'] || this.userInfo['agentMerCode']) || ''
let customerId = (this.userInfo['customerCode'] || this.userInfo['customerId']) || this.customer
console.log("agentMerId,customerId",agentMerId,customerId)
this.agentMerId = agentMerId
this.agentMerCode = agentMerId
this.customerCode = customerId
this.customerId = customerId
this.customerLoginId = customerId
this.groupShow = option.groupShow
this.checkList[option.groupShow].isChecked = true
if (option.groupShow == 1) {
this.newselectDictList()
} else if (option.groupShow == 2) {
this.newTypeList()
// if (option.groupShow == 1) {
// this.newselectDictList()
// } else if (option.groupShow == 2) {
// this.newTypeList()
// }
},
onShow(){
if(this.groupShow){
}else{
this.groupShow = 1
this.checkList[1].isChecked = true
}
setTimeout(()=>{
this.newselectDictList()
this.newTypeList()
},100)
},
methods: {
//
@ -238,8 +272,22 @@ export default {
}
return item;
});
if (index == 0) {
if (index == 0) { //
let params = {
age: this.userInfo.age,
cno: "",
dicCode: "",
diseases: "95",
headSculpture: this.userInfo.avatar,
id: "",
memberId: "0",
name: this.userInfo.nickName,
typed: 2,
userId: this.userInfo.userId
}
uni.navigateTo({
url: '/pages/largeScreenEvaluation/detail?params=' + JSON.stringify(params)
})
} else if (index == 1) {
this.newselectDictList()
} else {
@ -267,18 +315,18 @@ export default {
},
//
toIllnessEvaluation(item) {
console.log("item", item)
console.log("疾病评估item", item)
let params = {
age: 30,
cno: "",
age: this.userInfo.age,
cno: item.cno,
dicCode: "",
diseases: "111",
headSculpture: "https://sharkbaby.yhy.ren/微信图片_20221014085453.png",
diseases: item.id,
headSculpture: this.userInfo.avatar,
id: "",
memberId: "0",
name: "快乐的大太阳",
name: this.userInfo.nickName,
typed: 2,
userId: "8779"
userId: this.userInfo.userId
}
// let params = {
// age: age,
@ -298,18 +346,19 @@ export default {
},
//
toMindEvaluation(item) {
console.log("心理评估item",item)
let params = {
age: 30,
age: this.userInfo.age,
cno: "",
dicCode: "08",
dicCode: item.dictCode,
diseases: "",
headSculpture: "https://sharkbaby.yhy.ren/微信图片_20221014085453.png",
id: "0",
headSculpture: this.userInfo.avatar,
id: item.id,
memberId: "",
name: "清爽的犀牛",
name: this.userInfo.nickName,
title: "心理健康综合评估",
typed: 1,
userId: "7743"
userId: this.userInfo.userId
}
uni.navigateTo({
url: '/pages/largeScreenEvaluation/detail?params=' + JSON.stringify(params)
@ -320,17 +369,17 @@ export default {
console.log("item", item)
if (item.id == 95) { //
let params = {
age: '',
age: this.userInfo.age,
cno: item.cno,
dicCode: "",
diseases: item.id,
headSculpture: '',
headSculpture: this.userInfo.avatar,
id: "",
memberId: "0",
name: '小广',
name: this.userInfo.nickName,
title: "生活方式",
typed: 2,
userId: '8702',
userId: this.userInfo.userId,
isBtn: false,
}
console.log("params", params)
@ -341,21 +390,22 @@ export default {
} else if (item.id == 99) { //
// var url = 'https://syjk.yhy.ren/test-risk-assessment/#/pages/health-risks/newBasicReport/basicReport?diseaseId=' + item.id + '&userId=' + userInfo.userCode + '&avatar=' + userInfo.postCode + '&nickName=' + userInfo.name
uni.navigateTo({
url: '/pages/health-risks/newBasicReport/basicReport?diseaseId=' + item.id + '&userId=' + '8702' + '&avatar=' + '' + '&nickName=' + '小广'
url: '/pages/health-risks/newBasicReport/basicReport?diseaseId=' + item.id + '&userId=' + this.userInfo.userId + '&avatar=' + this.userInfo.avatar + '&nickName=' + this.userInfo.nickName + '&isBtn=' + false
})
} else {
let params = {
age: '',
age: this.userInfo.age,
cno: item.cno,
dicCode: "",
diseases: item.id,
headSculpture: '',
headSculpture: this.userInfo.avatar,
id: "",
memberId: "0",
name: '小广呀',
name: this.userInfo.nickName,
title: '',
typed: 2,
userId: '8702'
userId: this.userInfo.userId,
isBtn: false,
}
// var url = 'https://syjk.yhy.ren/test-risk-assessment/#/pages/health-risks/evaluationResults/evaluationResults?params=' + JSON.stringify(params)
uni.navigateTo({
@ -365,6 +415,7 @@ export default {
},
//
toWithoutMindEvaluation(item) {
console.log("外部心理评估",item)
// this.$API.diggmindUserDetails({
// data: {
// id: item.id,
@ -385,16 +436,16 @@ export default {
// })
this.$API.diggmindUserStartAssessment({
data: {
id: 496,
openId: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
token: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
userId: 8702,
deptId: 346,
agentMerId: 8758,
agentMerCode: 8758,
customerCode: 8764,
customerId: 8764,
customerLoginId: 8764
id: item.id,
openId: this.openId,
token: this.token,
userId: this.userInfo.userId,
deptId: this.deptId,
agentMerId: this.agentMerId,
agentMerCode: this.agentMerCode,
customerCode: this.customerCode,
customerId: this.customerId,
customerLoginId: this.customerLoginId
}
}).then(res => {
if (res.code == 200) {
@ -410,15 +461,15 @@ export default {
diseaseType: 0,
diseaseName: this.contentText,
familyId: 0,
openId: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
token: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
userId: 7792,
deptId: 1,
agentMerId: 5,
agentMerCode: 5,
customerCode: 11,
customerId: 11,
customerLoginId: 11,
openId: this.openId,
token: this.token,
userId: this.userInfo.userId,
deptId: this.deptId,
agentMerId: this.agentMerId,
agentMerCode: this.agentMerCode,
customerCode: this.customerCode,
customerId: this.customerId,
customerLoginId: this.customerLoginId,
}
}).then(res => {
if (res.code == 200) {
@ -430,15 +481,15 @@ export default {
newTypeList() {
this.$API.newTypeList({
data: {
openId: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
token: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
userId: 7792,
deptId: 1,
agentMerId: 5,
agentMerCode: 5,
customerCode: 11,
customerId: 11,
customerLoginId: 11,
openId: this.openId,
token: this.token,
userId: this.userInfo.userId,
deptId: this.deptId,
agentMerId: this.agentMerId,
agentMerCode: this.agentMerCode,
customerCode: this.customerCode,
customerId: this.customerId,
customerLoginId: this.customerLoginId,
}
}).then(res => {
if (res.code == 200) {
@ -460,15 +511,15 @@ export default {
psychologyDictList() {
this.$API.psychologyDictList({
data: {
openId: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
token: 'ot5qo4g199gwfsI1wnpoi-xP_1cA',
userId: 8702,
deptId: 346,
agentMerId: 8758,
agentMerCode: 8758,
customerCode: 8764,
customerId: 8764,
customerLoginId: 8764
openId: this.openId,
token: this.token,
userId: this.userInfo.userId,
deptId: this.deptId,
agentMerId: this.agentMerId,
agentMerCode: this.agentMerCode,
customerCode: this.customerCode,
customerId: this.customerId,
customerLoginId: this.customerLoginId
}
}).then(res => {
if (res.code == 200) {
@ -480,16 +531,16 @@ export default {
diggmindUserList() {
this.$API.diggmindUserList({
data: {
agentMerCode: 8758,
agentMerId: 8758,
agentMerCode: this.agentMerCode,
agentMerId: this.agentMerId,
category_id: this.categoryId,
customerCode: 8764,
customerId: 8764,
customerLoginId: 8764,
deptId: 346,
openId: "ot5qo4g199gwfsI1wnpoi-xP_1cA",
token: "ot5qo4g199gwfsI1wnpoi-xP_1cA",
userId: 8702
customerCode: this.customerCode,
customerId: this.customerId,
customerLoginId: this.customerLoginId,
deptId: this.deptId,
openId: this.openId,
token: this.token,
userId: this.userInfo.userId
}
}).then(res => {
if (res.code == 200) {