| | |
| | | <view v-if="showType == 2" class="cultureBox"> |
| | | <view class="cultureItem" v-if="culture1"> |
| | | <view class="imgBox"> |
| | | <img src="@/static/image/inherit/icon1.png" alt="" /> |
| | | <img src="@/static/image/inherit/icon1.svg" alt="" /> |
| | | </view> |
| | | <p>{{culture1.content}}</p> |
| | | <h4 v-if="culture1.source">——《{{culture1.source}}》P {{culture1.pageNo}}</h4> |
| | | <p>{{ culture1.content }}</p> |
| | | <h4 v-if="culture1.source"> |
| | | ——《{{ culture1.source }}》P {{ culture1.pageNo }} |
| | | </h4> |
| | | </view> |
| | | <view class="cultureItem" v-if="culture2"> |
| | | <view class="imgBox"> |
| | | <img src="@/static/image/inherit/icon2.png" alt="" /> |
| | | <img src="@/static/image/inherit/icon2.svg" alt="" /> |
| | | </view> |
| | | <p>{{culture2.content}}</p> |
| | | <h4 v-if="culture2.source">——《{{culture2.source}}》P {{culture2.pageNo}}</h4> |
| | | <p>{{ culture2.content }}</p> |
| | | <h4 v-if="culture2.source"> |
| | | ——《{{ culture2.source }}》P {{ culture2.pageNo }} |
| | | </h4> |
| | | </view> |
| | | <view class="cultureItem" v-if="culture3"> |
| | | <view class="imgBox"> |
| | | <img src="@/static/image/inherit/icon3.png" alt="" /> |
| | | <img src="@/static/image/inherit/icon3.svg" alt="" /> |
| | | </view> |
| | | <p>{{culture3.content}}</p> |
| | | <h4 v-if="culture3.source">——《{{culture3.source}}》P {{culture3.pageNo}}</h4> |
| | | <p>{{ culture3.content }}</p> |
| | | <h4 v-if="culture3.source"> |
| | | ——《{{ culture3.source }}》P {{ culture3.pageNo }} |
| | | </h4> |
| | | </view> |
| | | <div |
| | | v-if="!culture1 && !culture2 && !culture3" |
| | | style="color: #666; text-align: center; font-size: 16px" |
| | | > |
| | | 世医文化无数据 |
| | | </div> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | showType: "1", |
| | | culture1: null, |
| | | culture2: null, |
| | | culture3: null, |
| | | culture3: null |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | identifier: this.idIndex, |
| | | socialFlag: true |
| | | }).then((res) => { |
| | | console.log(res); |
| | | let data = res.object; |
| | | // 处理节点颜色 |
| | | this.links = []; |
| | |
| | | } |
| | | }; |
| | | }); |
| | | console.log(this.dataList); |
| | | console.log(this.links); |
| | | this.initBarChart(this.dataList, this.links); |
| | | }); |
| | | |
| | |
| | | inheritMedicalCultureList({ |
| | | identifier: this.idIndex |
| | | }).then((res) => { |
| | | console.log(res, "res"); |
| | | this.culture1 = res.list.find(item=>item.typeName == "家风") |
| | | this.culture2 = res.list.find(item=>item.typeName == "医德") |
| | | this.culture3 = res.list.find(item=>item.typeName == "家训") |
| | | this.culture1 = res.list.find((item) => item.typeName == "家风"); |
| | | this.culture2 = res.list.find((item) => item.typeName == "医德"); |
| | | this.culture3 = res.list.find((item) => item.typeName == "家训"); |
| | | }); |
| | | }, |
| | | showSocialMapping() { |
| | |
| | | height: 0.24rem; |
| | | font-size: 0.12rem; |
| | | padding: 0; |
| | | border: 1px solid #9e9e9e; |
| | | border-radius: 0; |
| | | color: #000; |
| | | } |
| | | .barChart { |
| | | width: 100vw; |