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

879 lines
18 KiB

1 year ago
<template>
<view class="page">
<view class="block_1">
<view class="block_2">
<view class="nav-bar_1">
<view @click="goback" class="arr-right">&lt;&lt;&lt;</view>
<view class="arr-left">文昌方位</view>
</view>
<view class="text-wrapper_1">
<text lines="1" class="text_3">{{name}}</text>
<text lines="1" decode="true" class="text_4"></text>
<text lines="1" class="text_5">先生/女士</text>
<text lines="1" class="text_6" />
<text lines="1" decode="true" class="text_7"></text>
</view>
<dateselect @dateselect="dateselect" @timeselect="timeselect" :inputdate="options.date" :inputtime="options.time"></dateselect>
<view class="box_3">
<img src="../../static/yy/option-on.png" class="label_1"/>
<view class="text-wrapper_3">
<text lines="1" class="text_12">您的本命文昌位为</text>
<text lines="1" class="text_13">{{info.ben_ming.name}}</text>
<text lines="1" class="text_14" />
</view>
</view>
<view class="box_4">
<view class="image-wrapper_1">
<img src="../../static/xingming/circle-dash.gif" loop="infinite" :class="'image_3 image_3_'+info.ben_ming.id"/>
</view>
<view class="text-wrapper_4">
<text lines="1" class="text_15"></text>
<text lines="1" class="text_16">命文昌位是八字文昌星的方位文昌星亦称文曲星是主掌功名利禄的吉星本命文昌位也就是个人八字命理中蕴含的生旺文昌星的先天有利风水方位</text>
</view>
</view>
<view class="box_5">
<img src="../../static/yy/option-on.png" class="label_2"/>
<view class="text-wrapper_5">
<text lines="1" class="text_17">您的流年文昌位为</text>
<text lines="1" class="text_18">{{info.liu_nian.name}}</text>
<text lines="1" class="text_19" />
</view>
</view>
<view class="box_6">
<view class="image-wrapper_2">
<img src="../../static/xingming/circle-dash.gif" :class="'image_3 image_3_'+info.liu_nian.id"/>
</view>
<view class="text-wrapper_6">
<text lines="1" class="text_20"></text>
<text lines="1" class="text_21">年文昌位其实就是这一年九宫飞星所飞临的旺文昌的方位</text>
</view>
</view>
<view class="box_7">
<img src="../../static/yy/option-on.png" class="label_3"/>
<view class="text-wrapper_7">
<text lines="1" class="text_22">您的八宅文昌位为</text>
<text lines="1" class="text_23">{{bazai_fangwei.name}}</text>
<text lines="1" class="text_24" />
</view>
<picker :range="selectoption" @change="selectchange" range-key="name">
<text lines="1" class="text_25" style="position: relative;">{{selectedoption}}
<img src="../../static/xingming/select.png" class="dropdown_1"/>
</text>
</picker>
</view>
<view class="box_8">
<view class="image-wrapper_3">
<img src="../../static/xingming/circle-dash.gif" :class="'image_3 image_3_'+bazai_fangwei.id"/>
</view>
<view class="text-wrapper_8">
<text lines="1" class="text_26"></text>
<text lines="1" class="text_27">宅文昌方位即文昌星君飞临入宅的方位这个方位在每套住宅里都有只要是书房书桌或文昌用品摆放于此位对于读书功名事业等均会有所裨益</text>
</view>
</view>
</view>
<tabBar class="tab-bar_1" currenttype="2" displaytype="2">
</tabBar >
</view>
</view>
</template>
<script>
import tabBar from '@/components/tabbar'
import dateselect from '@/components/dateselect'
import * as YYApi from '@/api/yingyong'
export default {
components: {
tabBar,
dateselect
},
data() {
return {
info:{},
name:'',
currentdate:'',
timetype:1,
sex:1,
selectoption:[],
selectedoption:'',
selectedoption_id:1,
bazai_fangwei:'',
options:{}
}
},
onLoad(options)
{
this.options = options;
this.name = options.name;
this.currentdate = options.date +" "+ options.time + ":00";
this.timetype = options.timetype;
this.sex = options.sex;
this.getlocation();
this.getDatainfo();
},
methods: {
goback()
{
this.$navTo('pages/yingyong/yingyong')
},
dateselect(val)
{
this.currentdate= val;
this.getDatainfo();
},
timeselect(val)
{
this.time= val;
this.getDatainfo();
},
getlocation(){
YYApi.wenchangLocationres({})
.then(result => {
this.selectoption = result.data;
this.selectedoption_id = this.selectoption[0].id;
this.selectedoption = this.selectoption[0].name ;
this.getBazai();
})
},
getDatainfo()
{
var app = this;
YYApi.wenchangLiunres({time_type:this.timetype,time:this.currentdate,sex:this.sex})
.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);
}
})
},
selectchange(e)
{
this.selectedoption = this.selectoption[e.target.value].name ;
this.selectedoption_id = this.selectoption[e.target.value].id ;
this.getBazai();
},
getBazai()
{
YYApi.wenchangBazires({id:this.selectedoption_id})
.then(result => {
this.bazai_fangwei = result.data;
})
}
}
}
</script>
<style>
.page {
background-color: rgba(255,255,255,1.000000);
position: relative;
width: 750rpx;
overflow: hidden;
display: flex;
flex-direction: column;
padding-bottom: 180rpx;
}
.block_2 {
position: relative;
width: 750rpx;
display: flex;
flex-direction: column;
}
.box_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;
}
.box_2 {
height: 22rpx;
background-size: 100% 100%;
margin-left: 9rpx;
display: flex;
flex-direction: column;
width: 41rpx;
}
.group_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;
}
.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;
}
.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: 31rpx 0 0 81rpx;
}
.text-wrapper_1 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
margin: 0 0 0 96rpx;
}
.text_3 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
}
.text_4 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 24rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text_5 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(91, 91, 91, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text_6 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 28rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 28rpx;
}
.text_7 {
width: 216rpx;
height: 27rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 24rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 24rpx;
}
.text-wrapper_2 {
width: 445rpx;
height: 23rpx;
flex-direction: row;
display: flex;
margin: 40rpx 0 0 216rpx;
}
.text_8 {
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_9 {
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_10 {
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_11 {
width: 21rpx;
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;
margin-left: 127rpx;
}
.box_3 {
width: 369rpx;
height: 41rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 0 0 0 91rpx;
}
.label_1 {
width: 25rpx;
height: 26rpx;
margin-top: 10rpx;
}
.text-wrapper_3 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_12 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_13 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 42rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
}
.text_14 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.box_4 {
width: 584rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 18rpx 0 0 92rpx;
}
.image-wrapper_1 {
height: 291rpx;
background: url(../../static/xingming/9gongge.png) 100% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
width: 290rpx;
}
.image_3 {
width: 81rpx;
height: 81rpx;
}
.image_3_1
{
margin: 104rpx 0 0 106rpx;
}
.image_3_2
{
margin: 200rpx 0 0 200rpx;
}
.image_3_3
{
margin: 104rpx 0 0 200rpx;
}
.image_3_4
{
margin: 200rpx 0 0 9rpx;
}
.image_3_5
{
margin: 9rpx 0 0 106rpx;
}
.image_3_6
{
margin: 200rpx 0 0 106rpx;
}
.image_3_7
{
margin: 9rpx 0 0 200rpx;
}
.image_3_8
{
margin: 104rpx 0 0 9rpx;
}
.image_3_9
{
margin: 9rpx 0 0 9rpx;
}
.text-wrapper_4 {
width: 248rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 35rpx;
margin-top: 23rpx;
}
.text_15 {
width: 248rpx;
height: 239rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 35rpx;
}
.text_16 {
width: 248rpx;
height: 239rpx;
overflow-wrap: break-word;
color: rgba(141, 141, 142, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 35rpx;
}
.box_5 {
width: 369rpx;
height: 41rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 24rpx 0 0 91rpx;
}
.label_2 {
width: 25rpx;
height: 26rpx;
margin-top: 10rpx;
}
.text-wrapper_5 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_17 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_18 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 42rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
}
.text_19 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.box_6 {
width: 583rpx;
height: 291rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 18rpx 0 0 92rpx;
}
.image-wrapper_2 {
height: 291rpx;
background: url(../../static/xingming/9gongge.png) 100% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
width: 290rpx;
}
.image_4 {
width: 81rpx;
height: 81rpx;
margin: 9rpx 0 0 9rpx;
}
.text-wrapper_6 {
width: 246rpx;
height: 104rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 38rpx;
margin-top: 27rpx;
}
.text_20 {
width: 246rpx;
height: 104rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 38rpx;
}
.text_21 {
width: 246rpx;
height: 104rpx;
overflow-wrap: break-word;
color: rgba(141, 141, 142, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 38rpx;
}
.box_7 {
width: 551rpx;
height: 41rpx;
flex-direction: row;
display: flex;
margin: 24rpx 0 0 91rpx;
}
.label_3 {
width: 25rpx;
height: 26rpx;
margin-top: 10rpx;
}
.text-wrapper_7 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
margin-left: 23rpx;
}
.text_22 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_23 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(230, 0, 18, 1);
font-size: 42rpx;
font-family: FZQKBYSJW--GB1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 42rpx;
}
.text_24 {
width: 321rpx;
height: 41rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 29rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 29rpx;
}
.text_25 {
width: 160rpx;
height: 55rpx;
overflow-wrap: break-word;
color: rgba(116,116,116,1);
font-size: 22rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: center;
white-space: nowrap;
line-height: 55rpx;
align-items: center;
align-self: center;
margin: 0 0 0 35rpx;
display: inline-block;
}
.box_8 {
width: 583rpx;
flex-direction: row;
display: flex;
justify-content: space-between;
margin: 18rpx 0 34rpx 92rpx;
}
.image-wrapper_3 {
height: 291rpx;
background: url(../../static/xingming/9gongge.png) 100% no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
width: 290rpx;
}
.image_5 {
width: 81rpx;
height: 81rpx;
margin: 9rpx 0 0 9rpx;
}
.text-wrapper_8 {
width: 247rpx;
height: 244rpx;
overflow-wrap: break-word;
font-size: 0rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 36rpx;
margin-top: 20rpx;
}
.text_26 {
width: 247rpx;
height: 244rpx;
overflow-wrap: break-word;
color: rgba(34, 24, 21, 1);
font-size: 30rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 36rpx;
}
.text_27 {
width: 247rpx;
height: 244rpx;
overflow-wrap: break-word;
color: rgba(141, 141, 142, 1);
font-size: 24rpx;
font-family: SimHei;
font-weight: normal;
text-align: left;
line-height: 36rpx;
}
.text-wrapper_9 {
position: absolute;
left: 92rpx;
top: 212rpx;
width: 536rpx;
height: 51rpx;
background: url(../../static/yinyang/selectbg.png) 100% no-repeat;
background-size: 100% 100%;
flex-direction: row;
display: flex;
}
.text_28 {
width: 68rpx;
height: 25rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 30rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
margin: 15rpx 0 0 14rpx;
}
.text_29 {
width: 33rpx;
height: 25rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 30rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
margin: 15rpx 0 0 90rpx;
}
.text_30 {
width: 30rpx;
height: 25rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 30rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
margin: 15rpx 0 0 107rpx;
}
.text_31 {
width: 30rpx;
height: 25rpx;
overflow-wrap: break-word;
color: rgba(34,24,21,1);
font-size: 30rpx;
font-family: FZLTHK--GBK1-0;
font-weight: normal;
text-align: left;
white-space: nowrap;
line-height: 30rpx;
margin: 15rpx 51rpx 0 113rpx;
}
.dropdown_1 {
position: absolute;
left: 0;
top: 0;
width: 190rpx;
height: 55rpx;
align-items: center;
}
</style>