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/chengu/chengu.vue

477 lines
10 KiB

1 year ago
<template>
<view class="page">
<view class="section_1">
<view class="nav-bar_1">
<view @click="goback" class="arr-right">&lt;&lt;&lt;</view>
<view class="arr-left">称骨算命</view>
</view>
</view>
<view class="section_3">
<text lines="1" decode="true" class="paragraph_1">姓名{{info.username}}<br/>性别{{info.sex}}<br/>公历生辰{{info.gong_li.year}}{{info.gong_li.month}}{{info.gong_li.day}}{{info.gong_li.hour}}(北京时间)<br/>农历生辰{{info.nong_li.year}}{{info.nong_li.month}}{{info.nong_li.day}}{{info.nong_li.hour}}<br/>八字如下</text>
<img src="../../static/chengu/chengu1.png" class="image_3"/>
<view class="text-wrapper_1">
<text lines="1" class="paragraph_2">{{info.ba_zi.year}}</text>
<text lines="1" class="paragraph_3">{{info.ba_zi.month}}</text>
<text lines="1" class="paragraph_4">{{info.ba_zi.day}}</text>
<text lines="1" class="paragraph_5">{{info.ba_zi.hour}}</text>
</view>
<text lines="1" class="text_3">你的个人命运</text>
<view class="block_2">
<view class="image-wrapper_1">
</view>
<view class="text-wrapper_2">
<text lines="1" class="paragraph_6">命运总评<br/></text>
<text lines="1" decode="true" class="paragraph_7"><br/>{{info.gu.individual}}<br/><br/></text>
<text lines="1" class="paragraph_8">个人命运详解<br/></text>
<text lines="1" class="paragraph_9"><br/></text>
<text lines="1" class="paragraph_10">{{info.gu.overall_review}}<br/></text>
</view>
</view>
</view>
<view class="section_4">
<view class="group_2">
<view class="text-wrapper_3">
<text lines="1" class="text_4">骨重</text>
<text lines="1" decode="true" class="text_5">{{info.gu.weight_text}}</text>
</view>
</view>
<view class="group_3">
<view class="text-wrapper_4">
<view class="guzhong-v">{{info.gu.year_weight}}</view>
<text lines="1" class="text_7"></text>
<view class="guzhong-v">{{info.gu.month_weight}}</view>
<text lines="1" class="text_8"></text>
<view class="guzhong-v">{{info.gu.day_weight}}</view>
<text lines="1" class="text_9"></text>
<view class="guzhong-v">{{info.gu.hour_weight}}</view>
</view>
<text lines="1" class="text_10"></text>
</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
},
data() {
return {
info:{}
}
},
onLoad(options) {
// 当前页面参数
this.options = options
// 加载页面数据
this.setCurrentdate();
},
methods: {
goback()
{
this.$navTo('pages/yingyong/yingyong')
},
setCurrentdate()
{
YYApi.chengures({time_type:this.options.rili,username:this.options.name,time:this.options.date +" "+ this.options.time+":00",sex:this.options.ganer})
.then(result => {
this.info = result.data;
console.log(this.info);
})
}
}
}
</script>
<style lang="scss" scoped>
.page {
background-color: rgba(255,255,255,1.000000);
position: relative;
width: 750rpx;
overflow: hidden;
display: flex;
flex-direction: column;
padding-bottom: 100rpx;
}
.section_1 {
width: 750rpx;
height: 180rpx;
display: flex;
flex-direction: column;
}
.block_1 {
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;
}
.section_2 {
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;
}
.nav-bar_1 {
height: 93rpx;
display: flex;
width: 750rpx;
margin: 26rpx 0 47rpx 0;
color: rgba(230,0,18,1);
font-size: 40rpx;
padding:0 30rpx;
}
.nav-bar_1>view
{
display: inline-block;
}
.arr-right
{
margin-right: 180rpx;
}
.section_3 {
width: 704rpx;
background: url(../../static/chengu/bg.png) 100% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
margin: -1rpx 0 0 25rpx;
}
.paragraph_1 {
height: 218rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 26rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
line-height: 48rpx;
margin: 0 auto;
}
.image_3 {
width: 343rpx;
height: 32rpx;
margin: 47rpx 0 0 178rpx;
}
.text-wrapper_1 {
width: 367rpx;
height: 127rpx;
flex-direction: row;
display: flex;
margin: 17rpx 0 0 166rpx;
}
.paragraph_2 {
width: 53rpx;
height: 127rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 58rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 58rpx;
}
.paragraph_3 {
width: 49rpx;
height: 124rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 58rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 58rpx;
margin: 1rpx 0 0 51rpx;
}
.paragraph_4 {
width: 50rpx;
height: 124rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 58rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 58rpx;
margin: 1rpx 0 0 59rpx;
}
.paragraph_5 {
width: 53rpx;
height: 127rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 58rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 58rpx;
margin-left: 52rpx;
}
.text_3 {
width: 221rpx;
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: 250rpx 0 0 228rpx;
}
.block_2 {
width: 607rpx;
flex-direction: row;
display: flex;
margin: 58rpx 0 16rpx 45rpx;
}
.image-wrapper_1 {
width: 160rpx;
height: 211rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.tag_1 {
width: 112rpx;
height: 37rpx;
}
.tag_2 {
width: 160rpx;
height: 37rpx;
margin-top: 137rpx;
}
.text-wrapper_2 {
width: 599rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZCQJW--GB1-0;
font-weight: normal;
text-align: left;
line-height: 24rpx;
margin: 6rpx 0 0 -152rpx;
}
.paragraph_6,.paragraph_8 {
width: 180rpx;
overflow-wrap: break-word;
color: rgba(255, 255, 255, 1);
font-size: 24rpx;
font-family: FZCQJW--GB1-0;
font-weight: normal;
text-align: center;
background-color: rgba(128,127,128,1);
padding:6rpx;
display: inline-block;
margin-bottom: 20rpx;
}
.paragraph_7 {
width: 599rpx;
height: 312rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
}
.paragraph_9 {
width: 599rpx;
height: 312rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 24rpx;
font-family: Helvetica, "Microsoft YaHei", Arial, sans-serif;
font-weight: normal;
text-align: left;
}
.paragraph_10 {
width: 599rpx;
height: 312rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
}
.section_4 {
width: 750rpx;
height: 257rpx;
display: flex;
flex-direction: column;
}
.group_2 {
width: 206rpx;
height: 28rpx;
display: flex;
flex-direction: row;
margin: 67rpx 0 0 276rpx;
}
.text-wrapper_3 {
width: 206rpx;
height: 28rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
}
.text_4 {
width: 206rpx;
height: 28rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
}
.text_5 {
width: 206rpx;
height: 28rpx;
overflow-wrap: break-word;
color: rgba(230,0,18,1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
}
.group_3 {
width: 600rpx;
height: 53rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 36rpx 0 73rpx 70rpx;
}
.text-wrapper_4 {
width: 560rpx;
height: 53rpx;
background: url(../../static/chengu/chengu2.png) 100% no-repeat;
background-size: 100% 100%;
flex-direction: row;
display: flex;
line-height: 53rpx;
}
.text_6 {
width: 494rpx;
height: 28rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
margin: 13rpx 0 0 31rpx;
}
.text_7 {
width: 50rpx;
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: center;
white-space: nowrap;
line-height: 24rpx;
margin: 13rpx 0 0 0;
}
.guzhong-v
{
text-align: center;
width: 110rpx;
}
.text_8 {
width: 50rpx;
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: center;
white-space: nowrap;
line-height: 24rpx;
margin: 14rpx 0 0 0;
}
.text_9 {
width: 50rpx;
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: center;
white-space: nowrap;
line-height: 24rpx;
margin: 15rpx 0 0 0;
}
.text_10 {
width: 25rpx;
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: center;
white-space: nowrap;
line-height: 24rpx;
margin-top: 13rpx;
}
</style>