Commit 7f308213 authored by zhengke's avatar zhengke

修改

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