123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <template>
- <view class="details">
- <view class="details-content">
- <view class="details-content-title">{{ planInfo.title }}</view>
- <view class="details-content-createtime">{{ planInfo.createTime }}提交</view>
- <view class="details-content-reply" :class="planInfo.replyStatus === 0 ? 'waiting' : 'reply'">
- {{ planInfo.replyStatus === 0 ? '待专家回复' : '专家已回复' }}
- </view>
- <view class="details-content-description">
- <view class="title">描述</view>
- <view class="details-content-description-content">
- <u-parse :html="planInfo.description"></u-parse>
- </view>
- <view class="details-content-description-pdf" @click="jumpPage('pages/entrepreneurshipGuidelines/previewPdf/previewPdf', { fileUrl: planInfo.planBookUrl })">
- {{ planInfo.planBookName }}
- </view>
- </view>
- <view class="details-content-description" v-if="planInfo.replyStatus === 1">
- <view class="title">专家建议</view>
- <view class="details-content-description-content">
- <u-parse :html="planInfo.replyContent"></u-parse>
- </view>
- </view>
- </view>
- <u-toast ref="uToast" />
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- planId: '',
- planInfo: {}
- }
- },
- onLoad(page) {
- if (page.id) {
- this.planId = page.id
- }
- },
- onShow() {
- this.getDetails(this.planId)
- },
- methods: {
- getDetails(id) {
- this.$u.api.entrepreneurship.getEntrepreneurshipDetailsApi({ id }).then(res => {
- if (res.code === 200) {
- this.planInfo = res.data
- } else {
- this.$refs.uToast.show({
- title: res.msg,
- type: 'error'
- })
- }
- })
- },
- jumpPage(url, params) {
- this.$u.route({
- url, params
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .details {
- padding: 26rpx 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- &-content {
- &-title {
- color: #050505;
- font-size: 38rpx;
- margin-bottom: 18rpx;
- font-weight: 600;
- }
- &-createtime {
- color: #9F9F9F;
- font-size: 28rpx;
- margin-bottom: 18rpx;
- }
- .reply {
- color: #028DFE;
- font-size: 26rpx;
- }
- .waiting {
- color: #EF6622;
- font-size: 26rpx;
- }
- &-description {
- margin-top: 32rpx;
- margin-bottom: 72rpx;
- .title {
- color: #3F3F3F;
- font-weight: 600;
- font-size: 34rpx;
- margin-bottom: 30rpx;
- }
- &-content {
- color: #4D4D4D;
- font-size: 28rpx;
- }
- &-pdf {
- width: 100%;
- height: 59rpx;
- line-height: 59rpx;
- display: flex;
- justify-content: center;
- border: dashed 1px #0091FF;
- color: #008FFF;
- font-size: 28rpx;
- margin-top: 20rpx;
- }
- }
- }
- }
- </style>
|