|
@ -5,7 +5,7 @@ |
|
|
<navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" bgColor="#4883F9" color="#FFFFFF" /> |
|
|
<navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" bgColor="#4883F9" color="#FFFFFF" /> |
|
|
|
|
|
|
|
|
<view class="cover-image" :style="{ height: coverImageHeight }"> |
|
|
<view class="cover-image" :style="{ height: coverImageHeight }"> |
|
|
<image class="img" :src="details.paperImage" mode="aspectFill" ></image> |
|
|
|
|
|
|
|
|
<image class="img" :src="details.paperImage" mode="scaleToFill" ></image> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 学生情况 --> |
|
|
<!-- 学生情况 --> |
|
@ -83,13 +83,13 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
details: {}, |
|
|
details: {}, |
|
|
coverImageHeight: '568rpx', |
|
|
|
|
|
|
|
|
coverImageHeight: '890rpx', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad({ articleId }) { |
|
|
onLoad({ articleId }) { |
|
|
|
|
|
|
|
|
const windowWidth = uni.getSystemInfoSync().windowWidth |
|
|
const windowWidth = uni.getSystemInfoSync().windowWidth |
|
|
this.coverImageHeight = `${(windowWidth - 18) * 568 / 677}px` |
|
|
|
|
|
|
|
|
this.coverImageHeight = `${(windowWidth - 18) * 890 / 750}px` |
|
|
|
|
|
|
|
|
this.getData(articleId) |
|
|
this.getData(articleId) |
|
|
}, |
|
|
}, |
|
|