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.
657 lines
14 KiB
657 lines
14 KiB
<template>
|
|
<view class="page">
|
|
<view class="group_1">
|
|
<view class="box_1">
|
|
<view class="nav-bar_1">
|
|
<view @click="goback" class="arr-right"><<<</view>
|
|
<view class="arr-left">优势吉位</view>
|
|
</view>
|
|
<view class="group_3">
|
|
<img src="../../static/youshi/bg.png" class="image_3"/>
|
|
<view class="block_1">
|
|
|
|
<view>
|
|
<view class="section_1">
|
|
<view class="box_4">
|
|
<text lines="1" class="text_3">流年飞星</text>
|
|
<view class="dropdown_1">
|
|
<picker mode="date" fields="year" @change="bindDatechange">
|
|
<text lines="1" class="text_4">{{year}}</text>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<text lines="1" class="text_5">年</text>
|
|
<img src="../../static/youshi/dakuohao.png" class="image_4"/>
|
|
|
|
<view class="image_6"><img src="../../static/youshi/1.png"/></view>
|
|
<view class="text-group_1">
|
|
<view lines="1" class="text_12">{{liunian.zheng_cai}}</view>
|
|
<view lines="1" class="text_13">{{liunian.heng_cai}}</view>
|
|
<view lines="1" class="text_14">{{liunian.wang_cai}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="section_2">
|
|
<view class="box_4">
|
|
<text lines="1" class="text_3">玄空坐山朝向</text>
|
|
<view class="dropdown_1">
|
|
<picker :range="yunfangarr" range-key="name" @change="bindYunchange">
|
|
<text lines="1" class="text_7">{{yunfangarr[yunfang].name}}</text>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<img src="../../static/youshi/dakuohao.png" class="image_4"/>
|
|
<view class="image_6"><img src="../../static/youshi/2.png"/></view>
|
|
<view class="text-group_1">
|
|
<text lines="1" class="text_12">{{xuankong.zheng_cai}}</text>
|
|
<text lines="1" class="text_14">{{xuankong.pian_cai}}</text>
|
|
<text lines="1" class="text_13">{{xuankong.cai_guan}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<text lines="1" class="text_8">八宅终身财位</text>
|
|
<view class="text-wrapper_1">
|
|
<view class="text-wrapper_1-1">
|
|
<text lines="1" class="text_9">{{bazai[0].ci_chang.name}}</text>
|
|
<text lines="1" class="text_10">号磁场</text>
|
|
</view>
|
|
<view lines="1" class="text_10-1"></view>
|
|
<view lines="1" class="text_10-2">{{bazai[0].ci_chang.caiwei}}</view>
|
|
</view>
|
|
<text lines="1" class="text_11">基因优势吉位</text>
|
|
<view class="text-wrapper_2">
|
|
<text lines="1" decode="true" class="text_18">{{bazai[0].ji_yin}}</text>
|
|
</view>
|
|
<view style="display: flex; margin-top: 40rpx;">
|
|
<view lines="1" class="paragraph_1">
|
|
<view>奇门终身局“生门”</view>
|
|
<view>八字命理终身财位</view>
|
|
</view>
|
|
<view lines="1" class="text_19">{{bazai[0].sheng_men}}</view>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
<tabBar class="tab-bar_1" currenttype="2" displaytype="2">
|
|
</tabBar >
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import tabBar from '@/components/tabbar'
|
|
import * as YYApi from '@/api/yingyong'
|
|
export default {
|
|
components: {
|
|
tabBar
|
|
},
|
|
data() {
|
|
return {
|
|
date:'',
|
|
time:'',
|
|
timetype:1,
|
|
info:{},
|
|
currentdate:'',
|
|
sex:1,
|
|
bazai:{},
|
|
yunfang:0,
|
|
yunfangarr:[{name:'八运房',id:2},{name:'七运房',id:1},{name:'九运房',id:3}],
|
|
xuankong:{},
|
|
liunian:{},
|
|
year:''
|
|
}
|
|
},
|
|
onLoad(options)
|
|
{
|
|
|
|
this.currentdate = options.datetime;
|
|
this.timetype = options.timetype;
|
|
this.sex = options.sex;
|
|
|
|
var datearr = this.currentdate.split('-');
|
|
this.year = datearr[0];
|
|
|
|
|
|
console.log(this.currentdate);
|
|
|
|
this.getLiuNian();
|
|
this.getDatainfo();
|
|
this.getXuanKong(2);
|
|
},
|
|
methods: {
|
|
goback()
|
|
{
|
|
this.$navTo('pages/yingyong/yingyong')
|
|
},
|
|
getDatainfo()
|
|
{
|
|
|
|
YYApi.youshibazres({time_type:this.timetype,time:this.currentdate,sex:this.sex})
|
|
.then(result => {
|
|
this.bazai = result.data;
|
|
this.bazai[0].ci_chang.name = this.bazai[0].ci_chang.name.replace('号磁场','')
|
|
console.log(this.bazai);
|
|
})
|
|
|
|
},
|
|
bindYunchange(e)
|
|
{
|
|
console.log(this.yunfangarr[ e.target.value].name);
|
|
this.yunfang =e.target.value;
|
|
this.getXuanKong(this.yunfangarr[ e.target.value].id);
|
|
},
|
|
bindDatechange(e)
|
|
{
|
|
this.year =e.target.value;
|
|
this.getLiuNian();
|
|
},
|
|
getXuanKong(type)
|
|
{
|
|
YYApi.youshiXuankres({id:type})
|
|
.then(result => {
|
|
this.xuankong = result.data;
|
|
})
|
|
},
|
|
getLiuNian()
|
|
{
|
|
YYApi.youshiLiunres({time:this.year})
|
|
.then(result => {
|
|
this.liunian = result.data;
|
|
})
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.page {
|
|
background-color: rgba(255,255,255,1.000000);
|
|
position: relative;
|
|
width: 750rpx;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.group_1 {
|
|
width: 750rpx;
|
|
flex-direction: row;
|
|
display: flex;
|
|
padding-bottom: 140rpx;
|
|
}
|
|
.box_1 {
|
|
position: relative;
|
|
width: 750rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.group_2 {
|
|
width: 651rpx;
|
|
height: 22rpx;
|
|
flex-direction: row;
|
|
display: flex;
|
|
margin: 44rpx 0 0 71rpx;
|
|
}
|
|
.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_2 {
|
|
height: 22rpx;
|
|
margin-left: 9rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 41rpx;
|
|
}
|
|
.box_3 {
|
|
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: 378rpx;
|
|
height: 39rpx;
|
|
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 82rpx;
|
|
}
|
|
.group_3 {
|
|
width: 659rpx;
|
|
flex-direction: row;
|
|
display: flex;
|
|
margin: 10rpx 0 58rpx 0;
|
|
}
|
|
.image_3 {
|
|
width: 259rpx;
|
|
height: 1246rpx;
|
|
}
|
|
.block_1 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 157rpx 0 0 20rpx;
|
|
}
|
|
.section_1 {
|
|
height: 190rpx;
|
|
flex-direction: row;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.box_4 {
|
|
width: 137rpx;
|
|
height: 91rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
margin-bottom: 36rpx;
|
|
}
|
|
.text_3 {
|
|
width: 100%;
|
|
height: 24rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(118,118,118,1);
|
|
font-size: 24rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 24rpx;
|
|
}
|
|
.dropdown_1 {
|
|
height: 55rpx;
|
|
background: url(../../static/4select.png) 100% no-repeat;
|
|
background-size: 100% 100%;
|
|
margin-top: 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 137rpx;
|
|
}
|
|
.text_4 {
|
|
width: 108rpx;
|
|
height: 52rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 30rpx;
|
|
font-family: FZLTHK--GBK1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 52rpx;
|
|
margin: 0;
|
|
display: inline-block;
|
|
}
|
|
.text_5 {
|
|
width: 22rpx;
|
|
height: 24rpx;
|
|
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;
|
|
}
|
|
.image_4 {
|
|
width: 32rpx;
|
|
height: 103rpx;
|
|
}
|
|
.section_2 {
|
|
margin-top: 200rpx;
|
|
height: 190rpx;
|
|
flex-direction: row;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.box_5 {
|
|
width: 137rpx;
|
|
height: 91rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
.text_6 {
|
|
width: 129rpx;
|
|
height: 24rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(118,118,118,1);
|
|
font-size: 24rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 24rpx;
|
|
margin-left: 3rpx;
|
|
}
|
|
.dropdown_2 {
|
|
height: 55rpx;
|
|
background: url(../../static/4select.png) 100% no-repeat;
|
|
background-size: 100% 100%;
|
|
margin-top: 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 137rpx;
|
|
}
|
|
.text_7 {
|
|
width: 108rpx;
|
|
height: 52rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(247,129,2,1);
|
|
font-size: 28rpx;
|
|
font-family: FZLTHK--GBK1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 52rpx;
|
|
margin: 0;
|
|
display: inline-block;
|
|
}
|
|
.image_5 {
|
|
width: 32rpx;
|
|
height: 103rpx;
|
|
margin-top: 14rpx;
|
|
}
|
|
.text_8 {
|
|
width: 133rpx;
|
|
height: 24rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(118,118,118,1);
|
|
font-size: 24rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 24rpx;
|
|
margin: 182rpx 0 0 2rpx;
|
|
}
|
|
.text-wrapper_1 {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.text-wrapper_1-1
|
|
{
|
|
height: 44rpx;
|
|
overflow-wrap: break-word;
|
|
font-family: FZDBSK--GBK1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 44rpx;
|
|
border:1px solid rgba(0,0,0,0.2);
|
|
border-radius: 4rpx;
|
|
padding:0 6rpx;
|
|
}
|
|
|
|
|
|
.text_9 {
|
|
width: 89rpx;
|
|
height: 27rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(0,0,0,1);
|
|
font-size: 36rpx;
|
|
font-family: FZDBSK--GBK1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 36rpx;
|
|
}
|
|
.text_10 {
|
|
width: 89rpx;
|
|
height: 27rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(247, 129, 2, 1);
|
|
font-size: 26rpx;
|
|
font-family: FZDBSK--GBK1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 26rpx;
|
|
}
|
|
|
|
.text_10-1
|
|
{
|
|
margin-left:30rpx;
|
|
background-image: url('../../static/youshi/3-1.png');
|
|
background-size: 100% 100%;
|
|
width: 90rpx;
|
|
height: 34rpx;
|
|
display: inline-block;
|
|
|
|
|
|
}
|
|
.text_10-2 {
|
|
overflow-wrap: break-word;
|
|
color: rgba(255,255,255,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 40rpx;
|
|
padding: 8rpx 20rpx;
|
|
border-radius: 40rpx;
|
|
border: 4px solid #a4dabc;
|
|
background-color: darkblue;
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.text_11 {
|
|
height: 24rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(118,118,118,1);
|
|
font-size: 24rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 24rpx;
|
|
margin: 20rpx 0 0 2rpx;
|
|
}
|
|
.paragraph_1 {
|
|
width: 220rpx;
|
|
height: 66rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(118,118,118,1);
|
|
font-size: 24rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
line-height: 32rpx;
|
|
border:1px solid rgba(0,0,0,0.2);
|
|
border-radius: 4rpx;
|
|
}
|
|
|
|
.paragraph_1>view
|
|
{
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
.image-wrapper_1 {
|
|
width: 79rpx;
|
|
height: 588rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
margin: 144rpx 0 0 7rpx;
|
|
}
|
|
.image_6 {
|
|
width: 79rpx;
|
|
height: 100%;
|
|
padding:16rpx 0;
|
|
}
|
|
|
|
.image_6 img
|
|
{
|
|
height: 100%;
|
|
}
|
|
|
|
|
|
.image_7 {
|
|
width: 79rpx;
|
|
height: 158rpx;
|
|
}
|
|
.block_2 {
|
|
width: 75rpx;
|
|
height: 594rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 124rpx 0 0 14rpx;
|
|
}
|
|
.text_12 {
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
.text-group_1 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
.text_13 {
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
.text_14 {
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
.text_15 {
|
|
width: 75rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 68rpx;
|
|
}
|
|
.text-group_2 {
|
|
width: 74rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
margin: 0;
|
|
}
|
|
.text_16 {
|
|
width: 73rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 64rpx;
|
|
}
|
|
.text_17 {
|
|
width: 72rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(34,24,21,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 64rpx;
|
|
}
|
|
.group_4 {
|
|
|
|
}
|
|
.text-wrapper_2 {
|
|
margin: 20rpx 0 0 0;
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: 4rpx;
|
|
}
|
|
.text_18 {
|
|
height: 24rpx;
|
|
overflow-wrap: break-word;
|
|
color: rgba(183,1,177,1);
|
|
font-size: 30rpx;
|
|
font-family: ArialMT;
|
|
font-weight: normal;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
line-height: 24rpx;
|
|
border:1px solid rgba(0,0,0,0.2);
|
|
padding:4rpx 6rpx;
|
|
}
|
|
.text-wrapper_3 {
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 32rpx 0 0 246rpx;
|
|
}
|
|
.text_19 {
|
|
overflow-wrap: break-word;
|
|
color: rgba(255,255,255,1);
|
|
font-size: 40rpx;
|
|
font-family: FZQKBYSJW--GB1-0;
|
|
font-weight: normal;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
line-height: 40rpx;
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 40rpx;
|
|
border: 4px solid #a4dabc;
|
|
background-color: darkblue;
|
|
display: table;
|
|
margin-left: 30rpx;
|
|
}
|
|
|
|
</style>
|
|
|