|
@@ -2,14 +2,14 @@
|
|
|
<view>
|
|
|
<view style="background-color: #FFFFFF;">
|
|
|
<view >
|
|
|
- <image src="/static/login_bg.jpg" style="height: 461rpx;width: 100%;"></image>
|
|
|
+ <image :src="$method.splitImgHost(goodsData.coverUrl, true)" style="width: 100%;"></image>
|
|
|
<view style="padding:20rpx">
|
|
|
<view style="display: flex;margin-top: 13rpx;">
|
|
|
<view class="yearTag">{{goodsData.createTime | formatDate}}</view>
|
|
|
<view class="titleTag">{{goodsData.goodsName}}</view>
|
|
|
</view>
|
|
|
<view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
|
|
|
- <view class="noteTag"><image :src="$method.splitImgHost(goodsData.coverUrl, true)" class="wk_icon"></image>
|
|
|
+ <view class="noteTag"><image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
|
|
|
共 <text class="blackFont">{{goodsData.updateTime}}</text> 张卷 <text class="blackFont">1200</text> 道题 </view>
|
|
|
|
|
|
</view>
|
|
@@ -107,13 +107,8 @@ export default {
|
|
|
formatDate: function (value) {
|
|
|
|
|
|
var date = new Date(value);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
|
|
|
- var Y = date.getFullYear() + '-';
|
|
|
- var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
|
|
|
- var D = date.getDate() + ' ';
|
|
|
- var h = date.getHours() + ':';
|
|
|
- var m = date.getMinutes() + ':';
|
|
|
- var s = date.getSeconds();
|
|
|
- return Y+M+D+h+m+s;
|
|
|
+ var Y = date.getFullYear();
|
|
|
+ return Y;
|
|
|
}
|
|
|
},
|
|
|
onUnload() {
|
|
@@ -135,6 +130,9 @@ export default {
|
|
|
this.goodsData = res.data.data;
|
|
|
|
|
|
})
|
|
|
+ },
|
|
|
+ getModule() {
|
|
|
+
|
|
|
},
|
|
|
buy(){
|
|
|
if(this.$method.isGoLogin()){
|