|
@@ -5,12 +5,12 @@
|
|
<image src="/static/login_bg.jpg" style="height: 461rpx;width: 100%;"></image>
|
|
<image src="/static/login_bg.jpg" style="height: 461rpx;width: 100%;"></image>
|
|
<view style="padding:20rpx">
|
|
<view style="padding:20rpx">
|
|
<view style="display: flex;margin-top: 13rpx;">
|
|
<view style="display: flex;margin-top: 13rpx;">
|
|
- <view class="yearTag">2020</view>
|
|
|
|
- <view class="titleTag">2020年二建建筑工程管理与实务(实务专题班)</view>
|
|
|
|
|
|
+ <view class="yearTag">{{goodsData.createTime | formatDate}}</view>
|
|
|
|
+ <view class="titleTag">{{goodsData.goodsName}}</view>
|
|
</view>
|
|
</view>
|
|
<view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
|
|
<view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
|
|
- <view class="noteTag"><image src="/static/icon/wk_icon1.png" class="wk_icon"></image>
|
|
|
|
- 共 <text class="blackFont">6</text> 张卷 <text class="blackFont">1200</text> 道题 </view>
|
|
|
|
|
|
+ <view class="noteTag"><image :src="$method.splitImgHost(goodsData.coverUrl, true)" class="wk_icon"></image>
|
|
|
|
+ 共 <text class="blackFont">{{goodsData.updateTime}}</text> 张卷 <text class="blackFont">1200</text> 道题 </view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -98,20 +98,44 @@ export default {
|
|
outline:[{
|
|
outline:[{
|
|
list:[1,2,3,4],
|
|
list:[1,2,3,4],
|
|
showList:false,
|
|
showList:false,
|
|
- }]
|
|
|
|
|
|
+ }],
|
|
|
|
+ id:'',
|
|
|
|
+ goodsData:{}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ filters: {
|
|
|
|
+ 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;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onUnload() {
|
|
onUnload() {
|
|
|
|
|
|
},
|
|
},
|
|
computed: { ...mapGetters(['userInfo']) },
|
|
computed: { ...mapGetters(['userInfo']) },
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
-
|
|
|
|
|
|
+ console.log(option)
|
|
|
|
+ this.id = option.id
|
|
|
|
+ this.getDetail();
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getDetail(){
|
|
|
|
+ this.$api.goodsDetail(this.id).then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.goodsData = res.data.data;
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
buy(){
|
|
buy(){
|
|
if(this.$method.isGoLogin()){
|
|
if(this.$method.isGoLogin()){
|
|
return
|
|
return
|