Commit 7f308213 authored by zhengke's avatar zhengke

修改

parent 8459bc40
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
</view> </view>
<view class="content" :style="{width:textWidth+'px'}"> <view class="content" :style="{width:textWidth+'px'}">
<view class="cover"> <view class="cover">
<image :src="goods.Cover" style="width: 100%;height: 100%;border-radius: 5px;"></image> <image :src="Cover" style="width: 100%;height: 100%;border-radius: 5px;"></image>
</view> </view>
<view class="content-r" :style="{width:(textWidth-70-30)+'px'}"> <view class="content-r" :style="{width:(textWidth-70-30)+'px'}">
<text class="content-Name">{{goods.Name}}</text> <text class="content-Name">{{Name}}</text>
<view class="progress-box"> <view class="progress-box">
<progress :percent="progress" active stroke-width="3" /> <progress :percent="progress" active stroke-width="3" />
</view> </view>
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
isshow: false, isshow: false,
posiTop: 0, posiTop: 0,
laststudy: {}, laststudy: {},
Name:'',
Cover:'',
progress: 0 progress: 0
} }
}, },
...@@ -49,8 +51,8 @@ ...@@ -49,8 +51,8 @@
this.laststudy = uni.getStorageSync('laststudy'); this.laststudy = uni.getStorageSync('laststudy');
if (this.laststudy) { if (this.laststudy) {
this.isshow = true; this.isshow = true;
this.goods.Name = this.laststudy.name; this.Name = this.laststudy.name;
this.goods.Cover = this.laststudy.cover_pic; this.Cover = this.laststudy.cover_pic;
this.progress = parseInt(this.laststudy.learned / this.laststudy.count); this.progress = parseInt(this.laststudy.learned / this.laststudy.count);
} }
}, },
...@@ -102,7 +104,7 @@ ...@@ -102,7 +104,7 @@
.Rstudy .content .cover { .Rstudy .content .cover {
width: 70px; width: 70px;
height: 35px; height: 45px;
margin-right: 10px; margin-right: 10px;
border-radius: 5px; border-radius: 5px;
} }
......
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