From 379b369e1cfc6ef83d8b5373d0e6b8b7052cb98f Mon Sep 17 00:00:00 2001 From: Wkang921 Date: Tue, 27 Jun 2023 16:49:24 +0800 Subject: [PATCH] no msg --- pages/home/jl/index.js | 4 ++- pages/home/xyc/index.wxml | 2 +- pages/home/xyc/index.wxss | 49 ++++++++++++++++++------------------- project.private.config.json | 42 +------------------------------ 4 files changed, 29 insertions(+), 68 deletions(-) diff --git a/pages/home/jl/index.js b/pages/home/jl/index.js index fd37f0e..ee51741 100644 --- a/pages/home/jl/index.js +++ b/pages/home/jl/index.js @@ -75,9 +75,11 @@ Page({ getXxObj(){/**获取形象对应的图片 */ req.getRequest('/api/dict/value/horoscope-resource',{}).then((res)=>{ if(res.data.code==200){ + console.log(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}) + console.log(this.data.xingxiangtu, '1111'); } }).catch((err)=>{ console.log(err); diff --git a/pages/home/xyc/index.wxml b/pages/home/xyc/index.wxml index 4b14ee5..62a7c2a 100644 --- a/pages/home/xyc/index.wxml +++ b/pages/home/xyc/index.wxml @@ -24,7 +24,7 @@ - +