Commit 7a72dab5 authored by linwenqing's avatar linwenqing

fix:学时证证书日期显示截至日期

parent 00f4796d
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</view> </view>
<view class="cert-foot"> <view class="cert-foot">
<text class="cert-top" style="line-height: 60rpx;">{{institutionName}}</text> <text class="cert-top" style="line-height: 60rpx;">{{institutionName}}</text>
<text class="cert-bottom">{{startDate}}</text> <text class="cert-bottom">{{endDate}}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -111,6 +111,9 @@ export default { ...@@ -111,6 +111,9 @@ export default {
startDate() { startDate() {
return this.learnData.startDate || ' ' return this.learnData.startDate || ' '
}, },
endDate() {
return this.learnData.endDate || ' '
},
learnDate() { learnDate() {
return String(this.learnData.startDate).length > 1 && (this.learnData.startDate + '~' + this.learnData.endDate) || ' ' return String(this.learnData.startDate).length > 1 && (this.learnData.startDate + '~' + this.learnData.endDate) || ' '
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment