Showing
6 changed files
with
62 additions
and
36 deletions
| 1 | <template> | 1 | <template> |
| 2 | <div class="video-wrapper" style="position: relative;"> | 2 | <div class="video-wrapper" style="position: relative;"> |
| 3 | + <!-- FIXME: 反馈意见:需要更改图片 --> | ||
| 3 | <div v-if="mp && detail.showStatus" class="status"> | 4 | <div v-if="mp && detail.showStatus" class="status"> |
| 4 | <van-image v-if="item.status === 'ENABLE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_enable" /> | 5 | <van-image v-if="item.status === 'ENABLE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_enable" /> |
| 5 | <van-image v-if="item.status === 'REFUSE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_refuse" /> | 6 | <van-image v-if="item.status === 'REFUSE'" round width="6rem" height="6rem" style="vertical-align: bottom;" :src="icon_refuse" /> |
| ... | @@ -31,6 +32,7 @@ | ... | @@ -31,6 +32,7 @@ |
| 31 | </van-col> | 32 | </van-col> |
| 32 | </van-row> | 33 | </van-row> |
| 33 | </div> | 34 | </div> |
| 35 | + <!-- FIXME: 反馈意见:显示书名+语言 --> | ||
| 34 | <div @click="goTo" style="color: #999999; padding: 0px 1rem 0.5rem;">{{ item.kg_name }} | {{ item.localism_type }} | 36 | <div @click="goTo" style="color: #999999; padding: 0px 1rem 0.5rem;">{{ item.kg_name }} | {{ item.localism_type }} |
| 35 | </div> | 37 | </div> |
| 36 | </div> | 38 | </div> | ... | ... |
| ... | @@ -4,10 +4,10 @@ | ... | @@ -4,10 +4,10 @@ |
| 4 | <div class="belong-school"> | 4 | <div class="belong-school"> |
| 5 | <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> | 5 | <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> |
| 6 | <van-col span="2"> | 6 | <van-col span="2"> |
| 7 | - <van-image v-if="kgInfo.logo" round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;" > | 7 | + <van-image v-if="kgInfo.logo" round width="3rem" height="3rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;" > |
| 8 | <template v-slot:error>加载失败</template> | 8 | <template v-slot:error>加载失败</template> |
| 9 | </van-image> | 9 | </van-image> |
| 10 | - <van-image v-else round width="2rem" height="2rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;" > | 10 | + <van-image v-else round width="3rem" height="3rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;" > |
| 11 | <template v-slot:error>加载失败</template> | 11 | <template v-slot:error>加载失败</template> |
| 12 | </van-image> | 12 | </van-image> |
| 13 | </van-col> | 13 | </van-col> |
| ... | @@ -23,13 +23,13 @@ | ... | @@ -23,13 +23,13 @@ |
| 23 | <van-row class="van-hairline--bottom"> | 23 | <van-row class="van-hairline--bottom"> |
| 24 | <van-col span="12" class="van-hairline--right"> | 24 | <van-col span="12" class="van-hairline--right"> |
| 25 | <div class="text-box"> | 25 | <div class="text-box"> |
| 26 | - <span class="text">视频上传</span> | 26 | + <span class="text bg-gradient">视频上传</span> |
| 27 | <span class="number"> {{ kgInfo.mission_num }}<span style="color: #888888;">/{{ kgInfo.mission_target }}</span></span> | 27 | <span class="number"> {{ kgInfo.mission_num }}<span style="color: #888888;">/{{ kgInfo.mission_target }}</span></span> |
| 28 | </div> | 28 | </div> |
| 29 | </van-col> | 29 | </van-col> |
| 30 | <van-col span="12"> | 30 | <van-col span="12"> |
| 31 | <div class="text-box"> | 31 | <div class="text-box"> |
| 32 | - <span class="text">作品总数</span> | 32 | + <span class="text bg-gradient">作品总数</span> |
| 33 | <span class="number"> {{ kgInfo.prod_num }}</span> | 33 | <span class="number"> {{ kgInfo.prod_num }}</span> |
| 34 | </div> | 34 | </div> |
| 35 | </van-col> | 35 | </van-col> |
| ... | @@ -37,13 +37,13 @@ | ... | @@ -37,13 +37,13 @@ |
| 37 | <van-row> | 37 | <van-row> |
| 38 | <van-col span="12" class="van-hairline--right"> | 38 | <van-col span="12" class="van-hairline--right"> |
| 39 | <div class="text-box"> | 39 | <div class="text-box"> |
| 40 | - <span class="text">捐书金额</span> | 40 | + <span class="text bg-gradient">捐书金额</span> |
| 41 | <span class="number"> ¥ {{ kgInfo.donate_amt }}</span> | 41 | <span class="number"> ¥ {{ kgInfo.donate_amt }}</span> |
| 42 | </div> | 42 | </div> |
| 43 | </van-col> | 43 | </van-col> |
| 44 | <van-col span="12"> | 44 | <van-col span="12"> |
| 45 | <div class="text-box"> | 45 | <div class="text-box"> |
| 46 | - <span class="text">参与人数</span> | 46 | + <span class="text bg-gradient">参与人数</span> |
| 47 | <span class="number"> {{ kgInfo.perf_num }}</span> | 47 | <span class="number"> {{ kgInfo.perf_num }}</span> |
| 48 | </div> | 48 | </div> |
| 49 | </van-col> | 49 | </van-col> |
| ... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
| 56 | <div class="header van-hairline--bottom"> | 56 | <div class="header van-hairline--bottom"> |
| 57 | <van-row> | 57 | <van-row> |
| 58 | <van-col span="8" class="left"> | 58 | <van-col span="8" class="left"> |
| 59 | - <span class="text" style="border-bottom: 2px solid #F9D95C;">所有书籍</span> | 59 | + <span class="text bg-gradient">所有书籍</span> |
| 60 | </van-col> | 60 | </van-col> |
| 61 | <van-col span="8"></van-col> | 61 | <van-col span="8"></van-col> |
| 62 | <van-col span="8" class="right"> | 62 | <van-col span="8" class="right"> |
| ... | @@ -161,7 +161,7 @@ export default { | ... | @@ -161,7 +161,7 @@ export default { |
| 161 | color: #222222; | 161 | color: #222222; |
| 162 | display: inline-block; | 162 | display: inline-block; |
| 163 | vertical-align: super; | 163 | vertical-align: super; |
| 164 | - margin-left: 1rem; | 164 | + margin-left: 2rem; |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | } | 167 | } |
| ... | @@ -177,15 +177,24 @@ export default { | ... | @@ -177,15 +177,24 @@ export default { |
| 177 | text-align: center; | 177 | text-align: center; |
| 178 | color: #713610; | 178 | color: #713610; |
| 179 | .text-box { | 179 | .text-box { |
| 180 | - padding: 1.5rem 2rem; | 180 | + padding: 1.5rem 1rem; |
| 181 | overflow: auto; | 181 | overflow: auto; |
| 182 | .text { | 182 | .text { |
| 183 | color: #222222; | 183 | color: #222222; |
| 184 | - border-bottom: 2px solid @base-color; | 184 | + // border-bottom: 3px solid @base-color; |
| 185 | + // text-decoration: underline; | ||
| 186 | + // text-decoration-color: @base-color; | ||
| 185 | font-size: 0.85rem; | 187 | font-size: 0.85rem; |
| 186 | display: block; | 188 | display: block; |
| 187 | float: left; | 189 | float: left; |
| 188 | } | 190 | } |
| 191 | + .bg-gradient { | ||
| 192 | + background: linear-gradient(@base-color, @base-color) no-repeat; | ||
| 193 | + /*调整下划线的宽度占百分之百 高度是3px */ | ||
| 194 | + background-size: 100% 3px; | ||
| 195 | + /* 调整下划线的起始位置 左侧是0 上边是1.15em */ | ||
| 196 | + background-position: 0 1.15em; | ||
| 197 | + } | ||
| 189 | .number { | 198 | .number { |
| 190 | display: block; | 199 | display: block; |
| 191 | float: right; | 200 | float: right; |
| ... | @@ -213,6 +222,13 @@ export default { | ... | @@ -213,6 +222,13 @@ export default { |
| 213 | color: #888888; | 222 | color: #888888; |
| 214 | font-size: 0.9rem; | 223 | font-size: 0.9rem; |
| 215 | } | 224 | } |
| 225 | + .bg-gradient { | ||
| 226 | + background: linear-gradient(@base-color, @base-color) no-repeat; | ||
| 227 | + /*调整下划线的宽度占百分之百 高度是3px */ | ||
| 228 | + background-size: 100% 3px; | ||
| 229 | + /* 调整下划线的起始位置 左侧是0 上边是1.15em */ | ||
| 230 | + background-position: 0 1.2rem; | ||
| 231 | + } | ||
| 216 | } | 232 | } |
| 217 | } | 233 | } |
| 218 | .ding { | 234 | .ding { | ... | ... |
| ... | @@ -200,6 +200,7 @@ const themeVars = { | ... | @@ -200,6 +200,7 @@ const themeVars = { |
| 200 | buttonPrimaryBackground: '#F9D95C', | 200 | buttonPrimaryBackground: '#F9D95C', |
| 201 | buttonPrimaryBorderColor: '#F9D95C', | 201 | buttonPrimaryBorderColor: '#F9D95C', |
| 202 | buttonPrimaryColor: '#713610', | 202 | buttonPrimaryColor: '#713610', |
| 203 | + CellVerticalPadding: '14px' | ||
| 203 | }; | 204 | }; |
| 204 | </script> | 205 | </script> |
| 205 | 206 | ||
| ... | @@ -277,8 +278,8 @@ body { | ... | @@ -277,8 +278,8 @@ body { |
| 277 | background-color: @base-color; | 278 | background-color: @base-color; |
| 278 | text-align: center; | 279 | text-align: center; |
| 279 | color: #713610; | 280 | color: #713610; |
| 280 | - font-size: 2vh; | 281 | + font-size: 2.25vh; |
| 281 | - padding: 1vh; | 282 | + padding: 1.5vh; |
| 282 | border-radius: 5px; | 283 | border-radius: 5px; |
| 283 | } | 284 | } |
| 284 | } | 285 | } | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="book-detail-page content-bg"> | 2 | <div class="book-detail-page content-bg"> |
| 3 | <div class="modify-top"></div> | 3 | <div class="modify-top"></div> |
| 4 | + <div style="height: 1.5rem;"></div> | ||
| 4 | <div class="book-detail"> | 5 | <div class="book-detail"> |
| 5 | <div style="text-align: center;"> | 6 | <div style="text-align: center;"> |
| 6 | <van-image width="220" height="220" :src="bookInfo.cover" /> | 7 | <van-image width="220" height="220" :src="bookInfo.cover" /> |
| ... | @@ -73,15 +74,20 @@ | ... | @@ -73,15 +74,20 @@ |
| 73 | <div style="height: 6rem;"></div> | 74 | <div style="height: 6rem;"></div> |
| 74 | <div class="book-bar"> | 75 | <div class="book-bar"> |
| 75 | <div @click="onSubscribe" class="text"> | 76 | <div @click="onSubscribe" class="text"> |
| 76 | - <van-icon v-if="!bookInfo.is_subscribe" :name="icon_subscribed" size="1.25rem" style="margin: 0 auto;" /> | 77 | + <template v-if="!bookInfo.is_subscribe"> |
| 77 | - <van-icon v-else :name="icon_unsubscribe" size="1.25rem" style="margin: 0 auto;" /> | 78 | + <van-icon :name="icon_subscribed" size="1.25rem" style="margin: 0 auto;" /> |
| 78 | - <span style="font-size: 0.85rem;">订阅</span> | 79 | + <span style="font-size: 0.85rem;">订阅</span> |
| 80 | + </template> | ||
| 81 | + <template v-else> | ||
| 82 | + <van-icon :name="icon_unsubscribe" size="1.25rem" style="margin: 0 auto;" /> | ||
| 83 | + <span style="font-size: 0.85rem;">已订阅</span> | ||
| 84 | + </template> | ||
| 79 | </div> | 85 | </div> |
| 80 | <div class="button"> | 86 | <div class="button"> |
| 81 | - <my-button @on-click="toDonate" type="plain">爱心捐书</my-button> | 87 | + <my-button @on-click="uploadVideo" type="primary">上传作品</my-button> |
| 82 | </div> | 88 | </div> |
| 83 | <div class="button"> | 89 | <div class="button"> |
| 84 | - <my-button @on-click="uploadVideo" type="primary">上传作品</my-button> | 90 | + <my-button @on-click="toDonate" type="plain">爱心捐书</my-button> |
| 85 | </div> | 91 | </div> |
| 86 | </div> | 92 | </div> |
| 87 | <shortcut-fixed type="C" :item="['home', 'me']"></shortcut-fixed> | 93 | <shortcut-fixed type="C" :item="['home', 'me']"></shortcut-fixed> |
| ... | @@ -316,11 +322,13 @@ export default { | ... | @@ -316,11 +322,13 @@ export default { |
| 316 | color: #222222; | 322 | color: #222222; |
| 317 | font-size: 1.25rem; | 323 | font-size: 1.25rem; |
| 318 | font-weight: bold; | 324 | font-weight: bold; |
| 325 | + margin-bottom: 0.5rem; | ||
| 319 | } | 326 | } |
| 320 | 327 | ||
| 321 | #book-intro { | 328 | #book-intro { |
| 322 | color: #333333; | 329 | color: #333333; |
| 323 | margin-top: 0.25rem; | 330 | margin-top: 0.25rem; |
| 331 | + line-height: 1.7; | ||
| 324 | } | 332 | } |
| 325 | 333 | ||
| 326 | .book-toggle-icon { | 334 | .book-toggle-icon { | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="choose-book-page content-bg"> | 2 | <div class="choose-book-page content-bg"> |
| 3 | <div class="modify-top"></div> | 3 | <div class="modify-top"></div> |
| 4 | - <div class="belong-school"> | 4 | + <div class="belong-school" v-if="kg_id"> |
| 5 | - <template v-if="kg_id"> | 5 | + <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> |
| 6 | - <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> | 6 | + <van-col span="2"> |
| 7 | - <van-col span="2"> | 7 | + <van-image v-if="kgInfo.logo" round width="3rem" height="3rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;"> |
| 8 | - <van-image v-if="kgInfo.logo" round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;"> | 8 | + <template v-slot:error>加载失败</template> |
| 9 | - <template v-slot:error>加载失败</template> | 9 | + </van-image> |
| 10 | - </van-image> | 10 | + <van-image v-else round width="3rem" height="3rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;"> |
| 11 | - <van-image v-else round width="2rem" height="2rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;"> | 11 | + <template v-slot:error>加载失败</template> |
| 12 | - <template v-slot:error>加载失败</template> | 12 | + </van-image> |
| 13 | - </van-image> | 13 | + </van-col> |
| 14 | - </van-col> | 14 | + <van-col span="22"> |
| 15 | - <van-col span="22"> | 15 | + <p class="title">{{ kgInfo.name }}</p> |
| 16 | - <p class="title">{{ kgInfo.name }}</p> | 16 | + </van-col> |
| 17 | - </van-col> | 17 | + </van-row> |
| 18 | - </van-row> | ||
| 19 | - </template> | ||
| 20 | </div> | 18 | </div> |
| 19 | + <div v-else style="height: 2.5rem;"></div> | ||
| 21 | <div style="position: relative;"> | 20 | <div style="position: relative;"> |
| 22 | <div class="ding left"></div> | 21 | <div class="ding left"></div> |
| 23 | <div style="position: relative; z-index: 100;"> | 22 | <div style="position: relative; z-index: 100;"> |
| ... | @@ -111,7 +110,7 @@ const onClick = (item) => { | ... | @@ -111,7 +110,7 @@ const onClick = (item) => { |
| 111 | color: #222222; | 110 | color: #222222; |
| 112 | display: inline-block; | 111 | display: inline-block; |
| 113 | vertical-align: super; | 112 | vertical-align: super; |
| 114 | - margin-left: 1rem; | 113 | + margin-left: 2rem; |
| 115 | } | 114 | } |
| 116 | 115 | ||
| 117 | } | 116 | } | ... | ... |
| ... | @@ -11,10 +11,10 @@ | ... | @@ -11,10 +11,10 @@ |
| 11 | <p>共读这么精彩的书籍</p> | 11 | <p>共读这么精彩的书籍</p> |
| 12 | </div> | 12 | </div> |
| 13 | <div v-if="book_id" style="padding: 0 15% 0.5rem 15%;"> | 13 | <div v-if="book_id" style="padding: 0 15% 0.5rem 15%;"> |
| 14 | - <my-button @on-click="toDonate" type="plain">我要爱心捐书</my-button> | 14 | + <my-button @on-click="toDonate" type="primary">我要爱心捐书</my-button> |
| 15 | </div> | 15 | </div> |
| 16 | <div style="padding: 0 15% 1rem 15%;"> | 16 | <div style="padding: 0 15% 1rem 15%;"> |
| 17 | - <my-button @on-click="goBack" type="primary">返回</my-button> | 17 | + <my-button @on-click="goBack" type="plain">返回</my-button> |
| 18 | </div> | 18 | </div> |
| 19 | </div> | 19 | </div> |
| 20 | 20 | ... | ... |
-
Please register or login to post a comment