...
|
...
|
@@ -38,7 +38,10 @@ |
|
|
<view class="select" v-if="petList==''" @click="goLogin">
|
|
|
请选择宠物
|
|
|
</view>
|
|
|
<view class="uni-input" v-else>{{petList[petIndex].name}}</view>
|
|
|
<view class="uni-input" v-else>
|
|
|
{{petName}}
|
|
|
</view>
|
|
|
<!-- <view class="uni-input" v-else>{{petList[petIndex].name}}</view> -->
|
|
|
<image src="../../static/image/xuanze_icon@2x.png" style="width: 12rpx;height: 12rpx;margin: 12rpx 0 0 12rpx;"
|
|
|
mode=""></image>
|
|
|
</view>
|
...
|
...
|
@@ -71,17 +74,17 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
<view class='date-box'>
|
|
|
<view v-for="(item,index) in dateArr" :key="index" :class="faqingList.indexOf(item.isToday)!==-1 ?'faqing':earlyList.indexOf(item.isToday)!==-1?'early':middleList.indexOf(item.isToday)!==-1?'middle':lateList.indexOf(item.isToday)!==-1?'lateDate':sbDate.indexOf(item.isToday)!==-1?'shengbing':yimiao.indexOf(item.isToday)!==-1?'yimiao':today==item.isToday?'today':''"
|
|
|
<view v-for="(item,index) in dateArr" :key="index" :class="faqingList.indexOf(item.isToday)!==-1 ?'faqing':earlyList.indexOf(item.isToday)!==-1?'early':middleList.indexOf(item.isToday)!==-1?'middle':lateList.indexOf(item.isToday)!==-1?'lateDate':sbDate.indexOf(item.isToday)!==-1?'shengbing':expectList.indexOf(item.isToday)!==-1?'yuchan':yimiao.indexOf(item.isToday)!==-1?'yimiao':today==item.isToday?'today':''"
|
|
|
:data-faqing='faqing'>
|
|
|
<view class='date-head' @click='lookHuoDong' :data-year='year' :data-month='month' :data-datenum='item.dateNum'
|
|
|
style="position: relative;">
|
|
|
<view :class="ymd==item.isToday?'acred date-head':'date-head'" @click='lookHuoDong' :data-year='year'
|
|
|
:data-month='month' :data-datenum='item.dateNum' style="position: relative;">
|
|
|
<view v-if="item.dateNum">{{item.dateNum}}
|
|
|
<view class="" style="position: absolute;top: 82rpx;font-size: 20rpx;width: 26px;display: flex;align-items: center;color: #FF8936;"
|
|
|
v-if="today==item.isToday">
|
|
|
今日
|
|
|
</view>
|
|
|
<view class="" v-if="sbDate.indexOf(item.isToday)!==-1">
|
|
|
<image src="/static/image/shengbing_icon@2x%20(1).png" mode="" :class="sbDate.indexOf(item.isToday)!==-1&&yimiao.indexOf(item.isToday)==-1&&faqingList.indexOf(item.isToday)!==-1&&earlyList.indexOf(item.isToday)==-1&&middleList.indexOf(item.isToday)==-1&&lateList.indexOf(item.isToday)==-1?'fallIcon1':'fallIcon'"></image>
|
|
|
<image src="../../static/image/shengbing_icon.png" mode="" :class="sbDate.indexOf(item.isToday)!==-1&&yimiao.indexOf(item.isToday)==-1&&faqingList.indexOf(item.isToday)!==-1&&earlyList.indexOf(item.isToday)==-1&&middleList.indexOf(item.isToday)==-1&&lateList.indexOf(item.isToday)==-1?'fallIcon1':'fallIcon'"></image>
|
|
|
</view>
|
|
|
<view v-if="yimiao.indexOf(item.isToday)!==-1">
|
|
|
<image src="/static/image/yimiao_icon@2x.png" mode="" :class="yimiao.indexOf(item.isToday)!==-1&&sbDate.indexOf(item.isToday)==-1?'vanniceIcon1':'vanniceIcon2'"></image>
|
...
|
...
|
@@ -96,7 +99,7 @@ |
|
|
<scroll-view scroll-x="true" class="colorBox scroll-view_H">
|
|
|
<view class="colorItem">
|
|
|
<view class="" style="display: flex;align-items: center;">
|
|
|
<image src="/static/image/shengbing_icon@2x.png" mode="" style="width:32rpx;height:32rpx;margin-right:10rpx;"></image>
|
|
|
<image src="../../static/image/shengbing_icon@2x.png" mode="" style="width:32rpx;height:32rpx;margin-right:10rpx;"></image>
|
|
|
生病
|
|
|
</view>
|
|
|
</view>
|
...
|
...
|
@@ -133,9 +136,15 @@ |
|
|
<view class="colorItem" style="margin-right: 22rpx;">
|
|
|
<view class="" style="display: flex;align-items: center;">
|
|
|
<view class="circle5 circlePublic">
|
|
|
|
|
|
</view>
|
|
|
孕后期
|
|
|
孕中后期
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="colorItem" style="margin-right: 22rpx;">
|
|
|
<view class="" style="display: flex;align-items: center;">
|
|
|
<view class="circle6 circlePublic">
|
|
|
</view>
|
|
|
预产期
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
...
|
...
|
@@ -153,7 +162,7 @@ |
|
|
<switch @change="switch1Change" :checked="heat" style="transform: scale(0.7,0.7)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pickerItem" v-if="perShow!=1">
|
|
|
<view class="pickerItem" v-if="heat">
|
|
|
<view class="">
|
|
|
配种
|
|
|
</view>
|
...
|
...
|
@@ -161,6 +170,12 @@ |
|
|
<switch @change="switch2Change" :checked="peizhong" style="transform: scale(0.7,0.7)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pickerItem" v-if="heat&&peizhong">
|
|
|
<view class="">
|
|
|
配种记录
|
|
|
</view>
|
|
|
<image src="/static/image/arrow.png" mode="" @click="dreedingRecord"></image>
|
|
|
</view>
|
|
|
<view class="pickerItem">
|
|
|
<view class="">
|
|
|
生病
|
...
|
...
|
@@ -169,12 +184,7 @@ |
|
|
<switch @change="switch3Change" :checked="shengbing" style="transform: scale(0.7,0.7)" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pickerItem" v-if="peizhong">
|
|
|
<view class="">
|
|
|
配种记录
|
|
|
</view>
|
|
|
<image src="/static/image/arrow.png" mode="" @click="dreedingRecord"></image>
|
|
|
</view>
|
|
|
|
|
|
<view class="pickerItem">
|
|
|
<view class="">
|
|
|
食量
|
...
|
...
|
@@ -188,11 +198,11 @@ |
|
|
温度
|
|
|
</view>
|
|
|
<view style="display:flex;align-items: center;">
|
|
|
<picker @change="bindPickerChangeWd" data-item="arrayWd" :value="indexWd" :range="arrayWd">
|
|
|
<picker mode="multiSelector" @change="bindMultiPickerChange" @columnchange="bindMultiPickerColumnChange" :value="multiIndex"
|
|
|
:range="multiArray">
|
|
|
<view class="select">
|
|
|
{{showWendu}}
|
|
|
</view>
|
|
|
<!-- <view v-else class="uni-input">{{arrayWd[indexWd]}}</view> -->
|
|
|
</picker>
|
|
|
<image src="/static/image/arrow.png" mode=""></image>
|
|
|
</view>
|
...
|
...
|
@@ -221,7 +231,7 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
<view class="selectText">
|
|
|
<input type="text" value="" placeholder="请输入体长" v-model="tcInput" @input="bindInputTc" style="text-align: right;" />
|
|
|
<input type="digit" value="" placeholder="请输入体长" v-model="tcInput" @input="bindInputTc" style="text-align: right;" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pickerItem">
|
...
|
...
|
@@ -233,7 +243,7 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
<view class="selectText">
|
|
|
<input type="text" value="" placeholder="请输入体重" v-model="tzInput" @input="bindInputTz" style="text-align: right;" />
|
|
|
<input type="digit" value="" placeholder="请输入体重" v-model="tzInput" @input="bindInputTz" style="text-align: right;" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pickerItem">
|
...
|
...
|
@@ -285,7 +295,6 @@ |
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import amap from '../../utils/amap-wx.js'
|
|
|
import request from '../../utils/request.js'
|
...
|
...
|
@@ -296,6 +305,9 @@ |
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
multiArray: [['35', '36','37', '38','39', '40','41', '42','43'], ['0','1', '2', '3', '4', '5','6', '7', '8', '9']],
|
|
|
multiIndex: [0, 0, 0],
|
|
|
petName:'',//宠物名字
|
|
|
perShow:0,
|
|
|
isShowWenDu:true,
|
|
|
qing:'',
|
...
|
...
|
@@ -342,22 +354,30 @@ |
|
|
slInput:'',
|
|
|
tcInput:'',
|
|
|
tzInput:'',
|
|
|
arrayWd: ['35','35.1','35.2','35.3','35.4','35.5','35.6','35.7','35.8','35.9','36','36.1','36.2','36.3','36.4','36.5','36.6','36.7','36.8','36.9','37','37.1','37.2','37.3','37.4','37.5','37.6','37.7','37.8','37.9',
|
|
|
'38','38.1','38.2','38.3','38.4','38.5','38.6','38.7','38.8','38.9','39','39.1','39.2','39.3','39.4','39.5','39.6','39.7','39.8','39.9','40','40.1','40.2','40.3','40.4','40.5','40.6','40.7','40.8','40.9',
|
|
|
'41','41.1','41.2','41.3','41.4','41.5','41.6','41.7','41.8','41.9','42','42.1','42.2','42.3','42.4','42.5','42.6','42.7','42.8','42.9','43','43.1','43.2','43.3','43.4','43.5','43.6','43.7','43.8','43.9','44','44.1','44.2','44.3','44.4','44.5','44.6','44.7','44.8','44.9',],
|
|
|
indexWd: '',
|
|
|
disease:'',
|
|
|
symptomList:'', //症状
|
|
|
textareaInput:'', //备注
|
|
|
faceIndex:-1,//表情字段
|
|
|
faceIndex:'',//表情字段
|
|
|
showWendu:'请选择温度',
|
|
|
//显示id
|
|
|
sysId:{},
|
|
|
//自定义汉字
|
|
|
cuList:{}
|
|
|
cuList:'',
|
|
|
//当前时间
|
|
|
dataTime:this.getTime(),
|
|
|
ymd:''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
bindMultiPickerChange (e) {
|
|
|
this.indexWd=this.multiArray[0][e.detail.value[0]]+'.'+this.multiArray[1][e.detail.value[1]]
|
|
|
this.showWendu=this.multiArray[0][e.detail.value[0]]+'.'+this.multiArray[1][e.detail.value[1]]
|
|
|
},
|
|
|
|
|
|
bindMultiPickerColumnChange (e) {
|
|
|
console.log(e);
|
|
|
// 知道修改的列以后,就可以通过修改multiIndex中对应元素的值,然后再修改multiArray
|
|
|
},
|
|
|
goweight(){
|
|
|
uni.navigateTo({
|
|
|
url:'/pages/index/weight-norm'
|
...
|
...
|
@@ -412,7 +432,7 @@ |
|
|
//保存
|
|
|
save(){
|
|
|
let postData={
|
|
|
time:this.getTime(),
|
|
|
time:this.dataTime,
|
|
|
p_id:this.petId,
|
|
|
eat:this.slInput,
|
|
|
temperature:this.showWendu,
|
...
|
...
|
@@ -423,14 +443,15 @@ |
|
|
energy:this.faceIndex,
|
|
|
note:this.textareaInput,
|
|
|
is_breeding:this.peizhong?2:1,
|
|
|
symptom:this.cuList.toString(),
|
|
|
// is_confirm:this.peizhong?2:1,
|
|
|
symptom:this.cuList,
|
|
|
is_rut:this.heat?2:1
|
|
|
}
|
|
|
request.postRequest('/api/Index/recordEdit',postData,data=>{
|
|
|
if(data.code==1){
|
|
|
uni.removeStorageSync('parData');
|
|
|
uni.removeStorageSync('custom');
|
|
|
uni.removeStorageSync('xiShow');
|
|
|
uni.removeStorageSync('anShow');
|
|
|
uni.showToast({
|
|
|
title:'保存成功'
|
|
|
})
|
...
|
...
|
@@ -474,10 +495,53 @@ |
|
|
this.today=today.replace(/-/g,'')
|
|
|
},
|
|
|
lookHuoDong: function(e) {
|
|
|
console.log(e)
|
|
|
var month = e.currentTarget.dataset.month < 10 ? '0' + e.currentTarget.dataset.month : e.currentTarget.dataset.month
|
|
|
let that =this
|
|
|
let mon=e.currentTarget.dataset.month+1
|
|
|
var month = mon < 10 ? '0' +mon :mon
|
|
|
var date = e.currentTarget.dataset.datenum
|
|
|
var YMD = e.currentTarget.dataset.year + '-' + month + '-' + date;
|
|
|
var ymd = e.currentTarget.dataset.year + month + date;
|
|
|
that.dataTime=YMD
|
|
|
console.log(ymd)
|
|
|
that.ymd=ymd
|
|
|
// dateArr.forEach((item,index)=>{
|
|
|
// if(ymd==item){
|
|
|
|
|
|
// }
|
|
|
// })
|
|
|
let paramData={
|
|
|
date:YMD,
|
|
|
p_id:this.petId
|
|
|
}
|
|
|
request.postRequest('/api/Index/index',paramData,data=>{
|
|
|
let pei =uni.getStorageSync('xiShow')
|
|
|
if(pei){
|
|
|
that.peizhong=pei
|
|
|
}else{
|
|
|
let info = data.data.list;
|
|
|
let pets =data.data.pet
|
|
|
that.faqingList=data.data.rut
|
|
|
that.symptomList=info?info.symptom:''
|
|
|
that.sbDate=data.data.sick
|
|
|
that.yimiao=data.data.vaccine
|
|
|
that.sysId=info?info.symptom_id:''
|
|
|
// that.symptom=info?info.symptom:''
|
|
|
that.slInput=info?info.eat:''
|
|
|
that.tcInput=info?info.length:''
|
|
|
that.tzInput=info?info.weight:''
|
|
|
that.peizhong=pets?(pets.is_breeding==1? false :true):false
|
|
|
that.heat=pets?(pets.rut==1? true :false):false
|
|
|
that.shengbing=info?(info.is_sick==1? false :true):false
|
|
|
that.textareaInput=info?info.note:''
|
|
|
that.earlyList=data.data.pregnant_one
|
|
|
that.middleList=data.data.pregnant_two
|
|
|
that.lateList=data.data.pregnant_three
|
|
|
that.expectList=data.data.pregnant_four
|
|
|
that.showWendu=info&&info.temperature?info.temperature:'请选择温度'
|
|
|
that.faceIndex=info?info.energy:''
|
|
|
this.perShow=data.data.per
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
dateInit: function(setYear, setMonth) {
|
|
|
let _this = this;
|
...
|
...
|
@@ -486,7 +550,6 @@ |
|
|
let arrLen = 0; //dateArr的数组长度
|
|
|
let now = setYear ? new Date(setYear, setMonth) : new Date();
|
|
|
let year = setYear || now.getFullYear();
|
|
|
|
|
|
let nextYear = 0;
|
|
|
let month = setMonth || now.getMonth(); //没有+1方便后面计算当月总天数
|
|
|
let nextMonth = (month + 1) > 11 ? 1 : (month + 1);
|
...
|
...
|
@@ -544,40 +607,42 @@ |
|
|
},
|
|
|
switch1Change: function (e) {
|
|
|
let that =this
|
|
|
console.log(e)
|
|
|
let data= e.detail.value
|
|
|
if(e){
|
|
|
if(data){
|
|
|
let paramData={
|
|
|
time:that.getTime(),
|
|
|
p_id:that.petId,
|
|
|
type:1
|
|
|
}
|
|
|
request.postRequest('/api/Index/rutEdit',paramData,data=>{
|
|
|
console.log('打开开关'+data)
|
|
|
that.getPetInfo()
|
|
|
that.dateInit()
|
|
|
})
|
|
|
this.getPetInfo();
|
|
|
}else{
|
|
|
}
|
|
|
if(!data){
|
|
|
let paramData={
|
|
|
time:that.getTime(),
|
|
|
p_id:that.petId,
|
|
|
type:2
|
|
|
}
|
|
|
request.postRequest('/api/Index/rutEdit',paramData,data=>{
|
|
|
console.log('关闭开关'+data)
|
|
|
that.getPetInfo()
|
|
|
that.dateInit()
|
|
|
})
|
|
|
this.getPetInfo();
|
|
|
}
|
|
|
this.heat=e.target.value
|
|
|
that.heat=e.target.value
|
|
|
},
|
|
|
switch2Change: function (e) {
|
|
|
this.peizhong=e.target.value
|
|
|
},
|
|
|
uni.setStorageSync('xiShow',e.target.value)
|
|
|
},
|
|
|
switch3Change: function (e) {
|
|
|
this.shengbing=e.target.value
|
|
|
},
|
|
|
bindPickerPet: function(e) {
|
|
|
this.petIndex = e.target.value;
|
|
|
this.petId=this.petList[this.petIndex].id
|
|
|
uni.setStorageSync('u_id',this.petList[this.petIndex].id)
|
|
|
this.getPetInfo();
|
|
|
this.dateInit();
|
|
|
uni.removeStorageSync('parData');
|
...
|
...
|
@@ -601,30 +666,37 @@ |
|
|
p_id:this.petId
|
|
|
}
|
|
|
request.postRequest('/api/Index/index',param,data=>{
|
|
|
let info = data.data.list;
|
|
|
that.faqingList=data.data.rut
|
|
|
that.symptomList=info?info.symptom:''
|
|
|
that.sbDate=data.data.sick
|
|
|
that.yimiao=data.data.vaccine
|
|
|
that.sysId=info?info.symptom_id:''
|
|
|
that.symptom=info?info.symptom:''
|
|
|
that.slInput=info?info.eat:''
|
|
|
that.tcInput=info?info.length:''
|
|
|
that.tzInput=info?info.weight:''
|
|
|
that.peizhong=info?(info.is_breeding==1? false :true):false
|
|
|
that.heat=info?(info.is_rut==1? false :true):false
|
|
|
that.shengbing=info?(info.is_sick==1? false :true):false
|
|
|
that.textareaInput=info?info.note:''
|
|
|
that.earlyList=data.data.pregnant_one
|
|
|
that.middleList=data.data.pregnant_two
|
|
|
that.lateList=data.data.pregnant_three
|
|
|
that.expectList=data.data.pregnant_four
|
|
|
that.showWendu=info&&info.temperature?info.temperature:'请选择温度'
|
|
|
that.faceIndex=info?info.energy:''
|
|
|
this.perShow=data.data.per
|
|
|
if(data.data.pet.is_confirm==1){
|
|
|
this.showModalT()
|
|
|
let pei =uni.getStorageSync('xiShow')
|
|
|
if(pei){
|
|
|
that.peizhong=pei
|
|
|
}else{
|
|
|
this.petName=data.data.pet.pet_name;
|
|
|
let info = data.data.list;
|
|
|
that.faqingList=data.data.rut
|
|
|
that.symptomList=info?info.symptom:''
|
|
|
that.sbDate=data.data.sick
|
|
|
that.yimiao=data.data.vaccine
|
|
|
that.sysId=info?info.symptom_id:''
|
|
|
// that.symptom=info?info.symptom:''
|
|
|
that.slInput=info?info.eat:''
|
|
|
that.tcInput=info?info.length:''
|
|
|
that.tzInput=info?info.weight:''
|
|
|
that.peizhong=data.data.pet?(data.data.pet.is_breeding==1 ? false :true):false
|
|
|
that.heat=data.data.pet.rut==1?true:false
|
|
|
that.shengbing=info?(info.is_sick==1? false :true):false
|
|
|
that.textareaInput=info?info.note:''
|
|
|
that.earlyList=data.data.pregnant_one
|
|
|
that.middleList=data.data.pregnant_two
|
|
|
that.lateList=data.data.pregnant_three
|
|
|
that.expectList=data.data.pregnant_four
|
|
|
that.showWendu=info&&info.temperature?info.temperature:'请选择温度'
|
|
|
that.faceIndex=info?info.energy:''
|
|
|
this.perShow=data.data.per
|
|
|
if(data.data.pet.is_confirm==1&&data.data.per==0){
|
|
|
this.showModalT()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
})
|
|
|
},
|
|
|
bindPickerChangeZl: function(e) {
|
...
|
...
|
@@ -639,10 +711,6 @@ |
|
|
bindInputTc: function(e) {
|
|
|
this.tcInput= e.detail.value
|
|
|
},
|
|
|
bindPickerChangeWd: function(e) {
|
|
|
this.indexWd = e.target.value;
|
|
|
this.showWendu=this.arrayWd[this.indexWd]
|
|
|
},
|
|
|
bindTextAreaBlur: function (e) {
|
|
|
this.textareaInput=e.detail.value
|
|
|
},
|
...
|
...
|
@@ -684,7 +752,6 @@ |
|
|
})
|
|
|
},1500)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
//症状
|
|
|
diseases(){
|
...
|
...
|
@@ -701,12 +768,22 @@ |
|
|
if (res.confirm) {
|
|
|
let postData={
|
|
|
time:that.getTime(),
|
|
|
p_id:that.petId,
|
|
|
is_confirm:2
|
|
|
p_id:that.petId
|
|
|
}
|
|
|
//确认配种
|
|
|
request.postRequest('/api/Index/confirm',postData,data=>{
|
|
|
|
|
|
that.getPetInfo()
|
|
|
let paramData={
|
|
|
time:this.getTime(),
|
|
|
p_id:this.petId,
|
|
|
type:2
|
|
|
}
|
|
|
//关闭发情
|
|
|
request.postRequest('/api/Index/rutEdit',paramData,data=>{
|
|
|
that.getPetInfo()
|
|
|
})
|
|
|
})
|
|
|
|
|
|
} else if (res.cancel) {
|
|
|
console.log('用户点击取消');
|
|
|
}
|
...
|
...
|
@@ -784,6 +861,17 @@ |
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
let Show = uni.getStorageSync('anShow')
|
|
|
let u_id=uni.getStorageSync('u_id')
|
|
|
if(!Show){
|
|
|
if(u_id){
|
|
|
this.petId=u_id
|
|
|
this.getPetInfo()
|
|
|
this.dateInit()
|
|
|
}
|
|
|
}else{
|
|
|
this.petId=u_id
|
|
|
}
|
|
|
let token= uni.getStorageSync('token')
|
|
|
//宠物列表
|
|
|
if(token){
|
...
|
...
|
@@ -795,38 +883,38 @@ |
|
|
}
|
|
|
this.isShowWenDu=this.tqWedu <20 ?true:false;
|
|
|
this.userData.address=uni.getStorageSync('address');
|
|
|
let symlist=uni.getStorageSync('parData');
|
|
|
let cuslist=uni.getStorageSync('custom');
|
|
|
let sysId=symlist.map(x=>{
|
|
|
if(x.id!=undefined){
|
|
|
return x.id
|
|
|
}
|
|
|
})
|
|
|
let DataId=sysId.filter(x=>{
|
|
|
return x!=undefined
|
|
|
})
|
|
|
this.sysId=DataId.toString()
|
|
|
let symlist=uni.getStorageSync('parData');
|
|
|
let cuslist=uni.getStorageSync('custom');
|
|
|
let sysIds=symlist.map(x=>{
|
|
|
if(x.id!=undefined){
|
|
|
return x.id
|
|
|
}
|
|
|
})
|
|
|
//自定义症状
|
|
|
this.cuList=cuslist
|
|
|
//选中的症状id
|
|
|
this.sysId=sysIds.toString()
|
|
|
let list = symlist.map(x=>{
|
|
|
if(x.id!=undefined){
|
|
|
return x.title
|
|
|
}
|
|
|
})
|
|
|
let ListTitle= list.filter(x=>{
|
|
|
return x!=undefined
|
|
|
})
|
|
|
let ziList=cuslist.map(x=>{
|
|
|
return x
|
|
|
})
|
|
|
console.log(ziList.toString())
|
|
|
let zList=ziList.toString();
|
|
|
this.cuList=ziList.toString()
|
|
|
this.symptomList=ListTitle.concat(zList)
|
|
|
let sysDataList=list.toString();
|
|
|
//把症状名称拼接后
|
|
|
this.symptomList=sysDataList.concat(cuslist)
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
@import url("/common/uni.css");
|
|
|
@import url("/common/index.css");
|
|
|
@import url("/common/rili.css");
|
|
|
.acred{
|
|
|
border: 1rpx solid red;
|
|
|
width: 88rpx;
|
|
|
height: 80rpx;
|
|
|
border-radius: 16rpx;
|
|
|
}
|
|
|
</style> |
...
|
...
|
|