评估迁移4.0
|
@ -3,7 +3,8 @@ import {
|
|||
} from "/tool/index.js"
|
||||
export default {
|
||||
// baseUrl: 'https://syjk.yhy.ren/xcx-test/', // 测试
|
||||
baseUrl: 'https://syjk.yhy.ren/xcx-api/', // 生产
|
||||
// baseUrl: 'https://syjk.yhy.ren/xcx-api/', // 生产
|
||||
baseUrl:'http://192.171.1.17:8088/api/',
|
||||
|
||||
post(url, param) {
|
||||
return this.ajax('post', url, param)
|
||||
|
|
315
src/pages.json
|
@ -12,18 +12,6 @@
|
|||
"navigationBarTitleText": "评估详情页"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/psychological-assessment/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "心理评估"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/psychological-assessment/result/result",
|
||||
"style": {
|
||||
"navigationBarTitleText": "评估报告"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/health-risks/basicReport/basicReport",
|
||||
"style": {
|
||||
|
@ -74,41 +62,6 @@
|
|||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Integral/home/home",
|
||||
"style": {
|
||||
"navigationBarTitleText": "积分兑换",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Integral/exchangeRecords/exchangeRecords",
|
||||
"style": {
|
||||
"navigationBarTitleText": "兑换记录",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Integral/home/details/details",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品详情",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Integral/home/Confirmed/Confirmed",
|
||||
"style": {
|
||||
"navigationBarTitleText": "确认兑换",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/Integral/home/orderDetails/orderDetails",
|
||||
"style": {
|
||||
"navigationBarTitleText": "详情",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/health-risks/newBasicReport/basicReport",
|
||||
"style": {
|
||||
|
@ -124,230 +77,10 @@
|
|||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"subPackages": [{
|
||||
"root": "pages/quitSmoking",
|
||||
"pages": [{
|
||||
"path": "index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "戒烟圈"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "smokingDiary/smokingDiary",
|
||||
"style": {
|
||||
"navigationBarTitleText": "戒烟日记",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "smokingTips/smokingTips",
|
||||
"style": {
|
||||
"navigationBarTitleText": "时光穿梭"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "statistics/statistics",
|
||||
"style": {
|
||||
"navigationBarTitleText": "烟瘾数据统计"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "smokingSituation/smokingSituation",
|
||||
"style": {
|
||||
"navigationBarTitleText": "吸烟情况"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "recoveryScore/recoveryScore",
|
||||
"style": {
|
||||
"navigationBarTitleText": "健康恢复评分"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "result/result",
|
||||
"style": {
|
||||
"navigationBarTitleText": "尼古丁依赖程度"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "content/content",
|
||||
"style": {
|
||||
"navigationBarTitleText": "填写内容"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "evaluationRecord/evaluationRecord",
|
||||
"style": {
|
||||
"navigationBarTitleText": "评估记录"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "timeTravel/timeTravel",
|
||||
"style": {
|
||||
"navigationBarTitleText": "时光穿梭"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "question/question",
|
||||
"style": {
|
||||
"navigationBarTitleText": "问卷"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "scriptsList/scriptsList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "秘籍"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "scriptsLearn/scriptsLearn",
|
||||
"style": {
|
||||
"navigationBarTitleText": "学习"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "scriptsDetail/scriptsDetail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "cessationData/cessationData",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的戒烟数据"
|
||||
}
|
||||
}
|
||||
]
|
||||
}, {
|
||||
"root": "pages/selfRegistration",
|
||||
"pages": [{
|
||||
"path": "index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "问卷调查"
|
||||
}
|
||||
}, {
|
||||
"path": "templateSelection/templateSelection",
|
||||
"style": {
|
||||
"navigationBarTitleText": "任务选择"
|
||||
}
|
||||
}, {
|
||||
"path": "editTemplate/editTemplate",
|
||||
"style": {
|
||||
"navigationBarTitleText": "编辑任务"
|
||||
}
|
||||
}, {
|
||||
"path": "actionList/actionList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "行动列表"
|
||||
}
|
||||
}, {
|
||||
"path": "planningCycle/planningCycle",
|
||||
"style": {
|
||||
"navigationBarTitleText": "计划周期"
|
||||
}
|
||||
}, {
|
||||
"path": "dailyTasks/dailyTasks",
|
||||
"style": {
|
||||
"navigationBarTitleText": "每日任务"
|
||||
}
|
||||
}, {
|
||||
"path": "planDiary/planDiary",
|
||||
"style": {
|
||||
"navigationBarTitleText": "计划日记",
|
||||
"onReachBottomDistance": 50
|
||||
}
|
||||
}, {
|
||||
"path": "content/content",
|
||||
"style": {
|
||||
"navigationBarTitleText": "填写日记"
|
||||
}
|
||||
}, {
|
||||
"path": "eventRecording/eventRecording",
|
||||
"style": {
|
||||
"navigationBarTitleText": "事件记录"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "planningReport/planningReport",
|
||||
"style": {
|
||||
"navigationBarTitleText": "计划报告"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/selfRegistration2",
|
||||
"pages": [{
|
||||
"path": "index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "问卷调查"
|
||||
}
|
||||
}, {
|
||||
"path": "templateSelection/templateSelection",
|
||||
"style": {
|
||||
"navigationBarTitleText": "任务选择"
|
||||
}
|
||||
}, {
|
||||
"path": "actionList/actionList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "行动列表"
|
||||
}
|
||||
}, {
|
||||
"path": "planningCycle/planningCycle",
|
||||
"style": {
|
||||
"navigationBarTitleText": "计划周期"
|
||||
}
|
||||
}, {
|
||||
"path": "dailyTasks/dailyTasks",
|
||||
"style": {
|
||||
"navigationBarTitleText": "每日任务"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "aplanning/aplanning",
|
||||
"style": {
|
||||
"navigationBarTitleText": "创建自主计划活动"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pictureCrop/pictureCrop",
|
||||
"style": {
|
||||
"navigationBarTitleText": "图片裁剪",
|
||||
"enablePullDownRefresh": false,
|
||||
"disableScroll": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "pages/agreement",
|
||||
"pages": [{
|
||||
"path": "userAgreement",
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户协议"
|
||||
}
|
||||
}, {
|
||||
"path": "privacyPolicy",
|
||||
"style": {
|
||||
"navigationBarTitleText": "隐私政策"
|
||||
}
|
||||
}, {
|
||||
"path": "serviceAgreement",
|
||||
"style": {
|
||||
"navigationBarTitleText": "会员服务协议"
|
||||
}
|
||||
}, {
|
||||
"path": "children",
|
||||
"style": {
|
||||
"navigationBarTitleText": "儿童隐私协议"
|
||||
}
|
||||
}, {
|
||||
"path": "web-view",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
"pages": []
|
||||
}, {
|
||||
"root": "pages/reports",
|
||||
"pages": [{
|
||||
|
@ -374,49 +107,5 @@
|
|||
"navigationBarTitleText": "生活方式评估"
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
"root": "pages/hairtailScreen",
|
||||
"pages": [{
|
||||
"path": "bestFood/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "最佳食物"
|
||||
}
|
||||
},{
|
||||
"path": "bestFood/detail/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},{
|
||||
"path": "foodIngredients/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},{
|
||||
"path": "foodIngredients/detail/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},{
|
||||
"path": "exchangePortion/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},{
|
||||
"path": "exchangePortion/index/index1",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path": "exchangePortion/detail/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},{
|
||||
"path": "foodexchange/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
}]
|
||||
}]
|
||||
}
|
||||
|
|
|
@ -1,111 +0,0 @@
|
|||
|
||||
|
||||
.pageBox{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
.grey{
|
||||
color: #909292;
|
||||
}
|
||||
.topBg{
|
||||
width: 100vw;
|
||||
height: 314rpx;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
background: $uni-color;
|
||||
}
|
||||
.contioner{
|
||||
padding: 16rpx 32rpx 88rpx;
|
||||
height: calc(314rpx - 104rpx);
|
||||
color: #fff;
|
||||
.caret-down-small.png{
|
||||
$wh:32rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
.posabition{
|
||||
position: absolute;
|
||||
bottom: -44rpx;
|
||||
z-index: 1;
|
||||
.tabber{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: calc(100vw - 160rpx);
|
||||
padding: 0 48rpx;
|
||||
height: 94rpx;
|
||||
background: #FFFFFF;
|
||||
color: #909292;
|
||||
font-weight: bold;
|
||||
box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(56,176,184,0.5);
|
||||
border-radius: 50rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cardPadding{
|
||||
padding: 92rpx 32rpx;
|
||||
.cutt{
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #EEEEEE;
|
||||
margin: 34rpx 0 20rpx 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.swiper{
|
||||
flex: 1;
|
||||
height: 0;
|
||||
.scrol {
|
||||
height: 97%;
|
||||
background-color: #E6EFF1;
|
||||
padding: 20rpx;
|
||||
.box{
|
||||
margin-right: 35rpx;
|
||||
background: #fff;
|
||||
padding: 20rpx;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 40rpx;
|
||||
.box_txt{
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
}
|
||||
.flex_box{
|
||||
// margin-top: 40rpx;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
// border-radius: 10px;
|
||||
.flex_item{
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 120rpx;
|
||||
|
||||
.img_txt{
|
||||
font-size: 36rpx;
|
||||
font-weight: 400;
|
||||
color: #FE8025;
|
||||
}
|
||||
.top_txt{
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.bot_txt{
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #8F98A6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,168 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="topBg"></view>
|
||||
<view class="contioner bg-video">
|
||||
<view class="flex flex-direction justify-between" style="height: 100%;">
|
||||
<view>
|
||||
<view class="text-xs">账户可用积分</view>
|
||||
<view class="text-bold" style="font-size: 80rpx;">{{currentIntegral}}</view>
|
||||
</view>
|
||||
<view class="flex-align text-sm text-bold">
|
||||
<view class="flex-contion" @click="showPop()">
|
||||
<image src="https://shayu5qny.yhy.ren/caret-down-small.png" class="caret-down-small.png">
|
||||
</image>
|
||||
<view>{{defaultData.month}}</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view style="margin-right: 52rpx;">收入<text class="margin-left-xs">{{currentIncome}}</text>
|
||||
</view>
|
||||
<view>支出<text class="margin-left-xs">{{currentDisbursement}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="posabition">
|
||||
<view class="tabber">
|
||||
<view :class="taberIndex==0?'themColor':''" @click="changeSelect(0)">全部</view>
|
||||
<view :class="taberIndex==1?'themColor':''" @click="changeSelect(1)">收入</view>
|
||||
<view :class="taberIndex==2?'themColor':''" @click="changeSelect(2)">支出</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="isShow">
|
||||
<view class="flex-sub" style="height: 0;" v-if="List.length!=0">
|
||||
<scroll-view style="height: 100%;" scroll-y @scrolltolower="scrollBottom">
|
||||
<view class="cardPadding text-sm">
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="flex-align">
|
||||
<view>
|
||||
<view class="text-bold">{{item.dictionaries}}</view>
|
||||
<view class="text-four marginTop-sm grey">
|
||||
{{item.integralChange=='0'?'收入':'支出'}}<text
|
||||
class="margin-left-xs">{{item.createTime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view :class="item.integralChange=='0'?'themColor':'grey'">
|
||||
{{item.integralChange=='0'?'+':'-'}}{{item.integralFlow}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cutt" v-if="List.length-1!=index"></view>
|
||||
</block>
|
||||
</view>
|
||||
<uni-load-more iconType="auto" status="loading" v-if="isMore"></uni-load-more>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<nothing :marginTop="250" v-else></nothing>
|
||||
</block>
|
||||
<!-- 时间弹框 -->
|
||||
<lingfeng-timepicker ref="timePop" type="year-month" :defaultData="defaultData" @change="timeChange">
|
||||
</lingfeng-timepicker>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'
|
||||
export default {
|
||||
computed: {
|
||||
...mapState([
|
||||
'userInfo'
|
||||
])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isShow: false, //数据是否渲染完成
|
||||
taberIndex: 0, //索引
|
||||
defaultData: {
|
||||
month: new Date().getFullYear() + '-' + (new Date().getMonth() + 1)
|
||||
},
|
||||
currentIntegral: 0, //账户积分余额
|
||||
currentIncome: 0, //当月收入
|
||||
currentDisbursement: 0, //当月支出
|
||||
List: [], //列表数据
|
||||
pageNum: 1, //当前页码
|
||||
pageSize: 20, //每页数据量
|
||||
total: 0, //总条数
|
||||
isMore: false, //上滑加载状态
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
showPop() {
|
||||
this.$refs.timePop.show();
|
||||
},
|
||||
timeChange(val) {
|
||||
this.isShow = false
|
||||
this.List = []
|
||||
this.pageNum = 1
|
||||
this.defaultData.month = val
|
||||
this.getList()
|
||||
},
|
||||
// 跳转到详细的订单页面
|
||||
goList(id) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Integral/home/orderDetails/orderDetails?id=${id}`
|
||||
})
|
||||
},
|
||||
async getList(val) {
|
||||
if (val == undefined) {
|
||||
let ret = await this.$API.getUserIntegralFlowVo({
|
||||
data: {
|
||||
flowDate: this.defaultData.month,
|
||||
userId: this.userInfo.userId
|
||||
}
|
||||
})
|
||||
if (ret.data != null) {
|
||||
console.log(ret.data,'ret.data')
|
||||
this.currentIntegral = ret.data.currentIntegral
|
||||
this.currentIncome = ret.data.currentIncome
|
||||
this.currentDisbursement = ret.data.currentDisbursement
|
||||
}
|
||||
}
|
||||
let index = 2 //收入/支出(0 收入 1 支出)
|
||||
if (this.taberIndex == 1) {
|
||||
index = 0
|
||||
} else if (this.taberIndex == 2) {
|
||||
index = 1
|
||||
} else {
|
||||
index = 2
|
||||
}
|
||||
let reg = await this.$API.getUserIntegralFlow({
|
||||
data: {
|
||||
flowDate: this.defaultData.month,
|
||||
integralChange: index,
|
||||
pageNum: this.pageNum, //当前页码
|
||||
pageSize: this.pageSize, //每页数据量
|
||||
}
|
||||
})
|
||||
let list = []
|
||||
list = reg.rows
|
||||
this.List = this.List.concat(list)
|
||||
this.total = reg.total
|
||||
this.isMore = false
|
||||
this.isShow = true
|
||||
},
|
||||
// tab切换
|
||||
changeSelect(index) {
|
||||
this.isShow = false
|
||||
this.List = []
|
||||
this.pageNum = 1
|
||||
this.taberIndex = index
|
||||
this.getList('重新加载')
|
||||
},
|
||||
//触底后触发
|
||||
scrollBottom() {
|
||||
if (this.List.length == this.total) return //如果数组长度等于总条数 显示“我是有底线的”
|
||||
this.isMore = true
|
||||
this.pageNum++
|
||||
this.getList('重新加载')
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './recordsList.scss';
|
||||
</style>
|
|
@ -1,152 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="card">
|
||||
<view class="flex-align text-sm">
|
||||
<view class="grey">订单编号:{{item.orderNo}}</view>
|
||||
<view class="themColor" style="width: 100rpx;">
|
||||
{{item.orderState=='0'?'待发货':item.orderState=='1'?'待收货':item.orderState=='2'?'已完成':'已撤销'}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="center">
|
||||
<view class="flex">
|
||||
<image :src="item.commodityImg" class="commodityImg"></image>
|
||||
<view class="flex flex-direction justify-between marginLeft-sm">
|
||||
<view class="text-bold">{{item.commodityName}}</view>
|
||||
<view>
|
||||
<view class="redColor text-sm"><text class="text">{{item.singleIntegral}}</text>积分
|
||||
</view>
|
||||
<view class="text-four grey margin-top-xs" style="text-decoration: line-through;">
|
||||
¥{{item.price}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="grey text-bold text-sm flex align-end">x{{item.orderDetailTotal}}</view>
|
||||
</view>
|
||||
<view class="text-sm flex-contion justify-end marginTop-sm">
|
||||
实付款:<text class="text redColor">{{item.singleIntegral}}</text>
|
||||
<text class="redColor">积分</text>
|
||||
</view>
|
||||
<!-- 分割线 -->
|
||||
<view class="cutt"></view>
|
||||
<view class="flex justify-end">
|
||||
<view class="btnTag" @click="redeemAgain">再次兑换</view>
|
||||
<view class="btnTag marginLeft-sm" @click="goLoglitics(item)" v-if="item.orderState=='1'||item.orderState=='2'">查看物流</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="icon_bg" v-if="!List.length&&imgflg">
|
||||
<view style="width: 100%;display: flex;justify-content: center;align-items: center;" >
|
||||
<img src="../static/images/nth2.png" alt="" style='height: 320rpx;width:320rpx'>
|
||||
</view>
|
||||
<view class="" style="text-align: center;width: 100%;font-size: 30rpx; color: #ccc;">
|
||||
暂无数据
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
List: [],
|
||||
imgflg:false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getInfo()
|
||||
|
||||
},
|
||||
methods: {
|
||||
async getInfo() {
|
||||
let ret = await this.$API.getIntegralOrderDetailFlow()
|
||||
this.List = ret.rows
|
||||
this.imgflg = true
|
||||
},
|
||||
// 再次兑换跳转
|
||||
redeemAgain() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
// 查看物流
|
||||
goLoglitics(item) {
|
||||
let obj = {
|
||||
id: item.orderNo,
|
||||
img: item.commodityImg
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/Integral/home/Logistics/Logistics?obj=' + encodeURIComponent(JSON.stringify(obj))
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
page {
|
||||
background: #E8EFF1;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
.pageBox{
|
||||
min-height:100vh;
|
||||
width:100%;
|
||||
position:relative;
|
||||
.icon_bg{
|
||||
position:absolute;
|
||||
top:50%;
|
||||
left:50%;
|
||||
transform:translate(-50%,-50%)
|
||||
}
|
||||
}
|
||||
.grey {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.redColor {
|
||||
color: #FF4545;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 44rpx;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 22rpx 32rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
margin: 0 32rpx;
|
||||
margin-top: 32rpx;
|
||||
|
||||
.center {
|
||||
padding-top: 38rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.commodityImg {
|
||||
width: 204rpx;
|
||||
height: 220rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: calc(100% + 64rpx);
|
||||
height: 2rpx;
|
||||
background: #EEEEEE;
|
||||
margin: 32rpx 0 18rpx 0;
|
||||
margin-left: -32rpx;
|
||||
}
|
||||
|
||||
.btnTag {
|
||||
width: 168rpx;
|
||||
text-align: center;
|
||||
line-height: 56rpx;
|
||||
border-radius: 8rpx;
|
||||
border: 2rpx solid #CCCCCC;
|
||||
color: #909292;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,132 +0,0 @@
|
|||
.pageBox{
|
||||
background-color: #E6EFF1;
|
||||
// padding-top: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
.top{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
// margin-top: 20rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
box-sizing: border-box;
|
||||
.one{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #323232;
|
||||
.one_img{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.two{
|
||||
|
||||
.two_top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 30rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
.two_flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;width: 80%;
|
||||
.two_img{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.two_bot{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.center{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
.center_left{
|
||||
.center_img{
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.center_right{
|
||||
margin-left: 25rpx;
|
||||
.center_top{
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.center_bot{
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
img{
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
vertical-align: middle;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
box-sizing: border-box;
|
||||
.bot_top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 30rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
}
|
||||
.bot_bot{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
}
|
||||
.btn{
|
||||
width: 100%;
|
||||
height: 120rpx;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
.btn_left{
|
||||
|
||||
}
|
||||
.btn_right{
|
||||
width: 400rpx;
|
||||
height: 80rpx;
|
||||
background: #3AAFB8;
|
||||
text-align: center;
|
||||
border-radius: 21px;
|
||||
line-height: 80rpx;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,259 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" >
|
||||
<view class="" style="flex: 1;">
|
||||
<view class="" style="height: 20rpx;">
|
||||
|
||||
</view>
|
||||
<!-- 地址 -->
|
||||
<!-- <view class="top">
|
||||
<view class="one" v-if="flg" @click="chooseAddress()">
|
||||
<text>请填写收货地址</text>
|
||||
<img src="../../static/images/3.png" alt="" class='one_img'>
|
||||
</view>
|
||||
<view class="two" v-else @click="chooseAddress()">
|
||||
<view class="two_top">
|
||||
<view class="" style="width: 150rpx;color: #7C8A9F;">
|
||||
收货人
|
||||
</view>
|
||||
<view class="two_flex" style="">
|
||||
<view class="" style="">
|
||||
<text>{{form.orderUser}} </text>
|
||||
<text style="margin-left: 20rpx;"> {{form.phonenumber}}</text>
|
||||
</view>
|
||||
<img src="../../static/images/3.png" alt="" class='two_img'>
|
||||
</view>
|
||||
</view>
|
||||
<view class="two_bot">
|
||||
<view class="" style="width: 150rpx;color: #7C8A9F;">
|
||||
收货地址
|
||||
</view>
|
||||
<view class="" style="width: 80%;">
|
||||
{{form.orderAddress}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 商品数量 -->
|
||||
<view class="center">
|
||||
<view class="center_left">
|
||||
<img :src="list.commodityImg" alt="" class='center_img'>
|
||||
</view>
|
||||
<view class="center_right">
|
||||
<view class="center_top">
|
||||
{{list.commodityName}}
|
||||
</view>
|
||||
<view class="center_bot">
|
||||
<img src="../../static/images/6.png" alt="" @click='del()'>
|
||||
<text style="margin-left: 20rpx;">{{num}}</text>
|
||||
<img src="../../static/images/7.png" alt="" @click='add()'>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 价格 -->
|
||||
<view class="bottom">
|
||||
<view class="bot_top">
|
||||
<view class="" style="width: 320rpx;color: #7C8A9F;">
|
||||
订单总价(含运费)
|
||||
</view>
|
||||
<view class="" style="font-size: 32rpx;color: #112950;">
|
||||
<text>¥ </text><text> 0</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="bot_bot">
|
||||
<view class="" style="width: 150rpx;color: #7C8A9F;">
|
||||
积分
|
||||
</view>
|
||||
<view class="" style="color: #112950;">
|
||||
<text style="font-size: 40rpx;">{{list.commodityIntegral}}</text
|
||||
style="font-size: 28rpx;"><text>积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 底部提交 -->
|
||||
<view class="btn">
|
||||
<view class="btn_left">
|
||||
<text style="color: #8E9AAB;">合计: </text>
|
||||
<text style="font-size: 40rpx;color: #FE8025;">{{list.commodityIntegral*num}}</text>
|
||||
<text style="font-size: 28rpx;color: #FE8025;"> 积分</text>
|
||||
</view>
|
||||
<view class="btn_right" @click="goOrder" v-if="jf">
|
||||
提 交
|
||||
</view>
|
||||
<view class="btn_right" v-else style="background-color: #fff;color: #8E9AAB;">
|
||||
积分不足
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
flg: true,
|
||||
num: 1,
|
||||
dz: false,
|
||||
jf: false,
|
||||
list: {
|
||||
commodityName:'',
|
||||
commodityIntegral:0
|
||||
},
|
||||
form: {
|
||||
// 订单地址
|
||||
orderAddress: "",
|
||||
// 订单详情
|
||||
orderDetail: [{
|
||||
// 商品id
|
||||
commodityCode: "",
|
||||
|
||||
// 数量
|
||||
orderDetailTotal: 0,
|
||||
|
||||
// 积分
|
||||
singleIntegral: 0,
|
||||
// 总积分
|
||||
totalDetailIntegral: 0,
|
||||
|
||||
}],
|
||||
|
||||
// 收件人
|
||||
orderUser: "",
|
||||
// 手机号
|
||||
phonenumber: '',
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
// this.chooseAddress()
|
||||
},
|
||||
onLoad(option) {
|
||||
this.list = JSON.parse(decodeURIComponent(option.obj))
|
||||
this.Pd()
|
||||
},
|
||||
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
// 判断是否显示立即兑换
|
||||
Pd() {
|
||||
if (this.list.jf < (this.list.commodityIntegral * this.num)) {
|
||||
this.jf = false
|
||||
} else {
|
||||
this.jf = true
|
||||
}
|
||||
},
|
||||
// 数量增加
|
||||
add() {
|
||||
this.num++
|
||||
this.Pd()
|
||||
},
|
||||
// 数量减少
|
||||
del() {
|
||||
if (this.num > 1) {
|
||||
this.num--
|
||||
}
|
||||
this.Pd()
|
||||
},
|
||||
goOrder() {
|
||||
// if (this.dz) {
|
||||
let obj = {
|
||||
// 订单地址
|
||||
orderAddress: this.form.orderAddress,
|
||||
// 订单详情
|
||||
orderDetail: [{
|
||||
// 商品id
|
||||
commodityCode: this.list.id,
|
||||
// 数量
|
||||
orderDetailTotal: this.num,
|
||||
// 积分
|
||||
singleIntegral: this.list.commodityIntegral,
|
||||
// 总积分
|
||||
totalDetailIntegral: this.list.commodityIntegral * this.num,
|
||||
}],
|
||||
// 收件人
|
||||
orderUser: this.form.orderUser,
|
||||
// 手机号
|
||||
phonenumber: this.form.phonenumber,
|
||||
|
||||
userCode: uni.getStorageSync("userId")
|
||||
}
|
||||
|
||||
this.$API.createIntegralOrder({
|
||||
data: obj
|
||||
}).then(res => {
|
||||
console.log(res, '积分')
|
||||
if (res.code == 200) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Integral/home/orderDetails/orderDetails?id=${res.data}`
|
||||
})
|
||||
}else{
|
||||
wx.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
console.log(obj, '请求数据')
|
||||
// } else {
|
||||
// wx.showToast({
|
||||
// title: '请填写收货地址!',
|
||||
// icon: 'none',
|
||||
// duration: 1500
|
||||
// });
|
||||
// }
|
||||
|
||||
},
|
||||
// 获取地址
|
||||
chooseAddress() {
|
||||
let _this = this
|
||||
uni.getSetting({
|
||||
success(res) {
|
||||
console.log("vres.authSetting['scope.address']:", res.authSetting['scope.address'])
|
||||
if (res.authSetting['scope.address']) {
|
||||
uni.chooseAddress({
|
||||
success(res) {
|
||||
console.log(res, '收货地址')
|
||||
_this.form.orderUser = res.userName
|
||||
_this.form.phonenumber = res.telNumber
|
||||
_this.form.orderAddress =
|
||||
`${res.provinceName}${res.cityName}${res.countyName}${res.detailInfo}`
|
||||
_this.flg = false
|
||||
_this.dz = true
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (res.authSetting['scope.address'] == false) {
|
||||
uni.openSetting({
|
||||
success(res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.chooseAddress({
|
||||
success(res) {
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './Confirmed.scss';
|
||||
</style>
|
|
@ -1,117 +0,0 @@
|
|||
.pageBox{
|
||||
padding-top: 20rpx;
|
||||
background-color: #E6EFF1;
|
||||
.top{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10px;
|
||||
.top_img{
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
vertical-align: middle;
|
||||
margin-right: 30rpx;
|
||||
}
|
||||
.txt{
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #7C8A9F;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.txt1{
|
||||
|
||||
}
|
||||
}
|
||||
.center{
|
||||
display: flex;
|
||||
width: 700rpx;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
margin: 20rpx auto;
|
||||
.center_left{
|
||||
margin-right: 30rpx;
|
||||
.center_img{
|
||||
height: 120rpx;
|
||||
width: 120rpx;
|
||||
}
|
||||
}
|
||||
.center_right{
|
||||
width: 100%;
|
||||
.center_flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
.center_flex_left{
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
}
|
||||
.center_flex_right{
|
||||
margin-right: 30rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #3AAFB8;
|
||||
}
|
||||
}
|
||||
.center_txt{
|
||||
margin-top: 10rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #7C8A9F;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
.bottom{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
.title{
|
||||
padding-left: 20rpx;
|
||||
border-left: 3px solid #3AAFB8;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
}
|
||||
.body{
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
.body_left{
|
||||
width: 30rpx;
|
||||
padding-top: 10rpx;
|
||||
.box{
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.body_right{
|
||||
width: 100%;
|
||||
.body_top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.body_bot{
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #112950;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,175 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contioner">
|
||||
<!-- 物流状态 -->
|
||||
<view class="logisticsStatus">
|
||||
<view class="flex">
|
||||
<!-- <image :src="goodsCoverImg" class="img"></image> -->
|
||||
<img :src="goodsCoverImg" alt="" class="img">
|
||||
<view class="flex-sub" style="line-height: 48rpx;">
|
||||
<view class="text-df bottomColor">承运来源:{{formState.ShipperName}}</view>
|
||||
<view class="text-df bottomColor">快递编码:{{formState.ShipperCode}}</view>
|
||||
<view class="text-df bottomColor">运单编号:{{formState.LogisticCode}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 物流跟踪 -->
|
||||
<view class="logisticsTracking marginTop-sm" v-if="formState.Traces.length>0">
|
||||
<view class="flex-contion">
|
||||
<view class="widthLeft"></view>
|
||||
<view class="rightColor text-lg text-bold">物流跟踪</view>
|
||||
</view>
|
||||
<!-- 分割线 -->
|
||||
<view class="cutt"></view>
|
||||
<!-- 纵向排列 -->
|
||||
<uni-steps :options="formState.Traces" active-color="#3AAFB8" :active="active" direction="column" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "@/tool/index.js"
|
||||
import * as types from '@/store/types.js'
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'
|
||||
export default {
|
||||
computed: {
|
||||
...mapState([
|
||||
'openId'
|
||||
])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
formState: {
|
||||
ShipperName:'',
|
||||
ShipperCode:'',
|
||||
LogisticCode:''
|
||||
},
|
||||
goodsCoverImg: '', //商品封面图
|
||||
active: 0,
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
let obj = JSON.parse(decodeURIComponent(option.obj))
|
||||
this.orderId = obj.id
|
||||
this.goodsCoverImg = obj.img
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
async getInfo() {
|
||||
this.$API.dindan({
|
||||
data: {
|
||||
orderNo: this.orderId
|
||||
}
|
||||
}).then((res) => {
|
||||
console.log(res,'数据')
|
||||
var d = []
|
||||
for (var i = res.data.Traces.length - 1; i >= 0; i--) {
|
||||
d.push(res.data.Traces[i])
|
||||
}
|
||||
this.formState = res.data
|
||||
this.formState.Traces = d
|
||||
this.formState.Traces = this.formState.Traces.map((item) => {
|
||||
return {
|
||||
title: item.AcceptStation,
|
||||
desc: item.AcceptTime
|
||||
}
|
||||
});
|
||||
console.log(this.formState.Traces);
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.pageBox {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background-color: #E6EFF1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.contioner {
|
||||
padding: 24rpx 32rpx;
|
||||
|
||||
.user {
|
||||
padding: 38rpx 24rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.img {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
margin-right: 28rpx;
|
||||
}
|
||||
|
||||
.leftColor {
|
||||
color: #7C8A9F;
|
||||
}
|
||||
|
||||
.rightColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
}
|
||||
|
||||
.logisticsStatus {
|
||||
padding: 26rpx 38rpx 26rpx 26rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.topColor {
|
||||
color: #112950;
|
||||
}
|
||||
|
||||
.bottomColor {
|
||||
color: #7C8A9F;
|
||||
}
|
||||
|
||||
.rightColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.img {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
margin-right: 32rpx;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.logisticsTracking {
|
||||
padding: 26rpx 32rpx 64rpx 34rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.widthLeft {
|
||||
width: 8rpx;
|
||||
height: 24rpx;
|
||||
background: $uni-color;
|
||||
border-radius: 4rpx;
|
||||
margin-right: 14rpx;
|
||||
}
|
||||
|
||||
.rightColor {
|
||||
color: #112950;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #C3C9D3;
|
||||
margin: 26rpx 0 36rpx 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -1,102 +0,0 @@
|
|||
.pageBox{
|
||||
background-color: #E6EFF1;
|
||||
// padding-top: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
|
||||
.top{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
border-radius: 10px;
|
||||
padding-bottom: 20rpx;
|
||||
background-color: #fff;
|
||||
.img{
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
.bot_box{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
.center{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
padding: 20rpx;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
margin-top: 20rpx;
|
||||
border-radius: 10px;
|
||||
.center_top{
|
||||
// margin-bottom: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
.center_txt{
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
padding-left: 10rpx;
|
||||
border-left: 3px solid #3AAFB8;
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
}
|
||||
.center_bot{
|
||||
margin-top: 20rpx;
|
||||
font-size: 26rpx
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
padding: 20rpx;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
margin-top: 20rpx;
|
||||
border-radius: 10px;
|
||||
// margin-bottom: 50rpx;
|
||||
.bottom_top{
|
||||
// margin-bottom: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
.bottom_txt{
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
padding-left: 10rpx;
|
||||
border-left: 3px solid #3AAFB8;
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
}
|
||||
.bottom_bot{
|
||||
margin-top: 20rpx;
|
||||
font-size: 26rpx
|
||||
}
|
||||
}
|
||||
.btnbox{
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
// padding: 0 25rpx;
|
||||
left: 0;
|
||||
.btn{
|
||||
width: 700rpx;
|
||||
border-radius: 21px;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
background-color: #3AAFB8;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
margin: 10rpx 25rpx;
|
||||
}
|
||||
}
|
||||
.box{
|
||||
height: 140rpx;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
|
@ -1,105 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" >
|
||||
<view class="" style="flex: 1;">
|
||||
<view class="" style="height:20rpx">
|
||||
|
||||
</view>
|
||||
<view class="top">
|
||||
<img :src="list.commodityImg" alt="" class='img'>
|
||||
<view class="" style="padding: 20rpx;">
|
||||
<view class="">
|
||||
{{list.commodityName}}
|
||||
</view>
|
||||
<view class="bot_box" style="">
|
||||
<view class="" style="font-size: 24rpx;font-weight: 400;color: #8F98A6;">
|
||||
品牌:{{list.brandName}}
|
||||
</view>
|
||||
<view class="" style="color: #FE8025;">
|
||||
<text style="font-size: 40rpx;">{{list.commodityIntegral}}</text>
|
||||
<text style="font-size: 24rpx;">积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="center">
|
||||
<view class="center_top">
|
||||
<text class="center_txt">关于退换货</text>
|
||||
</view>
|
||||
<view class="center_bot">
|
||||
不支持退货
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="bottom_top">
|
||||
<text class="bottom_txt">商品详情</text>
|
||||
</view>
|
||||
<view class="bottom_bot">
|
||||
<rich-text :nodes="list.commodityTxt"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="btnbox" style="">
|
||||
<view class="btn" @click="goConfirmed" v-if="list.commodityStock>0" >
|
||||
立即兑换
|
||||
</view>
|
||||
<view class="btn" v-else>
|
||||
暂无库存
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
// scrollH: function() {
|
||||
// let sys = uni.getSystemInfoSync();
|
||||
// let winWidth = sys.windowWidth;
|
||||
// let winrate = 750 / winWidth;
|
||||
// let winHeight = parseInt(sys.windowHeight * winrate)
|
||||
// return winHeight
|
||||
// console.log(sys)
|
||||
// }
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: {
|
||||
commodityName:'',
|
||||
brandName:'',
|
||||
commodityIntegral:'',
|
||||
commodityTxt:'',
|
||||
|
||||
},
|
||||
// 积分数量
|
||||
num: undefined,
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
onLoad(option) {
|
||||
this.list = JSON.parse(decodeURIComponent(option.obj))
|
||||
console.log(this.list,'数据')
|
||||
this.$set(this.list,'commodityTxt',this.list.commodityTxt.replace(/\<p/gi, '<p style="word-break: break-all;overflowWrap:break-word"'))
|
||||
this.$set(this.list,'commodityTxt',this.list.commodityTxt.replace(/\<img/gi, '<img style="max-width:100%"'))
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
goConfirmed() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Integral/home/Confirmed/Confirmed?obj=${encodeURIComponent(JSON.stringify(this.list))}`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './details.scss';
|
||||
</style>
|
|
@ -1,189 +0,0 @@
|
|||
.pageBox{
|
||||
width: 100%;
|
||||
// height: 100%;
|
||||
background: #E6EFF1;
|
||||
.top{
|
||||
background-color: #fff;
|
||||
}
|
||||
.center{
|
||||
.flexbox{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 700rpx;
|
||||
margin: 20rpx auto;
|
||||
.box{
|
||||
width: 250rpx;
|
||||
height: 90rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 10px;
|
||||
padding: 30rpx 40rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.lefttext{
|
||||
.p{
|
||||
height: 40rpx;
|
||||
line-height: 40rpx;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
font-size: 28rpx;
|
||||
|
||||
}
|
||||
.txt{
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
width:170rpx;
|
||||
color: #8E9AAB;
|
||||
height: 28rpx;
|
||||
line-height: 28rpx;
|
||||
margin-top:10rpx;
|
||||
}
|
||||
}
|
||||
.rightimg{
|
||||
.img{
|
||||
width: 74rpx;
|
||||
height: 74rpx;
|
||||
vertical-align:middle;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
.tabs{
|
||||
height: 88rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10rpx 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 10px;
|
||||
// width: 100%;
|
||||
.tabs_top{
|
||||
padding-bottom: 20rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #8E9AAB;
|
||||
}
|
||||
.active{
|
||||
border-bottom: 3px solid #3AAFB8;
|
||||
font-weight: 500;
|
||||
color: #112950;
|
||||
}
|
||||
}
|
||||
.drawerContent {
|
||||
padding:50rpx 30rpx 30rpx;
|
||||
font-size: 28rpx;
|
||||
.row {
|
||||
margin-bottom: 50rpx;
|
||||
.btn_box {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 20rpx;
|
||||
// box-sizing: border-box;
|
||||
.noselde,.selde {
|
||||
padding: 10rpx 10rpx;
|
||||
margin: 14rpx;
|
||||
border-radius: 10rpx;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
.noselde {
|
||||
background-color: #E6EFF1;
|
||||
border: 1px solid #E6EFF1;
|
||||
}
|
||||
.selde {
|
||||
border: 1px solid #FE8025;
|
||||
color: #FE8025;
|
||||
background-color: #fdf2df;
|
||||
}
|
||||
}
|
||||
}
|
||||
.bom_btn {
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
right: 0;
|
||||
width: 280px;
|
||||
height: 80rpx;
|
||||
background-color: #fff;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
font-size: 28rpx;
|
||||
view {
|
||||
width:100rpx;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
border-radius: 10rpx;
|
||||
|
||||
}
|
||||
.left {
|
||||
color: #333;
|
||||
border: 1px solid #8E9AAB;
|
||||
}
|
||||
.right {
|
||||
color: #fff;
|
||||
background-color: #FE8025;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.tabs_center{
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
.ComBox {
|
||||
width: 700rpx; //根据微信定义设置 如非必要不建议改为100%;
|
||||
// padding: 10rpx 30rpx;
|
||||
// background-color: #f7f7f7;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
.ComList {
|
||||
//未设置高度
|
||||
width: 270rpx;
|
||||
padding: 30rpx;
|
||||
background: #fff;
|
||||
border-radius: 8rpx;
|
||||
margin-top: 30rpx;
|
||||
.ImgBOX {
|
||||
width: 270rpx;
|
||||
height: 270rpx;
|
||||
border-radius: 12rpx;
|
||||
.Img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.Title {
|
||||
width: 270rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 44rpx;
|
||||
height: 88rpx;
|
||||
padding-top: 15rpx;
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.Price {
|
||||
width: 100%;
|
||||
height: 44rpx;
|
||||
line-height: 44rpx;
|
||||
padding-top: 15rpx;
|
||||
font-size: 26rpx;
|
||||
font-family: PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #3AAFB8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,502 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" :style="{minHeight:scrollH+'rpx'}">
|
||||
<view class="top">
|
||||
<uni-search-bar placeholder="搜索商品名称" bgColor="#EEEEEE" @confirm="search" @input="input" />
|
||||
</view>
|
||||
<view class="center">
|
||||
<view class="flexbox">
|
||||
<view class="box" @click="goList">
|
||||
<view class="lefttext">
|
||||
<view calss='p'>兑换记录</view>
|
||||
</view>
|
||||
<view class="rightimg">
|
||||
<image src="../static/images/10.png" mode="" class="img"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box" @click="goComponent">
|
||||
|
||||
<view class="lefttext">
|
||||
<view calss='p'>我可兑换</view>
|
||||
<view class="txt">可用积分{{currentIntegral}}分</view>
|
||||
</view>
|
||||
|
||||
<view class="rightimg">
|
||||
<image src="../static/images/11.png" mode="" class="img"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="tabs">
|
||||
<view class="tabs_top" v-for="(item,index) in arr" :key="index" :class="[num==index?'active':'']"
|
||||
@click="all(index)">
|
||||
{{item.name}}
|
||||
</view>
|
||||
<view class="tabs_top" @click="showDrawer">
|
||||
筛选
|
||||
</view>
|
||||
</view>
|
||||
<!-- 抽屉 -->
|
||||
<uni-drawer ref="showRight" mode="right" :mask-click="true" width="280">
|
||||
<scroll-view style="height: 100%;" scroll-y="true">
|
||||
<view class="drawerContent">
|
||||
<view class="row" v-for="(item,index) in btnList" :key="index">
|
||||
<view class="title">{{item.label}}</view>
|
||||
<view class="btn_box">
|
||||
<view v-for="(v,i) in item.children" :key="i" :data-vaule="v.data"
|
||||
@click="choice(item.type,i,$event)" :class="[v.selected?'selde':'noselde']"
|
||||
style="width: 40%;box-sizing: border-box;">
|
||||
{{v.name}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" style="height: 80rpx;">
|
||||
|
||||
</view>
|
||||
<view class="bom_btn">
|
||||
<view class="left" @click="reset">重置</view>
|
||||
<view class="right" @click="confirm">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</uni-drawer>
|
||||
|
||||
<view class="tabs_center">
|
||||
|
||||
<view class="ComBox" v-if="ComListSon">
|
||||
<view class="ComList" v-for="(item,index) in ComListSon" :key="item.id" @click="ToDel(item)">
|
||||
<view class="ImgBOX">
|
||||
<img :src="item.commodityImg" class="Img" alt="">
|
||||
</view>
|
||||
<view class="Title">
|
||||
{{item.commodityName}}
|
||||
</view>
|
||||
<view class="Price">
|
||||
{{item.commodityIntegral}}<text style="color: #8E9AAB;">积分</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="" style="height: 50rpx;">
|
||||
|
||||
</view>
|
||||
<view class="" v-if="ComListSon.length<1&&imgflg">
|
||||
<view class="" style="width: 100%;display: flex;justify-content: center;" >
|
||||
<img src="../static/images/nth2.png" alt="" style='height: 320rpx;width:320rpx'>
|
||||
</view>
|
||||
<view class="" style="text-align: center;width: 100%;font-size: 30rpx; color: #ccc;">
|
||||
暂无数据
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
scrollH: function() {
|
||||
let sys = uni.getSystemInfoSync();
|
||||
let winWidth = sys.windowWidth;
|
||||
let winrate = 750 / winWidth;
|
||||
let winHeight = parseInt(sys.windowHeight * winrate)
|
||||
return winHeight
|
||||
console.log(sys)
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
imgflg:false,
|
||||
ComList: [], //被合并的列表
|
||||
ComListSon: [],
|
||||
|
||||
num: 0,
|
||||
arr: [{
|
||||
name: '全部'
|
||||
}, {
|
||||
name: '只看兑换过的'
|
||||
}],
|
||||
// 请求参数
|
||||
query: {
|
||||
|
||||
// 商品id
|
||||
commodityId: '',
|
||||
// 商品名称
|
||||
commodityName: '',
|
||||
// 类别id
|
||||
categoryCode: '',
|
||||
// 品牌id
|
||||
brandCode: '',
|
||||
// 兑换积分
|
||||
integralMin: '',
|
||||
// 最大兑换积分
|
||||
integralMax: '',
|
||||
// 兑换过的 0 已兑换过
|
||||
redeemed: '',
|
||||
deptId: uni.getStorageSync("info").deptId,
|
||||
agentMerId: uni.getStorageSync("info").agentMerId,
|
||||
agentMerCode: uni.getStorageSync("info").agentMerCode,
|
||||
customerCode: uni.getStorageSync("info").customerCode,
|
||||
customerId: uni.getStorageSync("info").customerId,
|
||||
customerLoginId: uni.getStorageSync("info").customerLoginId,
|
||||
// userId
|
||||
// userId: 111
|
||||
},
|
||||
// 防抖
|
||||
timeId: null,
|
||||
// 筛选数据
|
||||
btnList: [
|
||||
// {
|
||||
// label: "筛选",
|
||||
// type: 0,
|
||||
// children: [{
|
||||
// id: true, //1看过 2没看过
|
||||
// data: 'redeemed',
|
||||
// selected: false,
|
||||
// name: '只看兑换过的'
|
||||
// }]
|
||||
// },
|
||||
{
|
||||
label: "分类",
|
||||
type: 0,
|
||||
children: [
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "品牌",
|
||||
type: 1,
|
||||
children: [
|
||||
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "所需积分",
|
||||
type: 2,
|
||||
children: [{
|
||||
id: 1,
|
||||
data: 'isReviev',
|
||||
selected: false,
|
||||
name: '1-100'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
data: 'isReviev',
|
||||
selected: false,
|
||||
name: '101-1000'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
data: 'isReviev',
|
||||
selected: false,
|
||||
name: '1000-3000'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
data: 'isReviev',
|
||||
selected: false,
|
||||
name: '3000以上'
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
// 用户积分
|
||||
currentIntegral: '',
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
onLoad() {
|
||||
this.getbrand()
|
||||
this.getList()
|
||||
},
|
||||
onShow(){
|
||||
this.getjifen()
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
onReachBottom: function() {
|
||||
//下拉触发事件
|
||||
// this.page++;
|
||||
// this.getDefault(this.page);
|
||||
console.log('触发了下拉加载更多的事件')
|
||||
},
|
||||
methods: {
|
||||
async getjifen(){
|
||||
let reb = await this.$API.getUserIntegral({
|
||||
data: {
|
||||
userId: uni.getStorageSync("userId")
|
||||
}
|
||||
})
|
||||
console.log(reb, '用户积分')
|
||||
if (reb.code == 200) {
|
||||
this.currentIntegral = reb.data.currentIntegral
|
||||
// this.$emit('currentIntegral',this.currentIntegral)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
async getbrand() {
|
||||
|
||||
let res = await this.$API.getCommodityCategorys({
|
||||
data: {
|
||||
userId: uni.getStorageSync("userId"),
|
||||
deptId: uni.getStorageSync("info").deptId,
|
||||
agentMerId: uni.getStorageSync("info").agentMerId,
|
||||
agentMerCode: uni.getStorageSync("info").agentMerCode,
|
||||
customerCode: uni.getStorageSync("info").customerCode,
|
||||
customerId: uni.getStorageSync("info").customerId,
|
||||
customerLoginId: uni.getStorageSync("info").customerLoginId,
|
||||
}
|
||||
})
|
||||
console.log(res, '商品分类', this.btnList[0].children)
|
||||
res.data.twoCategories.length && res.data.twoCategories.forEach(item => {
|
||||
this.btnList[0].children.push({
|
||||
id: item.id,
|
||||
data: 'categoryCode',
|
||||
selected: false,
|
||||
name: item.categoryName,
|
||||
})
|
||||
|
||||
})
|
||||
// this.arr[1] = this.btnList[0].children[0] || {name:''}
|
||||
// this.arr[2] = this.btnList[1].children[1] || {name:''}
|
||||
// this.arr[3] = this.btnList[1].children[2] || {name:''}
|
||||
|
||||
let ree = await this.$API.getCommodityBrands({
|
||||
data: {
|
||||
userId:uni.getStorageSync("userId"),
|
||||
deptId: uni.getStorageSync("info").deptId,
|
||||
agentMerId: uni.getStorageSync("info").agentMerId,
|
||||
agentMerCode: uni.getStorageSync("info").agentMerCode,
|
||||
customerCode: uni.getStorageSync("info").customerCode,
|
||||
customerId: uni.getStorageSync("info").customerId,
|
||||
customerLoginId: uni.getStorageSync("info").customerLoginId,
|
||||
}
|
||||
}).then(ree => {
|
||||
console.log(ree, '商品品牌')
|
||||
ree.data.length && ree.data.forEach(item => {
|
||||
this.btnList[1].children.push({
|
||||
id: item.id,
|
||||
data: 'brandCode',
|
||||
selected: false,
|
||||
name: item.brandName
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
// 获取商品列表
|
||||
async getList() {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
duration: 2000
|
||||
});
|
||||
let rer = await this.$API.getCommoditys({
|
||||
data: this.query
|
||||
}).then(rer => {
|
||||
console.log(rer, '商品信息')
|
||||
if (rer.code == 200) {
|
||||
// if (rer.data.length < 1) {
|
||||
// uni.showToast({
|
||||
// title: '暂无数据!',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// });
|
||||
// }
|
||||
this.ComListSon = rer.data
|
||||
|
||||
this.imgflg=true
|
||||
}else{
|
||||
this.imgflg=true
|
||||
}
|
||||
uni.hideLoading()
|
||||
|
||||
})
|
||||
},
|
||||
// 点击我能兑换
|
||||
goComponent() {
|
||||
this.query.integralMin = 0
|
||||
this.query.integralMax = this.currentIntegral
|
||||
this.getList()
|
||||
},
|
||||
// 跳转兑换记录页面
|
||||
goList() {
|
||||
setTimeout(()=>{
|
||||
uni.navigateTo({
|
||||
url: `/pages/Integral/exchangeRecords/exchangeRecords`
|
||||
})
|
||||
},0)
|
||||
},
|
||||
// 跳转到详情
|
||||
ToDel(id) {
|
||||
|
||||
//参数在跳转页的onLoad(id){ console.log('id为' + id) } 中获取
|
||||
this.$set(id, 'jf', this.currentIntegral)
|
||||
|
||||
uni.navigateTo({
|
||||
url: `/pages/Integral/home/details/details?obj=${encodeURIComponent(JSON.stringify(id))}`
|
||||
})
|
||||
// wx.showToast({
|
||||
// title: '将要跳转的详情页id为' + id,
|
||||
// icon: 'none',
|
||||
// duration: 500
|
||||
// });
|
||||
},
|
||||
getComList(page) {
|
||||
//参数为页数
|
||||
// 将获取的第page页数据合并进原数组 举例
|
||||
// axios.post('/list',{page:page}).then(res=>{
|
||||
// if(res.code == 1){ //接口调用成功
|
||||
// this.ComListSon = res.data
|
||||
// }else{
|
||||
// wx.showToast(
|
||||
// { title: res.mes?res.msg:'信息获取错误',
|
||||
// icon: 'none', duration: 500 });
|
||||
// }
|
||||
// Array.prototype.push.apply(this.ComList, this.ComListSon);
|
||||
//合并加载更多的数据与源数据.
|
||||
// })
|
||||
//
|
||||
},
|
||||
// 重置筛选
|
||||
reset() {
|
||||
this.btnList.forEach(item => {
|
||||
item.children.forEach(v => {
|
||||
v.selected = false
|
||||
})
|
||||
})
|
||||
// this.query. = {
|
||||
// 商品id
|
||||
this.query.commodityId='',
|
||||
// 商品名称
|
||||
this.query.commodityName= this.query.commodityName,
|
||||
// 类别id
|
||||
this.query.categoryCode= '',
|
||||
// 品牌id
|
||||
this.query.brandCode= '',
|
||||
// 兑换积分
|
||||
this.query.integralMin= '',
|
||||
// 最大兑换积分
|
||||
this.query.integralMax= '',
|
||||
// 兑换过的 0 已兑换过
|
||||
this.query.redeemed= this.query.redeemed,
|
||||
// userId
|
||||
this.query.userId= uni.getStorageSync("userId")
|
||||
// }
|
||||
// this.$refs.showRight.close();
|
||||
this.getList()
|
||||
},
|
||||
// 确认按钮
|
||||
confirm() {
|
||||
// this.getPageData()
|
||||
this.getList()
|
||||
this.$refs.showRight.close();
|
||||
},
|
||||
//筛选-选择按钮
|
||||
choice(type, index, e) {
|
||||
// 第几行 第几个
|
||||
console.log(type, index, e.currentTarget.dataset.vaule, '点击的数据')
|
||||
const v = e.currentTarget.dataset.vaule
|
||||
this.btnList[type].children.forEach(item => {
|
||||
item.selected = false
|
||||
this.query[item.data] = undefined
|
||||
|
||||
})
|
||||
let item = this.btnList[type]
|
||||
item.children[index].selected = true
|
||||
this.$set(this.btnList, type, item)
|
||||
//
|
||||
this.query[v] = this.btnList[type].children[index].id
|
||||
// 处理数据按后台传参
|
||||
if (this.query.isReviev == 1) {
|
||||
this.query.integralMin = 1,
|
||||
this.query.integralMax = 100
|
||||
}
|
||||
if (this.query.isReviev == 2) {
|
||||
this.query.integralMin = 101,
|
||||
this.query.integralMax = 1000
|
||||
}
|
||||
if (this.query.isReviev == 3) {
|
||||
this.query.integralMin = 1000,
|
||||
this.query.integralMax = 3000
|
||||
}
|
||||
if (this.query.isReviev == 4) {
|
||||
this.query.integralMin = 3000,
|
||||
this.query.integralMax = 1000000
|
||||
}
|
||||
if (this.btnList[0].children[0].selected) {
|
||||
this.query.redeemed = 0
|
||||
} else {
|
||||
this.query.redeemed = ''
|
||||
}
|
||||
},
|
||||
// 控制抽屉打开
|
||||
showDrawer() {
|
||||
this.$refs.showRight.open();
|
||||
// this.num = 0
|
||||
},
|
||||
// 控制抽屉关闭
|
||||
closeDrawer() {
|
||||
this.$refs.showRight.close();
|
||||
this.reset()
|
||||
},
|
||||
// 筛选选择
|
||||
all(index) {
|
||||
console.log(index)
|
||||
this.num = index
|
||||
if (this.arr[index].name == '全部') {
|
||||
// this.reset()
|
||||
this.query.integralMin = ''
|
||||
this.query.integralMax = ''
|
||||
this.query.categoryCode = ''
|
||||
this.query.redeemed = ''
|
||||
this.getList()
|
||||
} else {
|
||||
this.query.redeemed = 0
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
// 搜索
|
||||
search(res) {
|
||||
// uni.showToast({
|
||||
// title: '搜索:' + res.value,
|
||||
// icon: 'none'
|
||||
// })
|
||||
},
|
||||
|
||||
input(res) {
|
||||
// 输入框使用防抖
|
||||
this.query.commodityName = res
|
||||
if (this.timeId) {
|
||||
// 有就清除定时器
|
||||
clearInterval(this.timeId)
|
||||
}
|
||||
// 为 this.timeId赋值,定时器表示1000毫秒内触发了input事件就不执行,只有超过了1000毫秒才执行
|
||||
this.timeId = setTimeout(() => {
|
||||
console.log(res)
|
||||
this.getList()
|
||||
}, 1000)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './home.scss';
|
||||
</style>
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.4 KiB |
|
@ -1,128 +0,0 @@
|
|||
.pageBox{
|
||||
background-color: #E6EFF1;
|
||||
// padding-top: 20rpx;
|
||||
.background{
|
||||
background-color: #3AAFB8;
|
||||
height: 250rpx;
|
||||
position: relative;
|
||||
// margin-bottom: 150rpx;
|
||||
|
||||
.top{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
bottom: -120rpx;
|
||||
left: 50%;
|
||||
margin-left: -350rpx;
|
||||
.two{
|
||||
.two_top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 30rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
.two_flex{
|
||||
align-items: center;
|
||||
width: 80%;
|
||||
|
||||
}
|
||||
}
|
||||
.two_bot{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 30rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.center{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
.center_left{
|
||||
.center_img{
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.center_right{
|
||||
margin-left: 25rpx;
|
||||
.center_top{
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.center_bot{
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
img{
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
vertical-align: middle;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.bottom{
|
||||
background-color: #fff;
|
||||
padding: 30rpx;
|
||||
border-radius: 10rpx;
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
box-sizing: border-box;
|
||||
.bot_top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
border-bottom: 1px solid #C3C9D3;
|
||||
.bot_top_img{
|
||||
height: 24rpx;
|
||||
width: 24rpx;
|
||||
margin-left: 10rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
.bot_bot{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 30rpx;
|
||||
.bot_top_img{
|
||||
height: 24rpx;
|
||||
width: 24rpx;
|
||||
margin-left: 10rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btn{
|
||||
width: 700rpx;
|
||||
position: fixed;
|
||||
bottom: 20rpx;
|
||||
left: 50%;
|
||||
margin-left: -350rpx;
|
||||
border-radius: 21px;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
background-color: #3AAFB8;
|
||||
color: #fff;
|
||||
font-size: 28rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,218 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" :style="{ height: scrollH + 'rpx' }">
|
||||
<view class="background">
|
||||
<view class="" style="text-align: center">
|
||||
<img
|
||||
src="../../static/images/8.png"
|
||||
alt=""
|
||||
style="height: 92rpx; width: 92rpx; vertical-align: middle"
|
||||
/>
|
||||
<text
|
||||
style="margin-left: 20rpx; color: #fff"
|
||||
v-if="list.orderState == 1"
|
||||
>待收货</text
|
||||
>
|
||||
<text
|
||||
style="margin-left: 20rpx; color: #fff"
|
||||
v-if="list.orderState == 0"
|
||||
>待发货</text
|
||||
>
|
||||
<text
|
||||
style="margin-left: 20rpx; color: #fff"
|
||||
v-if="list.orderState == 2"
|
||||
>已完成</text
|
||||
>
|
||||
<text
|
||||
style="margin-left: 20rpx; color: #fff"
|
||||
v-if="list.orderState == 3"
|
||||
>已撤销</text
|
||||
>
|
||||
</view>
|
||||
<!-- 地址 -->
|
||||
<!-- <view class="top">
|
||||
<view class="two">
|
||||
<view class="two_top">
|
||||
<view class="" style="width: 150rpx; color: #7c8a9f"> 收货人 </view>
|
||||
<view class="two_flex" style="">
|
||||
<view class="" style="">
|
||||
<text>{{ list.orderUser }} </text>
|
||||
<text style="margin-left: 20rpx">{{ list.phonenumber }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="two_bot">
|
||||
<view class="" style="width: 150rpx; color: #7c8a9f">
|
||||
收货地址
|
||||
</view>
|
||||
<view class="" style="width: 80%">
|
||||
{{ list.orderAddress }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<!-- 商品数量 -->
|
||||
<view class="center">
|
||||
<view class="center_left">
|
||||
<img :src="list.detailList[0].commodityImg" alt="" class="center_img" />
|
||||
</view>
|
||||
<view class="center_right">
|
||||
<view class="center_top">
|
||||
{{ list.detailList[0].commodityName ? list.detailList[0].commodityName : "" }}
|
||||
</view>
|
||||
<view class="center_bot">
|
||||
<text style="">X{{ list.detailList[0].orderDetailTotal ? list.detailList[0].orderDetailTotal : "" }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 价格 -->
|
||||
<view class="bottom">
|
||||
<view class="bot_top">
|
||||
<view class="" style="width: 250rpx; color: #7c8a9f; font-size: 28rpx">
|
||||
订单总价(含运费)
|
||||
</view>
|
||||
<view class="" style="font-size: 28rpx; color: #112950">
|
||||
<text>¥ </text><text> 0</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bot_top">
|
||||
<view class="" style="width: 250rpx; color: #7c8a9f; font-size: 28rpx">
|
||||
消耗积分
|
||||
</view>
|
||||
<view class="" style="font-size: 28rpx; color: #112950">
|
||||
<text> {{ list.totalIntegral }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bot_top">
|
||||
<view class="" style="width: 250rpx; color: #7c8a9f; font-size: 28rpx">
|
||||
兑换时间
|
||||
</view>
|
||||
<view class="" style="font-size: 28rpx; color: #112950">
|
||||
<text> {{ list.detailList[0].createTime }} </text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bot_top">
|
||||
<view class="" style="width: 120rpx; color: #7c8a9f; font-size: 28rpx">
|
||||
订单编号
|
||||
</view>
|
||||
<view
|
||||
class=""
|
||||
style="font-size: 28rpx; color: #112950"
|
||||
@tap="copy(list.orderNo)"
|
||||
>
|
||||
<text> {{ list.orderNo }}</text
|
||||
><img
|
||||
src="../../static/images/9.png"
|
||||
alt=""
|
||||
class="bot_top_img"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bot_bot">
|
||||
<view class="" style="width: 150rpx; color: #7c8a9f; font-size: 28rpx">
|
||||
快递单号
|
||||
</view>
|
||||
<view class="" style="color: #112950" @tap="copy(list.logisticsNo)">
|
||||
<text style="font-size: 28rpx">{{
|
||||
list.logisticsNo == null ? "" : list.logisticsNo
|
||||
}}</text>
|
||||
<img
|
||||
v-if="list.logisticsNo != null"
|
||||
src="../../static/images/9.png"
|
||||
alt=""
|
||||
class="bot_top_img"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 查看物流 -->
|
||||
<view class="btn" @click="goLoglitics" v-if="list.orderState > 0">
|
||||
<!-- <view class="btn" @click="goLoglitics" > -->
|
||||
查看物流
|
||||
</view>
|
||||
<view class="" style="height: 120rpx"> </view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
scrollH: function () {
|
||||
let sys = uni.getSystemInfoSync();
|
||||
let winWidth = sys.windowWidth;
|
||||
let winrate = 750 / winWidth;
|
||||
let winHeight = parseInt(sys.windowHeight * winrate);
|
||||
return winHeight;
|
||||
console.log(sys);
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
flg: false,
|
||||
num: 1,
|
||||
list: undefined,
|
||||
id: "",
|
||||
};
|
||||
},
|
||||
onReady() {},
|
||||
|
||||
onLoad(option) {
|
||||
console.log(option.id, "订单号");
|
||||
if (option.id) {
|
||||
this.getdata(option.id);
|
||||
this.id = option.id;
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: "没有获取到订单号!",
|
||||
icon: "none",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {},
|
||||
methods: {
|
||||
copy(value) {
|
||||
console.log(value);
|
||||
uni.setClipboardData({
|
||||
data: value,
|
||||
success: function () {
|
||||
//调用方法成功
|
||||
console.log("success", value);
|
||||
},
|
||||
});
|
||||
},
|
||||
goLoglitics() {
|
||||
let obj = {
|
||||
id: this.id,
|
||||
img: this.list.detailList[0].commodityImg,
|
||||
};
|
||||
uni.navigateTo({
|
||||
url:
|
||||
"/pages/Integral/home/Logistics/Logistics?obj=" +
|
||||
encodeURIComponent(JSON.stringify(obj)),
|
||||
});
|
||||
},
|
||||
async getdata(id) {
|
||||
let res = await this.$API
|
||||
.getIntegralOrderDetail({ data: { orderNo: id } })
|
||||
.then((res) => {
|
||||
console.log(res, "订单");
|
||||
if (res.code == 200) {
|
||||
this.list = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "./orderDetails.scss";
|
||||
</style>
|
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 6.4 KiB |
|
@ -1,171 +0,0 @@
|
|||
<template>
|
||||
<div class="contioner">
|
||||
<h3 class="cneter">鲨鱼云康儿童个人信息保护规则及监护人须知</h3>
|
||||
<p>本政策仅适用于湖南鲨鱼健康有限公司
|
||||
的鲨鱼云康App提供的产品或服务,包括您访问鲨鱼云康App使用平台提供的服务。</p>
|
||||
<p>版本生效日期:2024年01月15日</p>
|
||||
<p>最近更新日期:2024年01月15日</p>
|
||||
<p>湖南鲨鱼健康有限公司(“鲨鱼云康”或“我们”)深知儿童(指未满十四周岁的未成年人,下同)个人信息和隐私安全的重要性。
|
||||
在《鲨鱼云康隐私政策》的基础上,我们希望通过《鲨鱼云康儿童个人信息保护规则及监护人须知》(以下简称“本政策”)说明我们在收集和使用儿童个人信息时对应的处理规则等相关事宜。
|
||||
您作为您孩子的父母或其他监护人 ((1)法定监护人,(2)指定监护人, (3)遗嘱监护人,(4)委托监护人,以下统称为“监护人”),
|
||||
请在您或您孩子使用鲨鱼云康产品及服务(定义详见《鲨鱼云康隐私政策》)前务必仔细阅读并透彻理解本政策,在确认充分理解并同意全部条款后再开始使用或允许您的孩子使用。</p>
|
||||
<p>目录</p>
|
||||
<p>一、我们如何收集和使用儿童个人信息</p>
|
||||
<p>二、我们如何共享、转让、公开披露儿童个人信息</p>
|
||||
<p>三、我们如何储存儿童个人信息</p>
|
||||
<p>四、我们如何保护儿童个人信息</p>
|
||||
<p>五、本政策的修订</p>
|
||||
<p>六、如何联系我们</p>
|
||||
<p>监护人特别说明<p>
|
||||
<p>监护人,是指对无民事行为能力人和限制民
|
||||
事行为能力人的人身、财产和其他一切合法权益
|
||||
负有监护职责的人。您需要理解和配合我们,确
|
||||
保您的孩子在您的同意和指导下使用鲨鱼云康服务
|
||||
和向我们提交个人信息。我们将根据本政策采取
|
||||
特殊措施保护我们获得的您孩子的个人信息。如
|
||||
果您不同意本政策的内容,请您要求您的孩子立
|
||||
即停止访问或使用鲨鱼云康产品及服务。<p>
|
||||
<p>儿童特别说明<p>
|
||||
<p>本政策中的儿童是指年龄不满14周岁的人
|
||||
员,任何儿童参加网上活动都应事先取得监护人
|
||||
的同意。如果您是儿童,请务必通知您的监护人
|
||||
共同阅读本政策,并在您使用鲨鱼云康服务、提交
|
||||
个人信息之前,寻求您的监护人的同意和指导。
|
||||
本政策适用于我们在中华人民共和国境内通
|
||||
过网络从事收集、存储、使用、转移、分享和披
|
||||
露儿童个人信息等活动,包含鲨鱼云康App、鲨鱼云康
|
||||
小程序、鲨鱼云康或鲨鱼云康关联公司物联网家电设
|
||||
备、网站及微信小程序等。本政策为在《鲨鱼云康
|
||||
隐私政策》基础上制定的特别规则,与《鲨鱼云康
|
||||
隐私政策》如有不一致之处,以本规则为准
|
||||
本规则未载明之处,则参照适用《鲨鱼云康隐私政
|
||||
策》。<p>
|
||||
<p>在阅读完本政策后,如对本政策或与本政策
|
||||
相关的事宜有任何问题,可通过本政策“六、如
|
||||
何联系我们”章节所列的反馈渠道联系我们,我
|
||||
们会尽快作出解答。<p>
|
||||
<h3>一、我们如何收集和使用儿童个人信息</h3>
|
||||
<p>(一)我们会严格履行法律法规规定的儿童个人信息保护义务与责任,遵循正当必要、知情同意、目的明确、安全保障、依法利用的原则在征得监护人的同意后收集和使用儿童个人信息:</p>
|
||||
<p>1、为了更好地保护儿童的权益,我们可能向监护
|
||||
人收集更多信息(例如姓名、身份证、户口本或
|
||||
其他监护关系证明),以便进一步验证监护人与
|
||||
儿童的监护关系。</p>
|
||||
<p>2、您在使用鲨鱼云康服务中主动向我们提供您孩子
|
||||
的个人信息,例如您在我们为您提供的评论、社
|
||||
区及其他信息发布功能下分享的您孩子的照片或
|
||||
视频,视为您已经同意我们收集和按照本政策的
|
||||
内容收集和使用您孩子的个人信息。</p>
|
||||
<p>(二)您或您的孩子在使用鲨鱼云康服务过程
|
||||
中,我们为向您或者您的孩子提供鲨鱼云康服务
|
||||
提供个性化展示或推荐以及为您的账户提供安全
|
||||
保障等目的,我们可能还会收集和使用其他儿童
|
||||
个人信息有关具休的使用目的,收集个人信息
|
||||
的范围以及拒绝提供相应信息的后果请您查阅
|
||||
《鲨鱼云康隐私政策》
|
||||
“一、我们如何收集和使用
|
||||
您的个人信息”章节进行详细了解。此外,我们
|
||||
也会通过Cookies、SDK等同类技术自动收集您
|
||||
或您孩子的个人信息,具体请您查阅《鲨鱼云康隐私政策》“五、我们如何使用 Cookie 和同类技
|
||||
术”进行详细了解。如我们需要超出上述范围收
|
||||
集和使用儿童个人信息,我们将再次征得监护人
|
||||
的同意。</p>
|
||||
<p>请您注意,某些情形下我们将无法识别收集
|
||||
和处理的个人信息是否属于儿童个人信息,比如
|
||||
通过计算机信息系统自动留存处理信息且无法识
|
||||
别所留存处理的信息属于儿童个人信息的(如在
|
||||
匿名浏览过程中的浏览记录等)等我们将按照
|
||||
《鲨鱼云康隐私政策》收集和处理用户的个人信
|
||||
息。</p>
|
||||
<p>(三)征得授权同意的例外</p>
|
||||
<p>根据相关法律法规规定,以下情形中收集儿
|
||||
童的信息无需征得儿童监护人的授权同意:</p>
|
||||
<p>(1)与我们履行法律法规规定的义务相关的;</p>
|
||||
<p>(2)与国家安全、国防安全、公共安全、公共卫
|
||||
生、重大公共利益有关的;</p>
|
||||
<p>(3)与犯罪侦查、起诉、审判和判决执行等有关
|
||||
的;</p>
|
||||
<p>(4)出于维护儿童、您或其他个人的生命、财
|
||||
产等重大合法权益但又很难得到您本人同意的;</p>
|
||||
<p>(5)所收集的信息是儿童或监护人自行向社会公
|
||||
众公开的;</p>
|
||||
<p>(6)从合法公开披露的信息中收集信息的,如合
|
||||
法的新闻报道、政府信息公开等渠道;</p>
|
||||
<p>(7)根据与您或您的孩子签订和履行相关协议或
|
||||
其他书面文件所必需的;</p>
|
||||
<p>(8)用于维护鲨鱼云康服务的安全稳定运行所必需的,例如发现、处置鲨鱼云康服务的故障;</p>
|
||||
<p>(9)学术研究机构基于公共利益开展统计或学术
|
||||
研究所必要,且对外提供学术研究或描述的结果
|
||||
时,对结果中所包含的信息进行去标识化处理
|
||||
的;</p>
|
||||
<p>(10)法律法规规定的其他情形。</p>
|
||||
<h3>二、我们如何共享、转让、公开披露您的个人信息</h3>
|
||||
<p>我们承诺对儿童个人信息进行严格保密,仅在符合本政策说明和您明确授权同意的情况下对外共享儿童个人信息。
|
||||
为了提升信息处理效率降低信息处理成本,或提高信息处理准确性,我们可能会委托有能力的我们的关联公司或其他专业机构代表我们来处理儿童个人信息,
|
||||
具体请参见《鲨鱼云康隐私政策》“我们如何共享、转让、公开披露您的信息”部分。</p>
|
||||
<p>(一)如果为了本政策所述目的而需要将儿
|
||||
童个人信息共享至第三方,我们将评估该第三方
|
||||
收集儿童个人信息的合法性、正当性、必要性。</p>
|
||||
<p>(二)我们将要求第三方对儿童个人信息采
|
||||
取保护措施,并且严格遵守相关法律法规与监管
|
||||
要求。我们会要求接收儿童个人信息的第三方遵
|
||||
守严格的保密义务及采取有效的保密措施,禁止
|
||||
其将这些儿童个人信息用于未经儿童及其监护人
|
||||
授权的用途,并要求受托公司依法履行以下业务:</p>
|
||||
<p>1、按照法律、行政法规的规定和我们的要求处理儿童个人信息;</p>
|
||||
<p>2、协助我们回应儿童监护人提出的申请;</p>
|
||||
<p>3、采取措施保障信息安全,并在发生儿童个人信息泄露安全事件时,及时向我们反馈;</p>
|
||||
<p>4、委托关系解除时及时删除儿童个人信息;</p>
|
||||
<p>5、不得转委托;</p>
|
||||
<p>6、其他依法应当履行的儿童个人信息保护义务。</p>
|
||||
<p>(三)另外,我们会按照法律法规的要求征得您的同意,或确认第三方已经征得您同意。</p>
|
||||
<h3>三、我们如何储存儿童个人信息</h3>
|
||||
<p>(一)我们在中华人民共和国境内运营中收集和产生的儿童个人信息,将存储在中国境内。以下情形下,我们会在履行了法律规定的义务后,向境外的组织或个人提供儿童的个人信息:</p>
|
||||
<p>1、适用的法律有明确规定;</p>
|
||||
<p>2、获得您的明确授权;</p>
|
||||
<p>3、您或者您的孩子通过互联网进行跨境交易等个人主动行为。</p>
|
||||
<p>针对以上情形,我们会通过合同等形式确保以不低于本政策规定的程度保护儿童的个人信息。</p>
|
||||
<p>(二)我们会采取合理可行的措施,尽力避免收集和处理无关的儿童的个人信息。我们只会在达成本政策所述目的所需的期限内保留儿童的个人信息,
|
||||
除非法律有强制的留存要求。关于我们如何确定儿童个人信息存储期限请参见《鲨鱼云康隐私政策》“三、我们如何保护您的个人信息”。如我们终止服务或运营,
|
||||
我们将及时停止继续收集儿童个人信息的活动,同时会遵守相关法律法规要求提前向监护人通知,并在终止服务或运营后对儿童的个人信息进行删除或匿名化处理,
|
||||
但法律法规或监管部门另有规定的除外。</p>
|
||||
<h3>四、我们如何保护儿童个人信息</h3>
|
||||
<p>我们非常重视儿童的隐私安全,并采取一切合理可行的措施,保护儿童个人信息:</p>
|
||||
<p>(一)我们会严格控制儿童个人信息的访问权限,对可能接触到儿童个人信息的工作人员采取最小够用授权原则,并采取技术措施对工作人员处理儿童个人信息的行为进行记录和管控,避免违法复制、下载儿童个人信息。</p>
|
||||
<p>(二)我们已制定儿童个人信息安全事件应急预案,会定期组织内部相关人员进行应急响应培训和应急演练,使其掌握岗位职责和应急处置策略和规程。
|
||||
在不幸发生儿童个人信息安全事件后,我们将按照法律法规的要求,及时向儿童及其监护人告知:安全事件的基本情况和可能的影响、
|
||||
我们已采取或将要采取的处置措施、儿童及其监护人可自主防范和降低风险的建议、对儿童及其监护人的补救措施等。我们将及时将事件相关情况以APP推送通知、
|
||||
发送邮件/短消息等方式告知儿童及其监护人。难以逐一告知时,我们会采取合理、有效的方式发布相关警示信息。同时,我们还将按照监管部门要求,
|
||||
主动上报儿童个人信息安全事件的处置情况。若儿童及其监护人的合法权益受损,我们将承担相应的法律责任。</p>
|
||||
<p>(三)如您希望了解更多,请查阅《鲨鱼云康隐私政策》“三、我们如何保护您的个人信息”章节,详细了解我们如何采取了哪些措施保护儿童个人信息。</p>
|
||||
<h3>五、本政策的修订</h3>
|
||||
<p>我们可能会根据鲨鱼云康服务的更新情况及法律法规的相关要求适时修改本政策的条款,该等修改构成本政策的一部分,
|
||||
我们会在专门页面[鲨鱼云康客户端-我的-设置-关于鲨鱼云康-《隐私政策》对应链接中展示最新修改版本。
|
||||
由于鲨鱼云康的用户较多,对于重大变更,我们还会提供更为显著的通知(包括通过网站或客户端首页公示的方式进行通知甚至向您提供弹窗提示),
|
||||
具体详见《鲨鱼云康隐私政策》第八条“本政策如何更新”的规定。</p>
|
||||
<h3>六、如何联系我们</h3>
|
||||
<p>如您和您的孩子对本政策存在任何疑问,或对于儿童个人信息处理存在任何投诉、意见,请通过以下渠道联系我们,
|
||||
我们将在收到问题、意见或建议,并验证监护人和/或儿童身份后的十五天内回复您的请求:</p>
|
||||
<p>电子邮件: 841382055@qq.com</p>
|
||||
<p>电话: 400-833-3131</p>
|
||||
<p>注册地址:湖南省长沙市岳麓区梅溪湖街道泉水路461号长沙健康医疗大数据产业孵化基地3-1栋2楼201</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.contioner {
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.cneter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
text-indent: 2rem;
|
||||
letter-spacing: 3px;
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
|
@ -1,633 +0,0 @@
|
|||
<template>
|
||||
<div class="contioner">
|
||||
<h3 class="cneter">鲨鱼云康隐私政策</h3>
|
||||
<p>本政策仅适用于湖南鲨鱼健康有限公司的鲨鱼云康App提供的产品或服务,包括您访问鲨鱼云康App使用平台提供的服务,湖南鲨鱼健康有限公司(“鲨鱼云康”或“湖南鲨鱼健康科技有限公司”)。</p>
|
||||
<p>最近更新日期: 2024年01月15日,版本号为V1.00</p>
|
||||
<p>版本生效日期: 2024年01月15日</p>
|
||||
<p>本政策将帮助您了解以下内容:</p>
|
||||
<p>一、政策声明</p>
|
||||
<p>二、湖南鲨鱼健康科技有限公司如何收集和使用您的个人信息</p>
|
||||
<p>三、湖南鲨鱼健康科技有限公司如何共享、转让、公开披露您的个人信息</p>
|
||||
<p>四、湖南鲨鱼健康科技有限公司如何保护您的个人信息</p>
|
||||
<p>五、湖南鲨鱼健康科技有限公司如何处理儿童的个人信息</p>
|
||||
<p>六、湖南鲨鱼健康科技有限公司如何使用 Cookie 和同类技术</p>
|
||||
<p>七、您的权利</p>
|
||||
<p>八、您的个人信息如何储存及超出储存期限处理办法</p>
|
||||
<p>九、本政策如何更新</p>
|
||||
<p>十、如何联系湖南鲨鱼健康科技有限公司</p>
|
||||
<p>
|
||||
湖南鲨鱼健康科技有限公司深知个人信息对您的重要性,并会尽全力
|
||||
保护您的个人信息安全可靠。湖南鲨鱼健康科技有限公司致力于维持您
|
||||
对湖南鲨鱼健康科技有限公司的信任,恪守以下原则,保护您的个人信
|
||||
息:权责一致原则、目的明确原则、选择同意原
|
||||
则、最少够用原则、确保安全原则、主体参与原
|
||||
则、公开透明原则。同时,鲨鱼云康承诺,湖南鲨鱼健康科技有限公司将按
|
||||
业界成熟的安全标准,采取相应的安全保护措施
|
||||
来保护您的个人信息
|
||||
</p>
|
||||
<h4>
|
||||
请在使用湖南鲨鱼健康科技有限公司的产品 (或服务) 前,仔细阅读
|
||||
并了解本《隐私政策》。并确保您已充分了解且
|
||||
同意湖南鲨鱼健康科技有限公司处理您个人信息的目的、方式和范围。
|
||||
</h4>
|
||||
<h3>一、政策声明</h3>
|
||||
<p>
|
||||
1.1本隐私政策适用于引用或链接本政策的与鲨鱼云康或鲨鱼云康相关联公司家电有关的设备、网站客户端、小程序,即鲨鱼云康App、鲨鱼云康小程序、鲨鱼云康或鲨鱼云康关联公司物联网家电设备、网站及微信小程序等。特别需要提醒你的是,鲨鱼云康App、鲨鱼云康小程序为统一帐号体系,您在两者中任意平台注册帐号,都可通过该帐号登录另一平台并享受相关服务。此外,需要特别说明的是,本协议不适用于第三方向您提供的服务,例如通过鲨鱼云康平台跳转到第三方网站、客户端或程序,您向该第三方服务商提供的个人信息不适用本协议
|
||||
</p>
|
||||
<h3>二、湖南鲨鱼健康科技有限公司如何收集和使用您的个人信息</h3>
|
||||
<p>
|
||||
个人信息是指以电子或者其他方式记录的能够
|
||||
单独或者与其他信息结合识别特定自然人身份或
|
||||
者反映特定自然人活动情况的各种信息。
|
||||
<h4>鲨鱼云康仅
|
||||
会出于本政策所述的以下目的,收集和使用您的
|
||||
个人信息。处理个人信息的目的包括:</h4>
|
||||
</p>
|
||||
<p>1.创建您的鲨鱼云康账号</p>
|
||||
<p>2.能够发现和对设备进行配网</p>
|
||||
<p>3能够控制和使用设备</p>
|
||||
<p>4.进行语音识别与控制</p>
|
||||
<p>5.提供基于地理位置的服务</p>
|
||||
<p>6.处理您的订单</p>
|
||||
<p>7.评估与分析App产品功能与服务情况</p>
|
||||
<p>8.进行通知或推送</p>
|
||||
<p>9.提供App安全保障</p>
|
||||
<p>10.其它鲨鱼云康服务</p>
|
||||
<p>
|
||||
<h4>如果处理个人信息的目的、方式和种类发生变
|
||||
更的,鲨鱼云康将重新取得您的同意。以下罗列某些
|
||||
特殊的个人信息属于个人敏感信息,如实时画面
|
||||
与录像信息,在提供前,您需要谨慎考虑,确保准确。</h4>鲨鱼云康会对敏感信息单独征得您的同意,并按国家要求加强安全保密处理。
|
||||
</p>
|
||||
<span>(一)您向湖南鲨鱼健康科技有限公司提供的信息</span>
|
||||
<p>
|
||||
当您注册鲨鱼云康账户及您在使用鲨鱼云康平台时提供
|
||||
的相关服务时填写及/或提交的信息,包括您的电话号码、电子邮箱。
|
||||
</p>
|
||||
<p>
|
||||
鲨鱼云康将通过鲨鱼云康页面向您展示需要您提交的信息,届时以页面展示为准,如果您不使用某些服务,则无需提供相关信息。对于您明确拒绝使用、关闭或退出的特定业务功能,App在您打开该业务功能或相关系统权限时将会再次询问您是否您是否同意开启相关权限,且App在更新升级后,不会更改原有的系统权限设置。
|
||||
</p>
|
||||
<span>(二)在您使用服务过程中收集的信息</span>
|
||||
<h4>
|
||||
为实现向您提供湖南鲨鱼健康科技有限公司产品及服务的附加功能您可以选择单独同意或不同意湖南鲨鱼健康科技有限公司收集、使用的信息。如您拒绝提供,您将无法正常使用相关附加功能或无法达到湖南鲨鱼健康科技有限公司拟达到的功能效果,不会影响您使用湖南鲨鱼健康科技有限公司的基本功能。
|
||||
</h4>
|
||||
<p>湖南鲨鱼健康科技有限公司收集您使用产品和服务的相关信息包括:</p>
|
||||
<p>
|
||||
2.1湖南鲨鱼健康科技有限公司会在根据您在软件安装及使用汇总授
|
||||
予的具体权限,接收并记录您所使用的智能设备
|
||||
相关信息,包括您的登录账号信息 (帐号、昵
|
||||
称、头像信息)、手机相关信息 (硬件设备标识
|
||||
(imsi、imei、meid、设备硬件序列号、SIM 卡标
|
||||
识、OAID、Mac 地址、Android ID)、手机型号
|
||||
系统版本信息、系统语言、手机所设置的国家或
|
||||
地区、应用商店的版本号、手机屏幕尺寸及分辨
|
||||
率、CPU及显示设备相关信息) 连接智能设备过
|
||||
程中收集的信息:基于您需要链接的智能设备的
|
||||
类型,湖南鲨鱼健康科技有限公司可能会收集: Wi-Fi信息 (SSID
|
||||
BSSID、Wi-Fi的Mac 地址、Wi-Fi 密码) 、设备
|
||||
Mac 地址、设备ID、设备蓝牙 Mac 地址) 、设
|
||||
备唯一标识字符,您对软硬件的使用记录、软硬
|
||||
件故障信息数据,包括您的IP地址、访问日期和
|
||||
时间、语言、软硬件特征信息、地理位置,如您
|
||||
下载或使用鲨鱼云康或其关联公司客户端软件,鲨鱼云康
|
||||
可能会读取与您位置和移动设备相关的信息,包
|
||||
括设备型号、操作系统、设备识别码、分辨率
|
||||
电信运营商。为实现向您提供湖南鲨鱼健康科技有限公司产品及/或服务
|
||||
的必要的功能,您须授权湖南鲨鱼健康科技有限公司手机、使用的必要
|
||||
的信息。如您拒绝提供相应信息,您将无法正常
|
||||
使用湖南鲨鱼健康科技有限公司的产品及/或服务。
|
||||
</p>
|
||||
<p>
|
||||
2.2除上述信息外,湖南鲨鱼健康科技有限公司还可能为了提供服务
|
||||
及改进服务质量、服务个性化的合理需要而收集
|
||||
您的其他信息,包括您与湖南鲨鱼健康科技有限公司的客户服务团队联
|
||||
系时您提供的相关信息,您参与问卷调查活动时
|
||||
向湖南鲨鱼健康科技有限公司提供的问卷答复信息,以及您与鲨鱼云康的关
|
||||
联方、合作伙伴之间互动时湖南鲨鱼健康科技有限公司收集的相关信
|
||||
息。与此同时,
|
||||
<h4>为提高您使用鲨鱼云康平台服务时的
|
||||
安全性,预防钓鱼网站欺诈和木马病毒,湖南鲨鱼健康科技有限公司可
|
||||
能会通过了解或记录一些您的网络使用习惯、您
|
||||
常用的软件信息来判断您账户的风险,并可能会
|
||||
记录一些湖南鲨鱼健康科技有限公司认为有风险的URL。</h4>为实现向您提
|
||||
供湖南鲨鱼健康科技有限公司产品及服务的附加功能,您可选择单独后
|
||||
意或不同意湖南鲨鱼健康科技有限公司收集、使用的信息。如您拒绝提
|
||||
供,您将无法正常使用相关附加功能或无法达到
|
||||
湖南鲨鱼健康科技有限公司拟达到的效果,不会影响您使用湖南鲨鱼健康科技有限公司的基本
|
||||
功能。
|
||||
</p>
|
||||
<p>以下为相关应用场景/业务功能及影响:</p>
|
||||
<p>服务预约:根据用户填写的信息提供相关保养、投诉、咨询、报修、报装、移机服务;</p>
|
||||
<p>附近门店: 根据用户定位判断该地区门店位置;</p>
|
||||
<p>下单:用于生成订单时,显示订单中的物流信息并同步物流配送;</p>
|
||||
<p>库存: 根据用户定位判断该地区商品储货情况。</p>
|
||||
<p>涉及的各项业务功能实际收集的个人信息类型与隐私政策所描述内容一致,且不会超出隐私政策所述范围。</p>
|
||||
<p>2.3针对设备使用过程中的信息收集,包括您
|
||||
设备的硬件、性能、状态、功能信息,包括设备
|
||||
名称、设备ID(DID)
|
||||
、固件版本号、设备安装
|
||||
位置 (如客厅) 、设备时区、存储卡信息 (如存
|
||||
储状态、剩余容量、存储开关、录制模式) 、屏
|
||||
幕信息 (如清晰度、您设置的缩放比例)、清扫
|
||||
信息 (如地图、清扫轨迹、清扫区域、清扫面
|
||||
积、清扫时长、清扫模式、日期和时间) 、轨迹
|
||||
信息 (如录像日期、录像时间、触发事件、录像
|
||||
视频时长、人物行动轨迹)、睡眠信息 (如人数
|
||||
信息、睡眠数据、心率、呼吸、体动敏感隐私生
|
||||
理数据)、电量信息。设备使用过程中收集的信
|
||||
息,您可以通过在App上操作删除设备的方式
|
||||
将对应设备这部分信息进行同步删除。</p>
|
||||
<p>2.3.1设备设置信息:湖南鲨鱼健康科技有限公司可能会收集与设备
|
||||
设置相关的信息,包括人数信息、人员位置信
|
||||
息、以及其他各项您已经同意并授权的身体数据
|
||||
指标信息。为了更好的提供智能家居服务,在设
|
||||
备使用过程中,会根据您的操作习惯在取得您授
|
||||
权的前提下进行设备自动控制。</p>
|
||||
<p>2.3.2网络信息:湖南鲨鱼健康科技有限公司能会在您的设备连接
|
||||
到网络时收集网络相关信息,包括设备当前连接
|
||||
Wi-Fi的模式(局域网模式、远程模式)、设备分
|
||||
配的IP地址、Wi-Fi信号强度、接收的Wi-Fi信号强
|
||||
弱指标 (即设备RSSI) 、MAC地址,以及您主动
|
||||
提供的Wi-Fi名称(SSID)
|
||||
、Wi-Fi密码,NAS网络
|
||||
存储。您的此类信息会加密存放在安全的服务器
|
||||
上,且仅会在您授权同意的范围内使用。</p>
|
||||
<p>2.3.3语音信息:部分设备具有语音控制功
|
||||
能。您可以通过语音与相关设备进行互动,当您
|
||||
激活或唤醒智能设备后,湖南鲨鱼健康科技有限公司会自动接收并记录
|
||||
您与设备交互产生的语音数据,用于识别指令以
|
||||
及转化为文本,从而实现语音识别、语音控制功
|
||||
能,并进行优化。请注意,
|
||||
语音识别系统在识别
|
||||
您的指令时,对声音信息进行采集过程中可能会
|
||||
捕捉到非指令的若干语音信息 (例如聊天、电
|
||||
话),请您尽可能在安静环境下使用,以免发出
|
||||
有控制指令外的其他语音消息。若您不同意湖南鲨鱼健康科技有限公司
|
||||
收集上述信息,您可以选择不唤醒语音设备或禁
|
||||
用语音功能,但禁用后您将无法使用语音识别或
|
||||
控制功能。</p>
|
||||
<p>2.3.4图像及视频信息:如果您使用摄像头或
|
||||
带有内置摄像头的设备,在您添加并开启设备
|
||||
后,摄像头基于对您住所的安全考虑,设备会自
|
||||
动录制视频,在您使用相关功能时,湖南鲨鱼健康科技有限公司会收集
|
||||
您与绑定设备的视频、音频、会话、图像相关信
|
||||
息,请放心,您的数据不会用于其他任何目的。
|
||||
若您不提供此类信息,将无法使用摄像头相关服
|
||||
务功能。</p>
|
||||
<p>2.3.5扫地机器人-清扫信息: 湖南鲨鱼健康科技有限公司可能收集您
|
||||
设备清扫的相关信息,这些信息可能以日志的形
|
||||
式存在。例如,清扫数据: 包括地图、清扫轨
|
||||
迹、清扫区域、清扫面积、清扫时长、清扫模
|
||||
式、日期和时间,您的设备和服务器端只保存最
|
||||
近20条清扫数据。您可以选择通过app删除其中
|
||||
的信息。日志信息还包括:设备的运行状态和异常情况下传感器工作数据或错误信息,
|
||||
这些信息将在服务器中安全地保存至多180天,到期后将自动删除;
|
||||
可清扫区域信息:App端地图手动设置的可清
|
||||
扫区域信息。例如:地图上设置的禁区、虚拟
|
||||
墙、合并/分割房间;
|
||||
房间区域设置信息:针对地图上所划分的各个
|
||||
房间区域设置清扫吸力、拖地水量信息;
|
||||
其他设置信息:勿扰模式、预约、清扫次数和
|
||||
清扫顺序、多地图管理设置,
|
||||
其他信息:选择的语音包、配件寿命剩余可用
|
||||
时长。</p>
|
||||
<p>2.3.6AI微感器-轨迹信息: 设备会根据触发事
|
||||
件录制视频人物轨迹,包括区域有变动、有人移
|
||||
动、智能场景触发。因此湖南鲨鱼健康科技有限公司可能会收集与录像
|
||||
有关的信息,包括录像日期、录像时间、触发事
|
||||
件、录像视频时长、人物行动轨迹。</p>
|
||||
<p>2.3.7睡眠检测仪-睡眠信息: 湖南鲨鱼健康科技有限公司可能会收集与设备设置相关的信息,
|
||||
包括人数信息、睡眠数据、心率、呼吸、体动敏感隐私生理数据,
|
||||
以及其他各项您已经同意并授权的身体数据指标信息。为了更好的提供智能家居服务,
|
||||
在设备使用过程中,会根据您的操作习惯在取得您授权的前提下进行设备自动控制。</p>
|
||||
<p>2.3.8空调-电量信息:湖南鲨鱼健康科技有限公司可能会收集与设备相关的电量信息,这些信息会以报告的形式展示,电量数据为估算值,仅供参考。</p>
|
||||
<p>2.4 鲨鱼云康App可能会调用您的设备权限,以下是调用权限对应的业务功能、
|
||||
湖南鲨鱼健康科技有限公司调用的目的以及调用前向您询问的情况。您可以在设备的设置功能中选择关闭部分或全部权限,
|
||||
从而拒绝湖南鲨鱼健康科技有限公司调用相关权限。</p>
|
||||
<div class="marginTop-lg flex table">
|
||||
<div class="text-center border-right" style="width: 50px;">设备权限</div>
|
||||
<div class="text-center border-right flex-sub">对应业务</div>
|
||||
<div class="flex-sub text-center border-right">调用权限目的</div>
|
||||
<div class="text-center border-right" style="width: 50px;">是否询问</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">存储</div>
|
||||
<div class="line text-center flex-sub">插件更新;图片信息存储;APP升级</div>
|
||||
<div class="line flex-sub text-center">访问设备上的照片媒体内容和文件</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">相机</div>
|
||||
<div class="line text-center flex-sub">添加设备;个人头像;拍照</div>
|
||||
<div class="line flex-sub text-center">使用相机进行扫描二维码进行设备配网、更改个人信息上传头像</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">麦克风</div>
|
||||
<div class="line text-center flex-sub">语音控制</div>
|
||||
<div class="line flex-sub text-center">语音控制设备、与带语音的设备进行对话</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">位置信息</div>
|
||||
<div class="line text-center flex-sub">定位服务、添加设备</div>
|
||||
<div class="line flex-sub text-center">获取用户位置信息提供服务(如天气服务)、添加设备时用户发现附近WiFi或蓝牙列表</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">开启蓝牙</div>
|
||||
<div class="line text-center flex-sub">蓝牙设备配网</div>
|
||||
<div class="line flex-sub text-center">采用蓝牙模块与协议配网的设备进行设备配网</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">电话</div>
|
||||
<div class="line text-center flex-sub">拨打电话</div>
|
||||
<div class="line flex-sub text-center">拨打客服电话</div>
|
||||
<div class="line text-center" style="width: 50px;">是</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">获取应用列表</div>
|
||||
<div class="line text-center flex-sub">第三方登录</div>
|
||||
<div class="line flex-sub text-center">允许App获取手机中已安装的应用信息</div>
|
||||
<div class="line text-center" style="width: 50px;">否</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line text-center" style="width: 50px;">通知</div>
|
||||
<div class="line text-center flex-sub">消息中心</div>
|
||||
<div class="line flex-sub text-center">对系统和设备消息进行通知</div>
|
||||
<div class="line text-center" style="width: 50px;">Android:否 ios:是</div>
|
||||
</div>
|
||||
<p>2.5为识别您的设备ID并预防恶意程序及反作弊、提高服务安全性、保障运营质量及效率,湖南鲨鱼健康科技有限公司会收集您的设备信息
|
||||
(包括设备序列号IMEI、MEID、AndroidID、IMSI、GUID、MAC地址)、您安装的应用信息或运行中的进程信息。</p>
|
||||
<p>2.6您在使用湖南鲨鱼健康科技有限公司的服务时,若您想分享您喜欢的内容至第三方App,湖南鲨鱼健康科技有限公司需要判断是否安装了第三方App,以便为您提供正确的分享功能。湖南鲨鱼健康科技有限公司采用合并链路技术进行技术推送,在启动App初始化后,湖南鲨鱼健康科技有限公司会读取已安装应用列表,当一个设备有多个APP的推送链路同时活跃时,湖南鲨鱼健康科技有限公司会随机合并成一条链路,以达到为您省电省流量的目的,因此需获得应用列表信息。
|
||||
</p>
|
||||
<p>2.7 在您使用App时,会获取方向传感器、陀螺仪设备传感器信息,用于鉴别您是否为真实用户。在您使用录像照相相关功能时,会获取加速度设备传感器信息,用于获取拍摄手机角度</p>
|
||||
<p>2.8桌面小组件功能</p>
|
||||
<p>为向您提供快捷便利的智能设备控制体验,在设备品类支持的情况下,在您点击进入设备扩展程序前,可通过添加相应设备的桌面小组件,便捷查看设备的运行状态(如当前空调是开机或关机状态),本应用须使用自启动能力,将存在一定频率通过系统发送广播唤醒本应用自启动或关联启动行为,该为实现功能及服务所必要。桌面小组件功能由您自行选择是否添加,您添加后也可在手机系统环境下直接移除桌面小组件。在未添加设备桌面小组件情况下,则不会有自启动或关联启动行为。
|
||||
</p>
|
||||
<p>2.9快捷控制功能</p>
|
||||
<p>为向您提供快捷便利的智能设备控制体验,在设备品类支持的情况下,在您点击进入设备扩展程序前,通过鲨鱼云康应用快捷卡片入口,可以实现智能设备控制以及智能设备状态查询的功能。湖南鲨鱼健康科技有限公司会收集以下信息:</p>
|
||||
<p>设备联网状态:以供您查看设备连接状态,根据联网状态展示不同操作界面;</p>
|
||||
<p>设备状态信息:以使您查看设备状态并实现设备控制</p>
|
||||
<p>如果您通过鲨鱼云康平台连接了可检测人体轨迹的设备等,湖南鲨鱼健康科技有限公司还需收集:</p>
|
||||
<p>设备周围环境相关信息:以使您准确的查看设备传感器检测到的周围环境相关信息,例如温度、湿度、PM2.5以及是否有人经过等。</p>
|
||||
<p>(三)湖南鲨鱼健康科技有限公司还可能收集其他无法识别到特定个人的信息 (即不属于个人信息的信息),例如您使用特定服务时产生的统计类数据,如用户的操作行为 (包括点击、页面跳转、浏览时间)
|
||||
、账号下设备信息(包括设备品类、数目、功能使用参数)。收集此类信息的目的在于改善湖南鲨鱼健康科技有限公司向您提供的服务。所收集信息的类别和数量取决于您如何使用湖南鲨鱼健康科技有限公司产品和/或服务。</p>
|
||||
<!-- <p>湖南鲨鱼健康科技有限公司会将此类信息汇总,用于帮助湖南鲨鱼健康科技有限公司向客户提供更有用的信息,了解客户对湖南鲨鱼健康科技有限公司网站、产品和服务中的哪些部分最感兴趣。据此将根据算法自动化决策定向推荐展示个性化的产品和服务同时,客户可登录鲨鱼云康App,在设置功能中关闭个性化推荐功能,选择非定向推送信息模式。就本隐私政策而言,汇总数据被视为非个人信息。如果湖南鲨鱼健康科技有限公司将非个人信息与个人信息结合使用,则在结合使用期间,此类信息将被视为个人信息。
|
||||
</p> -->
|
||||
<p>(四)您充分知晓,以下情形中,湖南鲨鱼健康科技有限公司收集、使用、共享、转让、公开披露您的个人信息或非个人信息无需征得您的同意,且湖南鲨鱼健康科技有限公司可能不会响应您提出的更正/修改、删除、注销、撤回同意、索取信息的请求:</p>
|
||||
<p>4.1与国家安全、国防安全有关的;</p>
|
||||
<p>4.2 与公共安全、公共卫生、重大公共利益有关的;</p>
|
||||
<p>4.3与犯罪侦查、起诉、审判和判决执行有关的;</p>
|
||||
<p>4.4出于维护个人信息主体或其他个人的生命、财产此类重大合法权益但又很难得到本人同意的;</p>
|
||||
<p>4.5所收集的个人信息是个人信息主体自行向社会公众公开的;</p>
|
||||
<p>4.6从合法公开披露的信息中收集的您的个人信息的,如合法的新闻报道、政府信息公开渠道;</p>
|
||||
<p>4.7 根据您的要求签订合同所必需的;</p>
|
||||
<p>4.8用于维护所提供的产品与/或服务的安全稳定运行所必需的,例如发现、处置产品与/或服务的故障;</p>
|
||||
<p>4.9为合法的新闻报道所必需的 (为公共利益实施新闻报道、舆论监督等行为,在合理的范围内处理个人信息);</p>
|
||||
<p>4.10学术研究机构基于公共利益开展统计或学术研究所必要,且对外提供学术研究或描述的结果时,对结果中所包含的个人信息进行去标识化处理的;</p>
|
||||
<p>4.11法律法规规定的其他情形。</p>
|
||||
<p>(五)公测活动</p>
|
||||
<p>为了给您提供良好的用户体验,鲨鱼云康提供了公测活动。您可以自主选择是否参加这些活动。当您选择参加活动时,湖南鲨鱼健康科技有限公司需要收集您主动提供的以下信息,包括但不限于您的手机号码、设备信息:设备标识符(IEMI、IDFA、AndroidID、MAC、OAID相关信息)
|
||||
、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息)、位置信息:设备位置,以在您获得测试资格后联系您、就您的测试体验进行回访等。请您放心,湖南鲨鱼健康科技有限公司会对您的信息采取足够的保护措施严格遵守相关法律法规与监管要求。您的手机号码和地址信息仅用于上述目的,不会用作其他处理目的。
|
||||
</p>
|
||||
<h3>三、湖南鲨鱼健康科技有限公司如何共享、转让、公开披露您的个人信息</h3>
|
||||
<p>(一)共享</p>
|
||||
<p>湖南鲨鱼健康科技有限公司不会与鲨鱼云康以外的任何公司、组织和个人分享您的个人信息,但以下情况除外:</p>
|
||||
<p>1、在获取明确同意的情况下共享:获得您的明确同意后,湖南鲨鱼健康科技有限公司会与其他方共享您的个人信息。</p>
|
||||
<p>2、湖南鲨鱼健康科技有限公司可能会根据法律法规规定,或按政府主管部门的强制性要求,对外共享您的个人信息。</p>
|
||||
<p>3、与湖南鲨鱼健康科技有限公司的关联公司共享:
|
||||
您的个人信息可能会与鲨鱼云康的关联公司共享。湖南鲨鱼健康科技有限公司只会共享必要的个人信息,且受本隐私政策中所声明目的的约束。附属公司如要改变个人信息的处理目的,将再次征求您的授权同意。具体关联公司见下方关联的第三方SDK清单。
|
||||
</p>
|
||||
<p>4、与授权合作伙伴共享:仅为实现本政策中声明的目的,湖南鲨鱼健康科技有限公司的某些服务将由授权合作伙伴提供。湖南鲨鱼健康科技有限公司可能会与合作伙伴共享您的某些个人信息,以提供更好的客户服务和用户体验。例如,在您上网购买湖南鲨鱼健康科技有限公司的产品时,湖南鲨鱼健康科技有限公司必须与物流服务提供商共享您的个人信息才能安排送货或者安排合作伙伴提供服务。湖南鲨鱼健康科技有限公司仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,并且只会共享提供服务所必要的个人信息。湖南鲨鱼健康科技有限公司的合作伙伴无权将共享的个人信息用于任何其他用途。对湖南鲨鱼健康科技有限公司与之共享个人信息的公司、组织和个人,湖南鲨鱼健康科技有限公司会与其签署严格的保密协定,要求他们按照湖南鲨鱼健康科技有限公司的说明、本隐私政策以及其他任何相关的保密和安全措施来处理个人信息。
|
||||
</p>
|
||||
<p>5、针对第三方SDK使用,湖南鲨鱼健康科技有限公司将基于不同步用户个人数据为前提,授权合作伙伴获取有关业务信息。同时针对第三方的SDK应用程序接口(API),软件工具开发包 (SDK)
|
||||
湖南鲨鱼健康科技有限公司会进行严格的安全监测,并与合作伙伴签订严格的数据保护协定,令其按照湖南鲨鱼健康科技有限公司的委托目的、服务说明本隐私政策以及其它任何相关的保密和安全措施来处理个人信息。</p>
|
||||
<p>目前湖南鲨鱼健康科技有限公司系统产品中存在的第三方SDK披露如下:</p>
|
||||
<div class="marginTop-lg flex table">
|
||||
<div class="flex-sub text-center border-right">第三方SDK</div>
|
||||
<div class="flex-sub text-center border-right">接入目的/第三方名称</div>
|
||||
<div class="flex-sub text-center border-right">获取个人信息</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送服务为APP赋予消息和通知的推送能力。在集成极光推送SDK后,极光推送SDK会收集使用实现服务所必须的个人信息,通过加密的通道将消息和通知推送给App的终端用户。极光隐私政策链接:
|
||||
<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK-华为厂商通道</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送为了提升送达率解决厂商通道的配额限制和保障消息即时送达等问题,为开发者提供了多种推送策略,开发者在推送管理后台可以选择合适的发送策略,在API端支持开发者以厂商通道为颗粒度制定发送策略。
|
||||
极光隐私政策链接:<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK-Vivo厂商通道</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送为了提升送达率解决厂商通道的配额限制和保障消息即时送达等问题,为开发者提供了多种推送策略,开发者在推送管理后台可以选择合适的发送策略,在API端支持开发者以厂商通道为颗粒度制定发送策略。
|
||||
极光隐私政策链接:<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK-魅族厂商通道</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送为了提升送达率解决厂商通道的配额限制和保障消息即时送达等问题,为开发者提供了多种推送策略,开发者在推送管理后台可以选择合适的发送策略,在API端支持开发者以厂商通道为颗粒度制定发送策略。
|
||||
极光隐私政策链接:<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK-小米厂商通道</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送为了提升送达率解决厂商通道的配额限制和保障消息即时送达等问题,为开发者提供了多种推送策略,开发者在推送管理后台可以选择合适的发送策略,在API端支持开发者以厂商通道为颗粒度制定发送策略。
|
||||
极光隐私政策链接:<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">极光推送SDK-OPPO厂商通道</div>
|
||||
<div class="line flex-sub text-center">
|
||||
<div>
|
||||
极光推送为了提升送达率解决厂商通道的配额限制和保障消息即时送达等问题,为开发者提供了多种推送策略,开发者在推送管理后台可以选择合适的发送策略,在API端支持开发者以厂商通道为颗粒度制定发送策略。
|
||||
极光隐私政策链接:<span class="text-decoration"
|
||||
@tap="goWeb('https://docs.jiguang.cn/jpush/client/Android/android_jghgzy')">https://docs.jiguang.cn/jpush/client/Android/android_jghgzy</span>第三方名称深圳市和讯华谷信息技术有限公司
|
||||
</div>
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
设备信息:设备标识符(IEMIIDFA、AndroidIDMAC、OAID相关信息)、应用信息(应用崩溃信息、通知开关状态、软件列表相关信息、获取应用列表)、设备参数及系统信息(设备类型、设备型号、操作系统及硬件相关信息);网络信息:IP地址、WiFi信息、基站信息位置信息:设备位置
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="line flex-sub text-center">高德定位SDK</div>
|
||||
<div class="line flex-sub text-center">
|
||||
定位SDK是一套简单的LBS服务定位接口,您可以使用这套定位AP获取定位结果。通过定位城市获取相关的天气信息进行显示。隐私政策链接:https://lbs.amap.com/pagesprivacy/第三方名称高德软件有限公司
|
||||
</div>
|
||||
<div class="line flex-sub text-center">
|
||||
手机WiFI信息;位置信息
|
||||
</div>
|
||||
</div>
|
||||
<p>(二) 转让</p>
|
||||
<p>湖南鲨鱼健康科技有限公司不会将您的个人信息转让给任何公司、组织和个人,但以下情况除外:</p>
|
||||
<p>1、在获取明确同意的情况下转让: 获得您的明确同意后,湖南鲨鱼健康科技有限公司会向其他方转让您的个人信息。</p>
|
||||
<p>2、在涉及合并、收购或破产清算时,如涉及到个人信息转让,湖南鲨鱼健康科技有限公司会在要求新的持有您个人信息的公司、组织继续受此隐私政策的约束,否则湖南鲨鱼健康科技有限公司将要求该公司、组织重新向您征求授权同意。</p>
|
||||
<p>(三)公开披露</p>
|
||||
<p>湖南鲨鱼健康科技有限公司仅会在以下情况下,公开披露您的个人信息。</p>
|
||||
<p>1、获得您明确同意后。</p>
|
||||
<p>2、基于法律的披露:在法律、法律程序、诉
|
||||
讼或政府主管部门强制性要求的情况下,湖南鲨鱼健康科技有限公司可
|
||||
能会公开披露您的个人信息。</p>
|
||||
<h3>四、湖南鲨鱼健康科技有限公司如何保护您的个人信息</h3>
|
||||
<p>湖南鲨鱼健康科技有限公司非常重视个人信息安全,并采取一切合理
|
||||
可行的措施,保护您的个人信息。相关技术与措
|
||||
施包括:</p>
|
||||
<p>1.数据安全技术措施</p>
|
||||
<p>湖南鲨鱼健康科技有限公司已使用符合业界标准的安全防护措施保护
|
||||
您提供的个人信息,防止数据遭到未经授权访
|
||||
问、公开披露、使用、修改、损坏或丢失。湖南鲨鱼健康科技有限公司
|
||||
会采取一切合理可行的措施,保护您的个人信
|
||||
息。湖南鲨鱼健康科技有限公司会使用加密技术提高用户信息的安全
|
||||
性,湖南鲨鱼健康科技有限公司会使用受信赖的保护机制防止用户信息
|
||||
遭到恶意代码攻击,例如,在您的浏览器与“服
|
||||
务”之间交换数据(如信用卡信息) 时受SSL加密
|
||||
保护,湖南鲨鱼健康科技有限公司会部署访问控制机制,确保只有授权
|
||||
人员才可访问个人信息;</p>
|
||||
<p>2.其他安全措施</p>
|
||||
<p>2.1 湖南鲨鱼健康科技有限公司会采取一切合理可行的措施,确保未
|
||||
收集无关的个人信息。湖南鲨鱼健康科技有限公司只会在达成本政策所
|
||||
述目的所需的期限内保留您的个人信息,除非需
|
||||
要延长保留期或受到法律的允许。</p>
|
||||
<p>2.2鲨鱼云康智能产品通过建立数据分类分级制
|
||||
度、数据安全管理规范、数据安全开发规范来管
|
||||
理规范个人信息的存储和使用。</p>
|
||||
<p>2.3鲨鱼云康智能产品通过信息接触者保密协
|
||||
议、监控和审计机制来对数据进行全面安全控
|
||||
班。</p>
|
||||
<p>2.4鲨鱼云康智能产品建立数据安全委员会并下
|
||||
设信息保护专职部门、数据安全应急响应组织来
|
||||
推进和保障个人信息安全。</p>
|
||||
<p>2.5加强安全意识。湖南鲨鱼健康科技有限公司还会举办安全和隐私保护培训课程,加强员工对于保护个人信息重要性的认识。</p>
|
||||
<p>2.6湖南鲨鱼健康科技有限公司仅允许有必要知晓这些信息的鲨鱼云康智能产品及鲨鱼云康智能产品关联方的员工、合作伙伴访问个人信息,并为此设置了严格的访问权限控制和监控机制。湖南鲨鱼健康科技有限公司同时要求可能接触到您个人信息的所有人员履行相应的保密义务。如果未能履行这些义务,可能会被追究法律责任或被中止与鲨鱼云康的合作关系。湖南鲨鱼健康科技有限公司同时要求可能接触到您个人信息的所有人员履行相应的保密义务。如果未能履行这些义务,可能会被追究法律责任或被中止与鲨鱼云康的合作关系。
|
||||
</p>
|
||||
<p>3.互联网并非绝对安全的环境,而且电子邮件、即时通讯、及与其他鲨鱼云康App用户的交流方式并未加密,湖南鲨鱼健康科技有限公司强烈建议您不要通过此类方式发送个人信息。请使用复杂密码,协助湖南鲨鱼健康科技有限公司保证您的账号安全。</p>
|
||||
<p>4.互联网环境并非百分之百安全,湖南鲨鱼健康科技有限公司将尽力确保或担保您发送给湖南鲨鱼健康科技有限公司的任何信息的安全性。</p>
|
||||
<p>5.在不幸发生个人信息安全事件后,湖南鲨鱼健康科技有限公司将按照法律法规的要求,及时向您告知:安全事件的基本情况和可能的影响、湖南鲨鱼健康科技有限公司已采取或将要采取的处置措施、您可自主防范和降低风险的建议、对您的补救措施。湖南鲨鱼健康科技有限公司将及时将事件相关情况以邮件、信函、电话、推送通知的方式告知您,难以逐一告知个人信息主体时,湖南鲨鱼健康科技有限公司会采取合理、有效的方式发布公告。同时,湖南鲨鱼健康科技有限公司还将按照监管部门要求,主动上报个人信息安全事件的处置情况。
|
||||
</p>
|
||||
<p>6.为应对个人信息泄露、损毁和丢失此类可能出现的风险,鲨鱼云康智能产品制定了多项制度,明确安全事件、安全漏洞的分类分级标准及相应的处理流程。湖南鲨鱼健康科技有限公司也为安全事件建立了专门的应急响应团队,按照安全事件处置规范要求针对不同安全事件启动安全预案,进行止损、分析、定位、制定补救措施、联合相关部门进行溯源和打击。
|
||||
</p>
|
||||
<h4>7.如果您对湖南鲨鱼健康科技有限公司的个人信息保护有任何疑问可通过本隐私政策最下方约定的联系方式联系湖南鲨鱼健康科技有限公司。您发现自己的个人信息泄密,尤其是您的账户及密码发生泄露,请您立即通过本隐私政策最下方[如何联系湖南鲨鱼健康科技有限公司]约定的联系方式联络湖南鲨鱼健康科技有限公司,以便湖南鲨鱼健康科技有限公司采取相应措施。
|
||||
</h4>
|
||||
<h3>五、湖南鲨鱼健康科技有限公司如何处理儿童的个人信息</h3>
|
||||
<p>湖南鲨鱼健康科技有限公司的产品、网站和服务主要面向成人。如果没有父母或监护人的同意,儿童不得创建自己的用户账户。对于经父母同意而收集儿童个人信息的情况,湖南鲨鱼健康科技有限公司只会在受到法律允许、父母或监护人明确同意或者保护儿童所必要的情况下使用或公开披露此信息。尽管当地法律和习俗对儿童的定义不同,但湖南鲨鱼健康科技有限公司将不满14
|
||||
周岁的任何人均视为儿童。如果湖南鲨鱼健康科技有限公司发现自己在未事先获得可证实的父母同意的情况下收集了儿童的个人信息,则会设法尽快删除相关数据。</p>
|
||||
<p>针对儿童使用鲨鱼云康产品及服务,湖南鲨鱼健康科技有限公司特别制定了<span @tap="goChildren">《鲨鱼云康儿童个人信息保护规则及监护人须知》</span>,请您仔细阅读,并在充分理解并同意后使用湖南鲨鱼健康科技有限公司的产品及服务。</p>
|
||||
<h3>六、湖南鲨鱼健康科技有限公司如何使用 Cookie 和同类技术</h3>
|
||||
<p>(一) Cookie</p>
|
||||
<p>为确保网站正常运转,湖南鲨鱼健康科技有限公司会在您的计算机或移动设备上存储名为Cookie的小数据文件。cookie通常包含标识符、站点名称以及一些号码和字符。借助于
|
||||
Cookie,设备能够存储您的偏好或使用的智能产品数据。湖南鲨鱼健康科技有限公司不会将Cookie用于本政策所述目的(分享/第三方登录)之外的任何用途。您可根据自己的偏好管理或删除
|
||||
Cookie。您可以清除设备上保存的所有Cookie,但如果您这么做,则需要在每一次访问湖南鲨鱼健康科技有限公司的时候更改用户设置。除Cookie外,湖南鲨鱼健康科技有限公司还会在上使用信标和像素标签技术。湖南鲨鱼健康科技有限公司不存在嵌入第三方代码插件收集个人信息的功能。
|
||||
</p>
|
||||
<p>大部分网络浏览器都设有阻止Cookie的功能。但如果您这么做,则需要在每一次访问湖南鲨鱼健康科技有限公司的网站时亲自更改用户设置。</p>
|
||||
<p>(二)网站信标和像素标签</p>
|
||||
<p>除Cookie外,湖南鲨鱼健康科技有限公司还会在网站上使用网站信标和像素标签的其他同类技术。例如,湖南鲨鱼健康科技有限公司向您发送的电子邮件可能含有链接至湖南鲨鱼健康科技有限公司网站内容的点击URL。如果您点击该链接,湖南鲨鱼健康科技有限公司则会跟踪此次点击,帮助湖南鲨鱼健康科技有限公司了解您的产品或服务偏好并改善客户服务。网站信标通常是一种嵌入到网站或电子邮件中的透明图像。借助于电子邮件中的像素标签,湖南鲨鱼健康科技有限公司能够获知电子邮件是否被打开。如果您不希望自己的活动以这种方式被追踪,则可以随时从湖南鲨鱼健康科技有限公司的寄信名单中退订。
|
||||
</p>
|
||||
<p>(三) Do Not Track (请勿追踪)</p>
|
||||
<p>很多网络浏览器均设有 Do Not Track功能该功能可向网站发布 DoNot Track 请求。目前主要互联网标准组织尚未设立相关政策来规定网站应如何应对此类请求。但如果您的浏览器启用了DoNot
|
||||
Track,那么湖南鲨鱼健康科技有限公司的所有网站都会尊重您的选择。</p>
|
||||
<h3>七、您的权利</h3>
|
||||
<p>按照中国相关的法律、法规、标准,以及其他国家、地区的通行做法,湖南鲨鱼健康科技有限公司保障您对自己的个人信息行使以下权利:</p>
|
||||
<p>(一) 访问您的个人信息</p>
|
||||
<p>您有权访问您的个人信息,法律法规规定的例外情况除外。如果您想行使数据访问权,可以通过以下方式自行访问:</p>
|
||||
<p>账户信息--如果您希望访问或编辑您的账户中的个人资料信息和支付信息、更改您的密码、添加安全信息或关闭您的账户,您可以通过访问鲨鱼云康App执行此类操作。如果您无法通过上述链接访问这些个人信息,您可以通过发送电子邮件841382055@qq.com的方式提出访问请求,湖南鲨鱼健康科技有限公司将在15天内回复您的访问请求。
|
||||
</p>
|
||||
<p>对于您在使用湖南鲨鱼健康科技有限公司的产品或服务过程中产生的其他个人信息,只要湖南鲨鱼健康科技有限公司不需要过多投入,湖南鲨鱼健康科技有限公司会向您提供。</p>
|
||||
<p>(二)更正您的个人信息</p>
|
||||
<p>当您发现湖南鲨鱼健康科技有限公司处理的关于您的个人信息有错误时,您有权要求湖南鲨鱼健康科技有限公司做出更正。您可以通过“(一)访问您的个人信息”中罗列的方式提出更正申请。如果您无法通过上述链接更正这些个人信息,您可以随时使用鲨鱼云康App反馈问题给湖南鲨鱼健康科技有限公司,或发送电子邮件至鲨鱼云康。湖南鲨鱼健康科技有限公司将在15天内回复您的更正请求。
|
||||
</p>
|
||||
<p>(三)删除您的个人信息</p>
|
||||
<p>您有权要求湖南鲨鱼健康科技有限公司删除您的个人数据。湖南鲨鱼健康科技有限公司将会根据您的删除请求进行评估,若满足相应规定,湖南鲨鱼健康科技有限公司将会采取包括技术手段在内的相应步骤进行处理。在以下情形中,您可以通过本隐私政策最下方列明的联系方式与湖南鲨鱼健康科技有限公司取得联系,向湖南鲨鱼健康科技有限公司提出删除个人信息的请求:
|
||||
</p>
|
||||
<p>(1)如果湖南鲨鱼健康科技有限公司处理个人信息的行为违反法律法规;</p>
|
||||
<p>(2)如果湖南鲨鱼健康科技有限公司收集、使用您的个人信息,却未征得您的同意;</p>
|
||||
<p>(3)如果湖南鲨鱼健康科技有限公司处理个人信息的行为严重违反了与您的约定;</p>
|
||||
<p>(4)如果您主动注销了帐号;</p>
|
||||
<p>(5)如果永久不需要湖南鲨鱼健康科技有限公司提供产品或服务;</p>
|
||||
<p>(6)如果湖南鲨鱼健康科技有限公司违反与您的约定,公开披露您的个人信息,您有权要求湖南鲨鱼健康科技有限公司立即停止公开披露的行为,并发布通知要求相关接收方删除相应的信息;</p>
|
||||
<p>(7)如果湖南鲨鱼健康科技有限公司决定响应您的删除请求,湖南鲨鱼健康科技有限公司将停止为您提供产品或服务,根据适用法律的要求删除您的个人信息;</p>
|
||||
<p>因为适用的法律和安全技术,湖南鲨鱼健康科技有限公司可能无法立即从备份系统中删除相应的信息,湖南鲨鱼健康科技有限公司将安全地存储您的个人信息并将其与任何进一步处理隔离,直到备份可以清除或实现匿名。但若您提出的要求存在无实质意义/纠缠式重复、损害他人隐私权、极度极端不现实的情况,或者删除个人信息从技术上难以实现、不符合法律法规,在湖南鲨鱼健康科技有限公司评估后认为删除数据可能会导致湖南鲨鱼健康科技有限公司无法出于安全目的合法使用数据,可能也会予以拒绝。
|
||||
</p>
|
||||
<p>(四)获取个人信息副本</p>
|
||||
<p>如您需要您的个人信息副本,可以通过以下方式获取:</p>
|
||||
<p>(1)您可以在鲨鱼云康App中进行个人信息副本导出操作路径为“我的-设置-个人信息导出”。</p>
|
||||
<p>(2)您可以通过本隐私政策最下方列明的联系方式,与湖南鲨鱼健康科技有限公司取得联系获取。</p>
|
||||
<p>(五)改变您授权同意的范围每个业务功能需要一些基本的个人信息才能得以完成(见本政策“第一部分”)。对于额外收集的个人信息的收集和使用,您可以通过以下方式改变或收回您同意湖南鲨鱼健康科技有限公司收集您个人信息的范围
|
||||
<p>每个业务功能需要一些基本的个人信息才能得以完成 (见本政策“第一部分”)
|
||||
。对于额外收集的个人信息的收集和使用,您可以通过以下方式改变或收回您同意湖南鲨鱼健康科技有限公司收集您个人信息的范围1.通过解绑删除家居设备收回部分授权:2.通过App设置中关闭对应功能,收回部分授权;
|
||||
<p>3.通过移动设备设置功能,关闭相应权限包括:存储、相机、麦克风、位置、蓝牙,收回对应个人信息授权;</p>
|
||||
<p>4.通过注销您的账号收回全部个人信息授权;</p>
|
||||
<p>5.除上述方式外,您还可以通过联系湖南鲨鱼健康科技有限公司的个人信息保护专职部门 (见本政策“第九部分”)处理您的个人信息。</p>
|
||||
<p>当您收回同意后,湖南鲨鱼健康科技有限公司将不再处理相应的个人信息。但您收回同意的决定,不会影响此前基于您的授权而开展的个人信息处理。</p>
|
||||
<p>(六) 注销您的账号</p>
|
||||
<p>您可以随时注销您的账号,如有需要,在登录鲨鱼云康App后可进行注销账号操作,在满足注销账号条件下可直接注销账号</p>
|
||||
<p>账号注销途径:</p>
|
||||
<p>1、进入鲨鱼云康App,“我的”中点击右上角设置按钮,进入“账号与安全”--“账号注销”。</p>
|
||||
<p>2、选择账号注销原因,点击“下一步”;</p>
|
||||
<p>3、输入手机号,并获取并输入验证码后,点击“账号注销”,即注销账号成功。</p>
|
||||
<p>关于账号注销,您需要注意的事项如下</p>
|
||||
<p>1、您应确保您拥有该账号的所有权,有权决定该账号的注销事宜,不侵犯任何第三方的合法权益。如因此引发任何争议,由您自行承担责任。</p>
|
||||
<p>2、您理解并同意在注销账号之后,您将无法再使用该账号,无法远程控制您的设备,同时账号个人资料与设备信息将会被清除,且无法恢复。请您在申请注销前自行备份您欲保留的本帐号信息和数据。</p>
|
||||
<p>3、您注销账号的行为并不代表本帐号在注销前的帐号行为和相关责任得以豁免或减轻。如您在使用帐号时有任何违法违规的不当行为,湖南鲨鱼健康科技有限公司将对您帐号注销前的违法及不当行为保有追责的权利。</p>
|
||||
<p>(七) 响应您的上述请求</p>
|
||||
<p>为保障安全,您可能需要提供书面请求,或以其他方式证明您的身份。湖南鲨鱼健康科技有限公司可能会先要求您验证自己的身份,然后再处理您的请求。湖南鲨鱼健康科技有限公司将在15天内做出答复。如您不满意,还可以联系客服投诉。</p>
|
||||
<p>对于您合理的请求,湖南鲨鱼健康科技有限公司原则上不收取费用但对多次重复、超出合理限度的请求,湖南鲨鱼健康科技有限公司将视情收取一定成本费用。对于那些无端重复、需要过多技术手段(例如,需要开发新系统或从根本上改变现行惯例)、给他人合法权益带来风险或者非常不切实际(例如,涉及备份磁带上存放的信息)的请求,湖南鲨鱼健康科技有限公司可能会予以拒绝。
|
||||
</p>
|
||||
<p>在以下情形中,按照法律法规要求,湖南鲨鱼健康科技有限公司将无法响应您的请求:</p>
|
||||
<p>1、与国家安全、国防安全直接相关的。</p>
|
||||
<p>2、与公共安全、公共卫生、重大公共利益直接相关的。</p>
|
||||
<p>3、与犯罪侦查、起诉、审判和判决执行直接相关的。</p>
|
||||
<p>4、有充分证据表明您存在主观恶意或滥用权利的。</p>
|
||||
<p>5、响应您的请求将导致您或其他个人、组织的合法权益受到严重损害的。</p>
|
||||
<p>6、涉及商业秘密的。</p>
|
||||
<h3>八、您的个人信息如何储存及超出储存期限处理办法</h3>
|
||||
<p>湖南鲨鱼健康科技有限公司在中华人民共和国境内收集和产生的个人信息,将存储在中华人民共和国境内。对于您个人信息的存储期限将依照法律最短期限进行处理。</p>
|
||||
<p>除非法律另有明文规定或经您允许,湖南鲨鱼健康科技有限公司只会在本隐私政策所述目的所需的期限内保留您的个人信息。为了保持服务的持续性和用户体验的一致性,个人信息通常不会在单项服务完成后立即删除。湖南鲨鱼健康科技有限公司会参照安全标准,采取相应的安全保护措施来保护您的个人信息。确保做到知情同意、目的明确、安全保障、依法利用的原则来收集、使用、存储和传输您的信息,到期后湖南鲨鱼健康科技有限公司会对个人信息进行删除或匿名化处理,您的个人信息经过匿名化处理后将形成可以使用的流通数据,湖南鲨鱼健康科技有限公司对此数据的保存和使用无需另外征得您的同意。
|
||||
</p>
|
||||
<h3>九、本政策如何更新</h3>
|
||||
<p>湖南鲨鱼健康科技有限公司的隐私政策可能变更。未经您明确同意湖南鲨鱼健康科技有限公司不会削减您按照本隐私政策所应享有的权利。湖南鲨鱼健康科技有限公司会在本页面上发布对本政策所做的任何变更,并重新取得您的同意。对于重大变更,湖南鲨鱼健康科技有限公司还会提供更为显著的通知
|
||||
(包括对于某些服务,湖南鲨鱼健康科技有限公司会通过电子邮件发送通知,说明隐私政策的具体变更内容)</p>
|
||||
<p>本政策所指的重大变更包括:</p>
|
||||
<p>1、湖南鲨鱼健康科技有限公司的服务模式发生重大变化。如处理个人信息的目的、处理的个人信息类型、个人信息的使用方式。</p>
|
||||
<p>2、湖南鲨鱼健康科技有限公司在所有权结构、组织架构方面发生重大变化。如业务调整、破产并购引起的所有者变更。</p>
|
||||
<p>3、个人信息共享、转让或公开披露的主要对象发生变化。</p>
|
||||
<p>4、您参与个人信息处理方面的权利及其行使方式发生重大变化。</p>
|
||||
<p>5、湖南鲨鱼健康科技有限公司负责处理个人信息安全的责任部门联络方式及投诉渠道发生变化时。</p>
|
||||
<p>6、个人信息安全影响评估报告表明存在高风险时。湖南鲨鱼健康科技有限公司还会将本政策的旧版本存档,供您查阅。</p>
|
||||
<h3>十、如何联系湖南鲨鱼健康科技有限公司</h3>
|
||||
<h4>如果您对本隐私政策有任何疑问、意见或建议,您可以通过如下方式与湖南鲨鱼健康科技有限公司取得联系</h4>
|
||||
<h4>联系人:湖南鲨鱼健康有限公司</h4>
|
||||
<h4>电子邮件: 841382055@qq.com</h4>
|
||||
<h4>电话: 400-833-3131</h4>
|
||||
<p>注册地址:湖南省长沙市岳麓区梅溪湖街道泉水路461号长沙健康医疗大数据产业孵化基地3-1栋2楼201</p>
|
||||
<p>湖南鲨鱼健康科技有限公司设立了个人信息保护专职部门,一般情况下,湖南鲨鱼健康科技有限公司将在15天内回复。如果您对湖南鲨鱼健康科技有限公司的回复不满意,特别是湖南鲨鱼健康科技有限公司的个人信息处理行为损害了您的合法权益,您还可以通过上述途径寻求解决方案。</p>
|
||||
<h3>十一、纠纷处理</h3>
|
||||
<p>如果与本公司取得联系后对我们的处理方式不满意,您可选择联系外部机构寻求帮助,包括不限于消费者协会。</p>
|
||||
<p>湖南省消费者协会的投诉电话:0731 8860315</p>
|
||||
<p>湖南省消费者协会地址:湖南省长沙市枫林一路9号工商局内。</p>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goChildren() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/agreement/children'
|
||||
})
|
||||
},
|
||||
goWeb(val) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/agreement/web-view?url=' + val
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.contioner {
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.cneter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
text-indent: 2rem;
|
||||
letter-spacing: 3px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
h4 {
|
||||
text-indent: 2rem;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
.line {
|
||||
border-bottom: 1px solid #000;
|
||||
border-right: 1px solid #000;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.line:first-child {
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
||||
.border-right {
|
||||
border-right: 1px solid #000;
|
||||
}
|
||||
|
||||
.table {
|
||||
border-top: 1px solid #000;
|
||||
border-bottom: 1px solid #000;
|
||||
border-left: 1px solid #000;
|
||||
background: #E6EFF1;
|
||||
}
|
||||
|
||||
.marginTop-lg {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.flex-sub {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.text-decoration {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
|
@ -1,320 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contoner">
|
||||
<view>【政策说明】</view>
|
||||
<view>
|
||||
湖南鲨鱼健康有限公司(“鲨鱼云康”或“我们”),您的信任对我们非常重要,我们深知个人信息对您的重要性,我们将按法律法规要求,采取相应安全保护措施,尽力保护您的个人信息安全可控。我们致力于维持您对我们的信任,恪守以下原则,保护您的个人信息:权责一致原则、目的明确原则、选择同意原则、最少够用原则、确保安全原则、主体参与原则、公开透明原则等。同时,我们承诺,我们将按业界成熟的安全标准,采取相应的安全保护措施来保护您的个人信息。鉴于此,【鲨鱼健康】服务提供者(以下简称“我们”)制定本《隐私权政策》(下称“本政策/本隐私权政策”)并提醒您:
|
||||
</view>
|
||||
<view>
|
||||
本政策适用于鲨鱼健康提供的所有产品(或)服务。如我们及关联公司(范围详见定义部分)的产品或服务中使用了鲨鱼健康提供的产品或服务(例如使用鲨鱼健康账户登录)但未设独立隐私权政策的,则本政策同样适用于该部分产品或服务。我们及关联公司就其向您提供的产品或服务单独设立有隐私权政策的,则相应产品或服务适用相应隐私权政策。
|
||||
在使用鲨鱼健康各项产品或服务前,请您务必仔细阅读并透彻理解本政策,特别是以粗体/粗体下划线标识的条款,您应仔细阅读,在确认充分理解并同意后再开始使用。如对本政策内容有任何疑问、意见或建议,您可通过鲨鱼健康提供的各种联系方式与我们联系。
|
||||
</view>
|
||||
<view>第一部分 定义</view>
|
||||
<view>1.1 鲨鱼健康:指鲨鱼健康微信小程序。
|
||||
</view>
|
||||
<view>1.2 鲨鱼健康服务提供者:指鲨鱼健康的互联网信息及软件技术服务提供者湖南鲨鱼健康科技有限公司。
|
||||
</view>
|
||||
<view>1.3 关联公司:指湖南鲨鱼健康科技有限公司直接或间接控股或投资的公司。
|
||||
</view>
|
||||
<view>1.4个人信息:指以电子或者其他方式记录的能够单独或者与其他信息结合识别特定自然人身份或者反映特定自然人活动情况的各种信息。
|
||||
</view>
|
||||
<view>1.5个人敏感信息:指包括身份证件号码、个人生物识别信息、银行账号、财产信息、行踪轨迹、交易信息、14岁以下(含)儿童信息等的个人信息(我们将在本隐私权政策中对具体个人敏感信息以粗体进行显著标识)。
|
||||
</view>
|
||||
<view>1.6个人信息删除:指在实现日常业务功能所涉及的系统中去除个人信息的行为,使其保持不可被检索、访问的状态。
|
||||
</view>
|
||||
<view>除另有约定外,本政策所用定义与《鲨鱼健康用户协议》中的定义具有相同的涵义。
|
||||
</view>
|
||||
|
||||
<view>第二部分 隐私权政策</view>
|
||||
<view>一、我们如何收集和使用您的个人信息</view>
|
||||
<view>我们的产品与(或)服务包括一些核心功能。可能会收集、保存和使用下列与您有关的信息才能实现上述这些功能。如果无法收集和使用您的相关信息,您将无法享受我们提供的产品与(或)服务。
|
||||
</view>
|
||||
<view>
|
||||
2.1.1 您在使用我们的服务时主动提供的信息
|
||||
</view>
|
||||
<view>(1)您在注册账户时主动填写的或上传的信息:如您在注册账户时使用的手机号码或授权绑定的微信等,以及您的昵称、头像等信息。</view>
|
||||
<view>
|
||||
(2)您在使用服务时主动上传的信息:如您在鲨鱼健康主动记录的个人及家人的基本信息和健康档案信息(包括姓名、性别、身高、体重、生日、饮食、运动、习惯、血压等),您主动上传(照片、视频等)至鲨鱼健康的互动区以及允许其他注册用户查看并可分享至其他社交软件的动态所包含的信息,进行健康评估时提供的信息等。
|
||||
</view>
|
||||
<view>
|
||||
(3)您在兑换时提供的信息:如您下单时提供的收件人信息。
|
||||
</view>
|
||||
<view>(4)您主动提供给我们的客服、顾问或者参加我们举办的活动时所提交的信息:如您在向客服咨询时提供的信息,您在参加有奖征集等鲨鱼健康已开展或者未来可能开展的活动时主动提交的信息。</view>
|
||||
<view>(5)其他您在使用我们的产品或服务时主动提供的其他信息。</view>
|
||||
<view>2.1.2 您在使用服务时我们主动收集的信息</view>
|
||||
<view>
|
||||
(1)设备信息:我们会根据您在使用中授予的具体权限,接收并记录您所使用的设备相关信息(例如设备名称、设备型号、唯一设备标识符、运营商网络类型等软硬件特征信息)、设备所在位置相关信息(例如IP地址、GPS位置以及能够提供相关信息的WLAN接入点、蓝牙和基站等信息)。
|
||||
</view>
|
||||
<view>
|
||||
(2)日志信息:当您使用我们的客户端或网站提供的产品或服务时,我们会自动收集您对我们服务的详细使用情况,作为有关网络日志保存。例如您的搜索内容、浏览器类型、浏览记录、订单信息、IP地址、访问日期和时间及您访问的网页记录。
|
||||
</view>
|
||||
<view>
|
||||
(3)位置信息:当您使用与位置有关的服务时,我们可能会记录您设备所在的位置信息,以便为您提供相关服务。在您使用服务时,我们可能会通过IP地址、GPS、WiFi或基站等途径获取您的地理位置信息。同时,您也可以随时通过相关功能设置取消。当您取消该授权后,我们将不再收集该信息,也无法再为您提供上述与之对应的服务;但除非您依照法律的规定删除了您的信息,否则您的取消行为不会影响我们基于您之前的授权进行的信息的处理、存储。
|
||||
</view>
|
||||
<view>
|
||||
(4)订单信息:当您准备进行结算时,鲨鱼健康系统会生成您购买该商品的订单,我们将会收集您的订单信息来进行您的身份核验、确定交易、支付结算、完成配送、为您查询订单以及提供客服咨询与售后服务;我们还会使用您的订单信息来判断您的交易是否存在异常以保护您的交易安全。
|
||||
</view>
|
||||
<view>(5)支付信息:当您下单后,您可以选择与鲨鱼健康合作的微信支付通道,所提供的支付服务,支付时我们将收集您的第三方支付账号。</view>
|
||||
<view>(6)你的饮食运动等习惯:您使用食物热量查询、拍照识别、语音识别、运动动作、运动课程查询等与饮食运动相关的功能,或者根据您在客户端浏览记录及停留时间等信息搜集您的习惯。</view>
|
||||
<view>
|
||||
(7)设备中的图片、视频等:经过您的授权,我们的客户端会将您主动上传的视频、图片加密上传到服务器进行存储。拒绝提供该权限仅会使您无法使用上述功能,但不影响鲨鱼健康其他功能与服务的正常使用;除非您依照法律的规定删除了您的信息,否则您的拒绝行为不会影响我们基于您之前的授权进行的信息的存储或处理。
|
||||
</view>
|
||||
<view>
|
||||
(8)手机相机信息:经过您的授权,我们的客户端会在您使用拍照功能上传图片、视频等内容时,可能会获取您的手机相机信息。
|
||||
</view>
|
||||
<view>2.1.3 经过您的授权,我们通过第三方获取到的您的个人信息
|
||||
</view>
|
||||
<view>
|
||||
(1)为了方便用户记录/同步健康数据和步数,我们还提供了同步第三方软件的健康数据的功能,比如微信步数等。
|
||||
</view>
|
||||
<view>(2)出于安全和防欺诈的目的,针对特定账号、金融交易等服务,在您授权的前提下,通过合法来源核实您的信息(如电话号码);</view>
|
||||
<view>
|
||||
(3)经您授权同意后,通过第三方获取到的您的其他信息。
|
||||
</view>
|
||||
<view>2.1.4 我们通过您绑定的智能设备所获取的信息
|
||||
</view>
|
||||
<view>
|
||||
若您已有相关硬件设备(包括智能血压仪、血糖仪、体脂秤等智能设备),希望将硬件产品记录的信息(包括但不限于血糖、体重、体脂率等已同意上传的个人信息及个人身体数据)同步至鲨鱼健康,则可以通过绑定设备或开启蓝牙功能实现。如您拒绝,仅会使您无法使用该功能,但并不影响您正常使用鲨鱼健康的其他功能。同时,您也可以随时通过相关功能设置取消该权限。但当您取消该授权后,我们将不再收集该信息,也无法再为您提供上述与之对应的服务;但除非您依照法律的规定删除了您的信息,否则您的取消行为不会影响我们基于您之前的授权进行的信息的处理、存储。
|
||||
</view>
|
||||
<view>2.1.5 第三方通过软件等方式主动获取的信息
|
||||
</view>
|
||||
<view>
|
||||
为了更好的为您提供服务,在您使用鲨鱼健康的部分功能时,和鲨鱼健康有合作关系的第三方可能会通过SDK接口等方式获取您的部分信息(包括:您的设备平台、设备厂商、设备品牌、设备识别码(如IMEI、MAC、IDFA等)
|
||||
等设备信息、音频录制权限、应用列表信息、网络信息(如IP地址、WIFI信息等)以及位置相关信息等)。</view>
|
||||
<view>4.5 进行其他任何违法以及侵犯其他个人、公司、社会团体、组织的合法权益的行为或者法律、行政法规、规章、条例以及任何具有法律效力之规范所限制或禁止的其他行为。</view>
|
||||
<view>二、我们如何使用您的个人信息:
|
||||
</view>
|
||||
<view>我们严格遵守法律法规的规定及与用户的约定,将收集的信息用于以下用途。若我们超出以下用途使用您的信息,我们将再次向您进行说明,并征得您的同意。</view>
|
||||
<view>2.2.1 向您提供服务,比如向您提供健康评估、食物信息识别及分析、饮食分析、健康方案、您的健康档案管理等。
|
||||
</view>
|
||||
<view>
|
||||
2.2.2 满足您的个性化需求,比如为了将您感兴趣的服务信息通过小程序呈现给您, 或在您搜索时向您展示您可能希望找到的商品,我们可能会收集您的相关信息进行数据分析以形成用户画像,用来实现前述个性化推送功能。
|
||||
</view>
|
||||
<view>
|
||||
2.2.3 为您提供一致的服务,对于从您的各种设备上收集到的信息,我们可能会将它们进行关联。我们可能会将来自某项服务的信息与来自其他服务的信息结合起来,以便为您提供服务、个性化内容和建议。
|
||||
</view>
|
||||
<view>
|
||||
2.2.4 安全保障,比如我们会将您的信息用于身份验证、安全防范、反诈骗监测、存档备份、客户的安全服务等用途。
|
||||
</view>
|
||||
<view>
|
||||
2.2.5 评估、改善我们的促销及推广活动的效果。
|
||||
</view>
|
||||
<view>2.2.6 帮助我们设计新服务、改善我们现有的服务,比如我们将会对数据进行分析、研究和开发与我们产品或服务的使用相关的统计信息。</view>
|
||||
<view>2.2.7 储存并维护与您相关的信息,用于我们的业务运营(例如业务统计)或履行法律义务。</view>
|
||||
<view>2.2.8 其他征得您同意的目的情况。</view>
|
||||
<view>2.2.9 其他不违反任何强制性法律法规的情况。</view>
|
||||
<view>三、我们的承诺
|
||||
</view>
|
||||
<view>
|
||||
2.3.1
|
||||
请您理解,我们向您提供的功能和服务是不断更新和发展的,如果某一功能或服务未在前述说明中且收集了您的信息,我们会通过页面提示、交互流程、网站公告等方式另行向您说明信息收集的内容、范围和目的,以征得您的同意。
|
||||
</view>
|
||||
<view>
|
||||
2.3.2
|
||||
请您注意,在未取得您的授权之前,我们不会主动从鲨鱼健康外的第三方获取您的个人信息。如未来为业务发展需要从第三方间接获取您个人信息,我们会在获取前向您明示您个人信息的来源、类型及使用范围,如鲨鱼健康开展业务需进行的个人信息处理活动超出您原本向第三方提供个人信息时的授权同意范围,我们将在处理您的该等个人信息前,征得您的明示同意;此外,我们也将会严格遵守相关法律法规的规定,并要求第三方保障其提供的信息的合法性。
|
||||
</view>
|
||||
<view>
|
||||
2.3.3在收集到您的个人信息后,我们将通过技术手段及时对数据进行匿名化处理。在不泄露您个人信息的前提下,我们有权对匿名化处理后的用户数据库进行挖掘、分析和利用(包括商业性使用),有权对产品/服务使用情况进行统计并与公众/第三方共享脱敏的统计信息。
|
||||
</view>
|
||||
<view>
|
||||
四、我们如何共享、转让、公开披露您的个人信息
|
||||
</view>
|
||||
<view>
|
||||
2.4.1我们不会向其他任何公司、组织和个人分享您的个人信息,但以下情况除外:
|
||||
</view>
|
||||
<view>
|
||||
(1)在获取明确同意的情况下共享:获得您的明确同意后,我们会与其他方共享您的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
(2)在法定情形下的共享:我们可能会根据法律法规规定、诉讼、争议解决需要,或按行政、司法机关依法提出的要求,对外共享您的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
(3)只有共享您的信息,才能实现我们的产品与/或服务的核心功能或提供您需要的服务。
|
||||
</view>
|
||||
<view>
|
||||
(4)与我们的关联公司共享:您的个人信息可能会与我们关联公司共享。我们只会共享必要的个人信息,且受本隐私协议中所声明目的的约束。关联公司如要改变个人信息的处理目的,将再次征求您的授权同意。
|
||||
</view>
|
||||
<view>
|
||||
(5)与授权合作伙伴共享:仅为实现本隐私协议中声明的目的,我们的某些服务将由授权合作伙伴提供。我们可能会与合作伙伴共享您的某些个人信息,以提供更好的客户服务和用户体验。例如,我们请来提供第三方物流的公司可能需要采集和使用您的收货地址、收货人及联系方式等信息。在这种情况下,这些公司必须遵守我们的数据隐私和安全要求。我们仅会出于合法、正当、必要、特定、明确的目的共享您的个人信息,并且只会共享提供服务所必要的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
(6)商品或技术服务的供应商。我们可能会将您的个人信息共享给支持我们功能的第三方。这些支持包括为我们的供货或提供基础设施技术服务、物流配送服务、支付服务、数据处理等。我们共享这些信息的目的是可以实现我们产品与/或服务的重要功能,比如我们必须与物流服务提供商共享您的订单信息才能安排送货;或者我们需要将您的订单号和订单金额与第三方支付机构共享以实现其确认您的支付指令并完成支付等。
|
||||
</view>
|
||||
<view>
|
||||
(7)第三方商家。我们必须将您的订单信息与交易有关的必要信息与第三方商家共享来实现您向其购买商品或服务的需求,并促使其可以完成后续的售后服务。
|
||||
</view>
|
||||
<view>
|
||||
(8)对我们与之共享个人信息的公司、组织和个人,我们会与其签署严格的保密协定,要求他们按照我们的说明、本隐私协议以及其他任何相关的保密和安全措施来处理个人信息。
|
||||
</view>
|
||||
<view>
|
||||
(9)为了遵守法律、执行或适用我们的使用条件和其他协议,或者为了保护鲨鱼健康、您或其他鲨鱼健康客户的权利及其财产或安全,比如为防止欺诈等违法活动和减少信用风险,而与其他公司和组织交换信息。不过,这并不包括违反本隐私政策中所作的承诺而为获利目的出售、出租、共享或以其它方式披露的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
2.4.2 我们不会将您的个人信息转让给任何公司、组织和个人,但以下情况除外:
|
||||
</view>
|
||||
<view>
|
||||
(1)在获取您明确同意的情况下转让;
|
||||
</view>
|
||||
<view>
|
||||
(2)在涉及合并、收购或破产清算时,如涉及到个人信息转让,我们会在要求新的持有您个人信息的公司、组织继续受此隐私协议的约束,否则我们将要求该公司、组织重新向您征求授权同意。
|
||||
</view>
|
||||
<view>
|
||||
2.4.2我们仅会在以下情况下,公开披露您的个人信息:
|
||||
</view>
|
||||
<view>
|
||||
(1)获得您明确同意或基于您的主动选择,我们可能会公开披露您的个人信息;
|
||||
</view>
|
||||
<view>
|
||||
(2)基于法律的披露:在法律、法律程序、诉讼或政府主管部门强制性要求的情况下,我们可能会公开披露您的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
2.4.3 我们如何保护您的个人信息
|
||||
</view>
|
||||
<view>
|
||||
(1)我们已使用符合业界标准的安全防护措施保护您提供的个人信息,防止数据遭到未经授权访问、公开披露、使用、修改、损坏或丢失。我们会采取一切合理可行的措施,保护您的个人信息。
|
||||
</view>
|
||||
<view>
|
||||
(2)我们会采取一切合理可行的措施,确保未收集无关的个人信息。我们只会在达成本政策所述目的所需的期限内保留您的个人信息,除非需要延长保留期或受到法律的允许。
|
||||
</view>
|
||||
<view>
|
||||
(3)我们将采取措施确保您的信息安全,但请您理解,由于技术的限制以及可能存在的各种恶意手段,在互联网行业,即便竭尽所能加强安全措施,也不可能始终保证信息百分之百的安全。您接入鲨鱼健康所用的系统和通讯网络,有可能因鲨鱼健康可控范围外的因素而出现问题。因此,您应采取积极措施保护个人信息的安全。
|
||||
</view>
|
||||
<view>
|
||||
(4)互联网环境并非百分之百安全,我们将尽力确保或担保您发送给我们的任何信息的安全性。如果我们的物理、技术、或管理防护设施遭到破坏,导致信息被非授权访问、公开披露、篡改、或毁坏,导致您的合法权益受损,我们将承担相应的法律责任。
|
||||
</view>
|
||||
<view>
|
||||
(5)在不幸发生个人信息安全事件后,我们将按照法律法规的要求,及时向您告知:安全事件的基本情况和可能的影响、我们已采取或将要采取的处置措施、您可自主防范和降低风险的建议、对您的补救措施等。我们将及时将事件相关情况以电话、短信、推送通知等方式告知您,难以逐一告知个人信息主体时,我们会采取合理、有效的方式发布公告。同时,我们还将按照监管部门要求,主动上报个人信息安全事件的处置情况。
|
||||
</view>
|
||||
<view>
|
||||
五、您如何管理自己的信息
|
||||
</view>
|
||||
<view>
|
||||
按照中国相关的法律、法规、标准,以及其他国家、地区的通行做法,我们保障您对自己的个人信息行使以下权利:
|
||||
</view>
|
||||
<view>
|
||||
2.5.1 访问您的个人信息:
|
||||
</view>
|
||||
<view>
|
||||
(1)您有权访问您的个人信息,法律法规规定的例外情况除外。如果您想行使数据访问权,可以通过以下方式自行访问:
|
||||
</view>
|
||||
<view>
|
||||
(2)账户信息--您可以通过访问【我的】访问或编辑您的个人资料信息、更改密码等。
|
||||
</view>
|
||||
<view>
|
||||
(3)健康信息--您可以通过访问【健康检测】、【健康评估】,记录、查看、修改管理您的健康信息以及其他数据。
|
||||
</view>
|
||||
<view>
|
||||
(4)日记信息--您可以通过访问【饮食方案】、【运动方案】,查看、新增、修改、删您的订日记信息。
|
||||
</view>
|
||||
<view>
|
||||
(5)如果您无法通过上述链接访问这些个人信息,您可以随时使用【我的-问题反馈】联系。我们将在7天内回复您的访问请求。
|
||||
</view>
|
||||
<view>
|
||||
2.5.2 更正您的个人信息
|
||||
</view>
|
||||
<view>
|
||||
(1)当您发现我们处理的关于您的个人信息有错误时,您有权要求我们做出更正。您可以通过【访问您的个人信息】中罗列的方式提出更正申请。
|
||||
</view>
|
||||
<view>
|
||||
(2)如果您无法通过上述链接访问这些个人信息,您可以随时使用【我的-问题反馈】联系。我们将在7天内回复您的更正请求。
|
||||
</view>
|
||||
<view>
|
||||
2.5.3 删除您的个人信息
|
||||
</view>
|
||||
<view>
|
||||
在以下情形中,您可以向我们提出删除个人信息的请求:
|
||||
</view>
|
||||
<view>
|
||||
(1)如果我们处理个人信息的行为违反法律法规;
|
||||
</view>
|
||||
<view>
|
||||
(2)如果我们收集、使用您的个人信息,却未征得您的同意;
|
||||
</view>
|
||||
<view>
|
||||
(3)如果我们处理个人信息的行为违反了与您的约定;
|
||||
</view>
|
||||
<view>
|
||||
(4)如果您不再使用我们的产品或服务;若我们决定响应您的删除请求,我们还将同时通知从我们获得您的个人信息的实体,要求其及时删除,除非法律法规另有规定,或这些实体获得您的独立授权。当您从我们的服务中删除信息后,我们可能不会立即备份系统中删除相应的信息,但会在备份更新时删除这些信息。
|
||||
</view>
|
||||
<view>
|
||||
2.5.4 改变您授权同意的范围
|
||||
</view>
|
||||
<view>
|
||||
(1)每个业务功能需要一些基本的个人信息才能得以完成。对于额外收集的个人信息的收集和使用,您可以随时给予或收回您的授权同意。您可以通过修改个人设置中的授权项目改变您授权同意的范围
|
||||
</view>
|
||||
<view>
|
||||
(2)当您收回同意后,我们将不再处理相应的个人信息。但您收回同意的决定,不会影响此前基于您的授权而开展的个人信息处理。
|
||||
</view>
|
||||
<view>
|
||||
2.5.5 我们如何处理未成年人的个人信息
|
||||
</view>
|
||||
<view>
|
||||
(1)我们的产品、网站和服务主要面向成人。如果没有父母或监护人的同意,不满18周岁的未成年人不得创建自己的用户账户。如您为未成年人的,建议您请您的父母或监护人仔细阅读本隐私政策,并在征得您的父母或监护人同意的前提下使用我们的服务或向我们提供信息。
|
||||
</view>
|
||||
<view>
|
||||
(2)对于经父母同意而收集未成年人个人信息的情况,我们只会在受到法律允许、父母或监护人明确同意或者保护未成年人所必要的情况下使用或公开披露此信息。
|
||||
</view>
|
||||
<view>
|
||||
(3)如果我们发现自己在未事先获得可证实的父母同意的情况下收集了未成年人的个人信息,则会设法尽快删除相关数据。
|
||||
</view>
|
||||
<view>
|
||||
2.5.6 您的个人信息如何在全球范围转移
|
||||
</view>
|
||||
<view>
|
||||
原则上,我们在中华人民共和国境内收集和产生的个人信息,将存储在中华人民共和国境内,以下情形除外:
|
||||
</view>
|
||||
<view>
|
||||
(1)适用的法律有明确规定;
|
||||
</view>
|
||||
<view>
|
||||
(2)获得您的明确授权;
|
||||
</view>
|
||||
<view>
|
||||
(3)您通过互联网进行跨境交易等个人主动行为。
|
||||
</view>
|
||||
<view>
|
||||
针对以上情形,我们会确保依据本隐私权政策对您的个人信息提供足够的保护。
|
||||
</view>
|
||||
<view>
|
||||
2.5.7 本隐私协议如何更新
|
||||
</view>
|
||||
<view>
|
||||
我们可能适时会对本隐私协议进行调整或变更,本隐私协议的任何更新将以在线公告、系统通知等方式进行变更公告,除法律法规或监管规定另有强制性规定外,经调整或变更的内容一经公布,立即或在公告明确的特定时间自动生效。如您在隐私协议调整或变更后继续使用我们提供的任一服务或访问我们相关网站的,我们相信这代表您已充分阅读、理解并接受修改后的隐私协议并受其约束。如您不同意调整或变更后的隐私协议,请您停止使用我们提供的服务或访问我们相关网站。
|
||||
</view>
|
||||
<view>
|
||||
2.5.8 如何联系我们
|
||||
</view>
|
||||
<view>
|
||||
如果您对本隐私协议有任何疑问、通过以下方式与我们联系:
|
||||
</view>
|
||||
<view>
|
||||
电话:400-833-3131
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
.contoner {
|
||||
padding: 20rpx 32rpx;
|
||||
letter-spacing: 6rpx;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
</style>
|
|
@ -1,212 +0,0 @@
|
|||
<template>
|
||||
<div class="contioner">
|
||||
<h3 class="cneter">鲨鱼云康软件许可及用户服务协议</h3>
|
||||
<p>欢迎您使用鲨鱼云康App!本协议仅适用于湖南鲨鱼健康有限公司的鲨鱼云康App提供的产品或服务,
|
||||
包括您访问鲨鱼云康App使用平台提供的服务。</p>
|
||||
<p>最近更新日期:2024年01月15日,版本号为v1.00</p>
|
||||
<p>版本生效日期:2024年01月15日</p>
|
||||
<p>
|
||||
在您接受《鲨鱼云康软件许可及用户服务协议》(以下简称《协议》)之前,
|
||||
请务必认真阅读和理解《协议》中规定的所有权利和限制,如您未满18周岁,
|
||||
请与您的法定监护人一起阅读本服务条款,以确保您以及您的父母或监护人充分理解本服务条款的全部内容。
|
||||
</p>
|
||||
<p>
|
||||
本《协议》是服务用户(“您”或“用户”)与湖南鲨鱼健康有限公司 (“鲨鱼云康册”或“我们”)之间的法律协议。
|
||||
用户一旦注册、登录、使用或以任何方式使用本《协议》所涉及的相关服务的行为将视为对本《协议》的接受,即表示用户享受由《协议》提供的各项权利,
|
||||
并同意接受本《协议》各项条款的约束。如果用户不同意本《协议》中的条款,请不要注册、登录或使用本《协议》相关服务。
|
||||
</p>
|
||||
<p>鲨鱼云康有权修订本协议,更新后的协议条款将公布于软件,自公布之日起生效。用户可重新下载安装本软件。
|
||||
在鲨鱼云康修改本协议条款后,如果用户不接受修改后的条款,请立即停止使用鲨鱼云康提供的鲨鱼云康软件和服务,
|
||||
用户继续使用鲨鱼云康提供的鲨鱼云康软件和服务将被视为已接受了修改后的协议。
|
||||
</p>
|
||||
<h3>一、软件授权范围</h3>
|
||||
<p>1.1鲨鱼云康就鲨鱼云康给予用户一项个人的、不可转让、不可转授权以及非独占性的许可。</p>
|
||||
<p>
|
||||
1.2用户可以为非商业目的在单一台移动终端设备上安装、使用、显示、运行鲨鱼云康。但用户不得为商业运营目的安装、使用、运行鲨鱼云康。如果需要进行商业性的销售、复制和散发,例如软件预装和捆绑,必须获得鲨鱼云康的书面授权和许可。
|
||||
</p>
|
||||
<p>1.3用户不得未经鲨鱼云康许可,将鲨鱼云康安装在未经鲨鱼云康明示许可的其他终端设备上,包括但不限于机顶盒、游戏机、电视机、DVD机等。</p>
|
||||
<p>1.4用户可以为使用鲨鱼云康及服务的目的复制鲨鱼云康的一个副本,仅用作备份。备份副本必须包含原软件中含有的所有著作权信息。</p>
|
||||
<p>1.5除本《协议》明示授权外,鲨鱼云康未授权给用户其他权利,若用户使用其他权利时须另外取得鲨鱼云康的书面同意。</p>
|
||||
<h3>二、软件的获取、安装、升级、卸载</h3>
|
||||
<p>
|
||||
2.1用户应当按照鲨鱼云康的指定网站或指定方式下载安装本软件产品。谨防在非指定网站下载本软件,以免移动终端设备感染能破坏用户数据和获取用户隐私信息的恶意程序。如果用户从未经鲨鱼云康授权的第三方获取本软件或与本软件名称相同的安装程序,鲨鱼云康无法保证该软件能够正常使用,并对因此给您造成的损失不予负责。
|
||||
</p>
|
||||
<p>2.2用户必须选择与所安装终端设备相匹配的本软件版本,否则,由于软件与设备型号不相匹配所导致的任何软件问题、设备问题或损害,均由用户自行承担。</p>
|
||||
<p>
|
||||
2.3为了改善用户体验、完善服务内容,鲨鱼云康有权不时地为您提供本软件替换、修改、功能强化、升级版本,为了保证鲨鱼云康软件及服务的安全性和功能的一致性,鲨鱼云康软件及服务提供者有权不向您特别通知而对软件进行更新,或者对软件的部分功能效果进行改变或限制,也有权为替换、修改、功能强化或升级收取费用,但收费将提前征得您的同意。本软件在升级时,视用户使用的软件版本差异,鲨鱼云康提供给用户自行选择是否需要升级的提示。软件新版本发布后,鲨鱼云康不保证旧版本的鲨鱼云康继续可用。
|
||||
</p>
|
||||
<p>2.4如果您不再需要使用本软件或者需要安装新版软件,您可以自行卸载。</p>
|
||||
<h3>三、软件的使用规范</h3>
|
||||
<p>除非法律允许或已经获得鲨鱼云康软件服务提供者的书面授权,您在软件使用过程中不得从事下列行为:</p>
|
||||
<p>3.1删除本软件及其他副本上一切关于版权的信息,以及修改、删除或避开本软件为保护知识产权而设置的技术措施。</p>
|
||||
<p>3.2对本软件进行反向工程,如反汇编、反编译或者其他试图获得本软件的源代码。</p>
|
||||
<p>3.3通过修改或伪造软件运行中的指令、数据,增加、删减、变动软件的功能或运行效果或者将用于上述用途的软件、方法进行运营或向公众传播,无论这些行为是否为商业目的。</p>
|
||||
<p>3.4使用本软件进行任何危害网络安全的行为,包括但不限于:</p>
|
||||
<p>3.4.1使用未经许可的数据或进入未经许可的服务器/账户;</p>
|
||||
<p>3.4.2未经允许进入公众网络或者他人操作系统并删除、修改、增加存储信息;</p>
|
||||
<p>3.4.3未经许可企图探查、扫描、测试本软件的系统或网络的弱点或其它实施破坏网络安全的行为;</p>
|
||||
<p>3.4.4企图干涉、破坏本软件系统或网站的正常运行,故意传播恶意程序或病毒以及其他破坏干扰正常网络信息服务的行为;</p>
|
||||
<p>3.4.5伪造TCP/IP数据包名称或部分名称;</p>
|
||||
<p>3.4.6用户通过非鲨鱼云康公司开发、授权或认可的第三方兼容软件、系统登录或使用本软件及服务,或制作、发布、传播上述工具;</p>
|
||||
<p>3.4.7未经鲨鱼云康书面同意,用户对软件及其中的信息擅自实施包括但不限于下列行为:使用、出租、出借、复制、修改、链接、转载、汇编、发表、出版,建立镜像站点、擅自借助本软件发展与之有关的衍生产品、作品、服务、插件、外挂、兼容、互联等;
|
||||
</p>
|
||||
<p>3.4.8利用本软件发表、传送、传播、储存违反当地法律法规或侵害他人知识产权、商业秘密等合法权利的内容;</p>
|
||||
<p>3.4.9利用本软件批量发表、传送、传播广告信息及垃圾信息;</p>
|
||||
<p>3.5对鲨鱼云康软件及服务提供者拥有知识产权的内容进行使用、出租、出借、复制、修改、链接、转载、江编、发表、出版、建立镜像站点等。</p>
|
||||
<p>3.6对本软件或者本软件运行过程中释放到任何终端内存中的数据、软件运行过程中客户端与服务器端的交互数据,以及本软件运行所必需的系统数据,进行复制、修改、增加、删除、挂接运行或创作任何衍生作品,形式包括但不限于使用插件、外挂或非鲨鱼云康软件及服务提供者授权的第三方工具服务接入本软件和相关系统。
|
||||
</p>
|
||||
<p>3.7自行或者授权他人、第三方软件对本软件及其组件、模块、数据进行干扰。</p>
|
||||
<p>3.8对鲨鱼云康或者鲨鱼云康运行过程中释放到任何终端设备内存中的数据及鲨鱼云康运行过程中客户端与服务器端的交互数据进行复制、更改、修改、挂接运行或创作任何衍生作品,形式包括但不限于使用插件、外挂或非经授权的第三方工具/服务接入本软件和相关系统。</p>
|
||||
<p>3.9其他以任何不合法的方式、为任何不合法的目的、或以任何与本协议许可使用不一致的方式使用本软件和鲨鱼云康提供的其他服:以及其他未经鲨鱼云康软件及服务提供者书面授权的行为。</p>
|
||||
<h3>四、账号注册及使用</h3>
|
||||
<p>4.1用户资格</p>
|
||||
<p>
|
||||
您确认,在您开始注册使用鲨鱼云康平台服务前、您已经具备中华人民共和国法律规定的与您行为相适应的民事权利能及行为能力。若您不具备前述能力,则您应当获得您法定监护人的同意,且您的法定监护人同意接受本协议并承担由此产生的责任。
|
||||
此外,您还需确保您不是任何国家、国际组织或者地区实施的贸易限制、制裁或其他法律、规限制的对象,否则您可能无法正常注册及使用鲨鱼云康平台服务。
|
||||
</p>
|
||||
<p>4.2账户注册</p>
|
||||
<p>4.2.1当您按照注册页面提示填写信息、阅读并同意本协议并完成全部注册程序后,您可获得鲨鱼云康平台帐号并成为鲨鱼云康平台用户。</p>
|
||||
<p>4.2.2在使用鲨鱼云康平台服务时,您应当按鲨鱼云康平台页面的提示,准确完整地提供您的信息,以便鲨鱼云康软件及服务提供者或其他用户可与您取得有效联系。您保证您提供信息的真实性及有效性。</p>
|
||||
<p>4.2.3您设置的昵称、头像不得违反国家法律法规及鲨鱼云康平合规则的相关规定,否则鲨鱼云康软件服务提供者可回收您的昵称和头像。昵称回收不影响您以邮箱、手机号码登录鲨鱼云康平台。</p>
|
||||
<p>4.3账户使用</p>
|
||||
<p>4.3.1用户一旦注册成功成为用户,用户将拥有一个帐号,用户需要对自己在帐户中的所有活动和事件负全责。如果由于用户的过失导致用户的帐号和密码脱离用户的控制,则由此导致的针对用户、鲨鱼云康或任何第三方造成的损害,用户将承担全部责任。
|
||||
</p>
|
||||
<p>4.3.2您有权使用您设置或确认的密码登录鲨鱼云康平台。您的帐号仅限您本人使用。未经鲨鱼云康软件及服务提供者同意,您不得许可或转让第三方使用帐号。如鲨鱼云康平台判断您的帐号使用可能危及您的账户安全及/或鲨鱼云康平台的信息安全时,鲨鱼云康软件及服务提供者有权拒绝提供相应服务或终止本协议。请您在使用鲨鱼云康账号时,遵守法律法规的要求,不侵犯任何第三人的权益,尤其是字体、图片等知识产权。
|
||||
</p>
|
||||
<p>4.3.3用户有权随时更改密码,用户同意若发现任何安全漏洞或非法使用用户账号的情况,用户应当立即通知鲨鱼云康。</p>
|
||||
<p>4.3.4用户同意在未经适当授权的情况下,在任何时候均不使用其他成员的账户。</p>
|
||||
<p>4.4更新维护</p>
|
||||
<p>4.4.1您应当及时更新您提供的信息。在法律法规的要求下,鲨鱼云康软件及服务提供者有权对您的信息进行检查核实,您应当配合提供最新真实、完整、合法、有效的信息。</p>
|
||||
<p>4.4.2如鲨鱼云康软件及服务提供者按您最后一次提供的信息与您联系未果,您未按鲨鱼云康平台的要求及时提供信息,您提供的信息不真实、不合法、不完整、无效的,您将承担由此产生的责任与后果。鲨鱼云康软件及服务提供者有权向您发出询问或要求整改的通知。
|
||||
</p>
|
||||
<p>4.5账号安全规范</p>
|
||||
<p>4.5.1您的帐号由您自行保管。您需保管好您的帐号及密码,并确保您在每个上网时段结束时退出登录并以正确步骤离开鲨鱼云康平台。</p>
|
||||
<p>4.5.2因您主动泄露帐号密码或因您遭受他人攻击、诈骗等行为导致密码泄露产生的损失及后果,鲨鱼云康软件及服务提供者并不承担责任。您应通过司法、行政等救济途径向侵权行为人追责。</p>
|
||||
<p>4.5.3您应对您帐号项下的所有行为负责,鲨鱼云康软件及服务提供者不对你的行为承担责任。</p>
|
||||
<p>4.5.4如发现任何未经授权的行为或其他可能导致您帐号遭窃、遗失的情形,建议您立即通知鲨鱼云康软件及服务提供者。您理解鲨鱼云康软件及服务提供者对您的任何请求响应需要合理时间。鲨鱼云康软件及服务提供者应您请求而采取的行动可能无法避免或阻止侵害后果的形成或扩大,除自身存在过错外,鲨鱼云康软件及服务提供者不承担任何责任。
|
||||
</p>
|
||||
<p>4.6 隐私保护详见《隐私政策》。</p>
|
||||
<h3>五、服务内容</h3>
|
||||
<p>5.1鲨鱼云康网站网络服务的具体内容由鲨鱼云康根据实际情况提供,包括但不限于鲨鱼云康开放平台、应用商店等企业服务、游戏、论坛等。</p>
|
||||
<p>5.2用户理解并接受,鲨鱼云康仅提供相关的网络服务,除此之外与相关网络服务有关的设备(如个人电脑、手机、及其他与接入互联网或移动互联网有关的装置)及所需的费用(如为接入互联网而支付的电话费及上网费)均应由用户自行负担。
|
||||
</p>
|
||||
<p>5.3用户应输入帐号和密码登录鲨鱼云康帐户。</p>
|
||||
<p>5.4除了鲨鱼云康提供的软件和服务,用户还可以用鲨鱼云康帐号登录使用鲨鱼云康合作伙伴的相关服务。</p>
|
||||
<p>5.5您可通过智能连接服务,在不同场景下使用智能设备。您应理解,智能连接受限于实际场景变化及设备性能的限制,可能无法完全按照您的意愿达到使用目的。如您使用过程中有疑问,请联系鲨鱼云康客服寻求帮助。</p>
|
||||
<p>5.6您可按照平台提供菜谱服务,自行选择烹任方式。食谱内容仅供参考,应结合自身实际做出适于自身条件的选择。</p>
|
||||
<p>5.7您理解并同意,智能服务是鲨鱼云康软件及服务提供者基于现有技术提供的,不能完全避免潜在技术风险导致的服务差异或不足。您应自行评估、判断该等服务对自身的影响,不会就服务目的未达到即要求鲨鱼云康软件及服务提供者承担任何赔偿责任。
|
||||
</p>
|
||||
<h3>六、使用规则</h3>
|
||||
<p>6.1用户在使用本服务时,应当遵守相关的法律法规,包括但不限于《中华人民共和国宪法》、《中华人民共和国刑法》、《中华人民共和国民法通则》、《中华人民共和国合同法》《中华人民共和国著作权法》、《中华人民共和国电信条例》、《互联网信息服务管理办法》、《互联网电子公告服务管理规定》、《中华人民共和国保守国家秘密法》、《中华人民共和国计算机信息系统安全保护条例》、《计算机信息网络国际联网安全保护管理办法》、《全国人民代表大会常务委员会关于维护互联网安全的决定》及其相关的司法解释。
|
||||
</p>
|
||||
<p>6.2用户在使用本服务的过程中,必须遵守以下原则:</p>
|
||||
<p>6.2.1遵守所有与网络服务有关的网络协议规定和程序;</p>
|
||||
<p>6.2.2不得进行任何可能对互联网的正常运转造成不利影响的行为;</p>
|
||||
<p>6.2.3不得为任何非法目的或为任何商业目的而使用本服务;</p>
|
||||
<p>6.2.4不得进行任何不利于鲨鱼云康开放平台的行为;</p>
|
||||
<p>6.2.5不得传输任何骚扰性的、中伤他人的辱骂性的、恐吓性的、庸俗淫秽的或其他任何非法的信息资料;</p>
|
||||
<p>6.3用户有权根据鲨鱼云康用户的规定使用鲨鱼云康账号提供的相关服务。</p>
|
||||
<p>6.4如果用户在使用过程中注册资料发生变更,则用户应当及时更新准确的、详细的注册资料。</p>
|
||||
<p>6.5用户应当对以用户的用户账号进行的任何行为承担法律责任,包括但不限于用户本人/他人利用用户账号和密码所进行的一切行为。如因用户未保管好用户的账号和密码而给鲨鱼云康及其关联公司、第三方造成损失,用户应当进行全额赔偿,并消除影响。
|
||||
</p>
|
||||
<p>6.6用户理解并同意在使用鲨鱼云康账号提供的各项服务时,同意接受鲨鱼云康或第三方提供的各类信息服务。</p>
|
||||
<p>6.7 鲨鱼云康有权根据实际情况中断、变更、终止服务,且鲨鱼云康不需对用户或任何第三方承担任何责任。</p>
|
||||
<p>6.8信息发布规范</p>
|
||||
<p>6.8.1您在使用本软件时不得利用本软件从事以下行为,包括但不限于;
|
||||
<p>6.8.1.1制作、复制、发布、传播、储存违反当地法律法规的内容;</p>
|
||||
<p>6.8.1.2 发布、传送、传播、储存侵害他人名誉权、肖像权、知识产权、商业秘密等合法权利的内容;</p>
|
||||
<p>6.8.1.3虚构事实、隐瞒真相以误导、欺骗他人;</p>
|
||||
<p>6.8.1.4发表、传送、传播广告信息及垃圾信息;</p>
|
||||
<p>6.8.1.5从事其他违反当地法律法规的行为;</p>
|
||||
<p>6.8.2您可使用本软件发表属于您原创或您有权发表的观点看法、数据、文字、信息、用户名、图片、照片、个人信息、音频、视频文件链接等信息内容。您必须保证,您拥有您所上传信息内容的知识产权或已获得合法授权,您使用本软件及服务的任何行为未侵犯任何第三方之合法权益。
|
||||
</p>
|
||||
<p>6.8.3未经鲨鱼云康许可,您不得在本软件中进行任何诸如发布广告、销售商品的商业行为。</p>
|
||||
<h3>七、您理解并同意</h3>
|
||||
<p>7.1
|
||||
本软件同大多数互联网软件一样,可能会受多种因素影响,包括但不限于用户操作原因网络服务质量、社会环境等;也可能会受各种安全问题的侵扰,包括但不限于他人非法利用用户资料,进行现实生活的骚扰;用户下载安装的其他软件或访问的其他网站中可能含有病毒、本马程序或其他恶意程序,威胁您的终端设备信息和数据安全,继而影响本软件的正常使用等。因此,您应加强信息安全及个人信息的保护意识,注意密码保护,以免遭受损失。
|
||||
</p>
|
||||
<p>7.2您将合法地使用本软件,在使用本软件期间将遵守中华人民共和国法律。您承诺不制作发布、使用、传播用于窃取鲨鱼云康帐号及他人个人信息或财产的恶意程序,也不得利用本软件做出其他违反中华人民共和国法律法规的行为。7.3鲨鱼云康会对用户是否涉嫌违反上述使用规范做出认定,并根据认定结果中止、终止对您的使用许可或采取其他依本约定可采取的限制措施。
|
||||
</p>
|
||||
<p>7.4对于用户使用许可软件时发布的涉嫌违法或涉嫌侵犯他人合法权利或违反本协议的信息鲨鱼云康会直接删除。</p>
|
||||
<p>7.5维护软件安全与正常使用是鲨鱼云康软件及服务提供者和您的共同责任,鲨鱼云康将按照行业标准合理审慎地采取必要技术措施保护您的终端设备信息和数据安全,但是您承认和同意鲨鱼云康并不能就此提供完全保证。7.6责任限制:鲨鱼云康软件及服务提供者不对任何间接、特殊、偶发、惩罚或后果性损害负责无论该种责任是如何引起的以及在何种理论下触发的。前述责任包括但不限于合同责任或侵权责任,或者并非鲨鱼云康软件及服务提供者已知晓或应该知晓的可能损害
|
||||
</p>
|
||||
<h3>八、禁止行为</h3>
|
||||
<p>用户不得利用鲨鱼云康账号发布或传播敏感信息和违反中华人民共和国法律法规、政策的信息,包括但不限于下列信息:</p>
|
||||
<p>8.1违反宪法确定的基本原则的;</p>
|
||||
<p>8.2危害中华人民共和国统一、主权和领土完整的;</p>
|
||||
<p>8.3 泄露中华人民共和国秘密、危害中华人民共和国安全或者损害中华人民共和国荣誉和利益的;</p>
|
||||
<p>8.4 煽动民族仇恨、民族歧视,破坏民族团结,或者侵害民族风俗、习惯的;</p>
|
||||
<p>8.5宣扬邪教、迷信的;</p>
|
||||
<p>8.6 散布谣言,扰乱社会秩序,破坏社会稳定的;</p>
|
||||
<p>8.7 宣扬淫秽、赌博、暴力或者教唆犯罪的;
|
||||
<p>8.8侮辱或者诽谤他人,侵害他人合法权益的;</p>
|
||||
<p>8.9危害社会公德或者民族优秀文化传统的;</p>
|
||||
<p>8.10有法律、行政法规和中华人民共和国规定禁止的其他内容的。</p>
|
||||
<p>8.10 有法律、行政法规和中华人民共和国规定禁止的其他内容的。</p>
|
||||
<h3>九、服务变更、中断或终止</h3>
|
||||
<p>9.1鉴于网络服务的特殊性,用户同意鲨鱼云康有权根据业务发展情况随时变更、中断或终止部分或全部的网络服务而无需通知用户,也无需对任何用户或任何第三方承担任何责任。</p>
|
||||
<p>9.2用户理解,鲨鱼云康需要定期或不定期地对提供网络服务的平台(如互联网网站、移动网络等)或相关的设备进行检修或者维护,如因此类情况而造成网络服务在合理时间内的中断,鲨鱼云康无需为此承担任何责任,但鲨鱼云康应尽可能事先进行通告。
|
||||
</p>
|
||||
<p>9.3如发生下列任何一种情形,鲨鱼云康有权随时中断或终止向用户提供本《协议》项下的网络服务(包括收费网络服务)而无需对用户或任何第三方承担任何责任:</p>
|
||||
<p>9.3.1用户提供的个人资料不真实;</p>
|
||||
<p>9.3.2用户违反本《协议》中规定的使用规则。</p>
|
||||
<p>9.4鲨鱼云康有权在必要时修改本协议条款,协议条款一旦发生变动,将会在相关页面上公布修改后的协议条款。如果不同意所改动的内容,用户应主动取消此项服务。如果用户继续使用服务,则视为接受协议条款的变动。若用户不接受更新后的条款,将无法接受鲨鱼云康提供的服务。
|
||||
</p>
|
||||
<p>9.5鲨鱼云康和合作公司有权按需要修改或变更所提供的收费服务、收费标准、收费方式、服务费及服务条款。鲨鱼云康和合作公司将尽最大努力通过电邮或其他方式通知用户有关的修改或变更。</p>
|
||||
<h3>十、知识产权</h3>
|
||||
<p>10.1鲨鱼云康提供的网络服务中包含的任何文本、图片、图形、音频和/或视频资料均受版权商标和/或其它财产所有权法律的保护,未经相关权利人同意,上述资料均不得用于任何商业或非商业目的自行或许可任何第三方实施、利用、转让上述知识产权,鲨鱼云康保留追究上述行为法律责任的权利。
|
||||
</p>
|
||||
<p>10.2鲨鱼云康为提供网络服务而使用的任何软件(包括但不限于软件中所含的任何图像、照片、动画、录像、录音、音乐、文字和附加程序、随附的帮助材料)的一切权利均属于该软件的著作权人,均受您所在当地法律法规和相应的国际条约保护,鲨鱼云康享有上述知识产权。未经该软件的著作权人许可,用户不得对该软件进行反向工程
|
||||
(reverseengineer) 、反向编译(decompile)或反汇编 (disassemble)等违法操作。</p>
|
||||
<h3>十一、免责声明</h3>
|
||||
<p>11.1用户确认,其知悉本软件所有功能及智能管家为实现本软件各功能所进行的必要操作,其根据自身需求自愿选择使用本软件及相关服务因使用本软件及相关服务所存在的风险和一切后果将完全由其自己承担,本公司不承担任何责任。
|
||||
</p>
|
||||
<p>11.2用户必须自行配备移动终端设备上网和使用电信增值业务所需的设备,自行负担个人移动终端设备上网或第三方(包括但不限于电信或移动通信提供商)收取的通讯费、信息费等有关费用。如涉及电信增值服务的,我们建议用户与用户的电信增值服务提供商确认相关的费用问题。
|
||||
</p>
|
||||
<p>11.3用户因第三方如通讯线路故障、技术问题、网络、移动终端设备故障、系统不稳定性及其他各种不可抗力原因而遭受的一切损失,鲨鱼云康及合作单位不承担责任。</p>
|
||||
<p>11.4本软件经过详细的测试,但不能保证与所有的软硬件系统完全兼容,不能保证本软件完全没有错误。如果出现不兼容及软件错误的情况,用户可拨打技术支持电话,获得技术支持如果无法解决兼容性问题,用户可以删除本软件。
|
||||
</p>
|
||||
<p>11.5本软件同大多数互联网软件一样,受包括但不限于用户原因、网络服务质量、社会环境等因素的差异影响,可能受到各种安全问题的侵扰,如他人利用用户的资料,造成现实生活中的骚扰,用户下载安装的其它软件或访问的其他网站中含有“特洛伊木马”等病毒,威胁到用户的终端设备信息和数据的安全,继而影响本软件的正常使用等等。用户应加强信息安全及使用者资料的保护意识,要注意加强密码保护,以免遭致损失和骚扰。
|
||||
</p>
|
||||
<p>11.6因用户使用本软件或要求鲨鱼云康提供特定服务时,本软件可能会调用第三方系统或第三方软件支持用户的使用或访问,使用或访问的结果由该第三方提供,鲨鱼云康不保证通过第三方系统或第三方软件支持实现的结果的安全性、准确性、有效性及其他不确定的风险,由此若引发的任何争议及损害,鲨鱼云康不承担任何责任。
|
||||
</p>
|
||||
<p>11.7 为了保障公司业务发展和调整的自主权,鲨鱼云康公司拥有随时修改或中断服务而不需通知用户的权利,鲨鱼云康行使修改或中断服务的权利不需对用户或任何第三方负责。</p>
|
||||
<p>11.8除法律法规有明确规定外,我们将尽最大努力确保软件及其所涉及的技术及信息安全有效、准确、可靠,但受限于现有技术,请用户理解鲨鱼云康不能对此进行担保。</p>
|
||||
<p>11.9由于用户因下述任一情况所引起或与此有关的人身伤害或附带的、间接的经济损害赔偿,包括但不限于利润损失、资料损失、业务中断的损害赔偿或其他商业损害赔偿或损失,需由用户自行承担:</p>
|
||||
<p>11.9.1使用或未能使用许可软件;</p>
|
||||
<p>11.9.2第三方未经许可的使用软件或更改用户的数据;</p>
|
||||
<p>11.9.3用户使用软件进行的行为产生的费用及损失;</p>
|
||||
<p>11.9.4用户对软件的误解;</p>
|
||||
<p>11.9.5非因鲨鱼云康的原因引起的与软件有关的其他损失。</p>
|
||||
<p>11.10用户与其他使用软件的用户之间通过软件进行的行为,因用户受误导或欺骗而导致或可能导致的任何人身或经济上的伤害或损失,均由过错方依法承担所有责任。</p>
|
||||
<p>11.11用户使用鲨鱼云康的特定功能时,包括但不限于与其他成员共享家庭或设备的功能,由此产生的不良后果或经济损失鲨鱼云康将不承担责任。</p>
|
||||
<p>11.12为了改善用户体验、完善服务内容,鲨鱼云康将不断努力开发新的功能,并为用户不时提供软件更新
|
||||
(这些更新可能会采取软件替换、修改、功能强化、版本升级等形式)。因此,服务的现有功能随时可能因版本不同或鲨鱼云康的单方判断而被增加或修改,或因定期、不定期的维护而暂缓提供,鲨鱼云康也有权随时调整软件的名称、功能、展现形式等。
|
||||
</p>
|
||||
<h3>十二、法律及争议解决</h3>
|
||||
<p>12.1本协议适用中华人民共和国法律。</p>
|
||||
<p>12.2因本协议引起的或与本协议有关的任何争议,各方应友好协商解决,协商不成的,任何一方均应将有关争议提交至鲨鱼云康所在地有管辖权的人民法院管辖。</p>
|
||||
<h3>十三、其他条款</h3>
|
||||
<p>13.1本协议生效时间为2024年01月15日。</p>
|
||||
<p>13.2本协议所有条款的标题仅为阅读方便本身并无实际涵义,不能作为本协议涵义解释的依据。</p>
|
||||
<p>13.3如果本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,或违反任何适用的法律,则该条款被视为删除,但本协议的其余条款仍应有效并且有约束力。</p>
|
||||
<p>13.4鲨鱼云康有权随时根据有关法律、法规的变化以及公司经营状况和经营策略的调整等修改本协议,用户会在登录时收到确认信息,信息会告知用户如果继续使用产品将被视为用户接受修订后的协议。用户也可随时通过鲨鱼云康网站浏览最新服务协议条款。当发生有关争议时,以最新的协议文本为准。如果不同意鲨鱼云康对本协议相关条款所做的修改,用户有权停止使用网络服务。如果用户继续使用网络服务,则视为用户接受鲨鱼云康对本协议相关条款所做的修改。
|
||||
</p>
|
||||
<p>13.5鲨鱼云康在法律允许最大范围对本协议拥有解释权与修改权。</p>
|
||||
</div>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.contioner {
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.cneter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p {
|
||||
text-indent: 2rem;
|
||||
letter-spacing: 3px;
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
|
@ -1,19 +0,0 @@
|
|||
<template>
|
||||
<web-view :src="url"></web-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
url:''
|
||||
}
|
||||
},
|
||||
onLoad(opt){
|
||||
this.url=opt.url
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
|
@ -1,230 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 36px 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
.card {
|
||||
padding: 40px 40px 28px 40px;
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1624px - 68px);
|
||||
background: #FFFFFF;
|
||||
.topImg{
|
||||
width: 502px;
|
||||
height: 290px;
|
||||
margin-right: 32px;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.leftWidth{
|
||||
width: 80px;
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
background: #11ACFF;
|
||||
border-radius: 8px;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
margin-right: 12px;
|
||||
margin-top:10px;
|
||||
}
|
||||
.nameTitle{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
}
|
||||
.lowHeat{
|
||||
width: 48px;
|
||||
height: 62px;
|
||||
}
|
||||
::v-deep .uni-progress-bar {
|
||||
// 这主要是加上deep才能改变它原来的样式
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
::v-deep .uni-progress-inner-bar{
|
||||
background: linear-gradient( 90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.titleOne{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
padding-top: 60px;
|
||||
}
|
||||
.item {
|
||||
border-bottom: 1px solid #EBEDF0;
|
||||
padding: 32px 0;
|
||||
}
|
||||
.left{
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #17191A;
|
||||
margin-right: 32px;
|
||||
}
|
||||
.right{
|
||||
font-size: 32px;
|
||||
color: #3F4040;
|
||||
}
|
||||
.yuan{
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
margin-right: 6px;
|
||||
margin-bottom: 4px;
|
||||
display: inline-block;
|
||||
}
|
||||
.dataList {
|
||||
color: #17191A;
|
||||
font-size: 32px;
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.cut{
|
||||
margin: 32px 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #EBEDF0;
|
||||
}
|
||||
|
||||
.right {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
span {
|
||||
padding: 0 20rpx;
|
||||
margin:0 30rpx 30rpx 0;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
}
|
||||
.audio {
|
||||
width: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
audio {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.context {
|
||||
line-height: 44rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.imageBox {
|
||||
width: 100%;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottomSelect {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
.bottomImg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.lineHeight{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.titleShow {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 160px;
|
||||
height: 4px;
|
||||
background: #3AAFB8;
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
.bottomBack{
|
||||
width: 100%;
|
||||
line-height: 76px;
|
||||
text-align: center;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 38px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: #17191A;
|
||||
margin-top: 28px;
|
||||
}
|
||||
}
|
|
@ -1,169 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="pageShow">
|
||||
<view class="card flex flex-direction">
|
||||
<view class="flex justify-between">
|
||||
<view class="topImg">
|
||||
<image :src="fomeData.imgAddress"></image>
|
||||
</view>
|
||||
<view class="flex-sub flex justify-between flex-direction" style="margin: 24px 0 12px;">
|
||||
<view class="flex">
|
||||
<view class="leftWidth">{{tagLable}}</view>
|
||||
<view class="nameTitle flex-sub">{{fomeData.dishName}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<span style="font-size: 20px;color:#666;" >{{JSON.parse(fomeData.foodsInfo.elementContent)[Number(illnessId)][0] }} <span v-if="JSON.parse(fomeData.foodsInfo.elementContent)[Number(illnessId)].length > 1" style="margin:0 6px;">|</span> {{ JSON.parse(fomeData.foodsInfo.elementContent)[Number(illnessId)][1] }}</span>
|
||||
<!-- <span class="themColor" style="font-size: 36px;">{{fomeData.heatAmount}}</span><span
|
||||
class="themColor" style="font-size: 28px;">千卡</span
|
||||
style="font-size: 28px;color:#666;"><span>/100克</span> -->
|
||||
</view>
|
||||
<view class="flex">
|
||||
<image src="../../static/images/lowHeat.png" class="lowHeat" style="margin-right: 8px;"></image>
|
||||
<view class="flex-sub" style="margin-top: 15px;">
|
||||
<progress :percent="fomeData.percentage" stroke-width="8" activeColor="#36AAB1"
|
||||
backgroundColor="#E5FDFF" />
|
||||
</view>
|
||||
<image src="../../static/images/highHeat.png" class="lowHeat" style="margin-left: 8px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y class="flex-sub" style="height: 0;">
|
||||
<block v-if="imgIndex==0">
|
||||
<view class="titleOne">疾病人群进食提示</view>
|
||||
<view class="item flex" v-if="fomeData.foodsInfo.foodsLevelB">
|
||||
<span class="left"><span class="yuan" style="background: #10AB4A;"></span>优选</span>
|
||||
<view class="right flex-sub">{{fomeData.foodsInfo.foodsLevelB}}</view>
|
||||
</view>
|
||||
<view class="item flex" v-if="fomeData.foodsInfo.foodsLevelC">
|
||||
<span class="left"><span class="yuan" style="background: #F6A23D;"></span>可食</span>
|
||||
<view class="right flex-sub">{{fomeData.foodsInfo.foodsLevelC}}</view>
|
||||
</view>
|
||||
<view class="flex" style="padding-top: 32px;" v-if="fomeData.foodsInfo.foodsLevelE">
|
||||
<span class="left"><span class="yuan" style="background: #FF4545;"></span>限制</span>
|
||||
<view class="right flex-sub">{{fomeData.foodsInfo.foodsLevelE}}</view>
|
||||
</view>
|
||||
<block v-if="fomeData.prevent!=null">
|
||||
<view class="titleOne">食用说明</view>
|
||||
<view style="padding-top: 32px;font-size: 32px;color: #3F4040;"
|
||||
v-html="fomeData.prevent.replace(/(\r\n|\n|\r)/gm, '<br />')">
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block v-else>
|
||||
<block v-for="(item,index) in fomeData.nutrientInfo" :key="index">
|
||||
<view class="dataList" :style="{borderRadius:index==0?'0 0 20rpx 20rpx':''}"
|
||||
v-if="item.info.length!=0">
|
||||
<view class="title">{{item.name}}</view>
|
||||
<block v-for="(v,i) in item.info" :key="i">
|
||||
<view class="flex-between">
|
||||
<view class="left">{{v.nutrientName}}</view>
|
||||
<view class="right">{{v.nutrientValue}} {{v.company?v.company:''}}</view>
|
||||
</view>
|
||||
<view class="cut" v-if="i<item.info.length-1"></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="dataList" style="border-radius: 0 0 20rpx 20rpx">
|
||||
<view class="c_list_null" v-if="!fomeData.nutrientInfo.length">
|
||||
<image src="/static/images/nth2.png" class="nth_image" mode="widthFix" />
|
||||
<text class="text">暂无数据~</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="bottomSelect">
|
||||
<view class="bottomImg">
|
||||
<image
|
||||
:src="imgIndex==0?'https://sharkbaby.yhy.ren/leftBg.png':'https://sharkbaby.yhy.ren/rightBg.png'">
|
||||
</image>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(0)">
|
||||
<view :class="['title',imgIndex==0?'titleShow':'']">进食提示</view>
|
||||
<view class="tagWidth" v-if="imgIndex==0"></view>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(1)">
|
||||
<view :class="['title',imgIndex==1?'titleShow':'']">营养成分</view>
|
||||
<view class="tagWidth" v-if="imgIndex==1"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomBack" @tap="back">返回上一页</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
showLoading,
|
||||
hideLoading,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
imgIndex: 0,
|
||||
tagLable: '',
|
||||
fomeData: {},
|
||||
id: null, //食物id
|
||||
userId:'29',
|
||||
pageShow: false,
|
||||
isHome: false, //返回首页图标是否显示
|
||||
illnessId:"",//疾病id,根据疾病id来显示对应的数据
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
this.illnessId = opt.illnessId
|
||||
this.id=opt.id
|
||||
this.tagLable=opt.lableName
|
||||
this.getFoodsInfo()
|
||||
},
|
||||
methods: {
|
||||
selectChange(index) {
|
||||
this.imgIndex = index
|
||||
},
|
||||
// 获取食材详情
|
||||
async getFoodsInfo() {
|
||||
showLoading('加载中...')
|
||||
let ret = await this.$API.selectFoodsInfo({
|
||||
data: {
|
||||
foodsId: this.id,
|
||||
userId:this.userId
|
||||
}
|
||||
})
|
||||
// 去除数组为0的数据
|
||||
if (ret.data.nutrientInfo.length != 0) {
|
||||
ret.data.nutrientInfo.forEach((item, index) => {
|
||||
item.info = item.info.filter((item1) => item1.nutrientValue !== 0);
|
||||
});
|
||||
}
|
||||
this.fomeData = ret.data || {}
|
||||
console.log("this.fomeData",JSON.parse(this.fomeData.foodsInfo.elementContent)[103])
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
hideLoading()
|
||||
})
|
||||
},
|
||||
// 返回上一页
|
||||
back(){
|
||||
history.go(-1)
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/hairtailScreen/bestFood/index/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './detail.scss'
|
||||
</style>
|
|
@ -1,171 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 340px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 340px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.bestFoodBg {
|
||||
width: 100%;
|
||||
height: 1260px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1260px - 88px);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 48px 40px 40px 40px;
|
||||
color: #171919;
|
||||
position: relative;
|
||||
|
||||
.preNext{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.nothing{
|
||||
$wh:648px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 160px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.foodImg {
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.rightArrow {
|
||||
$wh: 48px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E9E9E9;
|
||||
margin: 24px 0 12px;
|
||||
}
|
||||
|
||||
.whiteBtn {
|
||||
width: 232px;
|
||||
line-height: 108px;
|
||||
text-align: center;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
color: #28A6B4;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 317px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
|
||||
.text-four {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidthShow {
|
||||
background: #11ACFF;
|
||||
}
|
||||
|
||||
.tagShow {
|
||||
background: #3AAFB8 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 316px;
|
||||
|
||||
.tag {
|
||||
width: 232px;
|
||||
height: 108px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #42444F;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//设置轮播的指示点大小
|
||||
::v-deep .uni-swiper-dots {
|
||||
// 指示点整个区域
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot {
|
||||
// 指示点元素默认样式
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot-active {
|
||||
// 指示点元素激活(当前选中)状态样式
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
background: #28A6B4;
|
||||
border-radius: 26px 26px 26px 26px;
|
||||
}
|
|
@ -1,239 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="bestFoodBg" v-if="oneIndex==null||name==null">
|
||||
<image src="../../static/images/Group 427320922@2x.png" class="bestFoodBg"></image>
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="text-center text-bold" style="font-size: 48px;margin-bottom: 28px;color: #17191A;">{{diseaseName}}{{typeName}}食物列表
|
||||
</view>
|
||||
<block v-if="foodList.length>0">
|
||||
<block v-for="(item,index) in foodList" :key="index">
|
||||
<view class="flex-between align-center" @tap="goDetail(item)">
|
||||
<view class="flex-contion">
|
||||
<view class="foodImg" style="margin-right: 48px;">
|
||||
<image :src="item.imgAddress" class="foodImg"></image>
|
||||
</view>
|
||||
<view>
|
||||
<view style="font-size: 44px;font-weight: 500;margin-bottom: 10px;">
|
||||
{{item.foodsName}}
|
||||
</view>
|
||||
<view>
|
||||
<!-- <span class="themColor" style="font-size: 36px;">{{item.energy}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">千卡</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span> -->
|
||||
|
||||
<span style="font-size: 28px;color:#666;" >{{ dataList[index][query.diseaseIds] ? dataList[index][query.diseaseIds][0] : " "}} <span v-if="dataList[index][query.diseaseIds]"></span><span v-if="dataList[index][query.diseaseIds].length > 1" style="margin:0 6px;"> | </span> {{ dataList[index][query.diseaseIds] ? dataList[index][query.diseaseIds][1] : " "}}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rightArrow">
|
||||
<image src="../../static/images/rightArrow.png" class="rightArrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cutt"></view>
|
||||
</block>
|
||||
<view class="flex justify-center preNext">
|
||||
<view class="whiteBtn" v-if="query.pageNum>1" @tap="previousPage">上一页</view>
|
||||
<view class="whiteBtn" v-if="totalWatch" @tap="nextPage">下一页</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isPageShow&&foodList.length==0">
|
||||
<view class="nothing">
|
||||
<image src="../../static/images/nothing.png"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="flex-between" style="margin-top: 40px;">
|
||||
<block v-for="(item,index) in list" :key="index">
|
||||
<view :class="['tagWidth flex-conter flex-direction',index==oneIndex?'tagWidthShow':'']"
|
||||
@tap="oneChane(item,index)">
|
||||
<view class="text-four" :style="{'color':index==oneIndex?'#fff': '#42444F'}">{{item.name}}</view>
|
||||
<view class="text-eight" :style="{'color':index==oneIndex?'#fff': '#6E7477'}">{{item.subtitle}}
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="title">疾病选择</view>
|
||||
<swiper class="swiper" circular indicator-dots indicator-color="#fff" :current="currentIndex"
|
||||
@change="currentChange">
|
||||
<block v-for="(item,index) in diseaseList" :key="index">
|
||||
<swiper-item>
|
||||
<view class="flex-between flex-wrap">
|
||||
<view v-for="(item1,index1) in item" :key="index1"
|
||||
:class="['tag flex-conter',name==item1.diseaseName?'tagShow':'']" @tap="twoChane(item1)">
|
||||
{{item1.diseaseName}}
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
// filters:{
|
||||
// dataListFilter(e){
|
||||
// console.log(e);
|
||||
// return e
|
||||
// }
|
||||
// },
|
||||
computed: {
|
||||
totalWatch() {
|
||||
return this.query.pageNum * 5 < this.total
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
typeName:'优选',
|
||||
diseaseName:"高血压",
|
||||
isPageShow: false, //列表是否显示
|
||||
list: [{
|
||||
id: 1,
|
||||
name: '优选',
|
||||
subtitle: 'GOOD'
|
||||
}, {
|
||||
id: 2,
|
||||
name: '可食',
|
||||
subtitle: 'OK'
|
||||
}, {
|
||||
id: 3,
|
||||
name: '限制',
|
||||
subtitle: 'NO'
|
||||
}],
|
||||
oneIndex: null,
|
||||
currentIndex: 0, //滑块索引
|
||||
diseaseList: [],
|
||||
name: null,
|
||||
// 食物列表
|
||||
foodList: [],
|
||||
// 参数
|
||||
query: {
|
||||
diseaseIds: [],
|
||||
level: '1',
|
||||
pageSize: 5, //每页数据量
|
||||
pageNum: 1, //当前页码
|
||||
userId: '29',
|
||||
},
|
||||
total: 0, //总条数
|
||||
isHome: false, //返回首页图标是否显示
|
||||
dataList:[],
|
||||
illnessId:"",//疾病id
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getLabel()
|
||||
},
|
||||
methods: {
|
||||
// 获取标签
|
||||
getLabel() {
|
||||
this.$API.selectDictListByFoodList({
|
||||
data: {
|
||||
userName: 'admin',
|
||||
diseaseType: 0,
|
||||
userId: this.query.userId,
|
||||
}
|
||||
}).then(res => {
|
||||
this.diseaseList = this.getArr(res.data, 8)
|
||||
})
|
||||
},
|
||||
getArr(arr, num) {
|
||||
let newArr = [...arr] // 因为splice会改变原数组,要深拷贝一下
|
||||
let list = []
|
||||
for (let i = 0; i < newArr.length;) {
|
||||
list.push(newArr.splice(i, num))
|
||||
}
|
||||
return list
|
||||
},
|
||||
getPageData() {
|
||||
this.isPageShow = false
|
||||
this.dataList = []
|
||||
this.$API.getDiseaseFoodsLevel({
|
||||
data: this.query
|
||||
}).then(res => {
|
||||
if (res.code = 200) {
|
||||
this.foodList = res.rows
|
||||
res.rows.forEach(e => {
|
||||
console.log(e.elementContent);
|
||||
|
||||
this.dataList.push(JSON.parse(e.elementContent))
|
||||
|
||||
|
||||
});
|
||||
console.log(this.dataList);
|
||||
this.total = res.total
|
||||
this.$nextTick(() => {
|
||||
this.isPageShow = true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
oneChane(item, index) {
|
||||
if(this.name == null) return toast('请先选择疾病')
|
||||
this.typeName = item.name
|
||||
this.oneIndex = index
|
||||
this.query.level = item.id
|
||||
this.query.pageNum = 1
|
||||
if (this.name != null) {
|
||||
this.getPageData()
|
||||
}
|
||||
},
|
||||
twoChane(item1) {
|
||||
this.diseaseName = item1.diseaseName
|
||||
this.illnessId = item1.id
|
||||
this.name = item1.diseaseName
|
||||
this.query.diseaseIds[0] = item1.id
|
||||
this.query.pageNum = 1
|
||||
if (this.oneIndex != null) {
|
||||
this.getPageData()
|
||||
}
|
||||
},
|
||||
currentChange(e) {
|
||||
console.log(e.detail.current);
|
||||
return
|
||||
this.currentIndex = e.detail.current
|
||||
},
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/bestFood/detail/detail?id=' + item.id + '&lableName=' + this.list[
|
||||
this.oneIndex].name + '&illnessId=' + this.illnessId
|
||||
})
|
||||
},
|
||||
// 上一页
|
||||
previousPage() {
|
||||
this.query.pageNum -= 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 下一页
|
||||
nextPage() {
|
||||
this.query.pageNum += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
this.oneIndex = null
|
||||
this.name = null
|
||||
this.isHome = false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './index.scss';
|
||||
</style>
|
|
@ -1,173 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 36px 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
.card {
|
||||
padding: 40px 40px 28px 40px;
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1732px - 68px);
|
||||
background: #FFFFFF;
|
||||
.topTitle{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: bold;
|
||||
font-size: 48px;
|
||||
color: #17191A;
|
||||
text-align: center;
|
||||
margin-bottom: 44px;
|
||||
}
|
||||
.topImg{
|
||||
width: 100%;
|
||||
height: 540px;
|
||||
position: relative;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.tagWidth{
|
||||
width: calc(840px - 160px);
|
||||
height: 118px;
|
||||
padding: 0 80px;
|
||||
background: rgba(255,255,255,0.9);
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
position: absolute;
|
||||
font-size: 36px;
|
||||
bottom: 40px;
|
||||
left: 40px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.greyColor{
|
||||
color: #6E7477;
|
||||
}
|
||||
.cutt{
|
||||
width: 2px;
|
||||
height: 42px;
|
||||
background: #6E7477;
|
||||
display: inline-block;
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.exchange{
|
||||
$wh:92px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 60px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.tagBg{
|
||||
width: calc(100% - 160px);
|
||||
height: 118px;
|
||||
background: #89CFD4;
|
||||
border-radius: 12px;
|
||||
font-size: 36px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 80px;
|
||||
// margin-bottom: 48px;
|
||||
.cutt{
|
||||
width: 2px;
|
||||
height: 42px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
display: inline-block;
|
||||
margin-left: 24px;
|
||||
}
|
||||
.colorWhite{
|
||||
color: rgba(255,255,255,0.8);
|
||||
}
|
||||
}
|
||||
.symbol{
|
||||
width:100%;
|
||||
height:52px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 40px;
|
||||
color: #51CED5;
|
||||
font-weight: 500;
|
||||
}
|
||||
.descri{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
font-weight: 400;
|
||||
font-size: 26px;
|
||||
margin-top:15px;
|
||||
color: #6E7477;
|
||||
}
|
||||
.descri-content{
|
||||
width:100%;
|
||||
margin-top:15px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
.content{
|
||||
font-weight: 400;
|
||||
font-size: 26px;
|
||||
color: #6E7477;
|
||||
}
|
||||
}
|
||||
.bottomTitle{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: $uni-color;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.bottomBack{
|
||||
width: 100%;
|
||||
line-height: 76px;
|
||||
text-align: center;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 38px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: #17191A;
|
||||
margin-top: 28px;
|
||||
}
|
||||
}
|
|
@ -1,115 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="pageShow">
|
||||
<view class="card">
|
||||
<scroll-view scroll-y style="height: 100%;">
|
||||
<view class="topTitle">{{fomeData.foodTypeName}}食物列表</view>
|
||||
<view class="topImg">
|
||||
<image :src="fomeData.foodIcon"></image>
|
||||
<view class="tagWidth">
|
||||
<view class="flex align-center">
|
||||
<text style="color: #42444F;">{{fomeData.foodName}}</text>
|
||||
<text class="cutt"></text>
|
||||
</view>
|
||||
<view v-if="type == 1 || type == 2" class="greyColor">{{ fomeData.foodWeight }}g</view>
|
||||
<view v-if="type == 1" class="greyColor">{{fomeData.foodKcal}}{{fomeData.foodUnit}}</view>
|
||||
<view v-if="type == 2" class="greyColor">{{fomeData.foodKcal}}{{fomeData.foodUnit}}钠</view>
|
||||
<view v-if="type == 3" class="greyColor">{{fomeData.foodWeight}}ml</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="exchange">
|
||||
<image src="../../static/images/exchange.png"></image>
|
||||
</view>
|
||||
<block v-for="(item,index) in fomeData.foodInfos" :key="index">
|
||||
<view class="tagBg">
|
||||
<view v-if="type == 1" class="flex align-center">
|
||||
<text style="color: #fff;">{{item.foodName}}</text>
|
||||
<text class="cutt"></text>
|
||||
</view>
|
||||
<view v-if="type == 2" class="flex align-center">
|
||||
<text style="color: #fff;">盐</text>
|
||||
<text class="cutt"></text>
|
||||
</view>
|
||||
<view v-if="type == 3" class="flex align-center">
|
||||
<text style="color: #fff;">糖</text>
|
||||
<text class="cutt"></text>
|
||||
</view>
|
||||
<view v-if="type == 1" class="colorWhite">{{item.foodWeight}}g</view>
|
||||
<view v-if="type == 1" class="colorWhite">{{item.foodKcal}}{{item.foodUnit}}</view>
|
||||
<view v-if="type == 2 || type == 3" class="colorWhite">{{ item.foodSalt }}g</view>
|
||||
</view>
|
||||
<view v-if='type == 2' class="descri">注:1克食盐≈400mg钠</view>
|
||||
<view v-if='type == 3' class="descri-content">
|
||||
<view class="content">
|
||||
注:成年人每天的添加糖摄入量不应超过 50 克,最好控制在 25 克以下。
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="index < fomeData.foodInfos.length - 1" class="symbol">+</view>
|
||||
</block>
|
||||
<!-- <view class="bottomTitle">热量合计:{{fomeData.foodKcalSum}}千卡</view> -->
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="bottomBack" @tap="back">返回上一页</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
showLoading,
|
||||
hideLoading,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
fomeData: {},
|
||||
id: null, //食物id
|
||||
type:"", //食物分类
|
||||
pageShow: false,
|
||||
isHome: false, //返回首页图标是否显示
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
this.id = opt.id
|
||||
this.type = opt.type
|
||||
this.getFoodsInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取食材详情
|
||||
async getFoodsInfo() {
|
||||
let ret = await this.$API.queryEeFoodInfoDetails({
|
||||
data: {
|
||||
id: this.id
|
||||
}
|
||||
})
|
||||
this.fomeData = ret.data || {}
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
})
|
||||
},
|
||||
// 返回上一页
|
||||
back() {
|
||||
history.go(-1)
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
// url: '/pages/hairtailScreen/bestFood/index/index'
|
||||
url:'/pages/hairtailScreen/exchangePortion/index/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './detail.scss';
|
||||
</style>
|
|
@ -1,214 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.bestFoodBg {
|
||||
width: 100%;
|
||||
height: 1260px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1260px - 88px);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 48px 40px 40px 40px;
|
||||
color: #171919;
|
||||
position: relative;
|
||||
|
||||
.preNext{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
}
|
||||
.nothing{
|
||||
$wh:648px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 160px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.foodImg {
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.rightArrow {
|
||||
$wh: 48px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E9E9E9;
|
||||
margin: 24px 0 12px;
|
||||
}
|
||||
|
||||
.whiteBtn {
|
||||
width: 232px;
|
||||
line-height: 108px;
|
||||
text-align: center;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
color: #28A6B4;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 317px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
|
||||
.text-four {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidthShow {
|
||||
background: #11ACFF;
|
||||
}
|
||||
|
||||
.tagShow {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.tagHide{
|
||||
color: #42444F;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
width: 232px;
|
||||
height: 386px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 38px;
|
||||
.iconSelect{
|
||||
$wh:88px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.exchangeTag{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.search{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
position: relative;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.inputClass{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.searchTitle{
|
||||
position: absolute;
|
||||
right: 66px;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 52px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//设置轮播的指示点大小
|
||||
::v-deep .uni-swiper-dots {
|
||||
// 指示点整个区域
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot {
|
||||
// 指示点元素默认样式
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot-active {
|
||||
// 指示点元素激活(当前选中)状态样式
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
background: #28A6B4;
|
||||
border-radius: 26px 26px 26px 26px;
|
||||
}
|
|
@ -1,207 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="bestFoodBg" v-if="!isPage">
|
||||
<image src="../../static/images/exchangeBg.png" class="bestFoodBg"></image>
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="text-center text-bold" style="font-size: 48px;margin-bottom: 28px;color: #17191A;">
|
||||
<text v-if="selectIndex!=null">{{diseaseList[selectIndex].foodType}}</text>食物列表
|
||||
</view>
|
||||
<block v-if="foodList.length>0">
|
||||
<block v-for="(item,index) in foodList" :key="index">
|
||||
<view class="flex-between align-center" @tap="goDetail(item)">
|
||||
<view class="flex-contion">
|
||||
<view class="foodImg" style="margin-right: 48px;">
|
||||
<image :src="item.foodIcon" class="foodImg"></image>
|
||||
</view>
|
||||
<view>
|
||||
<view style="font-size: 44px;font-weight: 500;margin-bottom: 10px;">{{item.foodName}}
|
||||
</view>
|
||||
<view v-if='foodClass == 1'>
|
||||
<!-- <span style="font-size: 28px;color:#666;">钾含量 - | </span> -->
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodKcal}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">千卡</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span>
|
||||
</view>
|
||||
<view v-if='foodClass == 2'>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodKcal}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">mg钠</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span>
|
||||
</view>
|
||||
<view v-if='foodClass == 3'>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodWeight}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">ml</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rightArrow">
|
||||
<image src="../../static/images/rightArrow.png" class="rightArrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cutt"></view>
|
||||
</block>
|
||||
<view class="flex justify-center preNext">
|
||||
<view class="whiteBtn" v-if="pageNum>1" @tap="previousPage">上一页</view>
|
||||
<view class="whiteBtn" v-if="totalWatch" @tap="nextPage">下一页</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isPageShow&&foodList.length==0">
|
||||
<view class="nothing">
|
||||
<image src="../../static/images/nothing.png"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="search">
|
||||
<image src="../../static/images/search.png"></image>
|
||||
<input placeholder="搜索您想要的食物" class="inputClass" v-model="contentText" @input="input" maxlength="17" />
|
||||
<view class="searchTitle" @tap="searchChange">搜索</view>
|
||||
</view>
|
||||
<view class="flex-between flex-wrap">
|
||||
<view v-for="(item,index) in diseaseList" :key="index"
|
||||
:class="['tag flex-conter bg-video',selectIndex==index?'tagShow':'tagHide']"
|
||||
@tap="twoChane(item,index)">
|
||||
<image v-if="selectIndex==index" src="../../static/images/exchangeTag.png" class="exchangeTag">
|
||||
</image>
|
||||
<view class="bg-video text-center">
|
||||
<view class="iconSelect">
|
||||
<image :src="selectIndex==index?item.iconNotSelect:item.iconSelect"></image>
|
||||
</view>
|
||||
<view style="margin-top: 16px;">{{item.foodType}}</view>
|
||||
<view :style="{fontSize:'20px',color:(selectIndex==index?'rgba(255,255,255,0.6)':'')}">
|
||||
{{item.english}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
computed: {
|
||||
totalWatch() {
|
||||
return this.pageNum * 5 < this.total
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diseaseList: [],
|
||||
// 食物列表
|
||||
foodList: [],
|
||||
contentText: '', //搜索框
|
||||
typeCode: 1, //分类id
|
||||
selectIndex: 0, //索引
|
||||
pageSize: 5,
|
||||
pageNum: 1,
|
||||
isPage: false,
|
||||
total: 0, //总条数
|
||||
isPageShow: false, //列表是否显示
|
||||
isHome: false, //返回首页图标是否显示
|
||||
foodClass:"", //点击食品分类
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$API.queryEeFoodType({
|
||||
data: {
|
||||
userId: 29,
|
||||
type:2
|
||||
}
|
||||
}).then(res => {
|
||||
this.diseaseList = res.data
|
||||
let a = {
|
||||
english:"High calorie",
|
||||
foodType:"高油类",
|
||||
iconNotSelect:"https://sharkbaby.yhy.ren/ee_exchange/calorleNotSelect.png",
|
||||
iconSelect: "https://sharkbaby.yhy.ren/ee_exchange/calorleSelect.png",
|
||||
id:1,
|
||||
type:2
|
||||
}
|
||||
this.twoChane(a,0)
|
||||
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 选择
|
||||
twoChane(item, index) {
|
||||
this.foodClass = item.id //食品分类,1,高油类,2,高钠类,3,饮料与糖
|
||||
this.selectIndex = index
|
||||
this.typeCode = item.id
|
||||
this.pageNum = 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 列表数据
|
||||
getPageData() {
|
||||
this.isPageShow = false
|
||||
this.isPage = true
|
||||
this.$API.queryEeFoodInfo({
|
||||
data: {
|
||||
foodType: this.typeCode, //食物类型
|
||||
foodName: this.contentText, //食物名
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.foodList = res.rows
|
||||
this.total = res.total
|
||||
this.$nextTick(() => {
|
||||
this.isPageShow = true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 搜索input框
|
||||
input(e) {
|
||||
this.contentText = e.detail.value
|
||||
},
|
||||
// 搜索按钮
|
||||
searchChange() {
|
||||
this.pageNum = 1
|
||||
this.getPageData()
|
||||
},
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/exchangePortion/detail/detail?id=' + item.id + '&type=' + this.foodClass
|
||||
})
|
||||
},
|
||||
// 上一页
|
||||
previousPage() {
|
||||
this.pageNum -= 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 下一页
|
||||
nextPage() {
|
||||
this.pageNum += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
this.isPage = false
|
||||
this.selectIndex = null
|
||||
this.isHome = false
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/exchangePortion/index/index1'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './index.scss';
|
||||
</style>
|
|
@ -1,217 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.bestFoodBg {
|
||||
width: 1000px;
|
||||
height: 1508px;
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1260px - 88px);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 48px 40px 40px 40px;
|
||||
color: #171919;
|
||||
position: relative;
|
||||
|
||||
.preNext{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
}
|
||||
.nothing{
|
||||
$wh:648px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 160px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.foodImg {
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.rightArrow {
|
||||
$wh: 48px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E9E9E9;
|
||||
margin: 24px 0 12px;
|
||||
}
|
||||
|
||||
.whiteBtn {
|
||||
width: 232px;
|
||||
line-height: 108px;
|
||||
text-align: center;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
color: #28A6B4;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 317px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
|
||||
.text-four {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidthShow {
|
||||
background: #11ACFF;
|
||||
}
|
||||
|
||||
.tagShow {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.tagHide{
|
||||
color: #42444F;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
// width: 232px;
|
||||
// height: 386px;
|
||||
width:488px;
|
||||
height:292px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 38px;
|
||||
.iconSelect{
|
||||
$wh:88px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.exchangeTag{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.search{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
position: relative;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.inputClass{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.searchTitle{
|
||||
position: absolute;
|
||||
right: 66px;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 52px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//设置轮播的指示点大小
|
||||
::v-deep .uni-swiper-dots {
|
||||
// 指示点整个区域
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot {
|
||||
// 指示点元素默认样式
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot-active {
|
||||
// 指示点元素激活(当前选中)状态样式
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
background: #28A6B4;
|
||||
border-radius: 26px 26px 26px 26px;
|
||||
}
|
|
@ -1,210 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="bestFoodBg" v-if="!isPage">
|
||||
<image src="../../static/images/exchangeBg.png" class="bestFoodBg"></image>
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="text-center text-bold" style="font-size: 48px;margin-bottom: 28px;color: #17191A;">
|
||||
<text v-if="selectIndex!=null">{{diseaseList[selectIndex].foodType}}</text>食物列表
|
||||
</view>
|
||||
<block v-if="foodList.length>0">
|
||||
<block v-for="(item,index) in foodList" :key="index">
|
||||
<view class="flex-between align-center" @tap="goDetail(item)">
|
||||
<view class="flex-contion">
|
||||
<view class="foodImg" style="margin-right: 48px;">
|
||||
<image :src="item.foodIcon" class="foodImg"></image>
|
||||
</view>
|
||||
<view>
|
||||
<view style="font-size: 44px;font-weight: 500;margin-bottom: 10px;">{{item.foodName}}
|
||||
</view>
|
||||
<view v-if='foodClass == 1'>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodKcal}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">千卡</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span>
|
||||
</view>
|
||||
<view v-if='foodClass == 2'>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodKcal}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">mg钠</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span>
|
||||
</view>
|
||||
<view v-if='foodClass == 3'>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.foodWeight}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">ml</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rightArrow">
|
||||
<image src="../../static/images/rightArrow.png" class="rightArrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cutt"></view>
|
||||
</block>
|
||||
<view class="flex justify-center preNext">
|
||||
<view class="whiteBtn" v-if="pageNum>1" @tap="previousPage">上一页</view>
|
||||
<view class="whiteBtn" v-if="totalWatch" @tap="nextPage">下一页</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isPageShow&&foodList.length==0">
|
||||
<view class="nothing">
|
||||
<image src="../../static/images/nothing.png"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- <view class="search">
|
||||
<image src="../../static/images/search.png"></image>
|
||||
<input placeholder="搜索您想要的食物" class="inputClass" v-model="contentText" @input="input" maxlength="17" />
|
||||
<view class="searchTitle" @tap="searchChange">搜索</view>
|
||||
</view> -->
|
||||
<view class="flex-between flex-wrap">
|
||||
<view v-for="(item,index) in diseaseList" :key="index"
|
||||
:class="['tag flex-conter bg-video','tagHide']"
|
||||
@tap="twoChane(item,index)">
|
||||
<!-- <image v-if="selectIndex==index" src="../../static/images/exchangeTag.png" class="exchangeTag">
|
||||
</image> -->
|
||||
<view class="bg-video text-center">
|
||||
<!-- <view class="iconSelect">
|
||||
<image :src="item.iconSelect"></image>
|
||||
</view> -->
|
||||
<view style="">{{item.foodType}}</view>
|
||||
<view :style="{fontSize:'20px',color:(''),width:'80%',margin:'auto',color:'#6E7477'}">
|
||||
{{item.english}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
computed: {
|
||||
totalWatch() {
|
||||
return this.pageNum * 5 < this.total
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diseaseList: [{
|
||||
foodType:"食物交换份",
|
||||
english:"食物以每提供 90kcal 能量为一“份” 制定食物交换表"
|
||||
},
|
||||
{
|
||||
foodType:"调味料换算表",
|
||||
english:"分析每份食谱中所含油、盐、 糖的含量"
|
||||
}],
|
||||
// 食物列表
|
||||
foodList: [],
|
||||
contentText: '', //搜索框
|
||||
typeCode: '', //分类id
|
||||
selectIndex: null, //索引
|
||||
pageSize: 5,
|
||||
pageNum: 1,
|
||||
isPage: false,
|
||||
total: 0, //总条数
|
||||
isPageShow: false, //列表是否显示
|
||||
isHome: false, //返回首页图标是否显示
|
||||
foodClass:"", //点击食品分类
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// this.$API.queryEeFoodType({
|
||||
// data: {
|
||||
// userId: 29
|
||||
// }
|
||||
// }).then(res => {
|
||||
// this.diseaseList = res.data.slice(0,3)
|
||||
// })
|
||||
},
|
||||
methods: {
|
||||
// 选择
|
||||
twoChane(item, index) {
|
||||
console.log(item);
|
||||
if(item.foodType == '调味料换算表'){
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/exchangePortion/index/index'
|
||||
})
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/foodexchange/index/index'
|
||||
})
|
||||
}
|
||||
|
||||
// this.foodClass = item.id //食品分类,1,高油类,2,高钠类,3,饮料与糖
|
||||
// this.selectIndex = index
|
||||
// this.typeCode = item.id
|
||||
// this.pageNum = 1
|
||||
// this.getPageData()
|
||||
},
|
||||
// 列表数据
|
||||
getPageData() {
|
||||
this.isPageShow = false
|
||||
this.isPage = true
|
||||
this.$API.queryEeFoodInfo({
|
||||
data: {
|
||||
foodType: this.typeCode, //食物类型
|
||||
foodName: this.contentText, //食物名
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.foodList = res.rows
|
||||
this.total = res.total
|
||||
this.$nextTick(() => {
|
||||
this.isPageShow = true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 搜索input框
|
||||
input(e) {
|
||||
this.contentText = e.detail.value
|
||||
},
|
||||
// 搜索按钮
|
||||
searchChange() {
|
||||
this.pageNum = 1
|
||||
this.getPageData()
|
||||
},
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/exchangePortion/detail/detail?id=' + item.id + '&type=' + this.foodClass
|
||||
})
|
||||
},
|
||||
// 上一页
|
||||
previousPage() {
|
||||
this.pageNum -= 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 下一页
|
||||
nextPage() {
|
||||
this.pageNum += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
this.isPage = false
|
||||
this.selectIndex = null
|
||||
this.isHome = false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './index1.scss';
|
||||
</style>
|
|
@ -1,252 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 36px 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
.card {
|
||||
padding: 40px 40px 28px 40px;
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1624px - 68px);
|
||||
background: #FFFFFF;
|
||||
.imgAddress{
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
margin-right: 46px;
|
||||
}
|
||||
.titleInter{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 44px;
|
||||
color: #171919;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.tag{
|
||||
min-width: 48px;
|
||||
line-height: 80px;
|
||||
background: #89CFD4;
|
||||
border-radius: 8px;
|
||||
padding: 0 8px;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.topImg{
|
||||
width: 502px;
|
||||
height: 290px;
|
||||
margin-right: 32px;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.leftWidth{
|
||||
padding: 0 8px;
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
background: #3AAFB8;
|
||||
border-radius: 8px;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
margin-right: 12px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.nameTitle{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
}
|
||||
.lowHeat{
|
||||
width: 48px;
|
||||
height: 62px;
|
||||
}
|
||||
::v-deep .uni-progress-bar {
|
||||
// 这主要是加上deep才能改变它原来的样式
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
::v-deep .uni-progress-inner-bar{
|
||||
background: linear-gradient( 90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.titleOne{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
padding-top: 60px;
|
||||
}
|
||||
.item {
|
||||
border-bottom: 1px solid #EBEDF0;
|
||||
padding: 32px 0;
|
||||
}
|
||||
.left{
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #17191A;
|
||||
margin-right: 32px;
|
||||
}
|
||||
.right{
|
||||
font-size: 32px;
|
||||
color: #3F4040;
|
||||
}
|
||||
.yuan{
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
margin-right: 6px;
|
||||
margin-bottom: 4px;
|
||||
display: inline-block;
|
||||
}
|
||||
.dataList {
|
||||
color: #17191A;
|
||||
font-size: 32px;
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.cut{
|
||||
margin: 32px 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #EBEDF0;
|
||||
}
|
||||
|
||||
.right {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
span {
|
||||
padding: 0 20rpx;
|
||||
margin:0 30rpx 30rpx 0;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
}
|
||||
.audio {
|
||||
width: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
audio {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.context {
|
||||
line-height: 44rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.imageBox {
|
||||
width: 100%;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottomSelect {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
.bottomImg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.lineHeight{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.titleShow {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 160px;
|
||||
height: 4px;
|
||||
background: #3AAFB8;
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
.bottomBack{
|
||||
width: 100%;
|
||||
line-height: 76px;
|
||||
text-align: center;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 38px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: #17191A;
|
||||
margin-top: 28px;
|
||||
}
|
||||
}
|
|
@ -1,156 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="pageShow">
|
||||
<view class="card flex flex-direction">
|
||||
<view class="flex justify-between">
|
||||
<view class="topImg">
|
||||
<image :src="fomeData.imgAddress"></image>
|
||||
</view>
|
||||
<view class="flex-sub flex justify-between flex-direction" style="margin: 24px 0 12px;">
|
||||
<view class="flex">
|
||||
<view class="leftWidth">{{tagLable}}</view>
|
||||
<view class="nameTitle flex-sub">{{fomeData.dishName}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<span class="themColor" style="font-size: 36px;">{{fomeData.heatAmount}}</span><span
|
||||
class="themColor" style="font-size: 28px;">千卡</span
|
||||
style="font-size: 28px;color:#666;"><span>/100克</span>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<image src="../../static/images/lowHeat.png" class="lowHeat" style="margin-right: 8px;"></image>
|
||||
<view class="flex-sub" style="margin-top: 15px;">
|
||||
<progress :percent="fomeData.percentage" stroke-width="8" activeColor="#36AAB1"
|
||||
backgroundColor="#E5FDFF" ></progress>
|
||||
</view>
|
||||
<image src="../../static/images/highHeat.png" class="lowHeat" style="margin-left: 8px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y class="flex-sub" style="height: 0;">
|
||||
<block v-if="imgIndex==0">
|
||||
<block v-for="(item,index) in fomeData.nutrientInfo" :key="index">
|
||||
<view class="dataList" :style="{borderRadius:index==0?'0 0 20rpx 20rpx':''}"
|
||||
v-if="item.info.length!=0">
|
||||
<view class="title">{{item.name}}</view>
|
||||
<block v-for="(v,i) in item.info" :key="i">
|
||||
<view class="flex-between">
|
||||
<view class="left">{{v.nutrientName}}</view>
|
||||
<view class="right">{{v.nutrientValue}} {{v.company?v.company:''}}</view>
|
||||
</view>
|
||||
<view class="cut" v-if="i<item.info.length-1"></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="dataList" style="border-radius: 0 0 20rpx 20rpx">
|
||||
<view class="c_list_null" v-if="!fomeData.nutrientInfo.length">
|
||||
<image src="/static/images/nth2.png" class="nth_image" mode="widthFix" />
|
||||
<text class="text">暂无数据~</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view style="padding-top: 24px;"></view>
|
||||
<block v-for="(item,index) in fomeData.dishInfo" :key="index">
|
||||
<view class="flex align-center" style="margin-top: 36px;">
|
||||
<image :src="item.imgAddress" class="imgAddress"></image>
|
||||
<view>
|
||||
<view class="titleInter">{{item.dishName}}</view>
|
||||
<view v-if="item.tags" class="flex flex-wrap">
|
||||
<view v-for="(item2,index2) in item.tags.split('、')" class="tag">{{item2}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="bottomSelect">
|
||||
<view class="bottomImg">
|
||||
<image
|
||||
:src="imgIndex==0?'https://sharkbaby.yhy.ren/leftBg.png':'https://sharkbaby.yhy.ren/rightBg.png'">
|
||||
</image>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(0)">
|
||||
<view :class="['title',imgIndex==0?'titleShow':'']">营养成分</view>
|
||||
<view class="tagWidth" v-if="imgIndex==0"></view>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(1)">
|
||||
<view :class="['title',imgIndex==1?'titleShow':'']">菜品搭配</view>
|
||||
<view class="tagWidth" v-if="imgIndex==1"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomBack" @tap="back">返回上一页</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
showLoading,
|
||||
hideLoading,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
imgIndex: 0,
|
||||
tagLable: '',
|
||||
fomeData: {},
|
||||
id: null, //食物id
|
||||
userId: '29',
|
||||
pageShow: false,
|
||||
isHome: false, //返回首页图标是否显示
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
this.tagLable=opt.lableName
|
||||
this.id = opt.id
|
||||
this.getFoodsInfo()
|
||||
},
|
||||
methods: {
|
||||
selectChange(index) {
|
||||
this.imgIndex = index
|
||||
},
|
||||
// 获取食材详情
|
||||
async getFoodsInfo() {
|
||||
let ret = await this.$API.selectFoodsInfo({
|
||||
data: {
|
||||
foodsId: this.id,
|
||||
userId: this.userId
|
||||
}
|
||||
})
|
||||
// 去除数组为0的数据
|
||||
if (ret.data.nutrientInfo.length != 0) {
|
||||
ret.data.nutrientInfo.forEach((item, index) => {
|
||||
item.info = item.info.filter((item1) => item1.nutrientValue !== 0);
|
||||
});
|
||||
}
|
||||
this.fomeData = ret.data || {}
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
})
|
||||
},
|
||||
// 返回上一页
|
||||
back() {
|
||||
history.go(-1)
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/hairtailScreen/foodIngredients/index/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './detail.scss'
|
||||
</style>
|
|
@ -1,217 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.bestFoodBg {
|
||||
width: 100%;
|
||||
height: 1260px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1260px - 88px);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 48px 40px 40px 40px;
|
||||
color: #171919;
|
||||
position: relative;
|
||||
|
||||
.preNext{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
}
|
||||
.nothing{
|
||||
$wh:648px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 160px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.foodImg {
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.rightArrow {
|
||||
$wh: 48px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
margin: 24px 0 12px;
|
||||
}
|
||||
|
||||
.whiteBtn {
|
||||
width: 232px;
|
||||
line-height: 108px;
|
||||
text-align: center;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
color: #28A6B4;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 317px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
|
||||
.text-four {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidthShow {
|
||||
background: #11ACFF;
|
||||
}
|
||||
|
||||
.tagShow {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.tagHide{
|
||||
color: #42444F;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 416px;
|
||||
|
||||
.tag {
|
||||
width: 232px;
|
||||
height: 158px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 22px;
|
||||
margin-top: 24px;
|
||||
.iconSelect{
|
||||
$wh:68px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ingredientsBg{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
.search{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
position: relative;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.inputClass{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.searchTitle{
|
||||
position: absolute;
|
||||
right: 66px;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 52px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//设置轮播的指示点大小
|
||||
::v-deep .uni-swiper-dots {
|
||||
// 指示点整个区域
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot {
|
||||
// 指示点元素默认样式
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot-active {
|
||||
// 指示点元素激活(当前选中)状态样式
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
background: #28A6B4;
|
||||
border-radius: 26px 26px 26px 26px;
|
||||
}
|
|
@ -1,197 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="bestFoodBg" v-if="!isPage&&name==null">
|
||||
<image src="../../static/images/ingredients.png" class="bestFoodBg"></image>
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="text-center text-bold" style="font-size: 48px;margin-bottom: 28px;color: #17191A;">
|
||||
<text v-if="name!=null">{{name}}</text>食物列表
|
||||
</view>
|
||||
<block v-if="foodList.length>0">
|
||||
<block v-for="(item,index) in foodList" :key="index">
|
||||
<view class="flex-between align-center" @tap="goDetail(item)">
|
||||
<view class="flex-contion">
|
||||
<view class="foodImg" style="margin-right: 48px;">
|
||||
<image :src="item.imgAddress" class="foodImg"></image>
|
||||
</view>
|
||||
<view>
|
||||
<view style="font-size: 44px;font-weight: 500;margin-bottom: 10px;">{{item.foodsName}}
|
||||
</view>
|
||||
<view>
|
||||
<span class="themColor" style="font-size: 36px;">{{item.energy}}</span>
|
||||
<span class="themColor" style="font-size: 28px;">千卡</span>
|
||||
<span style="font-size: 28px;color:#666;">/100克</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rightArrow">
|
||||
<image src="../../static/images/rightArrow.png" class="rightArrow"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cutt"></view>
|
||||
</block>
|
||||
<view class="flex justify-center preNext">
|
||||
<view class="whiteBtn" v-if="pageNum>1" @tap="previousPage">上一页</view>
|
||||
<view class="whiteBtn" v-if="totalWatch" @tap="nextPage">下一页</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isPageShow&&foodList.length==0">
|
||||
<view class="nothing">
|
||||
<image src="../../static/images/nothing.png"></image>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="search">
|
||||
<image src="../../static/images/search.png"></image>
|
||||
<input placeholder="搜索您想要的食物" class="inputClass" v-model="contentText" @input="input" maxlength="17" />
|
||||
<view class="searchTitle" @tap="searchChange">搜索</view>
|
||||
</view>
|
||||
<swiper class="swiper" circular indicator-dots indicator-color="#fff">
|
||||
<block v-for="(item,index) in diseaseList" :key="index">
|
||||
<swiper-item>
|
||||
<view class="flex-between flex-wrap">
|
||||
<view v-for="(item1,index1) in item" :key="index1"
|
||||
:class="['tag flex-conter bg-video',name==item1.typeName?'tagShow':'tagHide']"
|
||||
@tap="twoChane(item1)">
|
||||
<image v-if="name==item1.typeName" src="../../static/images/ingredientsBg.png"
|
||||
class="ingredientsBg"></image>
|
||||
<view class="bg-video text-center">
|
||||
<view class="iconSelect">
|
||||
<image :src="name==item1.typeName?item1.imgUrl:item1.imgUrl1"></image>
|
||||
</view>
|
||||
<view style="margin-top: 16px;">{{item1.typeName}}</view>
|
||||
<view
|
||||
:style="{fontSize:'16px',color:(name==item1.typeName?'rgba(255,255,255,0.6)':'')}">
|
||||
{{item1.engName}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
computed: {
|
||||
totalWatch() {
|
||||
return this.pageNum * 5 < this.total
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diseaseList: [],
|
||||
name: null,
|
||||
// 食物列表
|
||||
foodList: [],
|
||||
contentText: '', //搜索框
|
||||
typeCode: '', //分类id
|
||||
pageSize: 5,
|
||||
pageNum: 1,
|
||||
isPage: false,
|
||||
total: 0, //总条数
|
||||
isPageShow: false, //列表是否显示
|
||||
isHome: false, //返回首页图标是否显示
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$API.getFoodTypes({
|
||||
data: {
|
||||
userId: 29
|
||||
}
|
||||
}).then(res => {
|
||||
this.diseaseList = this.getArr(res.rows, 8)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getArr(arr, num) {
|
||||
let newArr = [...arr] // 因为splice会改变原数组,要深拷贝一下
|
||||
let list = []
|
||||
for (let i = 0; i < newArr.length;) {
|
||||
list.push(newArr.splice(i, num))
|
||||
}
|
||||
return list
|
||||
},
|
||||
// 选择
|
||||
twoChane(item1) {
|
||||
this.name = item1.typeName
|
||||
this.typeCode = item1.typeCode
|
||||
this.pageNum = 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 列表数据
|
||||
getPageData() {
|
||||
this.isPageShow = false
|
||||
this.$API.selectFoodsList({
|
||||
data: {
|
||||
foodType: this.typeCode,
|
||||
foodsInfo: this.contentText,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.foodList = res.rows
|
||||
this.total = res.total
|
||||
this.$nextTick(() => {
|
||||
this.isPageShow = true
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 搜索input框
|
||||
input(e) {
|
||||
this.contentText = e.detail.value
|
||||
},
|
||||
// 搜索按钮
|
||||
searchChange() {
|
||||
this.pageNum = 1
|
||||
this.isPage = true
|
||||
this.getPageData()
|
||||
},
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/foodIngredients/detail/detail?id=' + item.id + '&lableName=' + item
|
||||
.typeName
|
||||
})
|
||||
},
|
||||
// 上一页
|
||||
previousPage() {
|
||||
this.pageNum -= 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 下一页
|
||||
nextPage() {
|
||||
this.pageNum += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
this.isPage = false
|
||||
this.name = null
|
||||
this.isHome = false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './index.scss';
|
||||
</style>
|
|
@ -1,252 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 36px 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
.card {
|
||||
padding: 40px 40px 28px 40px;
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1624px - 68px);
|
||||
background: #FFFFFF;
|
||||
.imgAddress{
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
margin-right: 46px;
|
||||
}
|
||||
.titleInter{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 44px;
|
||||
color: #171919;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.tag{
|
||||
min-width: 48px;
|
||||
line-height: 80px;
|
||||
background: #89CFD4;
|
||||
border-radius: 8px;
|
||||
padding: 0 8px;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
margin-right: 12px;
|
||||
}
|
||||
.topImg{
|
||||
width: 502px;
|
||||
height: 290px;
|
||||
margin-right: 32px;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.leftWidth{
|
||||
padding: 0 8px;
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
background: #3AAFB8;
|
||||
border-radius: 8px;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
margin-right: 12px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.nameTitle{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
}
|
||||
.lowHeat{
|
||||
width: 48px;
|
||||
height: 62px;
|
||||
}
|
||||
::v-deep .uni-progress-bar {
|
||||
// 这主要是加上deep才能改变它原来的样式
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
::v-deep .uni-progress-inner-bar{
|
||||
background: linear-gradient( 90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
border-radius: 50px !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
.titleOne{
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
padding-top: 60px;
|
||||
}
|
||||
.item {
|
||||
border-bottom: 1px solid #EBEDF0;
|
||||
padding: 32px 0;
|
||||
}
|
||||
.left{
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
color: #17191A;
|
||||
margin-right: 32px;
|
||||
}
|
||||
.right{
|
||||
font-size: 32px;
|
||||
color: #3F4040;
|
||||
}
|
||||
.yuan{
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
margin-right: 6px;
|
||||
margin-bottom: 4px;
|
||||
display: inline-block;
|
||||
}
|
||||
.dataList {
|
||||
color: #17191A;
|
||||
font-size: 32px;
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #17191A;
|
||||
margin-top: 60px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.cut{
|
||||
margin: 32px 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #EBEDF0;
|
||||
}
|
||||
|
||||
.right {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
span {
|
||||
padding: 0 20rpx;
|
||||
margin:0 30rpx 30rpx 0;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
}
|
||||
.audio {
|
||||
width: 100%;
|
||||
margin-bottom: 30rpx;
|
||||
audio {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.context {
|
||||
line-height: 44rpx;
|
||||
margin-bottom: 30rpx;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.imageBox {
|
||||
width: 100%;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
border-radius: 20rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottomSelect {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
.bottomImg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.lineHeight{
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.titleShow {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 40px;
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 160px;
|
||||
height: 4px;
|
||||
background: #3AAFB8;
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
.bottomBack{
|
||||
width: 100%;
|
||||
line-height: 76px;
|
||||
text-align: center;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 38px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 24px;
|
||||
color: #17191A;
|
||||
margin-top: 28px;
|
||||
}
|
||||
}
|
|
@ -1,156 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="pageShow">
|
||||
<view class="card flex flex-direction">
|
||||
<view class="flex justify-between">
|
||||
<view class="topImg">
|
||||
<image :src="fomeData.imgAddress"></image>
|
||||
</view>
|
||||
<view class="flex-sub flex justify-between flex-direction" style="margin: 24px 0 12px;">
|
||||
<view class="flex">
|
||||
<view class="leftWidth">{{tagLable}}</view>
|
||||
<view class="nameTitle flex-sub">{{fomeData.dishName}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<span class="themColor" style="font-size: 36px;">{{fomeData.heatAmount}}</span><span
|
||||
class="themColor" style="font-size: 28px;">千卡</span
|
||||
style="font-size: 28px;color:#666;"><span>/100克</span>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<image src="../../static/images/lowHeat.png" class="lowHeat" style="margin-right: 8px;"></image>
|
||||
<view class="flex-sub" style="margin-top: 15px;">
|
||||
<progress :percent="fomeData.percentage" stroke-width="8" activeColor="#36AAB1"
|
||||
backgroundColor="#E5FDFF" ></progress>
|
||||
</view>
|
||||
<image src="../../static/images/highHeat.png" class="lowHeat" style="margin-left: 8px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y class="flex-sub" style="height: 0;">
|
||||
<block v-if="imgIndex==0">
|
||||
<block v-for="(item,index) in fomeData.nutrientInfo" :key="index">
|
||||
<view class="dataList" :style="{borderRadius:index==0?'0 0 20rpx 20rpx':''}"
|
||||
v-if="item.info.length!=0">
|
||||
<view class="title">{{item.name}}</view>
|
||||
<block v-for="(v,i) in item.info" :key="i">
|
||||
<view class="flex-between">
|
||||
<view class="left">{{v.nutrientName}}</view>
|
||||
<view class="right">{{v.nutrientValue}} {{v.company?v.company:''}}</view>
|
||||
</view>
|
||||
<view class="cut" v-if="i<item.info.length-1"></view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="dataList" style="border-radius: 0 0 20rpx 20rpx">
|
||||
<view class="c_list_null" v-if="!fomeData.nutrientInfo.length">
|
||||
<image src="/static/images/nth2.png" class="nth_image" mode="widthFix" />
|
||||
<text class="text">暂无数据~</text>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view style="padding-top: 24px;"></view>
|
||||
<block v-for="(item,index) in fomeData.dishInfo" :key="index">
|
||||
<view class="flex align-center" style="margin-top: 36px;">
|
||||
<image :src="item.imgAddress" class="imgAddress"></image>
|
||||
<view>
|
||||
<view class="titleInter">{{item.dishName}}</view>
|
||||
<view v-if="item.tags" class="flex flex-wrap">
|
||||
<view v-for="(item2,index2) in item.tags.split('、')" class="tag">{{item2}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="bottomSelect">
|
||||
<view class="bottomImg">
|
||||
<image
|
||||
:src="imgIndex==0?'https://sharkbaby.yhy.ren/leftBg.png':'https://sharkbaby.yhy.ren/rightBg.png'">
|
||||
</image>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(0)">
|
||||
<view :class="['title',imgIndex==0?'titleShow':'']">营养成分</view>
|
||||
<view class="tagWidth" v-if="imgIndex==0"></view>
|
||||
</view>
|
||||
<view class="bg-video lineHeight" @tap="selectChange(1)">
|
||||
<view :class="['title',imgIndex==1?'titleShow':'']">菜品搭配</view>
|
||||
<view class="tagWidth" v-if="imgIndex==1"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomBack" @tap="back">返回上一页</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
showLoading,
|
||||
hideLoading,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
imgIndex: 0,
|
||||
tagLable: '',
|
||||
fomeData: {},
|
||||
id: null, //食物id
|
||||
userId: '29',
|
||||
pageShow: false,
|
||||
isHome: false, //返回首页图标是否显示
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
this.tagLable=opt.lableName
|
||||
this.id = opt.id
|
||||
this.getFoodsInfo()
|
||||
},
|
||||
methods: {
|
||||
selectChange(index) {
|
||||
this.imgIndex = index
|
||||
},
|
||||
// 获取食材详情
|
||||
async getFoodsInfo() {
|
||||
let ret = await this.$API.selectFoodsInfo({
|
||||
data: {
|
||||
foodsId: this.id,
|
||||
userId: this.userId
|
||||
}
|
||||
})
|
||||
// 去除数组为0的数据
|
||||
if (ret.data.nutrientInfo.length != 0) {
|
||||
ret.data.nutrientInfo.forEach((item, index) => {
|
||||
item.info = item.info.filter((item1) => item1.nutrientValue !== 0);
|
||||
});
|
||||
}
|
||||
this.fomeData = ret.data || {}
|
||||
this.$nextTick(() => {
|
||||
this.pageShow = true
|
||||
})
|
||||
},
|
||||
// 返回上一页
|
||||
back() {
|
||||
history.go(-1)
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/hairtailScreen/foodIngredients/index/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './detail.scss'
|
||||
</style>
|
|
@ -1,259 +0,0 @@
|
|||
page {
|
||||
background: linear-gradient(90deg, #E3F5FF 0%, #ECF8FF 100%);
|
||||
width: 1080px;
|
||||
height: 1920px;
|
||||
}
|
||||
|
||||
.pageBox {
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.homeHide{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: -40px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
.homeShow{
|
||||
$wh:80px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
position: absolute;
|
||||
bottom: 300px;
|
||||
right: 20px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.bestFoodBg {
|
||||
width: 100%;
|
||||
height: 1260px;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: calc(100% - 80px);
|
||||
height: calc(1460px - 88px);
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 48px 40px 40px 40px;
|
||||
color: #171919;
|
||||
position: relative;
|
||||
|
||||
.preNext{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
}
|
||||
.nothing{
|
||||
$wh:648px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
margin-top: 160px;
|
||||
image{
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.foodImg {
|
||||
width: 206px;
|
||||
height: 154px;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
|
||||
.rightArrow {
|
||||
$wh: 48px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.cutt {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
margin: 24px 0 12px;
|
||||
}
|
||||
|
||||
.whiteBtn {
|
||||
width: 232px;
|
||||
line-height: 108px;
|
||||
text-align: center;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 36px;
|
||||
color: #28A6B4;
|
||||
}
|
||||
&_block{
|
||||
width: 840px;
|
||||
height: 118px;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
line-height: 118px;
|
||||
font-weight: bold;
|
||||
font-size: 40px;
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
border-radius: 12px;
|
||||
&_span1{
|
||||
width: 910px;
|
||||
height: 152px;
|
||||
background: rgba(137,207,212,0.1);
|
||||
border-radius: 12px 12px 12px 12px;
|
||||
border: 2px solid #3AAFB8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 317px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
|
||||
.text-four {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.tagWidthShow {
|
||||
background: #11ACFF;
|
||||
}
|
||||
|
||||
.tagShow {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.tagHide{
|
||||
color: #42444F;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 32px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 416px;
|
||||
|
||||
.tag {
|
||||
width: 232px;
|
||||
height: 158px;
|
||||
background: rgba(255,255,255,0.4);
|
||||
border-radius: 12px;
|
||||
border: 1px solid #FFFFFF;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 22px;
|
||||
margin-top: 24px;
|
||||
.iconSelect{
|
||||
$wh:232px;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ingredientsBg{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
.search{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
position: relative;
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.inputClass{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.searchTitle{
|
||||
position: absolute;
|
||||
right: 66px;
|
||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||
font-weight: 500;
|
||||
font-size: 52px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//设置轮播的指示点大小
|
||||
::v-deep .uni-swiper-dots {
|
||||
// 指示点整个区域
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot {
|
||||
// 指示点元素默认样式
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
::v-deep .uni-swiper-dot-active {
|
||||
// 指示点元素激活(当前选中)状态样式
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
background: #28A6B4;
|
||||
border-radius: 26px 26px 26px 26px;
|
||||
}
|
||||
.bg{
|
||||
width: 232px;
|
||||
height: 181px;
|
||||
background: url('../../static/images/bg.png');
|
||||
background-size: contain;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.bg2{
|
||||
width: 232px;
|
||||
height: 181px;
|
||||
background: url('../../static/images/bg2.png');
|
||||
background-size: contain;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.block_bg{
|
||||
width: 1840rpx;
|
||||
height: 936rpx;
|
||||
|
||||
}
|
|
@ -1,233 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="bestFoodBg" v-if="!isPage&&name==null">
|
||||
<image src="../../static/images/ingredients.png" class="bestFoodBg"></image>
|
||||
</view>
|
||||
<view class="card" v-else>
|
||||
<view class="text-center text-bold" style="font-size: 48px;margin-bottom: 28px;color: #17191A;">
|
||||
<!-- <text v-if="name!=null">{{name}}</text>食物列表 -->
|
||||
食物交换份列表
|
||||
</view>
|
||||
<block v-if="foodList.length>0">
|
||||
|
||||
</block>
|
||||
<block v-if="isPageShow&&foodList.length==0">
|
||||
<view class="nothing">
|
||||
<image src="../../static/images/nothing.png"></image>
|
||||
</view>
|
||||
</block>
|
||||
<view class="block_bg">
|
||||
<image :src="foodList.typeIcon" style="width: 920px;height: 468px;"></image>
|
||||
</view>
|
||||
<view class="card_block">{{foodList.foodType}}</view>
|
||||
<scroll-view style="height: 800px;" scroll-y="true">
|
||||
<block v-for="(item,index) in foodList.foodInfos">
|
||||
<view style="margin-top: 20px;" class="card_block_span1">
|
||||
<!-- {{ item.foodDescribe }} -->
|
||||
<view><image :src="item.foodIcon" style="width: 132px;height: 132px;margin-top: 10px;border-radius: 6px;margin-left: 10px;"></image></view>
|
||||
<view style="font-weight: 500;font-size: 36px;line-height: 152px;"><span style="margin-left: 10px;"> {{item.foodWeight}}</span> <span>{{item.foodUnit}}</span> <span>{{ item.foodName }}</span> <span style="margin-left: 5px;margin-right: 5px;">|</span><span style="color: #6E7477;">{{ item.foodDescribe }}</span> </view>
|
||||
<view style="line-height: 152px;margin-right: 10px;color: #6E7477;font-size: 36px;font-weight: 400;margin-left: auto;">一份</view>
|
||||
</view>
|
||||
{{ }}
|
||||
<view style="text-align: center;" v-if="(foodList.foodInfos.length - 1) != index"><image src="https://sharkbaby.yhy.ren/Group%20427320991%402x.png" style="width: 80px;height: 80px;margin-top: 20px;"></image></view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="search">
|
||||
<image src="../../static/images/search.png"></image>
|
||||
<input placeholder="搜索您想要的食物" class="inputClass" v-model="contentText" @input="input" maxlength="17" />
|
||||
<view class="searchTitle" @tap="searchChange">搜索</view>
|
||||
</view> -->
|
||||
<!-- <swiper class="swiper" circular indicator-dots indicator-color="#fff">
|
||||
<block v-for="(item,index) in diseaseList" :key="index">
|
||||
<swiper-item>
|
||||
{{ item.foodType }}
|
||||
<view class="flex-between flex-wrap">
|
||||
<view v-for="(item1,index1) in item" :key="index1"
|
||||
:class="['tag flex-conter bg-video',name==item1.typeName?'tagShow':'tagHide']"
|
||||
@tap="twoChane(item1)">
|
||||
<image v-if="name==item1.typeName" src="../../static/images/ingredientsBg.png"
|
||||
class="ingredientsBg"></image>
|
||||
<view class="bg-video text-center">
|
||||
<view class="iconSelect">
|
||||
<image :src="name==item1.typeName?item1.imgUrl:item1.imgUrl1"></image>
|
||||
</view>
|
||||
<view style="margin-top: 16px;">{{item1.foodType}}</view>
|
||||
<view
|
||||
:style="{fontSize:'16px',color:(name==item1.typeName?'rgba(255,255,255,0.6)':'')}">
|
||||
{{item1.engName}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper> -->
|
||||
<view class="flex-between flex-wrap" style="">
|
||||
<view v-for="(item,index) in diseaseList" :key="index"
|
||||
:class="['tag flex-conter bg-video',selectIndex==index?'tagShow':'tagHide']"
|
||||
@tap="twoChane(item,index)">
|
||||
<!-- <image v-if="selectIndex==index" src="../../static/images/exchangeTag.png" class="exchangeTag">
|
||||
</image> -->
|
||||
<view :class="selectIndex==index ? 'bg-video text-center bg2' : 'bg-video text-center bg' ">
|
||||
<view class="iconSelect" style="margin-top: 10px;">
|
||||
<image :src="selectIndex==index?item.iconNotSelect:item.iconSelect" style="width: 68px;height: 68px;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 16px;">{{item.foodType}}</view>
|
||||
<view :style="{fontSize:'20px',color:(selectIndex==index?'rgba(255,255,255,0.6)':'')}">
|
||||
{{item.english}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="homeHide" v-show="!isHome" @tap="backTap(0)">
|
||||
<image src="../../static/images/homeHide.png"></image>
|
||||
</view>
|
||||
<view class="homeShow" v-show="isHome" @tap="backTap(1)">
|
||||
<image src="../../static/images/homeShow.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
computed: {
|
||||
totalWatch() {
|
||||
return this.pageNum * 5 < this.total
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diseaseList: [],
|
||||
name: null,
|
||||
// 食物列表
|
||||
foodList: [],
|
||||
contentText: '', //搜索框
|
||||
typeCode: '', //分类id
|
||||
pageSize: 5,
|
||||
pageNum: 1,
|
||||
isPage: false,
|
||||
total: 0, //总条数
|
||||
isPageShow: false, //列表是否显示
|
||||
isHome: false, //返回首页图标是否显示
|
||||
selectIndex: 0, //索引
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$API.queryEeFoodType({
|
||||
data: {
|
||||
userId: 29,
|
||||
type:1
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res.data);
|
||||
this.diseaseList = res.data
|
||||
console.log(this.diseaseList);
|
||||
// this.diseaseList = this.getArr(res.rows, 8)
|
||||
|
||||
let a = {
|
||||
english:"Cereal",
|
||||
foodType:"谷薯杂豆类",
|
||||
iconNotSelect:"https://sharkbaby.yhy.ren/ee_exchange/cerealNotSelect.png",
|
||||
iconSelect: "https://sharkbaby.yhy.ren/ee_exchange/cerealSelect.png",
|
||||
id:4,
|
||||
type:1
|
||||
}
|
||||
this.twoChane(a,0)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getArr(arr, num) {
|
||||
let newArr = [...arr] // 因为splice会改变原数组,要深拷贝一下
|
||||
let list = []
|
||||
for (let i = 0; i < newArr.length;) {
|
||||
list.push(newArr.splice(i, num))
|
||||
}
|
||||
return list
|
||||
},
|
||||
// 选择
|
||||
twoChane(item1,index) {
|
||||
console.log(index);
|
||||
this.name = item1.foodType
|
||||
this.selectIndex = index
|
||||
this.typeCode = item1.id
|
||||
this.pageNum = 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 列表数据
|
||||
getPageData() {
|
||||
this.isPageShow = false
|
||||
this.$API.queryEeFoodTypeDetails({
|
||||
data: {
|
||||
foodType: this.typeCode,
|
||||
// foodsInfo: this.contentText,
|
||||
// pageNum: this.pageNum,
|
||||
// pageSize: this.pageSize,
|
||||
}
|
||||
}).then(res => {
|
||||
if(res.code == 200){
|
||||
this.foodList = res.data
|
||||
}
|
||||
|
||||
// if (res.code == 200) {
|
||||
// this.total = res.total
|
||||
// this.$nextTick(() => {
|
||||
// this.isPageShow = true
|
||||
// })
|
||||
// }
|
||||
})
|
||||
},
|
||||
// 搜索input框
|
||||
input(e) {
|
||||
this.contentText = e.detail.value
|
||||
},
|
||||
// 搜索按钮
|
||||
searchChange() {
|
||||
this.pageNum = 1
|
||||
this.isPage = true
|
||||
this.getPageData()
|
||||
},
|
||||
goDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/foodIngredients/detail/detail?id=' + item.id + '&lableName=' + item
|
||||
.typeName
|
||||
})
|
||||
},
|
||||
// 上一页
|
||||
previousPage() {
|
||||
this.pageNum -= 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 下一页
|
||||
nextPage() {
|
||||
this.pageNum += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 返回首页
|
||||
backTap(e) {
|
||||
|
||||
if (e == 0) {
|
||||
this.isHome = true
|
||||
} else {
|
||||
this.isPage = false
|
||||
this.name = null
|
||||
this.selectIndex = null
|
||||
this.isHome = false
|
||||
uni.navigateTo({
|
||||
url: '/pages/hairtailScreen/exchangePortion/index/index1'
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './index.scss';
|
||||
</style>
|
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 6.6 MiB |
Before Width: | Height: | Size: 331 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 383 KiB |
Before Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 2.3 KiB |
|
@ -78,7 +78,7 @@
|
|||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<block v-if="formeDate.assessList.length>0">
|
||||
<block v-if="formeDate.assessList && formeDate.assessList.length>0">
|
||||
<!-- 相关风险因素 -->
|
||||
<view class="riskFactor marginTop-sm padding">
|
||||
<view class="flex-contion marginBottom">
|
||||
|
@ -127,10 +127,10 @@
|
|||
<!-- <view class="btnBottom">
|
||||
<view class="btn" @tap="goPage">查看个人自主计划</view>
|
||||
</view> -->
|
||||
<view class="btnBottom" v-if="formeDate.id!=null">
|
||||
<!-- <view class="btnBottom" v-if="formeDate.id!=null">
|
||||
<view class="btn" @tap="goPages" v-if="Statusdata>0">{{'查看个人自主计划'}}</view>
|
||||
<view class="btn" @tap="goPage">{{'创建个人自主计划'}}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -194,7 +194,6 @@
|
|||
}
|
||||
}).then((res) => {
|
||||
that.formeDate = res.data
|
||||
that.getQueryFetchStatus(that.formeDate.id)
|
||||
let index;
|
||||
let score = res.data.level
|
||||
if (score=='较差'){
|
||||
|
@ -232,13 +231,13 @@
|
|||
hideLoading()
|
||||
})
|
||||
},
|
||||
getQueryFetchStatus(id){
|
||||
this.$API.getQueryFetchStatus({data:{
|
||||
disId:id
|
||||
}}).then(res =>{
|
||||
this.Statusdata = res.data
|
||||
})
|
||||
},
|
||||
// getQueryFetchStatus(id){
|
||||
// this.$API.getQueryFetchStatus({data:{
|
||||
// disId:id
|
||||
// }}).then(res =>{
|
||||
// this.Statusdata = res.data
|
||||
// })
|
||||
// },
|
||||
// 返回上一个页面
|
||||
backChange() {
|
||||
uni.navigateBack()
|
||||
|
|
|
@ -392,6 +392,7 @@
|
|||
let that = this
|
||||
let ret = []
|
||||
// 查询单个疾病报告
|
||||
console.log("that.cno",that.cno)
|
||||
if (that.cno != '' || that.cno.randomNumeric != '') {
|
||||
ret = await that.$API.getAssessReport({
|
||||
data: {
|
||||
|
|
|
@ -274,7 +274,6 @@
|
|||
this.userProfile = data.headSculpture //用户头像
|
||||
// 查询是否有暂存数据
|
||||
this.temporaryAata()
|
||||
this.selectIntegral()
|
||||
},
|
||||
// 页面销毁前暂存问卷
|
||||
beforeDestroy() {
|
||||
|
@ -283,18 +282,18 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
// 查询是否有积分奖励
|
||||
selectIntegral() {
|
||||
this.$API.selectTaskIntegral({
|
||||
data: {
|
||||
...this.userParameters,
|
||||
assessIds: this.diseases, //本次评估病种
|
||||
typeId: 1, //查询类型id 1疾病
|
||||
}
|
||||
}).then(res => {
|
||||
this.integral = res.data
|
||||
})
|
||||
},
|
||||
// // 查询是否有积分奖励
|
||||
// selectIntegral() {
|
||||
// this.$API.selectTaskIntegral({
|
||||
// data: {
|
||||
// ...this.userParameters,
|
||||
// assessIds: this.diseases, //本次评估病种
|
||||
// typeId: 1, //查询类型id 1疾病
|
||||
// }
|
||||
// }).then(res => {
|
||||
// this.integral = res.data
|
||||
// })
|
||||
// },
|
||||
//点击获取下一题的距离
|
||||
questClass(index) {
|
||||
this.queShow = index + 1 //暂存问卷题目索引
|
||||
|
@ -882,9 +881,6 @@
|
|||
})
|
||||
hideLoading()
|
||||
if (reg.code == 200) {
|
||||
if(reg.data.points && reg.data.points > 0){
|
||||
toast(reg.data.points + "积分已到账")
|
||||
}
|
||||
setTimeout(()=>{
|
||||
if (this.diseases == '95') {
|
||||
let b = {
|
||||
|
@ -969,9 +965,6 @@
|
|||
}
|
||||
})
|
||||
if(ret.code == 200){
|
||||
if(ret.data.points && ret.data.points > 0){
|
||||
toast(ret.data.points + "积分已到账")
|
||||
}
|
||||
}
|
||||
},
|
||||
// 继续填写
|
||||
|
|
|
@ -74,10 +74,6 @@
|
|||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 底部按钮 -->
|
||||
<view class="bottomBtn flex-conter" @click="viewPlan">
|
||||
<view class="btn">点击领取您的专属健康计划</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</block>
|
||||
</view>
|
||||
|
|
|
@ -1,267 +0,0 @@
|
|||
page{
|
||||
background: #F3F4F6;
|
||||
}
|
||||
.pageBox{
|
||||
.themColor{
|
||||
color: #3AAFB8;
|
||||
}
|
||||
$uni-color:#3AAFB8;
|
||||
.color{
|
||||
color: #17191A;
|
||||
}
|
||||
.topPostionBg{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100vw;
|
||||
height: 528rpx;
|
||||
background: linear-gradient(155deg, #E4F5EB 0%, rgba(228,245,235,0) 100%);
|
||||
}
|
||||
.staging{
|
||||
width: 470rpx;
|
||||
height: calc(580rpx - 42rpx);
|
||||
border-radius: 48rpx;
|
||||
background: #FFF;
|
||||
padding: 22rpx 32rpx 20rpx;
|
||||
.bg{
|
||||
width: 100%;
|
||||
height: 224rpx;
|
||||
background: linear-gradient(180deg, #D8FCFF 0%, #FFF 100%);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: 48rpx 48rpx 0 0;
|
||||
}
|
||||
.stagingBackground{
|
||||
width: 268rpx;
|
||||
height: 166rpx;
|
||||
}
|
||||
.threeSix{
|
||||
margin-top: 36rpx;
|
||||
}
|
||||
.oneTwo{
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.stagBtn{
|
||||
width: calc(406rpx - 278rpx);
|
||||
padding: 10rpx 138rpx 10rpx 140rpx;
|
||||
border-radius: 50rpx;
|
||||
border: 2rpx solid $uni-color;
|
||||
background: $uni-color;
|
||||
margin: 0 auto;
|
||||
color: #FFF;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
.colorGrey{
|
||||
color: #909292;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
}
|
||||
.contioner{
|
||||
padding: 32rpx;
|
||||
.backBottom{
|
||||
position: fixed;
|
||||
bottom: 10vh;
|
||||
right: 34rpx;
|
||||
padding: 12rpx 32rpx;
|
||||
border-radius: 50rpx;
|
||||
background: #FFF;
|
||||
box-shadow: 0 8rpx 8rpx 0 rgba(4, 70, 74, 0.14);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
$wh:24rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
}
|
||||
.topCard{
|
||||
padding: 12rpx;
|
||||
margin-top: 48rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FFFFFF;
|
||||
.headSculpture{
|
||||
$wh:112rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
background: #F3F4F6;
|
||||
border-radius: 50%;
|
||||
border: 6rpx solid #FFFFFF;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: -52rpx;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
image{
|
||||
$wh:100rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.border{
|
||||
border: 1rpx dotted #3AAFB8;
|
||||
border-radius: 20rpx;
|
||||
.cut{
|
||||
display: inline-block;
|
||||
width: 4rpx;
|
||||
height: 20rpx;
|
||||
margin: 0 12rpx;
|
||||
background: $uni-color;
|
||||
}
|
||||
.top{
|
||||
margin-top: 72rpx;
|
||||
color: $uni-color;
|
||||
}
|
||||
.tag{
|
||||
padding: 0 20rpx;
|
||||
line-height: 40rpx;
|
||||
border-radius: 4rpx;
|
||||
background: #F3F4F6;
|
||||
color: #909292;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.avare {
|
||||
$wh: 80rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.introduce {
|
||||
padding: 20rpx;
|
||||
width: calc(502rpx - 40rpx);
|
||||
background: #FFFFFF;
|
||||
border-radius: 0rpx 16rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.evaluation {
|
||||
width: calc(502rpx - 40rpx);
|
||||
padding: 20rpx;
|
||||
margin-top: 16rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
||||
.greyTag{
|
||||
padding: 18rpx 40rpx;
|
||||
background: #F8F8F8;
|
||||
border-radius: 16rpx;
|
||||
margin-top: 20rpx;
|
||||
.tegWidth{
|
||||
width: 2rpx;
|
||||
height: 24rpx;
|
||||
background: #CCCCCC;
|
||||
margin: 0 24rpx;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.shawDown{
|
||||
background: #EFF9F8;
|
||||
}
|
||||
.cut{
|
||||
margin-top: 32rpx;
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #eee;
|
||||
}
|
||||
.fenge{
|
||||
width: 2rpx;
|
||||
height: 80rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: #eee;
|
||||
}
|
||||
}
|
||||
.rightLayOut{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 32rpx;
|
||||
.leftTag{
|
||||
padding: 20rpx 32rpx;
|
||||
background: #3AAFB8;
|
||||
border-radius: 16rpx 0rpx 16rpx 16rpx;
|
||||
color: #FFFFFF;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.rightAvter{
|
||||
$wh:80rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.bottomBtn{
|
||||
position: fixed;
|
||||
bottom: 20rpx;
|
||||
width: calc(100% - 64rpx);
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
background: linear-gradient(90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
border-radius: 50rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.centerScoll{
|
||||
width: 100%;
|
||||
height: calc(87vh - 184rpx);
|
||||
}
|
||||
|
||||
.black {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.blackColor {
|
||||
color: #8E9AAB;
|
||||
}
|
||||
|
||||
.fontColor {
|
||||
color: #112950;
|
||||
}
|
||||
|
||||
.singCard {
|
||||
padding: 40rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
border: 2rpx solid #DCDEE0;
|
||||
font-size: 28rpx;
|
||||
color: #112950;
|
||||
|
||||
image {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.cardShadow {
|
||||
color: #3AAFB8;
|
||||
box-shadow: inset 0px 0px 12px 0px rgba(58, 175, 184, 0.8000);
|
||||
}
|
||||
.btnPostion{
|
||||
background: #E6EFF1;
|
||||
.next {
|
||||
line-height: 84rpx;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
background: #3AAFB8;
|
||||
border-radius: 42rpx;
|
||||
margin-bottom: 48rpx;
|
||||
}
|
||||
|
||||
.temporary {
|
||||
line-height: 84rpx;
|
||||
text-align: center;
|
||||
border-radius: 42rpx;
|
||||
border: 2rpx solid #DCDEE0;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,749 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="isShow" @touchmove.stop="">
|
||||
<view class="topPostionBg"></view>
|
||||
<block v-if="temporarily">
|
||||
<uni-popup type="center" ref="center" :isMaskClick="false">
|
||||
<view class="staging bg-video">
|
||||
<view class="bg"></view>
|
||||
<view class="text-center">
|
||||
<image src="https://shayu5qny.yhy.ren/stagingBackground.png" class="stagingBackground"></image>
|
||||
</view>
|
||||
<view class="text-xxl text-center threeSix text-bold">温馨提示</view>
|
||||
<view class="text-center text-sm oneTwo">嗨!发现您还有一份填了一半的问卷呢</view>
|
||||
<view class="text-center text-sm">请告诉我您想怎么处理</view>
|
||||
<view class="stagBtn margin-top-xs" @tap="continueChange">继续填写</view>
|
||||
<view class="text-center text-df colorGrey" @tap="againQuestion">重新填写</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</block>
|
||||
<view class="contioner" v-else>
|
||||
<view class="topCard bg-video">
|
||||
<view class="headSculpture">
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png"></image>
|
||||
</view>
|
||||
<view class="border text-center bg-video">
|
||||
<view class="top text-df text-bold">
|
||||
<text class="color">鲨鱼宝宝</text>
|
||||
<text class="cut"></text>
|
||||
<text>专属评估客服</text>
|
||||
</view>
|
||||
<view class="flex-conter margin-top-xs marginBottom">
|
||||
<view class="tag marginRight-xs">{{(cardRadio.length*15/60).toFixed(0)}}分钟</view>
|
||||
<view class="tag marginRight-xs">{{cardRadio.length}}题</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y :style="{'height':srcollHeight}" :scroll-top="scrollView" @scroll="scroll"
|
||||
scroll-with-animation>
|
||||
<view class="next" style="padding-top: 32rpx;"></view>
|
||||
<block v-for="(item,index) in cardRadio" :key="index">
|
||||
<view v-show="item.hidden">
|
||||
<!-- 单选样式 -->
|
||||
<view class="flex bg-video" style="margin-top: 32rpx;" v-if="dictNo!='10'">
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png" class="avare"></image>
|
||||
<view class="color">
|
||||
<view class="introduce text-df">
|
||||
<view>{{index + 1 }}: {{item.subInfo}}</view>
|
||||
<view class="text-sm margin-top-xs" style="color: #5878B4;" v-if="item.memo!=null">
|
||||
注:{{item.memo}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="evaluation">
|
||||
<view class="text-df">单选</view>
|
||||
<block v-for="(item1,index1) in item.optionList" :key="index1">
|
||||
<view :class="['greyTag',item1.hidden?'shawDown':'']"
|
||||
@tap="selectChange(index,index1,item,item1)">
|
||||
<text class="text-bold">{{item1.optCode}}</text>
|
||||
<text class="tegWidth"></text>
|
||||
<text style="color: #3F4040;">{{item1.optValue}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 单选 是否选项展示样式 -->
|
||||
<view class="flex bg-video" style="margin-top: 32rpx;" v-else>
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png" class="avare"></image>
|
||||
<view class="evaluation fontColor">
|
||||
<view class="text-df">{{item.subInfo}}</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex bg-video" style="height: 60rpx;">
|
||||
<block v-for="(item1,index1) in item.optionList" :key="index1">
|
||||
<view :class="['flex-sub text-center',item1.hidden?'themColor':'']"
|
||||
@tap="selectChange(index,index1,item,item1)">
|
||||
<text style="line-height: 80rpx;">{{item1.optValue}}</text>
|
||||
</view>
|
||||
</block>
|
||||
<view class="fenge"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-end" :class="['quest'+index]" v-if="item.defaultValue!=null">
|
||||
<view class="rightLayOut">
|
||||
<view class="leftTag flex-sub">{{item.defaultValue}}</view>
|
||||
<image :src="userProfile" class="rightAvter"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view style="width: 100%;height: 100rpx;"></view>
|
||||
</scroll-view>
|
||||
<view class="bottomBtn" @tap="submit" v-if="isNext">生成评估报告</view>
|
||||
<!-- 返回底部 -->
|
||||
<view class="backBottom" @tap="goBottom" v-show="scrollGun<600&&isBottom">
|
||||
<image src="https://shayu5qny.yhy.ren/Frame.png"></image>
|
||||
<view class="text-sm themColor">返回底部</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isShow: false, //等待页面数据渲染完成
|
||||
isBottom: false, //是否显示返回底部按钮
|
||||
isBumit: false, //是否提交
|
||||
dictNo: '', // 心理类型编号
|
||||
userParameters: {}, //接收用户参数
|
||||
userProfile: '', //用户头像
|
||||
// 题目集合
|
||||
cardRadio: [],
|
||||
// 暂存问卷页面是否显示
|
||||
temporarily: null,
|
||||
// 总分数
|
||||
fraction: 0,
|
||||
// 记录选择的每道题目分数
|
||||
subject: [],
|
||||
// 雷达图我的得分数据
|
||||
chartMyList: [],
|
||||
score1: 0,
|
||||
score2: 0,
|
||||
positive: false, //08题目类型的判断结果
|
||||
id: null, //区分成员id
|
||||
isNext: false, //是否为最后一题
|
||||
optionQuest: [], //存取15类型的选择项
|
||||
jieguo: '', //15类型的结果
|
||||
srcollHeight: "", //题目的高度
|
||||
scrollView: 0, //题目距离顶部的位置
|
||||
scrollGun: 0, //屏幕滚动的高度
|
||||
fixedHeight: 100000, //固定底部高度
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
let data = JSON.parse(decodeURIComponent(options.params))
|
||||
if (data.token) {
|
||||
this.userParameters.openId = data.openId //用户唯一标识
|
||||
this.userParameters.token = data.token //用户唯一标识
|
||||
}
|
||||
this.userParameters.userId = data.userId //用户id
|
||||
this.userProfile = data.headSculpture //头像
|
||||
this.userName = data.name //名称
|
||||
this.id = data.id //用户传0 ,成员传家庭成员id
|
||||
this.dictNo = data.dicCode //心理类型编号
|
||||
// 查询是否有暂存数据
|
||||
this.temporaryAata()
|
||||
},
|
||||
// 页面销毁前暂存问卷
|
||||
beforeDestroy() {
|
||||
if (!this.isBumit) {
|
||||
this.temporaryQuestion()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//获取元素高度
|
||||
Height() {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select(".next").boundingClientRect((data) => {
|
||||
// 得到高度
|
||||
this.srcollHeight = uni.getSystemInfoSync().windowHeight - data.top - 18 + "px";
|
||||
}).exec();
|
||||
},
|
||||
// 滚动到页面底部
|
||||
goBottom() {
|
||||
let num = this.fixedHeight++
|
||||
this.scrollView = num
|
||||
},
|
||||
//点击获取下一题的距离
|
||||
questClass(index) {
|
||||
setTimeout(() => {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select(".quest" + index).boundingClientRect((data) => {
|
||||
this.scrollView = parseInt(this.scrollGun + data.top - 82)
|
||||
}).exec();
|
||||
if (index > 3) {
|
||||
this.isBottom = true
|
||||
}
|
||||
}, 100)
|
||||
},
|
||||
// 查询是否有暂存数据
|
||||
temporaryAata() {
|
||||
let that = this
|
||||
that.$API.pagerUserByCode({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dicCode: that.dictNo,
|
||||
memberId: that.id
|
||||
}
|
||||
}).then((res) => {
|
||||
// 判断是否有暂存问卷 0没有暂存 1有暂存
|
||||
if (res.data.queShow == 0) {
|
||||
that.getInfo()
|
||||
} else {
|
||||
that.temporarily = true
|
||||
that.isShow = true
|
||||
setTimeout(() => {
|
||||
that.$refs.center.open()
|
||||
}, 100)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取问卷信息
|
||||
async getInfo() {
|
||||
showLoading('加载中...')
|
||||
let that = this
|
||||
let ret = await that.$API.subjectList({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dictNo: that.dictNo
|
||||
}
|
||||
})
|
||||
ret.data.map((item, index) => {
|
||||
if (index == 0) {
|
||||
item.hidden = true
|
||||
} else {
|
||||
item.hidden = false
|
||||
}
|
||||
})
|
||||
that.$set(that, 'cardRadio', ret.data) //获取总数据
|
||||
that.isShow = true
|
||||
// 获取题目列表高度
|
||||
setTimeout(() => {
|
||||
that.Height()
|
||||
}, 100)
|
||||
hideLoading()
|
||||
},
|
||||
//重新填写问卷信息
|
||||
async againQuestion() {
|
||||
let that = this
|
||||
let ret = await that.$API.anewQuery({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dictCode: that.dictNo,
|
||||
memberId: that.id
|
||||
}
|
||||
})
|
||||
ret.data[0].hidden = true
|
||||
// 题目赋值
|
||||
that.$set(that, 'cardRadio', ret.data)
|
||||
that.temporarily = false
|
||||
setTimeout(() => {
|
||||
that.Height()
|
||||
}, 100)
|
||||
},
|
||||
//继续填写问卷信息
|
||||
continueChange() {
|
||||
let that = this
|
||||
// 调用根据评估类型查询评估答题试卷接口查询暂存问卷进度
|
||||
that.$API.pagerUserByCode({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dicCode: that.dictNo,
|
||||
memberId: that.id
|
||||
}
|
||||
}).then((res) => {
|
||||
// json数据转成对象
|
||||
var jsarr = JSON.parse(res.data.paperJson);
|
||||
// 赋值
|
||||
that.$set(that, 'cardRadio', jsarr)
|
||||
that.temporarily = false
|
||||
setTimeout(() => {
|
||||
that.Height()
|
||||
that.scrollView = 100000
|
||||
}, 100)
|
||||
})
|
||||
},
|
||||
// 暂存问卷
|
||||
temporaryQuestion() {
|
||||
let that = this
|
||||
let paperJson = JSON.stringify(that.cardRadio)
|
||||
let ret = that.$API.tempSave({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dictCode: that.dictNo, //心理题目类型
|
||||
paperJson: paperJson, //所有的题目
|
||||
paperState: '0', //题目完成状态
|
||||
queShow: 1, //是否有暂存数据 0无 1有
|
||||
queScore: that.fraction, //当前答题与前面题目的总分
|
||||
memberId: that.id
|
||||
}
|
||||
})
|
||||
},
|
||||
// 提交保存
|
||||
submit() {
|
||||
this.isBumit = true //提交时不执行页面销毁暂存问卷方法
|
||||
if (this.$preventClick()) return
|
||||
let that = this;
|
||||
that.cardRadio.map((item, index) => {
|
||||
item.optionList.map((item1) => {
|
||||
if (item1.hidden) {
|
||||
that.subject.push(item1.fraction) // 获取每道题目的分数
|
||||
that.optionQuest.push(item1.optCode) // MBTI职业性格测试问卷获取题目键值
|
||||
}
|
||||
})
|
||||
})
|
||||
if (that.dictNo != '07' && that.dictNo != '10') {
|
||||
that.cardRadio.map((item, inx) => {
|
||||
if (that.dictNo == '04' && inx < 6 && that.cardRadio[0].optionList[0].hidden) {
|
||||
that.fraction = 0
|
||||
} else if (that.dictNo == '04' && inx > 5 && that.cardRadio[5].optionList[0].hidden) {
|
||||
that.fraction = 0
|
||||
} else {
|
||||
item.optionList.map((item1, inx1) => {
|
||||
if (item1.hidden) {
|
||||
that.fraction += item1.fraction
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
// 职业倦怠 雷达图我的得分赋值
|
||||
if (that.dictNo == '06') {
|
||||
let a = [0, 1, 2, 3, 4]
|
||||
let b = [5, 6, 7, 8]
|
||||
let c = [9, 10, 11, 12, 13, 14]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
let three = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
three += that.subject[item]
|
||||
})
|
||||
that.chartMyList[0] = parseInt(one / a.length)
|
||||
that.chartMyList[1] = parseInt(two / b.length)
|
||||
that.chartMyList[2] = parseInt(three / c.length)
|
||||
}
|
||||
|
||||
// 心理综合评估 雷达图我的得分赋值
|
||||
if (that.dictNo == '08') {
|
||||
let a = [0, 3, 11, 26, 39, 41, 47, 48, 51, 52, 55, 57]
|
||||
let b = [2, 8, 9, 27, 37, 44, 45, 50, 54, 64]
|
||||
let c = [5, 20, 33, 35, 36, 40, 60, 68, 72]
|
||||
let d = [4, 13, 14, 19, 21, 25, 28, 29, 30, 31, 53, 70, 78]
|
||||
let e = [1, 16, 22, 32, 38, 56, 71, 77, 79, 85]
|
||||
let f = [10, 23, 62, 66, 73, 80]
|
||||
let g = [12, 24, 46, 49, 69, 74, 81]
|
||||
let h = [7, 17, 42, 67, 75, 82]
|
||||
let i = [6, 15, 34, 61, 76, 83, 84, 86, 87, 89]
|
||||
let j = [18, 43, 58, 59, 63, 65, 88]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
let three = 0;
|
||||
let four = 0;
|
||||
let five = 0;
|
||||
let six = 0;
|
||||
let seven = 0;
|
||||
let eight = 0;
|
||||
let nine = 0;
|
||||
let ten = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
three += that.subject[item]
|
||||
})
|
||||
d.map((item) => {
|
||||
four += that.subject[item]
|
||||
})
|
||||
e.map((item) => {
|
||||
five += that.subject[item]
|
||||
})
|
||||
f.map((item) => {
|
||||
six += that.subject[item]
|
||||
})
|
||||
g.map((item) => {
|
||||
seven += that.subject[item]
|
||||
})
|
||||
h.map((item) => {
|
||||
eight += that.subject[item]
|
||||
})
|
||||
i.map((item) => {
|
||||
nine += that.subject[item]
|
||||
})
|
||||
j.map((item) => {
|
||||
ten += that.subject[item]
|
||||
})
|
||||
that.chartMyList[0] = (one / a.length).toFixed(2)
|
||||
that.chartMyList[1] = (two / b.length).toFixed(2)
|
||||
that.chartMyList[2] = (three / c.length).toFixed(2)
|
||||
that.chartMyList[3] = (four / d.length).toFixed(2)
|
||||
that.chartMyList[4] = (five / e.length).toFixed(2)
|
||||
that.chartMyList[5] = (six / f.length).toFixed(2)
|
||||
that.chartMyList[6] = (seven / g.length).toFixed(2)
|
||||
that.chartMyList[7] = (eight / h.length).toFixed(2)
|
||||
that.chartMyList[8] = (nine / i.length).toFixed(2)
|
||||
that.chartMyList[9] = (ten / j.length).toFixed(2)
|
||||
let abc = 0
|
||||
that.subject.map((item) => {
|
||||
if (item > 0) {
|
||||
abc++
|
||||
}
|
||||
})
|
||||
// 判断08类型结果 true阳性 false阴性
|
||||
if (that.fraction > 160 || (that.chartMyList[0] > 2 || that.chartMyList[1] > 2 || that
|
||||
.chartMyList[2] > 2 || that.chartMyList[3] > 2 || that.chartMyList[4] > 2 ||
|
||||
that.chartMyList[5] > 2 || that.chartMyList[6] > 2 || that.chartMyList[7] > 2 ||
|
||||
that.chartMyList[8] > 2 || that.chartMyList[9] > 2) || abc > 43) {
|
||||
that.positive = true
|
||||
} else {
|
||||
that.positive = false
|
||||
}
|
||||
}
|
||||
// 孤独症 雷达图我的得分赋值
|
||||
if (that.dictNo == '10') {
|
||||
let a = [5, 9, 20, 25, 33, 38, 43, 50, 51, 56]
|
||||
let b = [2, 6, 12, 16, 23, 24, 26, 27, 32, 37, 42, 46, 51]
|
||||
let c = [0, 4, 8, 11, 12, 15, 21, 29, 34, 39, 50, 52, 53]
|
||||
let d = [3, 7, 10, 14, 17, 19, 28, 31, 36, 41, 45, 47, 55]
|
||||
let e = [1, 13, 18, 22, 30, 35, 40, 44, 48, 49, 54]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
let three = 0;
|
||||
let four = 0;
|
||||
let five = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
three += that.subject[item]
|
||||
})
|
||||
d.map((item) => {
|
||||
four += that.subject[item]
|
||||
})
|
||||
e.map((item) => {
|
||||
five += that.subject[item]
|
||||
})
|
||||
that.chartMyList[0] = one
|
||||
that.chartMyList[1] = two
|
||||
that.chartMyList[2] = three
|
||||
that.chartMyList[3] = four
|
||||
that.chartMyList[4] = five
|
||||
that.fraction = one + two + three + four + five
|
||||
}
|
||||
// 儿童焦虑自评 雷达图我的得分赋值
|
||||
if (that.dictNo == '12') {
|
||||
let a = [0, 5, 8, 11, 14, 17, 18, 21, 23, 26, 29, 33, 37]
|
||||
let b = [4, 6, 13, 20, 22, 27, 32, 34, 36]
|
||||
let c = [3, 7, 12, 15, 19, 24, 28, 30]
|
||||
let d = [2, 9, 25, 31, 38, 39, 40]
|
||||
let e = [1, 10, 16, 35]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
let three = 0;
|
||||
let four = 0;
|
||||
let five = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
three += that.subject[item]
|
||||
})
|
||||
d.map((item) => {
|
||||
four += that.subject[item]
|
||||
})
|
||||
e.map((item) => {
|
||||
five += that.subject[item]
|
||||
})
|
||||
that.chartMyList[0] = one
|
||||
that.chartMyList[1] = two
|
||||
that.chartMyList[2] = three
|
||||
that.chartMyList[3] = four
|
||||
that.chartMyList[4] = five
|
||||
}
|
||||
// A型性格评估 两个进度条 分数计算
|
||||
if (that.dictNo == '07') {
|
||||
let a = [1, 2, 5, 6, 9, 10, 13, 15, 18, 20, 21, 25, 28, 29, 33, 37, 39, 41, 43, 45, 49, 52, 53, 54, 57]
|
||||
let b = [0, 3, 4, 8, 11, 14, 16, 22, 24, 26, 27, 30, 31, 34, 38, 40, 46, 56, 58, 59, 17, 35, 44, 48,
|
||||
50
|
||||
]
|
||||
let c = [7, 12, 19, 23, 32, 36, 42, 47, 51, 55]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
that.score1 += that.subject[item]
|
||||
})
|
||||
that.fraction = one + two
|
||||
}
|
||||
// 多动症 奇偶判断
|
||||
if (that.dictNo == '11') {
|
||||
that.score1 = that.subject[0] + that.subject[2] + that.subject[4] + that.subject[6] + that.subject[
|
||||
8] +
|
||||
that.subject[10] + that.subject[12] + that.subject[14] + that.subject[16]
|
||||
that.score2 = that.subject[1] + that.subject[3] + that.subject[5] + that.subject[7] + that.subject[
|
||||
9] +
|
||||
that.subject[11] + that.subject[13] + that.subject[15] + that.subject[17]
|
||||
}
|
||||
// MBTI职业性格测试 获取每一项的值得出结果
|
||||
if (that.dictNo == '15') {
|
||||
let a = [3, 7, 11, 13, 17, 18, 21, 22, 25, 26, 33, 34, 41, 47, 53, 59, 61, 65, 66, 71, 76]
|
||||
let b = [2, 4, 12, 14, 23, 28, 31, 36, 39, 43, 46, 49, 52, 54, 57, 60, 62, 72, 73, 78, 81, 82, 85, 86,
|
||||
89, 92
|
||||
]
|
||||
let c = [5, 15, 29, 30, 37, 38, 44, 45, 50, 51, 55, 56, 63, 68, 74, 77, 79, 80, 83, 84, 87, 88, 90, 91]
|
||||
let d = [0, 1, 6, 8, 9, 10, 16, 19, 20, 24, 27, 32, 35, 40, 42, 48, 58, 64, 67, 69, 70, 75]
|
||||
let E = ['A', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'B', 'A', 'B', 'B', 'B', 'B', 'B', 'A', 'B', 'A',
|
||||
'B', 'A'
|
||||
];
|
||||
let I = ['B', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'A', 'B', 'A', 'A', 'A', 'A', 'A', 'B', 'A', 'B',
|
||||
'A', 'B'
|
||||
];
|
||||
let S = ['A', 'B', 'A', 'B', 'B', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'A', 'B', 'A', 'B',
|
||||
'B', 'A', 'B', 'A', 'B', 'A', 'A'
|
||||
];
|
||||
let N = ['B', 'A', 'B', 'A', 'A', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'B', 'A', 'B', 'A',
|
||||
'A', 'B', 'A', 'B', 'A', 'B', 'B'
|
||||
];
|
||||
let T = ['B', 'B', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B',
|
||||
'A', 'B', 'A', 'B', 'A'
|
||||
];
|
||||
let F = ['A', 'A', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A',
|
||||
'B', 'A', 'B', 'A', 'B'
|
||||
];
|
||||
let J = ['A', 'B', 'B', 'A', 'A', 'B', 'B', 'A', 'B', 'B', 'A', 'B', 'A', 'B', 'A', 'A', 'A', 'B', 'A',
|
||||
'A', 'B', 'B'
|
||||
];
|
||||
let P = ['B', 'A', 'A', 'B', 'B', 'A', 'A', 'B', 'A', 'A', 'B', 'A', 'B', 'A', 'B', 'B', 'B', 'A', 'B',
|
||||
'B', 'A', 'A'
|
||||
];
|
||||
let e = 0
|
||||
let i = 0
|
||||
let s = 0
|
||||
let n = 0
|
||||
let t = 0
|
||||
let f = 0
|
||||
let j = 0
|
||||
let p = 0
|
||||
a.map((item, index) => {
|
||||
if (that.optionQuest[item] == E[index]) {
|
||||
e += 1
|
||||
}
|
||||
if (that.optionQuest[item] == I[index]) {
|
||||
i += 1
|
||||
}
|
||||
})
|
||||
b.map((item, index) => {
|
||||
if (that.optionQuest[item] == S[index]) {
|
||||
s += 1
|
||||
}
|
||||
if (that.optionQuest[item] == N[index]) {
|
||||
n += 1
|
||||
}
|
||||
})
|
||||
c.map((item, index) => {
|
||||
if (that.optionQuest[item] == T[index]) {
|
||||
t += 1
|
||||
}
|
||||
if (that.optionQuest[item] == F[index]) {
|
||||
f += 1
|
||||
}
|
||||
})
|
||||
d.map((item, index) => {
|
||||
if (that.optionQuest[item] == J[index]) {
|
||||
j += 1
|
||||
}
|
||||
if (that.optionQuest[item] == P[index]) {
|
||||
p += 1
|
||||
}
|
||||
})
|
||||
let jieguoOne = ''
|
||||
let jieguoTwo = ''
|
||||
let jieguoThree = ''
|
||||
let jieguoFour = ''
|
||||
if (e > i) {
|
||||
jieguoOne = 'E'
|
||||
} else {
|
||||
jieguoOne = 'I'
|
||||
}
|
||||
if (s > n) {
|
||||
jieguoTwo = 'S'
|
||||
} else {
|
||||
jieguoTwo = 'N'
|
||||
}
|
||||
if (t > f) {
|
||||
jieguoThree = 'T'
|
||||
} else {
|
||||
jieguoThree = 'F'
|
||||
}
|
||||
if (j > p) {
|
||||
jieguoFour = 'J'
|
||||
} else {
|
||||
jieguoFour = 'P'
|
||||
}
|
||||
that.jieguo = `${jieguoOne}${jieguoTwo}${jieguoThree}${jieguoFour}`
|
||||
that.chartMyList[0] = e
|
||||
that.chartMyList[1] = i
|
||||
that.chartMyList[2] = s
|
||||
that.chartMyList[3] = n
|
||||
that.chartMyList[4] = t
|
||||
that.chartMyList[5] = f
|
||||
that.chartMyList[6] = j
|
||||
that.chartMyList[7] = p
|
||||
}
|
||||
// 威廉斯创造力倾向测评量表测试 获取每一项的值得出结果
|
||||
if (that.dictNo == '23') {
|
||||
let a = [0, 4, 20, 23, 24, 27, 28, 34, 35, 42, 43]
|
||||
let b = [1, 7, 10, 11, 18, 26, 32, 33, 36, 37, 38, 46, 47, 48]
|
||||
let c = [5, 12, 13, 15, 19, 21, 22, 29, 30, 31, 39, 44, 45]
|
||||
let d = [2, 3, 6, 8, 9, 14, 16, 17, 25, 40, 41, 49]
|
||||
let one = 0;
|
||||
let two = 0;
|
||||
let three = 0;
|
||||
let four = 0;
|
||||
a.map((item) => {
|
||||
one += that.subject[item]
|
||||
})
|
||||
b.map((item) => {
|
||||
two += that.subject[item]
|
||||
})
|
||||
c.map((item) => {
|
||||
three += that.subject[item]
|
||||
})
|
||||
d.map((item) => {
|
||||
four += that.subject[item]
|
||||
})
|
||||
that.chartMyList[0] = one
|
||||
that.chartMyList[1] = two
|
||||
that.chartMyList[2] = three
|
||||
that.chartMyList[3] = four
|
||||
}
|
||||
let paperJson = JSON.stringify(that.cardRadio)
|
||||
showLoading('提交中...')
|
||||
that.$API.savePaper({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dictCode: that.dictNo, //心理题目类型
|
||||
paperJson: paperJson, //所有的题目
|
||||
dimensionFactors: that.chartMyList, //雷达图我的得分数据
|
||||
memberId: that.id, //成员id
|
||||
paperState: '1', //题目完成状态
|
||||
positive: that.positive, //08题目类型的判断结果
|
||||
score: that.fraction, //总分
|
||||
score1: that.score1,
|
||||
score2: that.score2,
|
||||
mbti: that.jieguo, //15类型结果
|
||||
}
|
||||
}).then((res) => {
|
||||
if(res.data && res.data > 0){
|
||||
toast(res.data + "积分已到账")
|
||||
}
|
||||
hideLoading()
|
||||
let a = {
|
||||
userParameters: JSON.stringify(this.userParameters),
|
||||
headSculpture: this.userProfile,
|
||||
name: this.userName,
|
||||
id: this.id,
|
||||
dicCode: this.dictNo,
|
||||
}
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/psychological-assessment/result/result?params=' + JSON.stringify(a)
|
||||
})
|
||||
}, 2000)
|
||||
})
|
||||
},
|
||||
scroll(e) {
|
||||
this.scrollGun = e.target.scrollTop
|
||||
},
|
||||
// 选择问卷题目
|
||||
selectChange(index, index1, item, item1) {
|
||||
let that = this
|
||||
for (var i = 0; i < this.cardRadio[index].optionList.length; i++) {
|
||||
// 判断卡片选中哪一项
|
||||
if (i == index1) {
|
||||
this.$set(this.cardRadio[index].optionList[i], 'hidden', true)
|
||||
} else {
|
||||
this.$set(this.cardRadio[index].optionList[i], 'hidden', false)
|
||||
}
|
||||
}
|
||||
this.$set(this.cardRadio[index], 'defaultValue', item1.optCode + '.' + item1.optValue)
|
||||
if (that.dictNo == '04') {
|
||||
var falg = 0;
|
||||
if (index == 0 && index1 == 0) {
|
||||
for (var i = 1; i < 5; i++) {
|
||||
that.cardRadio[i].hidden = false
|
||||
}
|
||||
that.cardRadio[5].hidden = true
|
||||
} else if (index == 5 && index1 == 0) {
|
||||
for (var i = 1; i < 5; i++) {
|
||||
that.cardRadio[5 + i].hidden = false
|
||||
}
|
||||
return that.isNext = true
|
||||
} else if (index == 0 || index == 5 || index == 4) {
|
||||
for (var i = index; i < that.cardRadio.length; i++) {
|
||||
var item = that.cardRadio[i];
|
||||
if (i + 1 < that.cardRadio.length) {
|
||||
if (falg == 0 || item.defaultValue) {
|
||||
if (item.defaultValue) {
|
||||
falg = 0;
|
||||
if (i < 5 || (i >= 5 && !that.cardRadio[5].optionList[0].hidden)) {
|
||||
item.hidden = true
|
||||
that.cardRadio[i + 1].hidden = true
|
||||
}
|
||||
} else {
|
||||
falg = 1;
|
||||
that.cardRadio[i + 1].hidden = false
|
||||
}
|
||||
} else {
|
||||
falg = 1;
|
||||
that.cardRadio[i + 1].hidden = false
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (index + 1 < that.cardRadio.length) {
|
||||
that.cardRadio[index + 1].hidden = true
|
||||
}
|
||||
if (index == 9) {
|
||||
return that.isNext = true
|
||||
}
|
||||
} else {
|
||||
if (that.cardRadio.length - 1 != index) {
|
||||
that.cardRadio[index + 1].hidden = true
|
||||
} else {
|
||||
return that.isNext = true
|
||||
}
|
||||
}
|
||||
that.questClass(index)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './index.scss';
|
||||
</style>
|
|
@ -1,178 +0,0 @@
|
|||
.fontColor {
|
||||
color: #17191A;
|
||||
}
|
||||
|
||||
.grey {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.color {
|
||||
color: #3F4040;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: #3AAFB8;
|
||||
}
|
||||
.redColor{
|
||||
color: #F87C7C;
|
||||
}
|
||||
|
||||
.bgBackground {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
width: 100vw;
|
||||
height: 606rpx;
|
||||
background: linear-gradient(145deg, #E4F5EB 0%, rgba(228, 245, 235, 0) 100%);
|
||||
}
|
||||
|
||||
.contioner {
|
||||
padding: 32rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
|
||||
.avter {
|
||||
$wh: 64rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin-right: 20rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dotocr {
|
||||
width: 218rpx;
|
||||
height: 212rpx;
|
||||
}
|
||||
|
||||
.topWidth {
|
||||
width: 100%;
|
||||
height: 32rpx;
|
||||
background: #FFFFFF;
|
||||
border: 7rpx solid #6ACBD1;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
display: inline-block;
|
||||
width: 6rpx;
|
||||
height: 32rpx;
|
||||
background: #3AAFB8;
|
||||
border-radius: 50rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.greyBg{
|
||||
|
||||
padding: 24rpx 20rpx;
|
||||
background: #EBF7F8;
|
||||
border-radius: 16rpx;
|
||||
text-indent: 2rem;
|
||||
}
|
||||
.whiteShaw {
|
||||
width: calc(100% -24rpx);
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 4rpx 13rpx 0rpx rgba(0, 0, 0, 0);
|
||||
margin: -28rpx 0 50rpx 12rpx;
|
||||
|
||||
.topBg {
|
||||
width: 100%;
|
||||
height: 32rpx;
|
||||
background: linear-gradient(180deg, rgba(56, 176, 184, 0.30) 0%, rgba(56, 176, 184, 0.00) 100%);
|
||||
}
|
||||
|
||||
.contonentPadding {
|
||||
padding: 16rpx 20rpx 32rpx;
|
||||
box-shadow: 0rpx 4rpx 13rpx 0rpx rgba(0,0,0,0.1);
|
||||
.gardenClass{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -20rpx;
|
||||
width: 100%;
|
||||
.circle3 {
|
||||
width: 44rpx;
|
||||
height: 22rpx;
|
||||
border-radius: 0 0 50rpx 50rpx;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
}
|
||||
.charts-box {
|
||||
width: 630rpx;
|
||||
height: 500rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
margin-top: 32rpx;
|
||||
padding: 32rpx 20rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
margin-left: 12rpx;
|
||||
|
||||
|
||||
.leftImg {
|
||||
width: 112rpx;
|
||||
height: 112rpx;
|
||||
border-radius: 8rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.progress{
|
||||
height: 12rpx;
|
||||
margin-right: 2rpx;
|
||||
&:first-child{
|
||||
border-radius: 50rpx 0rpx 0rpx 50rpx;
|
||||
}
|
||||
&:nth-last-child(1){
|
||||
border-radius: 0 50rpx 50rpx 0;
|
||||
margin-right: 0rpx;
|
||||
}
|
||||
}
|
||||
.triangle{
|
||||
position: absolute;
|
||||
top: -32rpx;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 20rpx solid #009DFF;
|
||||
border-right: 16rpx solid transparent;
|
||||
border-left: 16rpx solid transparent;
|
||||
}
|
||||
.positive{
|
||||
color: #F5973F;
|
||||
}
|
||||
.cut{
|
||||
margin: 32rpx 0;
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #eee;
|
||||
}
|
||||
}
|
||||
.proposal{
|
||||
background: #FFFFFF;
|
||||
border-radius: 16rpx;
|
||||
margin-left: 12rpx;
|
||||
.lineHeight{
|
||||
line-height: 38rpx;
|
||||
}
|
||||
.table{
|
||||
width: 30%;
|
||||
border: 1rpx solid #EBF1F1;
|
||||
.border-right{
|
||||
width: 30%;
|
||||
border-right: 1rpx solid #EBF1F1;
|
||||
text-align: center;
|
||||
}
|
||||
.orangeBg{
|
||||
background: rgba(245, 151, 63, 0.20);
|
||||
}
|
||||
.border-bottom{
|
||||
border-bottom: 1rpx solid #EBF1F1;
|
||||
}
|
||||
.border-width{
|
||||
width: 70% !important;
|
||||
}
|
||||
}
|
||||
.table .border-bottom:nth-last-child(1){
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,432 +0,0 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="bgBackground"></view>
|
||||
<view class="contioner" v-if="isLoading">
|
||||
<view class="flex-align">
|
||||
<view>
|
||||
<view class="flex-contion">
|
||||
<image :src="userProfile" class="avter"></image>
|
||||
<view class="text-bold fontColor">Hi~{{userName}}</view>
|
||||
</view>
|
||||
<view class="fontColor margin-top-xs">欢迎开启您的专属心理报告</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/dotocr.png" class="dotocr"></image>
|
||||
</view>
|
||||
<view class="topWidth"></view>
|
||||
<view class="whiteShaw color">
|
||||
<view class="topBg"></view>
|
||||
<view class="contonentPadding bg-video">
|
||||
<view class="flex">
|
||||
<text class="tagWidth margin-top-xs"></text>
|
||||
<text class="text-xl text-bold">您的本次评估结果为:
|
||||
<text class="themColor" v-if="dictNo!=15">{{progressName[location-1].scaleName}}</text>
|
||||
<text class="redColor" v-else>{{resultLevelRemark}}</text>
|
||||
</text>
|
||||
</view>
|
||||
<!-- 扇形 -->
|
||||
|
||||
<view class="flex-contion" v-if="dictNo!=15">
|
||||
<text class="tagWidth"></text>
|
||||
<text class="text-xl text-bold">您的本次评估结果的分数为:<text class="themColor">{{fraction}}</text></text>
|
||||
</view>
|
||||
<!-- 雷达图 -->
|
||||
<view class="charts-box" v-show="dictNo=='06'||dictNo=='08'">
|
||||
<qiun-data-charts type="radar" inScrollView :opts="opt" :chartData="chartData"
|
||||
:canvas2d="true" />
|
||||
</view>
|
||||
<view class="charts-box" v-show="dictNo=='10'||dictNo=='12'">
|
||||
<qiun-data-charts type="radar" inScrollView :opts="{legend:{show: false},extra: {radar: {border: true,gridCount: 5,max: max},
|
||||
}}" :chartData="chartData" :canvas2d="true" />
|
||||
</view>
|
||||
<view class="greyBg text-df color" style="margin-top: 32rpx;" v-if="resultInfo!=null">
|
||||
{{resultInfo}}
|
||||
</view>
|
||||
<view class="flex gardenClass">
|
||||
<view v-for="(garden,gardenIndex) in todos" :key="gardenIndex" class="circle3"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 07类型显示 -->
|
||||
<block v-if="dictNo=='07'">
|
||||
<view class="card padding marginTop">
|
||||
<!-- 进度条颜色 -->
|
||||
<view class="flex-contion text-center margin-bottom-xs" style="padding-top: 32rpx;">
|
||||
<block v-for="(item,index) in progressSeven" :key="index">
|
||||
<view class="flex-sub progress flex justify-center bg-video"
|
||||
:style="{background:item.bgColor}">
|
||||
<view class="triangle" v-if="aLocation-1==index"></view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 底部说明 -->
|
||||
<view class="flex-contion text-sm color text-center marginBottom-sm">
|
||||
<block v-for="(item1,index1) in progressSeven" :key="index1">
|
||||
<view class="flex-sub">{{item1.scaleName}}</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 结论 -->
|
||||
<view class="greyBg text-df color">{{resultSevenInfo}}</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 建议 -->
|
||||
<view class="card color" v-if="resultProposal!=null">
|
||||
<view class="flex-contion">
|
||||
<text class="tagWidth"></text>
|
||||
<text class="text-xl text-bold">建议</text>
|
||||
</view>
|
||||
<view class="marginTop text-df" style="text-indent: 2rem;">{{resultProposal}}</view>
|
||||
</view>
|
||||
<!-- 15类型的结果 -->
|
||||
<view class="proposal padding text-df marginTop-sm" v-if="dictNo=='15'">
|
||||
<view class="flex-contion">
|
||||
<text class="tagWidth"></text>
|
||||
<text class="text-xl text-bold">得分情况</text>
|
||||
</view>
|
||||
<view class="flex-align marginTop">
|
||||
<view>
|
||||
<view>外向</view>
|
||||
<view>实感</view>
|
||||
<view>思考</view>
|
||||
<view>判断</view>
|
||||
</view>
|
||||
<view class="table">
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right orangeBg">E</view>
|
||||
<view class="flex-sub text-center">{{myChartsData[0]}}</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right orangeBg">S</view>
|
||||
<view class="flex-sub text-center">{{myChartsData[2]}}</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right orangeBg">T</view>
|
||||
<view class="flex-sub text-center">{{myChartsData[4]}}</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right orangeBg">J</view>
|
||||
<view class="flex-sub text-center">{{myChartsData[6]}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="table">
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right border-width">{{myChartsData[1]}}</view>
|
||||
<view class="flex-sub text-center orangeBg">I</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right border-width">{{myChartsData[3]}}</view>
|
||||
<view class="flex-sub text-center orangeBg">N</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right border-width">{{myChartsData[5]}}</view>
|
||||
<view class="flex-sub text-center orangeBg">F</view>
|
||||
</view>
|
||||
<view class="flex border-bottom">
|
||||
<view class="border-right border-width">{{myChartsData[7]}}</view>
|
||||
<view class="flex-sub text-center orangeBg">P</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>内向</view>
|
||||
<view>直觉</view>
|
||||
<view>情感</view>
|
||||
<view>认知</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 指导 -->
|
||||
<view class="card color" v-if="directions.length>0">
|
||||
<view class="flex-contion">
|
||||
<text class="tagWidth"></text>
|
||||
<text class="text-xl text-bold">指导</text>
|
||||
</view>
|
||||
<block v-for="(item,index) in directions" :key="index">
|
||||
<view class="marginTop flex-contion" @tap="goHealthBook(item.directionUrl)">
|
||||
<image :src="item.directionImg" class="leftImg" mode="aspectFill"></image>
|
||||
<view class="flex-sub text-bold">{{item.directionName}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<block v-if="dictNo=='08'||dictNo=='23'">
|
||||
<block v-for="(item,index) in symptom" :key="index">
|
||||
<view class="card padding text-sm marginTop-sm">
|
||||
<view class="flex-align">
|
||||
<view class="flex-contion text-bold">
|
||||
<text class="color text-xl marginRight-sm">{{item.dimensionName}}</text>
|
||||
<text class="themColor text-df">{{myChartsData[index]}}</text>
|
||||
</view>
|
||||
<view class="text-xl" :class="myChartsData[index]>=2?'positive':'themColor'"
|
||||
v-if="dictNo!='23'">
|
||||
{{myChartsData[index]>=2?'阳性':'阴性'}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="text-sm contion lineHeight">{{item.dimensionInfo}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading,
|
||||
goPage
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
todos:['','','','','','','','','','','','','','','',''],
|
||||
userParameters: {}, //接收用户参数
|
||||
symptom: [], // 雷达图因子
|
||||
userName: '', //名称
|
||||
userProfile: '', //用户头像
|
||||
dictNo: '',
|
||||
id: '',
|
||||
dimensionCode: '',
|
||||
reportId: '',
|
||||
directions: [],
|
||||
// 结论
|
||||
resultInfo: '',
|
||||
// 建议
|
||||
resultProposal: '',
|
||||
progressName: [],
|
||||
// 位置
|
||||
location: null,
|
||||
fraction: '',
|
||||
// 07类型 进度条颜色以及对应的内容
|
||||
progressSeven: [],
|
||||
aLocation: '',
|
||||
// 雷达图我的得分数据
|
||||
myChartsData: [],
|
||||
opt: {
|
||||
color: ['#3673E8', '#1DCC00'],
|
||||
fontSize: 10,
|
||||
legend: {
|
||||
// 注意这里关闭了组件自带的图例
|
||||
show: true,
|
||||
position: "bottom",
|
||||
},
|
||||
extra: {
|
||||
radar: {
|
||||
border: true,
|
||||
gridCount: 5,
|
||||
max: 5
|
||||
},
|
||||
},
|
||||
},
|
||||
// 雷达图数据
|
||||
chartData: {},
|
||||
max: 0, //雷达图最大值
|
||||
resultLevelRemark: '', //10类型结果
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
let data = JSON.parse(decodeURIComponent(options.params))
|
||||
if (data.token) {
|
||||
this.userParameters.openId = data.openId //用户唯一标识
|
||||
this.userParameters.token = data.token //用户唯一标识
|
||||
}
|
||||
if (data.userParameters) {
|
||||
this.userParameters = JSON.parse(data.userParameters) //用户参数
|
||||
} else {
|
||||
this.userParameters.userId = data.userId //用户id
|
||||
}
|
||||
this.userProfile = data.headSculpture //头像
|
||||
this.userName = data.name //名称
|
||||
this.dictNo = data.dicCode //心理类型编号
|
||||
this.id = data.id
|
||||
if (data.reportId) {
|
||||
this.reportId = data.reportId //家庭成员页面进入 列表id
|
||||
this.dimensionCode = data.dimensionCode //维度因子编码
|
||||
}
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
async getInfo() {
|
||||
showLoading('加载中...')
|
||||
let that = this
|
||||
let ret = {}
|
||||
let reg = []
|
||||
if (that.reportId != null && that.reportId != '') {
|
||||
reg = await that.$API.assessmentResult({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dicNo: that.dictNo,
|
||||
id: that.reportId
|
||||
}
|
||||
})
|
||||
} else {
|
||||
reg = await that.$API.queryResult({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dicNo: that.dictNo,
|
||||
memberId: that.id
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询进度条以及进度条颜色对应的内容
|
||||
ret = await that.$API.queryResultByCode({
|
||||
data: {
|
||||
...that.userParameters,
|
||||
dictCode: that.dictNo
|
||||
}
|
||||
})
|
||||
if (that.dictNo != '07') {
|
||||
// 分数
|
||||
that.$set(that, 'fraction', reg.data.score)
|
||||
// 结论
|
||||
that.resultInfo = reg.data.resultInfo
|
||||
// 建议
|
||||
that.resultProposal = reg.data.resultProposal
|
||||
// 指导数据
|
||||
let jsarr = [];
|
||||
if (reg.data.directionInfo != '[{}]') {
|
||||
jsarr = JSON.parse(reg.data.directionInfo);
|
||||
}
|
||||
that.$set(that, 'location', reg.data.resultLevel)
|
||||
that.$set(that, 'directions', jsarr)
|
||||
if (that.dictNo != '15') {
|
||||
// 进度条对应内容
|
||||
that.progressName = ret.data
|
||||
} else {
|
||||
that.$set(that, 'resultLevelRemark', reg.data.resultLevelRemark) // 结果
|
||||
that.$set(that, 'myChartsData', JSON.parse(reg.data.dimensionInfo))
|
||||
}
|
||||
} else {
|
||||
// 进度条对应内容
|
||||
that.progressName = ret.data.gradeScales2
|
||||
that.progressSeven = ret.data.gradeScales1
|
||||
that.$set(that, 'aLocation', reg.data[0].resultLevel)
|
||||
that.$set(that, 'location', reg.data[1].resultLevel)
|
||||
// 分数
|
||||
that.$set(that, 'fraction', reg.data[0].score)
|
||||
that.progressSeven[0].bgColor = "#009DFF"
|
||||
that.progressSeven[1].bgColor = "#FDA92A"
|
||||
that.progressSeven[2].bgColor = "#F87C7C"
|
||||
// 结论
|
||||
that.resultInfo = reg.data[0].resultInfo
|
||||
that.resultSevenInfo = reg.data[1].resultInfo
|
||||
// 建议
|
||||
that.resultProposal = reg.data[0].resultProposal || reg.data[1].resultProposal
|
||||
let jsarr;
|
||||
if (reg.data[0].directionInfo != '[{}]') {
|
||||
jsarr = JSON.parse(reg.data[0].directionInfo);
|
||||
} else {
|
||||
jsarr = JSON.parse(reg.data[1].directionInfo);
|
||||
}
|
||||
that.$set(that, 'directions', jsarr)
|
||||
}
|
||||
hideLoading()
|
||||
that.$set(that, 'isLoading', true)
|
||||
// 雷达图我的得分数据
|
||||
if (that.dictNo === '06' || that.dictNo === '08' || that.dictNo === '10' || that.dictNo === '12' ||
|
||||
that.dictNo === '23') {
|
||||
that.$set(that, 'myChartsData', JSON.parse(reg.data.dimensionInfo))
|
||||
if (that.dictNo != '23') {
|
||||
that.getServerData(that.myChartsData);
|
||||
}
|
||||
if (that.dictNo == '08' || that.dictNo == '23') {
|
||||
return that.chartChange()
|
||||
}
|
||||
}
|
||||
},
|
||||
//综合评估报告 查询雷达因子的指导数据
|
||||
async chartChange() {
|
||||
let that = this
|
||||
var data = {}
|
||||
if (this.dimensionCode != null && this.dimensionCode != '') {
|
||||
data = {
|
||||
data: {
|
||||
dictCode: that.dictNo,
|
||||
dimensionCode: that.dimensionCode
|
||||
}
|
||||
}
|
||||
} else {
|
||||
data = {
|
||||
data: {
|
||||
dictCode: that.dictNo
|
||||
}
|
||||
}
|
||||
}
|
||||
that.$API.queryDimensionFactors(data).then((res) => {
|
||||
// 雷达图因子
|
||||
that.symptom = res.data
|
||||
that.isLoading = true
|
||||
})
|
||||
},
|
||||
getServerData(myChartsData) {
|
||||
let that = this
|
||||
if (that.dictNo == '06') {
|
||||
let res = {
|
||||
categories: ['情绪衰竭', '玩世不恭', '成就感低落'],
|
||||
series: [{
|
||||
name: "我的得分",
|
||||
data: myChartsData,
|
||||
},
|
||||
{
|
||||
name: "参考值",
|
||||
data: [2, 2, 2],
|
||||
}
|
||||
]
|
||||
};
|
||||
this.chartData = JSON.parse(JSON.stringify(res));
|
||||
}
|
||||
if (that.dictNo == '08') {
|
||||
let res = {
|
||||
categories: ['躯体化', '强迫症状', '人际敏感', '忧郁', '焦虑', '敌对', '恐怖', '偏执', '精神病性', '其他'],
|
||||
series: [{
|
||||
name: "我的得分",
|
||||
data: myChartsData,
|
||||
},
|
||||
{
|
||||
name: "参考值",
|
||||
data: [2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
|
||||
}
|
||||
]
|
||||
};
|
||||
console.log(myChartsData, 'myChartsData')
|
||||
this.chartData = JSON.parse(JSON.stringify(res));
|
||||
}
|
||||
if (that.dictNo == '10') {
|
||||
this.max = Math.max.apply(null, myChartsData);
|
||||
let res = {
|
||||
categories: ['感觉能力', '交往能力', '运动能力', '语言能力', '自理能力'],
|
||||
series: [{
|
||||
name: "",
|
||||
data: myChartsData,
|
||||
}]
|
||||
};
|
||||
this.chartData = JSON.parse(JSON.stringify(res));
|
||||
}
|
||||
if (that.dictNo == '12') {
|
||||
this.max = Math.max.apply(null, myChartsData);
|
||||
let res = {
|
||||
categories: ['躯体化/惊恐', '广泛焦虑', '分离焦虑', '社交恐怖', '学校恐怖'],
|
||||
series: [{
|
||||
name: "",
|
||||
data: myChartsData,
|
||||
}]
|
||||
};
|
||||
this.chartData = JSON.parse(JSON.stringify(res));
|
||||
}
|
||||
},
|
||||
// 指导方法
|
||||
goHealthBook(id) {
|
||||
if (window.Android) {
|
||||
window.Android.goHealthBook(id)
|
||||
}
|
||||
if (window.webkit) {
|
||||
window.webkit.messageHandlers.goHealthBook.postMessage(id);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import './result.scss';
|
||||
</style>
|
|
@ -1,82 +0,0 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="container">
|
||||
<view class="card">
|
||||
<view class="text-bold text-xl">戒烟数据</view>
|
||||
<view class="flex table text-bold marginTop">
|
||||
<view class="flex-sub text-center">类别</view>
|
||||
<view class="flex-sub text-center">当天</view>
|
||||
<view class="flex-sub text-center">本次累计</view>
|
||||
</view>
|
||||
<block v-for="(item1,index1) in List" :key="index1">
|
||||
<view class="tableList flex text-df">
|
||||
<!-- 类别 -->
|
||||
<view class="line flex-sub text-center">{{item1.type}}</view>
|
||||
<!-- 当天 -->
|
||||
<view class="line flex-sub text-center">
|
||||
{{item1.thisDay}}
|
||||
</view>
|
||||
<!-- 本次累计 -->
|
||||
<view class="line flex-sub text-center">{{item1.thisTime}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
List: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$SMOKE.smokingCessationData().then(res => {
|
||||
this.List = res.data
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.container {
|
||||
padding: 32rpx;
|
||||
color: #3F4040;
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
.table {
|
||||
background: #EBF7F8;
|
||||
padding: 20rpx 0;
|
||||
color: #17191A;
|
||||
}
|
||||
|
||||
.tableList {
|
||||
.line {
|
||||
border-bottom: 2rpx solid #EEEEEE;
|
||||
padding: 20rpx 0;
|
||||
color: #17191A;
|
||||
|
||||
&:first-child {
|
||||
border-left: 2rpx solid #E6EFF1;
|
||||
border-right: 2rpx solid #E6EFF1;
|
||||
}
|
||||
|
||||
&:nth-last-child(1) {
|
||||
border-left: 2rpx solid #E6EFF1;
|
||||
border-right: 2rpx solid #E6EFF1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,114 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contioner">
|
||||
<input placeholder="请输入标题" class="inputClass" maxlength="15" placeholder-style="color:#CDCDCD"
|
||||
v-model="title" />
|
||||
<textarea placeholder="写下你此刻的想法吧" class="marginTop color textClass" maxlength="600"
|
||||
placeholder-style="color:#CDCDCD" v-model="content" :adjust-position="false" />
|
||||
</view>
|
||||
<view class="placeholder"></view>
|
||||
<view class="btnList">
|
||||
<view class="btn" @tap="submit">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: '', //标题
|
||||
content: '', //想法
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if (this.title == '' || this.content == '') return toast('请先填写')
|
||||
if (this.$preventClick()) return
|
||||
this.$SMOKE.smokingDiaryAdd({
|
||||
data: {
|
||||
title: this.title,
|
||||
content: this.content
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
if(res.data && res.data > 0 ){
|
||||
toast(res.data + "积分已到账")
|
||||
}else{
|
||||
toast('保存成功')
|
||||
}
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 2000)
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
<style scoped lang="scss">
|
||||
.contioner {
|
||||
padding: 48rpx 32rpx;
|
||||
|
||||
.inputClass {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-bottom: 1rpx solid #EEE;
|
||||
color: #17191A;
|
||||
}
|
||||
|
||||
.textClass {
|
||||
width: 100%;
|
||||
height: 800rpx;
|
||||
}
|
||||
|
||||
.color {
|
||||
color: #3F4040;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
height: 100rpx;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
}
|
||||
|
||||
.btnList {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 10rpx rgba(0, 0, 0, .1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 110rpx;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
.btn {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
background-color: $uni-color;
|
||||
border-radius: 40rpx;
|
||||
flex: 1;
|
||||
margin: 0 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,127 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contioner">
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="card" v-if="index==0">
|
||||
<view class="flex-contion" @tap="goResult(item.smokingReportId)">
|
||||
<image :src="item.smokingReportLevel=='轻度依赖'?'https://shayu5qny.yhy.ren/quitSmoking/qing.png':
|
||||
item.smokingReportLevel=='中度依赖'?'https://shayu5qny.yhy.ren/quitSmoking/zho.png':
|
||||
'https://shayu5qny.yhy.ren/quitSmoking/zhong.png'" class="leftImg"></image>
|
||||
<view class="flex-sub">
|
||||
<view class="flex-align">
|
||||
<view>{{item.smokingReportLevel}}</view>
|
||||
<view class="text-sm">
|
||||
<text
|
||||
:class="['title marginRight-xs',item.smokingReportScore<=3?'oneColor':item.smokingReportScore<=6?'twoColor':'threeColor']">{{item.smokingReportScore}}</text>分
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-sm greyColor">戒烟什么时候都不晚,越早戒烟越好</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-align margintop-four" @tap="goAssuss">
|
||||
<view class="text-df greyColor">距离上次评测{{num}}天</view>
|
||||
<view class="themColor flex-contion">重新评估<uni-icons type="right" color="#3AAFB8" size="20">
|
||||
</uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card flex-align marginTop" @tap="goResult(item.smokingReportId)" v-else>
|
||||
<view>
|
||||
<view class="text-bold">评估记录</view>
|
||||
<view class="text-sm greyColor margin-top-xs">{{item.qtime}}</view>
|
||||
</view>
|
||||
<view class="text-sm">
|
||||
<text
|
||||
:class="['title marginRight-xs',item.smokingReportScore<=3?'oneColor':item.smokingReportScore<=6?'twoColor':'threeColor']">{{item.smokingReportScore}}</text>分
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
formatTime
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
num: '', //天数
|
||||
List: [],
|
||||
date: formatTime(new Date()), //当前日期时间
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
console.log(this.date)
|
||||
this.$SMOKE.smokingReportList().then((res) => {
|
||||
this.List = res.rows
|
||||
let diffDate
|
||||
let myDate_1 = Date.parse(this.date)
|
||||
let myDate_2 = Date.parse(res.rows[0].qtime)
|
||||
diffDate = Math.abs(myDate_1 - myDate_2)
|
||||
this.num = Math.floor(diffDate / (1000 * 3600 * 24))
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 跳转评估问卷页面
|
||||
goAssuss() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/question/question'
|
||||
})
|
||||
},
|
||||
// 跳转评估结果页
|
||||
goResult(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/result/result?id=' + id
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.contioner {
|
||||
padding: 40rpx 32rpx;
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
background: #FFF;
|
||||
border-radius: 20rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
.themColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.leftImg {
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
border-radius: 12rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 48rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.oneColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.twoColor {
|
||||
color: #FF901C;
|
||||
}
|
||||
|
||||
.threeColor {
|
||||
color: #FF4545;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,154 +0,0 @@
|
|||
.pageBox{
|
||||
color: #3F4040;
|
||||
.color{
|
||||
color: #3F4040;
|
||||
}
|
||||
.fontColor{
|
||||
color: #17191A;
|
||||
}
|
||||
.greyColor{
|
||||
color: #909292;
|
||||
}
|
||||
.themColor{
|
||||
color: $uni-color;
|
||||
}
|
||||
.fixedBg{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 728rpx;
|
||||
}
|
||||
.contioner{
|
||||
padding: 68rpx 32rpx 40rpx;
|
||||
.fourSize{
|
||||
font-size: 44rpx;
|
||||
}
|
||||
.btnWidth{
|
||||
padding: 6rpx 12rpx;
|
||||
margin-left: 20rpx;
|
||||
font-size: 20rpx;
|
||||
color: #FFF;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
.oneBg{
|
||||
background: linear-gradient(90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
}
|
||||
.twoBg{
|
||||
background: linear-gradient(270deg, #FDC674 0%, #FF9A02 100%);
|
||||
}
|
||||
.threeBg{
|
||||
background: linear-gradient(270deg, #FDAA74 0%, #FF3F02 100%);
|
||||
}
|
||||
.lookBtn{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -32rpx;
|
||||
width: 192rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 40rpx 0 0 40rpx;
|
||||
background: #FFF;
|
||||
font-size: 26rpx;
|
||||
image{
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-right: 4rpx;
|
||||
}
|
||||
}
|
||||
.backgroundPlate{
|
||||
position: relative;
|
||||
padding: 32rpx 24rpx 24rpx;
|
||||
margin-top: 32rpx;
|
||||
border-radius: 20rpx;
|
||||
background: linear-gradient(to right, #36AAB1, #6ACBD1);
|
||||
.leftTitle{
|
||||
color: #FFF;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.sixFour{
|
||||
font-size: 64rpx;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.eightPadding{
|
||||
padding: 0 8rpx;
|
||||
}
|
||||
.rightBtn{
|
||||
padding: 26rpx 40rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 24rpx;
|
||||
background: rgba(255, 255, 255, 0.60);
|
||||
.playImg{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
margin-left: 8rpx;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
}
|
||||
.bgCard{
|
||||
padding: 32rpx 26rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #DEF3F4;
|
||||
margin-top: 24rpx;
|
||||
.marginLeft-four{
|
||||
margin-left: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.tagCut{
|
||||
width: 1rpx;
|
||||
height: 80rpx;
|
||||
background: #CCE0E1;
|
||||
}
|
||||
.love{
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
.branch{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
.first{
|
||||
width: 48rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
.diot{
|
||||
width: 30rpx;
|
||||
height: 6rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.card{
|
||||
padding: 32rpx 24rpx 52rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FFF;
|
||||
.rightImg{
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
.greyCut{
|
||||
width: 1rpx;
|
||||
height: 80rpx;
|
||||
background: #EEE;
|
||||
}
|
||||
.ellipses{
|
||||
width: 112rpx;
|
||||
height: 112rpx;
|
||||
}
|
||||
.marginPadding{
|
||||
margin:0 38rpx 0 50rpx;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.img{
|
||||
width: 196rpx;
|
||||
height: 216rpx;
|
||||
}
|
||||
.title{
|
||||
position: absolute;
|
||||
top: 24rpx;
|
||||
left: 14rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,323 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/indexBg.png" class="fixedBg"></image>
|
||||
<view class="contioner bg-video">
|
||||
<view class="bg-video">
|
||||
<view class="fontColor fourSize text-bold flex-contion">
|
||||
尼古丁依赖指数
|
||||
<view v-if="dataInfo.degreeOfDependence!=''"
|
||||
:class="['btnWidth',dataInfo.degreeOfDependence=='轻度依赖'?'oneBg':dataInfo.degreeOfDependence=='中度依赖'?'twoBg':'threeBg']">
|
||||
{{dataInfo.degreeOfDependence=='轻度依赖'?'轻度':dataInfo.degreeOfDependence=='中度依赖'?'中度':'重度'}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-sm greyColor margin-top-xs" v-if="dataInfo.degreeOfDependence==''">
|
||||
想知道自己的尼古丁依赖程度吗?
|
||||
</view>
|
||||
<view class="lookBtn flex-conter" @tap="goAssuss">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/lookDetail.png"></image>
|
||||
<text v-if="dataInfo.timer">{{dataInfo.degreeOfDependence==''?'开始评估':'查看详情'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="backgroundPlate">
|
||||
<view class="flex-align">
|
||||
<view class="leftTitle">
|
||||
<view class="twoSize">戒烟第 <text class="text-xl eightPadding">{{dataInfo.quitSmokingDay}}</text>
|
||||
天</view>
|
||||
<view class="sixFour">{{dataInfo.timer}}</view>
|
||||
</view>
|
||||
<view class="rightBtn" @tap="start">
|
||||
{{dataInfo.exist==1?"重置戒烟":"开始戒烟"}}
|
||||
<image
|
||||
:src="dataInfo.exist==0?'https://shayu5qny.yhy.ren/quitSmoking/playBtn.png':'https://shayu5qny.yhy.ren/quitSmoking/resets.png'"
|
||||
class="playImg"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bgCard">
|
||||
<view class="flex-align" @tap="goDetail">
|
||||
<view class="text-center flex-grow">
|
||||
<view class="flex-conter flex-wrap">
|
||||
<!-- 寿命 时间 -->
|
||||
<view class="text-bold fourSize">{{dataInfo.lifetime}}</view>
|
||||
<view class="text-xs greyColor marginLeft-four">小时</view>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/love.png" class="love"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">寿命</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tagCut"></view>
|
||||
<view class="text-center flex-grow">
|
||||
<view class="flex-conter flex-wrap">
|
||||
<!-- 少吸 支 -->
|
||||
<view class="text-bold fourSize">{{dataInfo.smokeLess}}</view>
|
||||
<view class="text-xs greyColor marginLeft-four">支</view>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/branch.png" class="branch"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">少吸</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tagCut"></view>
|
||||
<view class="text-center flex-grow">
|
||||
<view class="flex-conter flex-wrap">
|
||||
<!-- 省钱 元 -->
|
||||
<view class="text-bold fourSize">{{dataInfo.saveMoney}}</view>
|
||||
<view class="text-xs greyColor marginLeft-four">元</view>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/first.png" class="first"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">省钱</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 评分 -->
|
||||
<view class="flex-align marginTop-lg" @tap="goRecove">
|
||||
<view class="text-sm">健康恢复评分:<text class="themColor text-xl text-bold">{{dataInfo.score}}</text>
|
||||
</view>
|
||||
<view class="text-sm text-bold">· · ·</view>
|
||||
</view>
|
||||
<cmd-progress :percent="dataInfo.percentage" :showInfo="false"
|
||||
stroke-color="linear-gradient(to right, #36AAB1, #6ACBD1)">
|
||||
</cmd-progress>
|
||||
<view class="text-xs greyColor margin-top-xs">生理烟瘾基本消除:{{dataInfo.percentage}}%</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view class="flex-align">
|
||||
<view class="text-bold text-df">烟瘾记录</view>
|
||||
<view class="text-sm greyColor flex-contion" @tap="goMore">
|
||||
查看更多<image src="https://shayu5qny.yhy.ren/quitSmoking/right.png" class="rightImg"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-align marginPadding">
|
||||
<view class="greyColor text-xs text-center">
|
||||
<view><text class="fourSize color text-bold">{{dataInfo.tobacco}}</text>次</view>
|
||||
<view>今日烟瘾</view>
|
||||
</view>
|
||||
<view class="greyCut"></view>
|
||||
<view class="greyColor text-xs text-center">
|
||||
<view><text class="fourSize color text-bold">{{dataInfo.addUp}}</text>次</view>
|
||||
<view>累计次数</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/addiction.png" class="ellipses marginLeft-lg"
|
||||
@tap="tobacco" style="transform: scale(0.9);"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view>戒烟活动</view>
|
||||
<view class="flex-align margintop-four">
|
||||
<view class="bg-video" @tap="goPage(0)">
|
||||
<view class="title">
|
||||
<view class="text-sm fontColor text-bold">戒烟秘籍</view>
|
||||
<view class="text-xs">带你轻松戒烟</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/cessation.png" class="img"></image>
|
||||
</view>
|
||||
<view class="bg-video" @tap="goPage(1)">
|
||||
<view class="title">
|
||||
<view class="text-sm fontColor text-bold">戒烟日记</view>
|
||||
<view class="text-xs">记录戒烟时光</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/diary.png" class="img"></image>
|
||||
</view>
|
||||
<view class="bg-video" @tap="goPage(2)">
|
||||
<view class="title">
|
||||
<view class="text-sm fontColor text-bold">时光穿梭</view>
|
||||
<view class="text-xs">享受健康生活</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/shuttle.png" class="img"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
dataInfo: {},
|
||||
timer: null,
|
||||
birth: '', //出生日期
|
||||
age: '', //年龄
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.birth = options.birth //出生日期
|
||||
this.age = options.age //年龄
|
||||
uni.setStorageSync('userId', options.userId)
|
||||
uni.setStorageSync('openId', options.openId)
|
||||
},
|
||||
onShow() {
|
||||
this.getDataInfo()
|
||||
},
|
||||
onHide() {
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
getDataInfo() {
|
||||
showLoading('加载中...')
|
||||
this.$SMOKE.userSmokingHome().then(res => {
|
||||
this.dataInfo = res.data
|
||||
hideLoading()
|
||||
if (res.data.timer == '00:00:00') return
|
||||
let a = []
|
||||
a = res.data.timer.split(':')
|
||||
this.startTimer(a)
|
||||
})
|
||||
},
|
||||
// 计时
|
||||
startTimer(a) {
|
||||
let seconds = parseInt(a[2]);
|
||||
let minutes = parseInt(a[1]);
|
||||
let hours = parseInt(a[0]);
|
||||
this.timer = setInterval(() => {
|
||||
seconds++;
|
||||
if (seconds === 60) {
|
||||
seconds = 0;
|
||||
minutes++;
|
||||
if (minutes === 60) {
|
||||
minutes = 0;
|
||||
hours++;
|
||||
}
|
||||
}
|
||||
let timeString = (hours < 10 ? '0' + hours : hours) + ':' + (minutes < 10 ? '0' + minutes :
|
||||
minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);
|
||||
// 等于24时则归0
|
||||
if (hours == 24) {
|
||||
seconds = 0
|
||||
minutes = 0
|
||||
hours = 0
|
||||
timeString = '00:00:00'
|
||||
this.dataInfo.quitSmokingDay = this.dataInfo.quitSmokingDay + 1
|
||||
}
|
||||
this.dataInfo.timer = timeString
|
||||
}, 1000);
|
||||
},
|
||||
//烟瘾来袭按钮
|
||||
tobacco() {
|
||||
this.$SMOKE.smokingCravingAdd().then(res => {
|
||||
this.dataInfo.tobacco++
|
||||
this.dataInfo.addUp++
|
||||
})
|
||||
},
|
||||
//开始或重置戒烟
|
||||
start() {
|
||||
let that = this
|
||||
//重置
|
||||
if (this.dataInfo.exist) {
|
||||
uni.showModal({
|
||||
title: '',
|
||||
content: '请坚持下去,每一次的尝试都是一次积累,你会越来越接近成功。',
|
||||
cancelText: '点错了',
|
||||
confirmText: '复吸了',
|
||||
confirmColor: '#3AAFB8',
|
||||
success(ret) {
|
||||
if (ret.confirm) {
|
||||
console.log('用户点击复吸了');
|
||||
clearInterval(that.timer)
|
||||
that.$SMOKE.userSmokingReset().then(res => {
|
||||
console.log("重置戒烟", res)
|
||||
that.dataInfo = {
|
||||
exist: 0, //0不存在戒烟 1存在戒烟
|
||||
quitSmokingDay: 0, //戒烟天数
|
||||
timer: '00:00:00',
|
||||
lifetime: 0, //小时
|
||||
smokeLess: 0, //支
|
||||
saveMoney: 0, //元
|
||||
score: 0, //评分
|
||||
percentage: 0, //百分比
|
||||
tobacco: that.dataInfo.tobacco,
|
||||
addUp: that.dataInfo.addUp
|
||||
}
|
||||
})
|
||||
} else if (ret.cancel) {
|
||||
console.log('用户点击点错了');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
} else {
|
||||
//跳转填写表单
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/smokingSituation/smokingSituation?birth=' + this.birth + '&age=' +
|
||||
this.age
|
||||
})
|
||||
}
|
||||
},
|
||||
// 跳转
|
||||
goPage(index) {
|
||||
if (index == 0) {
|
||||
this.$SMOKE.getUserFirstInto({
|
||||
data: {
|
||||
routeUrl: '/pages/quitSmoking/smokingTips/smokingTips'
|
||||
},
|
||||
}).then(res => {
|
||||
if (res.data) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/scriptsList/scriptsList'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/smokingTips/smokingTips'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else if (index == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/smokingDiary/smokingDiary'
|
||||
})
|
||||
} else {
|
||||
if (this.dataInfo.exist == 0) return toast('请先点击开始戒烟')
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/timeTravel/timeTravel'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 跳转健康恢复评分页面
|
||||
goRecove() {
|
||||
if (this.dataInfo.exist == 0) return toast('请先点击开始戒烟')
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/recoveryScore/recoveryScore'
|
||||
})
|
||||
},
|
||||
goAssuss() {
|
||||
// 跳转评估问卷页面
|
||||
if (this.dataInfo.degreeOfDependence == '') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/question/question'
|
||||
})
|
||||
} else {
|
||||
// 跳转评估记录页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/evaluationRecord/evaluationRecord'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 跳转烟瘾数据统计页面
|
||||
goMore() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/statistics/statistics'
|
||||
})
|
||||
},
|
||||
// 跳转我的戒烟数据页面
|
||||
goDetail() {
|
||||
if (this.dataInfo.exist == 0) return toast('请先点击开始戒烟')
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/cessationData/cessationData'
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "./index.scss"
|
||||
</style>
|
|
@ -1,267 +0,0 @@
|
|||
page{
|
||||
background: #F3F4F6;
|
||||
}
|
||||
.pageBox{
|
||||
.themColor{
|
||||
color: #3AAFB8;
|
||||
}
|
||||
$uni-color:#3AAFB8;
|
||||
.color{
|
||||
color: #17191A;
|
||||
}
|
||||
.topPostionBg{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100vw;
|
||||
height: 528rpx;
|
||||
background: linear-gradient(155deg, #E4F5EB 0%, rgba(228,245,235,0) 100%);
|
||||
}
|
||||
.staging{
|
||||
width: 470rpx;
|
||||
height: calc(580rpx - 42rpx);
|
||||
border-radius: 48rpx;
|
||||
background: #FFF;
|
||||
padding: 22rpx 32rpx 20rpx;
|
||||
.bg{
|
||||
width: 100%;
|
||||
height: 224rpx;
|
||||
background: linear-gradient(180deg, #D8FCFF 0%, #FFF 100%);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: 48rpx 48rpx 0 0;
|
||||
}
|
||||
.stagingBackground{
|
||||
width: 268rpx;
|
||||
height: 166rpx;
|
||||
}
|
||||
.threeSix{
|
||||
margin-top: 36rpx;
|
||||
}
|
||||
.oneTwo{
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.stagBtn{
|
||||
width: calc(406rpx - 278rpx);
|
||||
padding: 10rpx 138rpx 10rpx 140rpx;
|
||||
border-radius: 50rpx;
|
||||
border: 2rpx solid $uni-color;
|
||||
background: $uni-color;
|
||||
margin: 0 auto;
|
||||
color: #FFF;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
.colorGrey{
|
||||
color: #909292;
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
}
|
||||
.contioner{
|
||||
padding: 32rpx;
|
||||
.backBottom{
|
||||
position: fixed;
|
||||
bottom: 10vh;
|
||||
right: 34rpx;
|
||||
padding: 12rpx 32rpx;
|
||||
border-radius: 50rpx;
|
||||
background: #FFF;
|
||||
box-shadow: 0 8rpx 8rpx 0 rgba(4, 70, 74, 0.14);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
image{
|
||||
$wh:24rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
}
|
||||
.topCard{
|
||||
padding: 12rpx;
|
||||
margin-top: 48rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FFFFFF;
|
||||
.headSculpture{
|
||||
$wh:112rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
background: #F3F4F6;
|
||||
border-radius: 50%;
|
||||
border: 6rpx solid #FFFFFF;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
top: -52rpx;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
image{
|
||||
$wh:100rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.border{
|
||||
border: 1rpx dotted #3AAFB8;
|
||||
border-radius: 20rpx;
|
||||
.cut{
|
||||
display: inline-block;
|
||||
width: 4rpx;
|
||||
height: 20rpx;
|
||||
margin: 0 12rpx;
|
||||
background: $uni-color;
|
||||
}
|
||||
.top{
|
||||
margin-top: 72rpx;
|
||||
color: $uni-color;
|
||||
}
|
||||
.tag{
|
||||
padding: 0 20rpx;
|
||||
line-height: 40rpx;
|
||||
border-radius: 4rpx;
|
||||
background: #F3F4F6;
|
||||
color: #909292;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.avare {
|
||||
$wh: 80rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.introduce {
|
||||
padding: 20rpx;
|
||||
width: calc(502rpx - 40rpx);
|
||||
background: #FFFFFF;
|
||||
border-radius: 0rpx 16rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.evaluation {
|
||||
width: calc(502rpx - 40rpx);
|
||||
padding: 20rpx;
|
||||
margin-top: 16rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
||||
.greyTag{
|
||||
padding: 18rpx 40rpx;
|
||||
background: #F8F8F8;
|
||||
border-radius: 16rpx;
|
||||
margin-top: 20rpx;
|
||||
.tegWidth{
|
||||
width: 2rpx;
|
||||
height: 24rpx;
|
||||
background: #CCCCCC;
|
||||
margin: 0 24rpx;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.shawDown{
|
||||
background: #EFF9F8;
|
||||
}
|
||||
.cut{
|
||||
margin-top: 32rpx;
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #eee;
|
||||
}
|
||||
.fenge{
|
||||
width: 2rpx;
|
||||
height: 80rpx;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: #eee;
|
||||
}
|
||||
}
|
||||
.rightLayOut{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 32rpx;
|
||||
.leftTag{
|
||||
padding: 20rpx 32rpx;
|
||||
background: #3AAFB8;
|
||||
border-radius: 16rpx 0rpx 16rpx 16rpx;
|
||||
color: #FFFFFF;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.rightAvter{
|
||||
$wh:80rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.bottomBtn{
|
||||
position: fixed;
|
||||
bottom: 20rpx;
|
||||
width: calc(100% - 64rpx);
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
background: linear-gradient(90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
border-radius: 50rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 80rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.centerScoll{
|
||||
width: 100%;
|
||||
height: calc(87vh - 184rpx);
|
||||
}
|
||||
|
||||
.black {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.blackColor {
|
||||
color: #8E9AAB;
|
||||
}
|
||||
|
||||
.fontColor {
|
||||
color: #112950;
|
||||
}
|
||||
|
||||
.singCard {
|
||||
padding: 40rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
border: 2rpx solid #DCDEE0;
|
||||
font-size: 28rpx;
|
||||
color: #112950;
|
||||
|
||||
image {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.cardShadow {
|
||||
color: #3AAFB8;
|
||||
box-shadow: inset 0px 0px 12px 0px rgba(58, 175, 184, 0.8000);
|
||||
}
|
||||
.btnPostion{
|
||||
background: #E6EFF1;
|
||||
.next {
|
||||
line-height: 84rpx;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
background: #3AAFB8;
|
||||
border-radius: 42rpx;
|
||||
margin-bottom: 48rpx;
|
||||
}
|
||||
|
||||
.temporary {
|
||||
line-height: 84rpx;
|
||||
text-align: center;
|
||||
border-radius: 42rpx;
|
||||
border: 2rpx solid #DCDEE0;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,237 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" v-if="isShow" @touchmove.stop="">
|
||||
<view class="topPostionBg"></view>
|
||||
<view class="contioner">
|
||||
<view class="topCard bg-video">
|
||||
<view class="headSculpture">
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png"></image>
|
||||
</view>
|
||||
<view class="border text-center bg-video">
|
||||
<view class="top text-df text-bold">
|
||||
<text class="color">鲨鱼宝宝</text>
|
||||
<text class="cut"></text>
|
||||
<text>专属评估客服</text>
|
||||
</view>
|
||||
<view class="flex-conter margin-top-xs marginBottom">
|
||||
<view class="tag marginRight-xs">{{(cardRadio.length*15/60).toFixed(0)}}分钟</view>
|
||||
<view class="tag marginRight-xs">{{cardRadio.length}}题</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y :style="{'height':srcollHeight}" :scroll-top="scrollView" @scroll="scroll"
|
||||
scroll-with-animation>
|
||||
<view class="next" style="padding-top: 32rpx;"></view>
|
||||
<block v-for="(item,index) in cardRadio" :key="index">
|
||||
<view v-show="item.select">
|
||||
<!-- 单选样式 -->
|
||||
<view class="flex bg-video" style="margin-top: 32rpx;"
|
||||
v-if="item.id==1||item.id==3||item.id==4">
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png" class="avare"></image>
|
||||
<view class="color">
|
||||
<view class="introduce text-df">{{index + 1 }}: {{item.title}}</view>
|
||||
<view class="evaluation">
|
||||
<view class="text-df">单选</view>
|
||||
<block v-for="(item1,index1) in item.sonquestion" :key="index1">
|
||||
<view :class="['greyTag',item1.select?'shawDown':'']"
|
||||
@tap="selectChange(index,index1,item,item1)">
|
||||
<text class="text-bold">{{item1.level}}</text>
|
||||
<text class="tegWidth"></text>
|
||||
<text style="color: #3F4040;">{{item1.topic}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 单选 是否选项展示样式 -->
|
||||
<view class="flex bg-video" style="margin-top: 32rpx;" v-else>
|
||||
<image src="https://shayu5qny.yhy.ren/youngerSister.png" class="avare"></image>
|
||||
<view class="evaluation fontColor">
|
||||
<view class="text-df">{{index + 1 }}:{{item.title}}</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex bg-video" style="height: 60rpx;">
|
||||
<block v-for="(item1,index1) in item.sonquestion" :key="index1">
|
||||
<view :class="['flex-sub text-center',item1.select?'themColor':'']"
|
||||
@tap="selectChange(index,index1,item,item1)">
|
||||
<text style="line-height: 80rpx;">{{item1.topic}}</text>
|
||||
</view>
|
||||
</block>
|
||||
<view class="fenge"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex justify-end" :class="['quest'+index]" v-if="item.defaultValue!=null">
|
||||
<view class="rightLayOut">
|
||||
<view class="leftTag flex-sub">{{item.defaultValue}}</view>
|
||||
<image :src="userProfile" class="rightAvter"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view style="width: 100%;height: 100rpx;"></view>
|
||||
</scroll-view>
|
||||
<view class="bottomBtn" @tap="submit" v-if="isNext">生成评估报告</view>
|
||||
<!-- 返回底部 -->
|
||||
<view class="backBottom" @tap="goBottom" v-show="scrollGun<600&&isBottom">
|
||||
<image src="https://shayu5qny.yhy.ren/Frame.png"></image>
|
||||
<view class="text-sm themColor">返回底部</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isShow: false, //等待页面数据渲染完成
|
||||
isBottom: false, //是否显示返回底部按钮
|
||||
isNext: false,
|
||||
userProfile: '', //用户头像
|
||||
cardRadio: [], // 题目集合
|
||||
subject: [], //分数
|
||||
srcollHeight: "", //题目的高度
|
||||
scrollView: 0, //题目距离顶部的位置
|
||||
scrollGun: 0, //屏幕滚动的高度
|
||||
fixedHeight: 100000, //固定底部高度
|
||||
questionFive: null, //第五题
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
//获取元素高度
|
||||
Height() {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select(".next").boundingClientRect((data) => {
|
||||
// 得到高度
|
||||
this.srcollHeight = uni.getSystemInfoSync().windowHeight - data.top - 18 + "px";
|
||||
}).exec();
|
||||
},
|
||||
//点击获取下一题的距离
|
||||
questClass(index) {
|
||||
setTimeout(() => {
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select(".quest" + index).boundingClientRect((data) => {
|
||||
this.scrollView = parseInt(this.scrollGun + data.top - 82)
|
||||
}).exec();
|
||||
if (index > 3) {
|
||||
this.isBottom = true
|
||||
}
|
||||
}, 100)
|
||||
},
|
||||
scroll(e) {
|
||||
this.scrollGun = e.target.scrollTop
|
||||
},
|
||||
// 滚动到页面底部
|
||||
goBottom() {
|
||||
let num = this.fixedHeight++
|
||||
this.scrollView = num
|
||||
},
|
||||
// 获取问卷信息
|
||||
async getInfo() {
|
||||
showLoading('加载中...')
|
||||
let ret = await this.$SMOKE.questionSmokingList()
|
||||
this.userProfile = ret.data.avatar
|
||||
this.cardRadio = ret.data.list //获取总题目
|
||||
this.questionFive = this.cardRadio[4]
|
||||
this.cardRadio[0].select = true
|
||||
this.isShow = true
|
||||
// 获取题目列表高度
|
||||
setTimeout(() => {
|
||||
this.Height()
|
||||
}, 100)
|
||||
hideLoading()
|
||||
},
|
||||
// 提交保存
|
||||
submit() {
|
||||
if (this.$preventClick()) return
|
||||
if (this.cardRadio.length == 6) {
|
||||
let a = []
|
||||
this.cardRadio[4].sonquestion.map(item => {
|
||||
if (item.select) {
|
||||
a.push(item.select)
|
||||
}
|
||||
})
|
||||
if (a.length == 0) {
|
||||
return toast('请先回答第五题')
|
||||
}
|
||||
}
|
||||
let that = this;
|
||||
that.cardRadio.map((item, index) => {
|
||||
item.sonquestion.map((item1) => {
|
||||
if (item1.select) {
|
||||
that.subject.push(item1.score) // 获取每道题目的分数
|
||||
}
|
||||
})
|
||||
})
|
||||
let answers5 = 0
|
||||
let answers6 = ''
|
||||
if (this.cardRadio.length == 6) {
|
||||
answers5 = that.subject[4]
|
||||
answers6 = that.subject[5]
|
||||
} else {
|
||||
answers5 = 0
|
||||
answers6 = that.subject[4]
|
||||
}
|
||||
showLoading('提交中...')
|
||||
that.$SMOKE.smokingReportAdd({
|
||||
data: {
|
||||
answers1: that.subject[0], //第一题分数
|
||||
answers2: that.subject[1], //第二题分数
|
||||
answers3: that.subject[2], //第三题分数
|
||||
answers4: that.subject[3], //第四题分数
|
||||
answers5: answers5, //第五题分数
|
||||
answers6: answers6, //第六题分数
|
||||
user_code: uni.getStorageSync('userId'), //用户id
|
||||
}
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
hideLoading()
|
||||
uni.redirectTo({
|
||||
url: '/pages/quitSmoking/result/result?id=' + res.data.smokingReportId
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 选择问卷题目
|
||||
selectChange(index, index1, item, item1) {
|
||||
let that = this
|
||||
for (var i = 0; i < this.cardRadio[index].sonquestion.length; i++) {
|
||||
// 判断卡片选中哪一项
|
||||
if (i == index1) {
|
||||
this.$set(this.cardRadio[index].sonquestion[i], 'select', true)
|
||||
} else {
|
||||
this.$set(this.cardRadio[index].sonquestion[i], 'select', false)
|
||||
}
|
||||
}
|
||||
if (index == 0) {
|
||||
if (this.cardRadio[0].sonquestion[3].select) {
|
||||
this.cardRadio.splice(4, 1)
|
||||
} else {
|
||||
if (this.cardRadio.length != 6) {
|
||||
this.cardRadio.splice(4, 0, this.questionFive)
|
||||
this.cardRadio[4].select = true
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$set(this.cardRadio[index], 'defaultValue', item1.level + '.' + item1.topic)
|
||||
that.questClass(index)
|
||||
if (that.cardRadio.length - 1 != index) {
|
||||
that.cardRadio[index + 1].select = true
|
||||
} else {
|
||||
return that.isNext = true
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './question.scss';
|
||||
</style>
|
|
@ -1,146 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<image src="../static/images/fixedBg.png" class="fixedBg"></image>
|
||||
<view class="contioner bg-video">
|
||||
<view class="flex-align">
|
||||
<view>
|
||||
<view class="flex-contion">
|
||||
<image :src="formData.img" class="avare marginRight"></image>
|
||||
<view class="text-bold whiteColor">{{formData.name}}</view>
|
||||
</view>
|
||||
<view class="margin-top-xs whiteRgb">欢迎查看您的健康恢复评分</view>
|
||||
</view>
|
||||
<view class="whiteColor"><text class="eightSize">{{formData.score}}</text>分</view>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view class="text-bold text-lg">恢复评分详情</view>
|
||||
<view class="flex-align marginTop">
|
||||
<view class="greyBg text-center">
|
||||
<view class="bg-video text-center">
|
||||
<cmd-progress type="circle" :percent="formData.physiology" :width="60" :stroke-width="10"
|
||||
stroke-color="#3BDEB9" :showInfo="false"></cmd-progress>
|
||||
<view class="titlePoastion">
|
||||
<view class="text-sm">{{formData.physiology}}%</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-top-xs">生理烟瘾基本消除</view>
|
||||
</view>
|
||||
<view class="greyBg text-center">
|
||||
<view class="bg-video text-center">
|
||||
<cmd-progress type="circle" :percent="formData.psychology" :width="60" :stroke-width="10"
|
||||
stroke-color="#2780FE" :showInfo="false"></cmd-progress>
|
||||
<view class="titlePoastion">
|
||||
<view class="text-sm">{{formData.psychology}}%</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-top-xs">心理烟瘾基本消除</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view style="width: 100%;height: 30rpx;"></view> -->
|
||||
<block v-for="(item,index) in formData.scoreLists" :key="index">
|
||||
<view class="flex-align text-two marginTop-lg">
|
||||
<view>{{item.name}}</view>
|
||||
<view class="greyColor">{{item.value}}%</view>
|
||||
</view>
|
||||
<cmd-progress :percent="item.value" stroke-color="#3AAFB8" :show-info="false"></cmd-progress>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
formData: {},
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
if (option.time) {
|
||||
this.$SMOKE.healthRecoveryScore({
|
||||
data: {
|
||||
time: option.time
|
||||
},
|
||||
}).then(res => {
|
||||
this.formData = res.data
|
||||
})
|
||||
} else {
|
||||
this.$SMOKE.healthRecoveryScore().then(res => {
|
||||
this.formData = res.data
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
::v-deep .cmd-progress-inner{
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.fixedBg {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 504rpx;
|
||||
}
|
||||
|
||||
.contioner {
|
||||
padding: 32rpx;
|
||||
color: #17191A;
|
||||
|
||||
.whiteColor {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.eightSize {
|
||||
font-size: 80rpx;
|
||||
}
|
||||
|
||||
.whiteRgb {
|
||||
color: rgba(255, 255, 255, 0.60);
|
||||
}
|
||||
|
||||
.fontColor {
|
||||
color: #3F4040;
|
||||
}
|
||||
|
||||
.avare {
|
||||
$wh: 64rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
background: #FFF;
|
||||
border-radius: 20rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
.greyBg {
|
||||
padding: 22rpx 0 24rpx 0;
|
||||
width: 306rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #F8F8F8;
|
||||
.titlePoastion{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%,-50%);
|
||||
}
|
||||
}
|
||||
|
||||
.text-two {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,188 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/resultTop.png" class="resultTop"></image>
|
||||
<view class="contioner bg-video">
|
||||
<view class="card">
|
||||
<view class="text-bold">尼古丁依赖程度</view>
|
||||
<view class="flex margin-eight">
|
||||
<view class="flex-sub text-center bg-video flex-direction flex-conter">
|
||||
<view class="location" v-if="location==1">
|
||||
<view class="tagWidth">{{score}}分</view>
|
||||
<view class="tagSan"></view>
|
||||
</view>
|
||||
<view class="progressBg leftBG"></view>
|
||||
<view class="text-sm margin-top-xs">轻度</view>
|
||||
</view>
|
||||
<view class="flex-sub text-center bg-video flex-direction flex-conter">
|
||||
<view class="location" v-if="location==2">
|
||||
<view class="tagWidth">{{score}}分</view>
|
||||
<view class="tagSan"></view>
|
||||
</view>
|
||||
<view class="progressBg centerBG"></view>
|
||||
<view class="text-sm margin-top-xs">中度</view>
|
||||
</view>
|
||||
<view class="flex-sub text-center bg-video flex-direction flex-conter">
|
||||
<view class="location" v-if="location==3">
|
||||
<view class="tagWidth">{{score}}分</view>
|
||||
<view class="tagSan"></view>
|
||||
</view>
|
||||
<view class="progressBg rightBG"></view>
|
||||
<view class="text-sm margin-top-xs">重度</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="greyBg marginTop">{{result}}</view>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view class="text-bold">戒烟意见</view>
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="flex marginTop">
|
||||
<view class="tagYuan"></view>
|
||||
<view class="text-sm flex-sub title">{{item}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="btn" @tap="goHome">开启健康生活之旅</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
location: '',
|
||||
score: '',
|
||||
result: '',
|
||||
List: ['是时候考虑一辈子的吸烟费用了,你不妨按年算算花费。', '您也许会说出得起这笔钱,但您真的不在乎花大笔的金钱破坏自己的生活吗。']
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$SMOKE.getById({
|
||||
data: {
|
||||
id: option.id //报告id
|
||||
}
|
||||
}).then((res) => {
|
||||
if (res.data.smokingReportScore <= 3) {
|
||||
this.location = 1
|
||||
} else if (res.data.smokingReportScore <= 6) {
|
||||
this.location = 2
|
||||
} else {
|
||||
this.location = 3
|
||||
}
|
||||
this.score = res.data.smokingReportScore
|
||||
this.result = res.data.smokingReportLevel
|
||||
this.List = res.data.smokingReportDesc.split(';')
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 返回戒烟主页
|
||||
goHome() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/quitSmoking/index/index?userId=' + uni.getStorageSync('userId')+"&openId="+uni.getStorageSync("openId")
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pageBox {
|
||||
color: #3F4040;
|
||||
|
||||
.resultTop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 686rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.contioner {
|
||||
padding: 112rpx 32rpx 32rpx;
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
background: #FFF;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.margin-eight {
|
||||
margin-top: 104rpx;
|
||||
}
|
||||
|
||||
.progressBg {
|
||||
width: 100%;
|
||||
height: 12rpx;
|
||||
}
|
||||
|
||||
.leftBG {
|
||||
border-radius: 50rpx 0 0 50rpx;
|
||||
background: #5DACB6;
|
||||
}
|
||||
|
||||
.centerBG {
|
||||
background: #F3B43F;
|
||||
}
|
||||
|
||||
.rightBG {
|
||||
border-radius: 0 50rpx 50rpx 0;
|
||||
background: #ED6D42;
|
||||
}
|
||||
|
||||
.location {
|
||||
position: absolute;
|
||||
bottom: 66rpx;
|
||||
|
||||
.tagWidth {
|
||||
padding: 2rpx 8rpx;
|
||||
font-size: 20rpx;
|
||||
color: #FFF;
|
||||
background: #17191A;
|
||||
border-radius: 4rpx;
|
||||
}
|
||||
|
||||
.tagSan {
|
||||
margin-left: 14rpx;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 16rpx solid #17191A;
|
||||
border-right: 10rpx solid transparent;
|
||||
border-left: 10rpx solid transparent;
|
||||
border-bottom: 0 solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.greyBg {
|
||||
padding: 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #F8F8F8;
|
||||
font-size: 28rpx;
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.tagYuan {
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
margin-right: 8rpx;
|
||||
margin-top: 12rpx;
|
||||
border-radius: 50%;
|
||||
background: $uni-color;
|
||||
}
|
||||
|
||||
.title {
|
||||
letter-spacing: 4rpx;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
line-height: 84rpx;
|
||||
text-align: center;
|
||||
background: linear-gradient(90deg, #36AAB1 0%, #6ACBD1 100%);
|
||||
color: #FFF;
|
||||
border-radius: 50rpx;
|
||||
margin-top: 48rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,59 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="container">
|
||||
<view class="tagWidth"></view>
|
||||
<markdown-it-vue-light class="md-body" :content="value" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MarkdownIt from "markdown-it"
|
||||
import MarkdownItVueLight from 'markdown-it-vue/dist/markdown-it-vue-light.umd.min.js'
|
||||
import 'markdown-it-vue/dist/markdown-it-vue-light.css'
|
||||
export default {
|
||||
components: {
|
||||
MarkdownItVueLight
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
value: '',
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.value = JSON.parse(decodeURIComponent(option.params.replace(/%/g, '%25')))
|
||||
this.$SMOKE.smokingSecretAdd({
|
||||
data: {
|
||||
studyId: option.secretId
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pageBox {
|
||||
background: linear-gradient(180deg, #F9E8D8 0%, #F3F4F6 400rpx);
|
||||
padding: 32rpx;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
padding: 32rpx;
|
||||
color: #3F4040;
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
|
||||
.tagWidth {
|
||||
position: absolute;
|
||||
top: 58rpx;
|
||||
left: 24rpx;
|
||||
width: 116rpx;
|
||||
height: 10rpx;
|
||||
background: linear-gradient(270deg, rgba(253, 198, 116, 0.00) 0%, #FF9A02 100%);
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,135 +0,0 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="container">
|
||||
<view class="topCard">
|
||||
<view class="title orange">{{formDate.title}}</view>
|
||||
<view class="margintop-four text-df orange">{{formDate.tipOne}}</view>
|
||||
<image class="tagLeft" src="https://sharkbaby.yhy.ren/groups.png"></image>
|
||||
<image class="tagRight" src="https://sharkbaby.yhy.ren/groups.png"></image>
|
||||
</view>
|
||||
<view class="card margintop-four">
|
||||
<view class="text-xl text-bold">戒烟解读</view>
|
||||
<block v-for="(item,index) in formDate.directoryInfos" :key="index">
|
||||
<view class="orangeBg margintop-four flex-align">
|
||||
<view class="text-df flex-sub marginRight-eight">
|
||||
<view class="marginBottom-sm">{{index+1}}.{{item.title}}</view>
|
||||
<view class="flex-contion text-xs">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/eyes.png" class="eyes"></image>
|
||||
<view class="grey">{{item.numberOfPeople}}人学习过</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" @tap="goPage(item)">学习</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
formDate: {},
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.index = parseInt(options.index)
|
||||
},
|
||||
onShow() {
|
||||
this.$SMOKE.cheatsList().then(res => {
|
||||
this.formDate = res.data[this.index]
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goPage(item) {
|
||||
const instruction = JSON.stringify(item.instruction)
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/scriptsDetail/scriptsDetail?params=' + encodeURIComponent(
|
||||
instruction) + '&secretId=' + item.secretId
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.container {
|
||||
padding: 32rpx;
|
||||
color: #3F4040;
|
||||
|
||||
|
||||
.topCard {
|
||||
position: relative;
|
||||
padding: 40rpx 24rpx 32rpx;
|
||||
border-radius: 16rpx;
|
||||
background: linear-gradient(#F8EBE2 0%, #fff 100%);
|
||||
$width: 12rpx;
|
||||
$height: 56rpx;
|
||||
|
||||
.tagLeft {
|
||||
position: absolute;
|
||||
bottom: -38rpx;
|
||||
left: 48rpx;
|
||||
width: $width;
|
||||
height: $height;
|
||||
}
|
||||
|
||||
.tagRight {
|
||||
position: absolute;
|
||||
bottom: -38rpx;
|
||||
right: 48rpx;
|
||||
width: $width;
|
||||
height: $height;
|
||||
}
|
||||
|
||||
.orange {
|
||||
color: #724030;
|
||||
line-height: 48rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 40rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
|
||||
.orangeBg {
|
||||
padding: 32rpx 24rpx;
|
||||
border: 1rpx solid rgba(251, 235, 212, 1);
|
||||
background: #FEF9F6;
|
||||
border-radius: 16rpx;
|
||||
|
||||
.marginRight-eight {
|
||||
margin-right: 48rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 124rpx;
|
||||
line-height: 48rpx;
|
||||
text-align: center;
|
||||
border-radius: 32rpx;
|
||||
background: #ED7143;
|
||||
color: #FFF;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.eyes {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.grey {
|
||||
color: #909292;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,104 +0,0 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="container">
|
||||
<view class="topCard">
|
||||
<view class="title orange">戒烟秘籍说明提示</view>
|
||||
<view class="margintop-four text-df orange">
|
||||
在看本方法时,无需刻意戒烟,可以边看边吸,一切遵循内心,不要企图我会告诉你:吸烟会让你得冠心病、心脑血管病疾病、高血压、糖尿病、肺癌……如果告诉你这些有用,我相信早你就戒了,全世界也不会有这么多烟民了。
|
||||
</view>
|
||||
</view>
|
||||
<view class="card margintop-four">
|
||||
<view class="text-xl text-bold">戒烟科普</view>
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="orangeBg margintop-four flex-align">
|
||||
<view class="text-df flex-sub marginRight-eight">
|
||||
<view class="marginBottom-sm">
|
||||
{{item.title}}<text>({{item.completed}}/{{item.unfinished}})</text>
|
||||
</view>
|
||||
<cmd-progress :percent="item.completed/item.unfinished*100" stroke-color="#ED7143"
|
||||
:show-info="false"></cmd-progress>
|
||||
</view>
|
||||
<view class="btn" @tap="goPage(index)">解读</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
List: [],
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$SMOKE.cheatsList().then(res => {
|
||||
this.List = res.data
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
goPage(index) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/scriptsLearn/scriptsLearn?index=' + index
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.container {
|
||||
padding: 32rpx;
|
||||
color: #3F4040;
|
||||
|
||||
::v-deep .cmd-progress-inner {
|
||||
background-color: #FBEBD4;
|
||||
}
|
||||
|
||||
.topCard {
|
||||
padding: 40rpx 24rpx 32rpx;
|
||||
border-radius: 16rpx;
|
||||
background: linear-gradient(#F8EBE2 0%, #fff 100%);
|
||||
|
||||
.orange {
|
||||
color: #724030;
|
||||
line-height: 48rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 40rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
|
||||
.orangeBg {
|
||||
padding: 32rpx 24rpx;
|
||||
border: 1rpx solid rgba(251, 235, 212, 1);
|
||||
background: #FEF9F6;
|
||||
border-radius: 16rpx;
|
||||
|
||||
.marginRight-eight {
|
||||
margin-right: 48rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 124rpx;
|
||||
line-height: 48rpx;
|
||||
text-align: center;
|
||||
border-radius: 32rpx;
|
||||
background: #ED7143;
|
||||
color: #FFF;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,164 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox" :class="{'show':isShow}">
|
||||
<view class="contioner" v-if="List.length>0">
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view class="card marginTop">
|
||||
<view class="flex">
|
||||
<view class="union">
|
||||
<image src="https://sharkbaby.yhy.ren/jinhao.png"></image>
|
||||
</view>
|
||||
<view class="flex-sub word-break">
|
||||
<view class="text-bold">{{item.title}}</view>
|
||||
<view class="text-df title">{{item.content}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view class="greyColor text-sm">{{item.createTime}}</view>
|
||||
<view class="tagWidth flex-conter" @tap="shanchu(item.id)">
|
||||
<uni-icons type="trash-filled" color="#FF4545" size="18"></uni-icons>
|
||||
<text>删除</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<nothing v-else></nothing>
|
||||
<view class="fixedTag" @tap="goComment">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/send.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isShow: false,
|
||||
List: [],
|
||||
pageNum: 1,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getInfo()
|
||||
},
|
||||
onReachBottom() {
|
||||
this.pageNum++
|
||||
this.$SMOKE.smokingDiaryList({
|
||||
data: {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: 10
|
||||
}
|
||||
}).then(res => {
|
||||
this.List = this.List.length < res.total ? this.List.concat(res.rows) : this.List
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getInfo(val) {
|
||||
this.$SMOKE.smokingDiaryList().then(res => {
|
||||
this.List = res.rows
|
||||
this.isShow = true
|
||||
})
|
||||
},
|
||||
goComment() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/content/content'
|
||||
})
|
||||
},
|
||||
shanchu(id) {
|
||||
toast('删除成功')
|
||||
this.$SMOKE.smokingDiaryDelete({
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.getInfo('删除')
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pageBox {
|
||||
opacity: 0;
|
||||
transition: opacity ease .3s;
|
||||
|
||||
&.show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.contioner {
|
||||
padding: 8rpx 32rpx;
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #FFF;
|
||||
|
||||
.word-break {
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.union {
|
||||
$wh: 28rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin-right: 12rpx;
|
||||
|
||||
image {
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-top: 16rpx;
|
||||
letter-spacing: 6rpx;
|
||||
line-height: 48rpx;
|
||||
color: #3F4040;
|
||||
}
|
||||
|
||||
.cut {
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #eee;
|
||||
margin: 24rpx 0 33rpx;
|
||||
}
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
color: #FF4545;
|
||||
font-size: 24rpx;
|
||||
width: 118rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 8rpx;
|
||||
border: 2rpx solid rgba(255, 69, 69, 0.40);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fixedTag {
|
||||
position: fixed;
|
||||
bottom: 70rpx;
|
||||
right: 32rpx;
|
||||
|
||||
image {
|
||||
$wh: 104rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,245 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contioner">
|
||||
<view class="card marginTop">
|
||||
<view class="flex-align">
|
||||
<view>最后吸烟日</view>
|
||||
<picker mode="date" :start="birth" :end="cuttDate" :value="date" @change="bindDateChange">
|
||||
<view :class="['flex-contion',date==''?'greyColor':'']">
|
||||
{{date==''?'请选择':date}}
|
||||
<uni-icons type="right" color="#3AAFB8" size="22"></uni-icons>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view>最后吸烟时间</view>
|
||||
<picker mode="time" :value="time" @change="bindTimeChange">
|
||||
<view :class="['flex-contion',time==''?'greyColor':'']">
|
||||
{{time==''?'请选择':time}}
|
||||
<uni-icons type="right" color="#3AAFB8" size="22"></uni-icons>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 70rpx;">烟龄</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="smokerAge" placeholder="请输入" type="number" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs">(年)</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 100rpx;">吸烟量</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="smokingVolume" placeholder="请输入" type="number" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs" style="min-width: 86rpx;">(支/天)</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 70rpx;">烟价</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="cigarettePrice" placeholder="请输入" type="digit" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs" style="min-width: 118rpx;">(20支/包)</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 120rpx;">焦油含量</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="tar" placeholder="请输入" type="digit" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs" style="min-width: 116rpx;">(毫克/支)</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 200rpx;">吸一支烟的时间</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="smokerTime" placeholder="请输入" type="digit" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs" style="min-width: 76rpx;">(分钟)</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view style="min-width: 200rpx;">曾尝试戒烟几次</view>
|
||||
<view class="flex-contion">
|
||||
<input v-model="smokerNum" placeholder="请输入" type="number" class="text-df text-right" />
|
||||
<text class="greyColor marginLeft-xs">(次)</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="placeholder"></view>
|
||||
<view class="btnList">
|
||||
<view class="btn" @tap="submit">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
toast,
|
||||
formatTime,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
date: '', //最后吸烟日
|
||||
time: '', //最后吸烟时间
|
||||
smokerAge: '', //烟龄
|
||||
smokingVolume: '', //吸烟量
|
||||
cigarettePrice: '', //烟价
|
||||
tar: '', //焦油含量
|
||||
smokerTime: '', //吸一支烟的时间
|
||||
smokerNum: '', //曾尝试戒烟几次
|
||||
cuttDate: formatTime(new Date()).split(" ")[0], // 年月日
|
||||
timeDate: formatTime(new Date()).split(" ")[1], //时分秒
|
||||
birth: '', //出生日期
|
||||
age: '', //年龄
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.birth = options.birth //出生日期
|
||||
this.age = options.age //年龄
|
||||
},
|
||||
methods: {
|
||||
//开始戒烟
|
||||
submit() {
|
||||
if (this.date == '' || this.time == '' || this.smokerAge == '' || this.smokingVolume == '' ||
|
||||
this.cigarettePrice == '' || this.tar == '' || this.smokerTime == '' || this
|
||||
.smokerNum == '') return toast('请先填写完整')
|
||||
if (this.date == this.cuttDate && this.time > this.timeDate) return uni.showToast({
|
||||
icon: 'none',
|
||||
title: '最后吸烟时间不能晚于当前时间',
|
||||
duration: 3000
|
||||
})
|
||||
if (this.smokingVolume == 0) return toast('吸烟量为零,无需戒烟')
|
||||
if (this.cigarettePrice == 0) return toast('烟价不能为零')
|
||||
if (this.tar == 0) return toast('焦油含量不能为零')
|
||||
if (this.smokerTime == 0) return toast('吸一支烟的时间不能为零')
|
||||
// 只允许输入整数的正则表达式
|
||||
const reg = /^\d*$/;
|
||||
if (!reg.test(this.smokerAge)) {
|
||||
return toast('烟龄只能输入整数')
|
||||
}
|
||||
if (!reg.test(this.smokingVolume)) {
|
||||
return toast('吸烟量只能输入整数')
|
||||
}
|
||||
// 只允许输入两位小数的正则表达式
|
||||
const rege = /^\d+(\.\d{0,2})?$/;
|
||||
if (!rege.test(this.cigarettePrice)) {
|
||||
return toast('烟价只能输入两位小数')
|
||||
}
|
||||
// 只允许输入一位小数的正则表达式
|
||||
const regex = /^\d+(\.\d{0,1})?$/;
|
||||
if (!regex.test(this.tar)) {
|
||||
return toast('焦油含量只能输入一位小数')
|
||||
}
|
||||
if (!regex.test(this.smokerTime)) {
|
||||
return toast('吸一支烟的时间只能输入一位小数')
|
||||
}
|
||||
if (!reg.test(this.smokerNum)) {
|
||||
return toast('曾尝试戒烟几次只能输入整数')
|
||||
}
|
||||
if (Number(this.smokerAge) > Number(this.age)) return toast('烟龄不大于年龄')
|
||||
var data = {
|
||||
smokingDate: this.date + " " + this.time + ":00",
|
||||
smokingAge: this.smokerAge,
|
||||
smokingAmount: this.smokingVolume,
|
||||
smokingPrices: this.cigarettePrice,
|
||||
smokingTarContent: this.tar,
|
||||
smokingAmountTime: this.smokerTime,
|
||||
smokingQuitTimes: this.smokerNum
|
||||
}
|
||||
this.$SMOKE.userSmokingAdd({
|
||||
data,
|
||||
}).then(res => {
|
||||
if(res.code == 200){
|
||||
if(res.data && res.data > 0){
|
||||
toast(res.data + '积分已到账')
|
||||
}else{
|
||||
toast('保存成功')
|
||||
}
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 2000)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 最后吸烟日
|
||||
bindDateChange(e) {
|
||||
this.date = e.detail.value
|
||||
},
|
||||
// 最后吸烟时间
|
||||
bindTimeChange(e) {
|
||||
this.time = e.detail.value
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.contioner {
|
||||
padding: 40rpx 32rpx;
|
||||
color: #3F4040;
|
||||
|
||||
.rightColor {
|
||||
color: #17191A;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
background: #FFF;
|
||||
border-radius: 20rpx;
|
||||
font-size: 28rpx;
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.cut {
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #E9E9E9;
|
||||
margin: 32rpx 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
height: 100rpx;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
}
|
||||
|
||||
.btnList {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 10rpx rgba(0, 0, 0, .1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 110rpx;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
.btn {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
background-color: $uni-color;
|
||||
border-radius: 40rpx;
|
||||
flex: 1;
|
||||
margin: 0 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,128 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/slice.png" class="cheatsTop"></image>
|
||||
<view class="content bg-video">
|
||||
<view class="bg-video">
|
||||
<view class="topTitle">
|
||||
<view class="top">戒烟秘籍</view>
|
||||
<view class="zhojian">
|
||||
本人有近20年的吸烟历史,吸烟给我的生活、工作、身体带来了很多的痛苦和烦恼,我曾尝试过靠毅力戒烟、逐步减量法戒烟、用电子烟替代戒烟等多种方法,但最终都以失败告终。
|
||||
</view>
|
||||
<view class="zhoxia">
|
||||
直到有一天,我遇到了湘雅附二的一位心血管科的教授,他教给了我一本戒烟武林秘籍,让我成功的摆脱了香烟。
|
||||
</view>
|
||||
<view class="zhoxia">
|
||||
我将方法进行了总结,希望能给准备戒烟或正在戒烟的朋友们提供一些帮助。
|
||||
</view>
|
||||
<view class="zhoxia">
|
||||
本方法具备:即时见效、无论烟瘾轻重,同样有效、无痛苦、不需要意志力、不适用冲击疗法、无需辅助手段或替代品、效果持久稳定等特征。
|
||||
</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/shuxie.png" mode="widthFix" class="imgClass">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/cheatsBi.png" mode="widthFix" class="cheatsBi"></image>
|
||||
<view class="flex-conter cheatsBtn" @tap="goMIiji">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/cheatsBtn.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/cheatsBottom.png" class="cheatsBottom"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goMIiji() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/scriptsList/scriptsList'
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.pageBox {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: #FED9A2;
|
||||
}
|
||||
|
||||
.cheatsTop {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 200rpx;
|
||||
height: 164rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 72rpx 8rpx 0 32rpx;
|
||||
color: #724030;
|
||||
z-index: 10;
|
||||
|
||||
.topTitle {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 72rpx;
|
||||
line-height: 50rpx;
|
||||
|
||||
.top {
|
||||
text-align: center;
|
||||
font-size: 56rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.zhojian {
|
||||
margin-top: 64rpx;
|
||||
padding: 0 40rpx;
|
||||
font-size: 28rpx;
|
||||
text-indent: 2rem;
|
||||
}
|
||||
|
||||
.zhoxia {
|
||||
margin-top: 40rpx;
|
||||
padding: 0 40rpx;
|
||||
font-size: 28rpx;
|
||||
text-indent: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.imgClass {
|
||||
width: 100%;
|
||||
height: 1184rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.cheatsBi {
|
||||
margin-top: -122rpx;
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.cheatsBottom {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
height: 254rpx;
|
||||
}
|
||||
|
||||
.cheatsBtn {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 36rpx;
|
||||
z-index: 10;
|
||||
|
||||
image {
|
||||
width: 494rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
Before Width: | Height: | Size: 242 KiB |
|
@ -1,225 +0,0 @@
|
|||
<template>
|
||||
<view class="pageBox">
|
||||
<view class="contioner">
|
||||
<view class="topSelect flex-align">
|
||||
<block v-for="(item,index) in List" :key="index">
|
||||
<view :class="['flex-sub text-df text-center',dateIndex==index?'shaw':'']"
|
||||
@tap="selectChange(index)">
|
||||
{{item}}
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view>连续记录数</view>
|
||||
<view class="tag"></view>
|
||||
<view class="charts-box">
|
||||
<qiun-data-charts type="column" :opts="opts" :chartData="chartData" :ontouch="true" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="card marginTop">
|
||||
<view class="flex-align marginBottom">
|
||||
<view class="flex-contion">
|
||||
<view class="tagWidth"></view>
|
||||
<view>烟瘾记录</view>
|
||||
</view>
|
||||
<view class="themColor text-six">平均:{{num}}次/{{this.dateIndex==0?'天':'月'}}</view>
|
||||
</view>
|
||||
<block v-for="(item,index) in recodeList" :key="index">
|
||||
<view class="flex-align">
|
||||
<view class="text-df">{{item.time}}</view>
|
||||
<view class="greyColor text-xs">
|
||||
<text class="themColor text-bold text-eight marginRight-xs">{{item.num}}</text>次
|
||||
</view>
|
||||
</view>
|
||||
<view class="cut" v-if="index<recodeList.length-1"></view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
showLoading,
|
||||
hideLoading
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
List: ['周', '月'],
|
||||
dateIndex: 0, //顶部切换索引
|
||||
chartData: {},
|
||||
num: '', //多少次/天
|
||||
recodeList: [{
|
||||
time: '凌晨00:00 ~ 02:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '凌晨03:00 ~ 05:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '早上06:00 ~ 08:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '上午09:00 ~ 11:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '中午12:00 ~ 14:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '下午15:00~17:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '晚上18:00~20:59',
|
||||
num: '',
|
||||
}, {
|
||||
time: '晚上21:00~23:59',
|
||||
num: '',
|
||||
}], //记录
|
||||
opts: {
|
||||
color: ["#3AAFB8"],
|
||||
enableScroll: true,
|
||||
legend: {
|
||||
show: false
|
||||
},
|
||||
dataLabel: false,
|
||||
xAxis: {
|
||||
rotateLabel: true,
|
||||
marginTop: 10,
|
||||
disableGrid: true,
|
||||
scrollShow: true,
|
||||
itemCount: 7,
|
||||
scrollShow: false,
|
||||
},
|
||||
extra: {
|
||||
column: {
|
||||
type: "group",
|
||||
width: 20
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
getInfo() {
|
||||
showLoading('加载中...')
|
||||
this.$SMOKE.cartogram({
|
||||
data: {
|
||||
type: this.dateIndex
|
||||
},
|
||||
}).then(res => {
|
||||
this.num = res.data.averageHeat
|
||||
this.recodeList[0].num = res.data.recode.zerototwo
|
||||
this.recodeList[1].num = res.data.recode.threetofive
|
||||
this.recodeList[2].num = res.data.recode.sixtoeight
|
||||
this.recodeList[3].num = res.data.recode.ninetoeleven
|
||||
this.recodeList[4].num = res.data.recode.twelvetofourteen
|
||||
this.recodeList[5].num = res.data.recode.fifteentoseventeen
|
||||
this.recodeList[6].num = res.data.recode.eighteentotwenty
|
||||
this.recodeList[7].num = res.data.recode.twentyone
|
||||
this.getServerData(res.data.timeList, res.data.infoList)
|
||||
hideLoading()
|
||||
})
|
||||
},
|
||||
selectChange(index) {
|
||||
this.dateIndex = index
|
||||
this.getInfo()
|
||||
},
|
||||
getServerData(timeList, infoList) {
|
||||
let res = {
|
||||
categories: timeList,
|
||||
series: [{
|
||||
name: "",
|
||||
data: infoList
|
||||
}]
|
||||
};
|
||||
this.chartData = JSON.parse(JSON.stringify(res));
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.pageBox {
|
||||
color: #3F4040;
|
||||
|
||||
.themColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.text-six {
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.text-eight {
|
||||
font-size: 48rpx;
|
||||
}
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.contioner {
|
||||
padding: 40rpx 32rpx;
|
||||
|
||||
.topSelect {
|
||||
margin-top: 20rpx;
|
||||
height: calc(64rpx - 8rpx);
|
||||
padding: 4rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 16rpx;
|
||||
background: #EEE;
|
||||
|
||||
.shaw {
|
||||
width: 226rpx;
|
||||
height: 100%;
|
||||
border-radius: 16rpx;
|
||||
background: #FFF;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 32rpx 24rpx;
|
||||
background: #FFF;
|
||||
border-radius: 20rpx;
|
||||
|
||||
.tag {
|
||||
width: 28rpx;
|
||||
height: 4rpx;
|
||||
border-radius: 50rpx;
|
||||
background: #3F4040;
|
||||
margin-left: 68rpx;
|
||||
margin-top: 6rpx;
|
||||
}
|
||||
|
||||
.charts-box {
|
||||
width: 100%;
|
||||
height: 600rpx;
|
||||
}
|
||||
|
||||
.tagWidth {
|
||||
width: 6rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 50rpx;
|
||||
background: $uni-color;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.cut {
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #E9E9E9;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,216 +0,0 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="contioner">
|
||||
<view class="card">
|
||||
<view class="flex-conter">
|
||||
欢迎来到
|
||||
<view class="dateWidth">
|
||||
<uni-datetime-picker v-model="single" :start="cuttDate" type="date" :clear-icon="false"
|
||||
@change="maskClick">
|
||||
{{single}}
|
||||
</uni-datetime-picker>
|
||||
</view>
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/dateTime.png" class="dateTime"></image>
|
||||
</view>
|
||||
<view class="zanwu">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/shiguang.png"></image>
|
||||
</view>
|
||||
<view class="text-center blueColor">{{dataInfo.quitSmokeTime}}</view>
|
||||
<view class="cut"></view>
|
||||
<view class="flex-align">
|
||||
<view class="text-center flex-grow">
|
||||
<view>
|
||||
<!-- 寿命 时间 -->
|
||||
<text class="text-bold fourSize">{{dataInfo.lifetime}}</text>
|
||||
<text class="text-xs greyColor marginLeft-four">小时</text>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/love.png" class="love"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">寿命</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tagCut"></view>
|
||||
<view class="text-center flex-grow">
|
||||
<view>
|
||||
<!-- 少吸 支 -->
|
||||
<text class="text-bold fourSize">{{dataInfo.smokeLess}}</text>
|
||||
<text class="text-xs greyColor marginLeft-four">支</text>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/branch.png" class="branch"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">少吸</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tagCut"></view>
|
||||
<view class="text-center flex-grow">
|
||||
<view>
|
||||
<!-- 省钱 元 -->
|
||||
<text class="text-bold fourSize">{{dataInfo.saveMoney}}</text>
|
||||
<text class="text-xs greyColor marginLeft-four">元</text>
|
||||
</view>
|
||||
<view class="flex-conter">
|
||||
<image src="https://shayu5qny.yhy.ren/quitSmoking/first.png" class="first"></image>
|
||||
<text class="text-xs greyColor marginLeft-xs">省钱</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 评分 -->
|
||||
<view class="flex-align marginTop-lg" @tap="goPage">
|
||||
<view class="text-sm">健康恢复评分:<text class="themColor text-xl text-bold">{{dataInfo.score}}</text>
|
||||
</view>
|
||||
<view class="text-sm text-bold">· · ·</view>
|
||||
</view>
|
||||
<cmd-progress :percent="dataInfo.percentage" :showInfo="false"
|
||||
stroke-color="linear-gradient(to right, #36AAB1, #6ACBD1)">
|
||||
</cmd-progress>
|
||||
<view class="text-xs greyColor margin-top-xs">生理烟瘾基本消除:{{dataInfo.percentage}}%</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
formatTime,
|
||||
} from "/tool/index.js"
|
||||
export default {
|
||||
data() {
|
||||
const currentDate = this.getDate({
|
||||
format: true
|
||||
})
|
||||
return {
|
||||
single: currentDate,
|
||||
dataInfo: {},
|
||||
cuttDate: formatTime(new Date()).split(" ")[0], // 年月日
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
getInfo() {
|
||||
this.$SMOKE.timeTravel({
|
||||
data: {
|
||||
time: this.single + ' 00:00:00'
|
||||
},
|
||||
}).then(res => {
|
||||
this.dataInfo = res.data
|
||||
})
|
||||
},
|
||||
getDate(type) {
|
||||
const date = new Date();
|
||||
let year = date.getFullYear() + 20;
|
||||
let month = date.getMonth() + 1;
|
||||
let day = date.getDate();
|
||||
|
||||
if (type === 'start') {
|
||||
year = year - 60;
|
||||
} else if (type === 'end') {
|
||||
year = year + 2;
|
||||
}
|
||||
month = month > 9 ? month : '0' + month;
|
||||
day = day > 9 ? day : '0' + day;
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
maskClick() {
|
||||
this.getInfo()
|
||||
},
|
||||
goPage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/quitSmoking/recoveryScore/recoveryScore?time=' + this.single
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.contioner {
|
||||
padding: 32rpx;
|
||||
|
||||
.card {
|
||||
padding: 64rpx 24rpx 32rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #FFF;
|
||||
color: #3F4040;
|
||||
|
||||
.fontColor {
|
||||
color: #17191A;
|
||||
}
|
||||
|
||||
.greyColor {
|
||||
color: #909292;
|
||||
}
|
||||
|
||||
.themColor {
|
||||
color: $uni-color;
|
||||
}
|
||||
|
||||
.blueColor {
|
||||
color: #3B74E2;
|
||||
}
|
||||
|
||||
.dateTime {
|
||||
$wh: 40rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
|
||||
.dateWidth {
|
||||
width: 180rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.zanwu {
|
||||
$wh: 512rpx;
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
margin: 0 auto -48rpx;
|
||||
margin-top: 28rpx;
|
||||
|
||||
image {
|
||||
width: $wh;
|
||||
height: $wh;
|
||||
}
|
||||
}
|
||||
|
||||
.cut {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: #EEE;
|
||||
margin: 48rpx 0;
|
||||
}
|
||||
|
||||
.tagCut {
|
||||
width: 1rpx;
|
||||
height: 80rpx;
|
||||
background: #CCE0E1;
|
||||
}
|
||||
|
||||
.love {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.branch {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.first {
|
||||
width: 48rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.diot {
|
||||
width: 30rpx;
|
||||
height: 6rpx;
|
||||
}
|
||||
|
||||
.marginLeft-four {
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -202,7 +202,7 @@
|
|||
this.userName = options.name //名称
|
||||
// 查询是否有暂存数据
|
||||
this.temporaryAata()
|
||||
this.selectIntegral()
|
||||
|
||||
},
|
||||
// 页面销毁前暂存问卷
|
||||
beforeDestroy() {
|
||||
|
@ -212,16 +212,16 @@
|
|||
},
|
||||
methods: {
|
||||
// 查询是否有积分奖励
|
||||
selectIntegral() {
|
||||
this.$API.selectTaskIntegral({
|
||||
data: {
|
||||
assessIds: this.diseases, //本次评估病种
|
||||
typeId: 1, //查询类型id 1疾病
|
||||
}
|
||||
}).then(res => {
|
||||
this.integral = res.data
|
||||
})
|
||||
},
|
||||
// selectIntegral() {
|
||||
// this.$API.selectTaskIntegral({
|
||||
// data: {
|
||||
// assessIds: this.diseases, //本次评估病种
|
||||
// typeId: 1, //查询类型id 1疾病
|
||||
// }
|
||||
// }).then(res => {
|
||||
// this.integral = res.data
|
||||
// })
|
||||
// },
|
||||
//点击获取下一题的距离
|
||||
questClass(index) {
|
||||
this.queShow = index + 1 //暂存问卷题目索引
|
||||
|
@ -724,9 +724,6 @@
|
|||
})
|
||||
hideLoading()
|
||||
if (reg.code == 200) {
|
||||
if(reg.data.points && reg.data.points > 0){
|
||||
toast(reg.data.points + "积分已到账")
|
||||
}
|
||||
setTimeout(() => {
|
||||
uni.redirectTo({
|
||||
url: '/pages/scanCodeEvaluation/health-risks/basicReport/basicReport?age=' + this.age + '&name=' + this.userName
|
||||
|
@ -776,9 +773,6 @@
|
|||
}
|
||||
})
|
||||
if(ret.code == 200){
|
||||
if(ret.data.points && ret.data.points > 0){
|
||||
toast(ret.data.points + "积分已到账")
|
||||
}
|
||||
}
|
||||
},
|
||||
// 继续填写
|
||||
|
|