feat: 增加详情介绍链接
This commit is contained in:
@@ -24,11 +24,14 @@
|
||||
<view class="item" v-html="prescriptDetail.city_name">
|
||||
</view>
|
||||
</uni-section>
|
||||
<uni-section class="mb-10" titleFontSize="18px" title="详细介绍" type="line"
|
||||
<uni-section class="mb-10" titleFontSize="18px" title="说明" type="line"
|
||||
v-if="prescriptDetail.content && prescriptDetail.content != ''">
|
||||
<view class="item" v-html="prescriptDetail.content">
|
||||
</view>
|
||||
</uni-section>
|
||||
<div class="detail-link-wrap" v-if="prescriptDetail.url && prescriptDetail.url != ''">
|
||||
<text class="detail-link" @click="openDetailUrl">详细介绍>></text>
|
||||
</div>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
@@ -73,6 +76,11 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
openDetailUrl() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/wumen/medurl?url=' + encodeURIComponent(this.prescriptDetail.url)
|
||||
})
|
||||
},
|
||||
// 方剂详情
|
||||
getDetail() {
|
||||
$http.request({
|
||||
@@ -146,6 +154,18 @@ export default {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.detail-link-wrap {
|
||||
padding: 10rpx 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
|
||||
.detail-link {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #007aff;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ .uni-section-header__decoration.line {
|
||||
background-color: #18bc37;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user