| | |
| | | <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> |
| | | <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> |
| | | <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> |
| | | <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) { |
| | |
| | | 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 == "家训") |