main
Wkang921 2 years ago
parent 5d41aaa4a6
commit 379b369e1c

@ -75,9 +75,11 @@ Page({
getXxObj(){/**获取形象对应的图片 */ getXxObj(){/**获取形象对应的图片 */
req.getRequest('/api/dict/value/horoscope-resource',{}).then((res)=>{ req.getRequest('/api/dict/value/horoscope-resource',{}).then((res)=>{
if(res.data.code==200){ if(res.data.code==200){
console.log(res.data.data);
const horoscopes = res.data.data const horoscopes = res.data.data
const type = this.data.userInfo.birthdayConstellation const type = this.data.userInfo.horoscope.name
this.setData({xingxiangtu: horoscopes[type].sprite}) this.setData({xingxiangtu: horoscopes[type].sprite})
console.log(this.data.xingxiangtu, '1111');
} }
}).catch((err)=>{ }).catch((err)=>{
console.log(err); console.log(err);

@ -295,54 +295,53 @@ font-family: SourceHanSansSC-medium;
position: absolute; position: absolute;
left: 250rpx; left: 250rpx;
top: 230rpx; top: 230rpx;
width: 196px; width: 350rpx;
height: 90px; height: 180rpx;
line-height: 20px; line-height: 40rpx;
border-radius: 10px; border-radius: 20rpx;
color: rgba(136, 136, 136, 1); color: rgba(136, 136, 136, 1);
font-size: 14px; font-size: 28rpx;
text-align: left; text-align: left;
font-family: Microsoft Yahei;
border: 1px solid rgba(187, 187, 187, 1); border: 1px solid rgba(187, 187, 187, 1);
} }
.xyljt{ .xyljt{
padding: 15rpx!important; padding: 20rpx 0 0 20rpx !important;
position: absolute; position: absolute;
left: 250rpx; left: 250rpx;
top: 572rpx; top: 572rpx;
width: 196px!important; width: 350rpx!important;
height: 80rpx!important; height: 80rpx!important;
line-height: 80rpx!important; line-height: 80rpx!important;
border-radius: 10px; border-radius: 20rpx;
color: rgba(136, 136, 136, 1); font-size: 28rpx;
font-size: 14px; display: flex;
text-align: left; align-items: center;
font-family: Microsoft Yahei; justify-content: space-between;
border: 1px solid rgba(187, 187, 187, 1); border: 1px solid rgba(187, 187, 187, 1);
} }
.t-textarea__wrapper-inner {
color: rgba(136, 136, 136, 1) !important;
}
.qwsjt{ .qwsjt{
padding: 15rpx!important;
position: absolute; position: absolute;
left: 250rpx; left: 250rpx;
top: 448rpx; top: 448rpx;
width: 196px!important; padding: 20rpx 0 0 20rpx !important;
width: 350rpx!important;
height: 80rpx!important; height: 80rpx!important;
line-height: 80rpx!important;
border-radius: 20rpx; border-radius: 20rpx;
color: rgba(136, 136, 136, 1); color: rgba(136, 136, 136, 1);
font-size: 28rpx; font-size: 28rpx;
text-align: left;
font-family: Microsoft Yahei;
border: 1px solid rgba(187, 187, 187, 1); border: 1px solid rgba(187, 187, 187, 1);
} }
.xltb{ .xltb{
position: absolute; position: absolute;
left:530rpx; right: 130rpx;
top:480rpx; top:478rpx;
width:26rpx; width:26rpx;
height:26rpx; height:26rpx;
background-repeat: no-repeat; background-repeat: no-repeat;

@ -5,45 +5,5 @@
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": false "urlCheck": false
}, },
"condition": { "condition": {}
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/home/jl/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/xx/lindex/lxz/lxz",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/me/mydevice/device",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/xx/lindex/lxz/lxz",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/home/xx/xz/xz",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
}
} }
Loading…
Cancel
Save