提交 a9000e4e authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 67f20099
...@@ -9,7 +9,8 @@ Component({ ...@@ -9,7 +9,8 @@ Component({
properties: { properties: {
semesterId: { type: String, value: '' }, semesterId: { type: String, value: '' },
courseId: { type: String, value: '' }, courseId: { type: String, value: '' },
chapterId: { type: String, value: '' } chapterId: { type: String, value: '' },
isNeed: { type: Boolean, value: false }
}, },
/** /**
...@@ -61,13 +62,13 @@ Component({ ...@@ -61,13 +62,13 @@ Component({
methods: { methods: {
init() { init() {
this.getShare().then(res => { this.getShare().then(res => {
if (!res.data.need_share) { // if (!this.data.isNeed && !res.data.need_share) {
return // return
} // }
app.getUser().then(res => { app.getUser().then(res => {
res.realname = res.realname || res.nickname res.realname = res.realname || res.nickname
if (res.avatar) { if (res.avatar) {
this.data.avatarList.unshift(res.avatar) !this.data.avatarList.includes(res.avatar) && this.data.avatarList.unshift(res.avatar)
this.setData({ avatarList: this.data.avatarList, 'controls.avatar': res.avatar }) this.setData({ avatarList: this.data.avatarList, 'controls.avatar': res.avatar })
} }
this.setData({ user: res, show: true }) this.setData({ user: res, show: true })
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<view class="text">{{ controls.text }}</view> <view class="text">{{ controls.text }}</view>
<view class="footer"> <view class="footer">
<view class="footer-left"> <view class="footer-left">
<view <view class="tips"
>我已坚持学习<text class="num">{{ share.used_day }}</text >我已坚持学习<text class="num">{{ share.used_day }}</text
>天</view >天</view
> >
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
height: 72rpx; height: 72rpx;
font-size: 26rpx; font-size: 26rpx;
font-weight: 500; font-weight: 500;
font-style: italic; /* font-style: italic; */
color: #1a1a1a; color: #1a1a1a;
line-height: 36rpx; line-height: 36rpx;
overflow: hidden; overflow: hidden;
...@@ -108,6 +108,10 @@ ...@@ -108,6 +108,10 @@
color: #1a1a1a; color: #1a1a1a;
line-height: 36rpx; line-height: 36rpx;
} }
.footer-left .tips {
display: flex;
align-items: center;
}
.num { .num {
font-size: 34rpx; font-size: 34rpx;
color: #d78c4a; color: #d78c4a;
......
...@@ -94,11 +94,11 @@ const style = { ...@@ -94,11 +94,11 @@ const style = {
}, },
text: { text: {
marginTop: 55, marginTop: 55,
marginLeft: 13, marginLeft: 12,
width: 200, width: 200,
height: 36, height: 36,
fontSize: 13, fontSize: 13,
fontWeight: 500, fontWeight: 'bold',
fontStyle: 'italic', fontStyle: 'italic',
color: '#1A1A1A', color: '#1A1A1A',
lineHeight: 18 lineHeight: 18
......
<share semesterId="6741976022452797440" courseId="6798856727123984384" chapterId="6793103998254579712" class="share"></share> <share
semesterId="6741976022452797440"
courseId="6798856727123984384"
chapterId="6793103998254579712"
class="share"
isNeed="{{ true }}"
></share>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论