You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cesuan/pages/yishi/yishi.vue

575 lines
12 KiB

1 year ago
<template>
<view class="page">
<view class="box_1">
<view class="box_2">
<view class="nav-bar_1">
<view @click="goback" class="arr-right">&lt;&lt;&lt;</view>
<view class="arr-left">衣食住行</view>
</view>
</view>
<view class="box_5">
<text v-if="info.id==1" lines="1" decode="true" class="text_10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</text>
<text v-if="info.id==2" lines="1" decode="true" class="text_10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</text>
<text v-if="info.id==3" lines="1" decode="true" class="text_10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</text>
<text v-if="info.id==4" lines="1" decode="true" class="text_10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</text>
<view v-if="info" :class="'section_1-'+info.id">
<view class="text-wrapper_2">
<text lines="1" decode="true" class="text_11">{{info.jiexi[0]}}</text>
</view>
<view class="text-wrapper_3">
<text lines="1" class="paragraph_1">{{info.jiexi[1]}}</text>
</view>
<view class="section_2">
<view :class="'tag_'+info.id">
<text lines="1" class="paragraph_2">{{info.name}}</text>
</view>
<view class="text-wrapper_4">
<view lines="1" class="text_12"><view>{{info.jiexi[2]}}</view></view>
<view lines="1" class="text_13"><view>{{info.jiexi[3]}}</view> </view>
<view lines="1" class="text_14"><view>{{info.jiexi[4]}}</view></view>
</view>
</view>
<view class="text-wrapper_5">
<text lines="1" class="text_15">{{info.jiexi[5]}}</text>
</view>
<view class="text-wrapper_6">
<text lines="1" class="text_16">{{info.jiexi[6]}}</text>
</view>
</view>
<view class="text-wrapper_7">
<text lines="1" decode="true" class="text_17">&gt;&gt;&gt;&nbsp;建议经常吃</text>
<text lines="1" class="paragraph_3">{{info.changchi}}<br/></text>
<text lines="1" decode="true" class="paragraph_4"><br/>&gt;&gt;&gt;&nbsp;适合居住楼层:&nbsp;</text>
<text lines="1" class="paragraph_5">{{info.floor}}<br/><br/></text>
<text lines="1" decode="true" class="text_18">&gt;&gt;&gt;&nbsp;睡觉头朝方向:&nbsp;</text>
<text lines="1" class="text_19">{{info.fang_xiang}}</text>
</view>
</view>
</view>
<tabBar class="tab-bar_1" currenttype="2" displaytype="2">
</tabBar >
</view>
</template>
<script>
import tabBar from '@/components/tabbar'
import * as YYApi from '@/api/yingyong'
export default {
components: {
tabBar
},
onLoad(options)
{
this.currentdate = options.datetime;
this.timetype = options.timetype;
console.log(this.currentdate);
this.getDatainfo();
},
data() {
return {
date:'',
time:'',
timetype:1,
info:{},
currentdate:''
}
},
methods: {
goback()
{
this.$navTo('pages/yingyong/yingyong')
},
getDatainfo()
{
var app =this;
YYApi.yishires({time_type:this.timetype,time:this.currentdate})
.then(result => {
if(result.code==403)
{
// app.$toast('请升级会员等级')
// setTimeout(function(){app.$navTo('pages/yingyong/yingyong')},800)
}
else
{
this.info = result.data;
console.log(this.info);
}
})
},
}
}
</script>
<style>
.page {
background-color: rgba(255,255,255,1.000000);
position: relative;
width: 750rpx;
overflow: hidden;
display: flex;
flex-direction: column;
padding-bottom: 160rpx;
}
.box_1 {
position: relative;
width: 750rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.box_2 {
width: 750rpx;
display: flex;
flex-direction: column;
}
.box_3 {
width: 651rpx;
height: 22rpx;
flex-direction: row;
display: flex;
margin: 43rpx 0 0 70rpx;
}
.text_1 {
width: 56rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(0,0,0,1);
font-size: 28rpx;
font-family: SFProText-Semibold;
font-weight: 600;
text-align: center;
white-space: nowrap;
line-height: 28rpx;
margin-top: 1rpx;
}
.image_1 {
width: 32rpx;
height: 20rpx;
margin: 1rpx 0 0 475rpx;
}
.image_2 {
width: 29rpx;
height: 20rpx;
margin-left: 9rpx;
}
.box_4 {
height: 22rpx;
margin-left: 9rpx;
display: flex;
flex-direction: column;
width: 41rpx;
}
.block_1 {
background-color: rgba(0,0,0,1.000000);
border-radius: 2rpx;
width: 34rpx;
height: 14rpx;
display: flex;
flex-direction: column;
margin: 4rpx 0 0 4rpx;
}
.text_2 {
width: 368rpx;
height: 40rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 40rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 40rpx;
margin: 33rpx 0 0 81rpx;
}
.image_3 {
width: 120rpx;
height: 46rpx;
margin: 11rpx 0 0 17rpx;
}
.image_4 {
width: 118rpx;
height: 46rpx;
margin: 12rpx 17rpx 0 0;
}
.text-wrapper_1 {
width: 297rpx;
height: 23rpx;
flex-direction: row;
display: flex;
margin: 48rpx 0 26rpx 222rpx;
}
.text_3 {
width: 22rpx;
height: 23rpx;
overflow-wrap: break-word;
color: rgba(128,127,128,1);
font-size: 24rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text_4 {
width: 19rpx;
height: 22rpx;
overflow-wrap: break-word;
color: rgba(128,127,128,1);
font-size: 24rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
margin: 1rpx 0 0 112rpx;
}
.text_5 {
width: 16rpx;
height: 21rpx;
overflow-wrap: break-word;
color: rgba(128,127,128,1);
font-size: 24rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
margin: 2rpx 0 0 128rpx;
}
.text_9 {
width: 38rpx;
height: 19rpx;
overflow-wrap: break-word;
color: rgba(121,121,121,1);
font-size: 20rpx;
font-family: FZLTKHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 20rpx;
margin: 8rpx 0 0 1rpx;
}
.image_5 {
position: absolute;
left: 25rpx;
top: 346rpx;
width: 704rpx;
height: 1010rpx;
}
.box_5 {
display: flex;
flex-direction: column;
margin:0 auto;
background-color: #eee;
border-radius: 10rpx;
padding:30rpx;
}
.text_10 {
height: 26rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 26rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 26rpx;
margin: 68rpx auto 0 auto;
}
.section_1-1,.section_1-2,.section_1-3,.section_1-4 {
height: 899rpx;
width: 658rpx;
margin: 46rpx auto 0 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
padding:26rpx 20rpx;
}
.section_1-1
{
background: url(../../static/yishi/2.png) 100% no-repeat;
background-size: 100% 100%;
}
.section_1-2
{
background: url(../../static/yishi/3.png) 100% no-repeat;
background-size: 100% 100%;
}
.section_1-3
{
background: url(../../static/yishi/4.png) 100% no-repeat;
background-size: 100% 100%;
}
.section_1-4
{
background: url(../../static/yishi/5.png) 100% no-repeat;
background-size: 100% 100%;
}
.text-wrapper_2 {
height: 78rpx;
display: flex;
flex-direction: row;
margin: 0 0 0 132rpx;
align-items: center;
}
.text_11 {
height: 24rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text-wrapper_3 {
height: 74rpx;
display: flex;
flex-direction: row;
margin: 52rpx 0 0 174rpx;
align-items: center;
}
.paragraph_1 {
width: 460rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
line-height: 26rpx;
}
.section_2 {
width: 620rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 56rpx 0 0 8rpx;
}
.tag_1,.tag_2,.tag_3,.tag_4 {
height: 264rpx;
margin-top: 12rpx;
display: flex;
flex-direction: column;
width: 78rpx;
}
.tag_1
{
background: url(../../static/yishi/bg1-1.png) 100% no-repeat;
background-size: 100% 100%;
}
.tag_2
{
background: url(../../static/yishi/3-1.png) 100% no-repeat;
background-size: 100% 100%;
}
.tag_3
{
background: url(../../static/yishi/4-1.png) 100% no-repeat;
background-size: 100% 100%;
}
.tag_4
{
background: url(../../static/yishi/5-1.png) 100% no-repeat;
background-size: 100% 100%;
}
.paragraph_2 {
width: 54rpx;
height: 260rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 55rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 55rpx;
display: flex;
align-items: center;
margin: 0 0 0 11rpx;
}
.text-wrapper_4 {
width: 440rpx;
display: flex;
flex-direction: column;
}
.text_12 {
height: 70rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
display: flex;
align-items: center;
}
.text_13 {
height: 70rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
margin: 56rpx 0 0 15rpx;
display: flex;
align-items: center;
}
.text_14 {
height: 74rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
margin: 62rpx 0 0 9rpx;
display: flex;
align-items: center;
}
.text-wrapper_5 {
height: 76rpx;
display: flex;
flex-direction: row;
margin: 52rpx 0 0 186rpx;
align-items: center;
}
.text_15 {
height: 24rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text-wrapper_6 {
width: 242rpx;
height:74rpx;
display: flex;
flex-direction: row;
margin: 54rpx 0 0 124rpx;
align-items: center;
}
.text_16 {
width: 242rpx;
height: 23rpx;
overflow-wrap: break-word;
color: rgba(255,255,255,1);
font-size: 24rpx;
font-family: HYb2gj;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text-wrapper_7 {
width: 620rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
line-height: 28rpx;
margin: 50rpx auto 54rpx auto;
}
.text_17 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
}
.paragraph_3 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(29, 32, 136, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
}
.paragraph_4 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
}
.paragraph_5 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 28rpx;
font-family: FZZDHJW--GB1-0;
font-weight: bold;
text-align: left;
}
.text_18 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
}
.text_19 {
width: 588rpx;
height: 161rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 28rpx;
font-family: FZZDHJW--GB1-0;
font-weight: bold;
text-align: left;
}
</style>