Commit ae0a94c0 authored by Facius's avatar Facius

界面更新

parent 9f6da214
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
<view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc" <view><video object-fit="cover" class="course-video" id="courseVideo" :src="courseSrc"
@error="videoErrorCallback" controls></video></view> @error="videoErrorCallback" controls></video></view>
<view class="title-content"> <view class="title-content">
<view class="item-content"> <view class="item-content">
<view class="item-st"> <view class="item-st">
<image style="width: 80rpx;height: 36rpx;" :src="kcImage"></image>
<text class="item-st-text">{{courseTitle.split(' ') ? courseTitle.split(' ')[0] : ''}}</text> <text class="item-st-text">{{courseTitle.split(' ') ? courseTitle.split(' ')[0] : ''}}</text>
</view> </view>
<view class="item-title">{{courseTitle.split(' ') ? courseTitle.split(' ')[1] : ''}}</view> <view class="item-title">{{courseTitle.split(' ') ? courseTitle.split(' ')[1] : ''}}</view>
...@@ -63,6 +64,9 @@ ...@@ -63,6 +64,9 @@
'1、勘测环节录单要求', '1、勘测环节录单要求',
'2、安装环节录单要求' '2、安装环节录单要求'
]] ]]
},
kcImage() {
return qn_base_url + 'kc.png'
} }
}, },
onLoad(e) { onLoad(e) {
...@@ -168,28 +172,32 @@ ...@@ -168,28 +172,32 @@
font-size: 24rpx; font-size: 24rpx;
.item-content { .item-content {
display: flex; display: flex;
align-items: center;
} }
.item-st { .item-st {
width: 80rpx; width: 80rpx;
height: 36rpx; height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174); padding-right: 2rpx;
font-size: 16rpx; text-align: center;
border-radius: 6rpx 36rpx 36rpx 6rpx; margin-right: 20rpx;
padding-top: 8rpx; line-height: 24rpx;
padding-right: 2rpx; position: relative;
text-align: center; .item-st-text {
margin-right: 20rpx; color: #FFFFFF;
position: absolute;
.item-st-text { font-size: 16rpx;
color: #FFFFFF; left: 20rpx;
} top: 8rpx;
line-height: 28rpx;
}
} }
.item-title { .item-title {
color: #333333; color: #333333;
font-size: 28rpx; font-size: 44rpx;
font-weight: bold;
} }
} }
...@@ -199,18 +207,6 @@ ...@@ -199,18 +207,6 @@
padding-bottom: 30rpx; padding-bottom: 30rpx;
} }
.item-st {
width: 80rpx;
height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174);
font-size: 16rpx;
border-radius: 6rpx 36rpx 36rpx 6rpx;
padding-top: 8rpx;
padding-right: 2rpx;
text-align: center;
margin-right: 20rpx;
}
.item-title { .item-title {
color: #333333; color: #333333;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
<view class="learn-view-title">接单操作须知</view> <view class="learn-view-title">接单操作须知</view>
<view class="learn-list" v-for="(item, key) in tutorials" :key="key"> <view class="learn-list" v-for="(item, key) in tutorials" :key="key">
<view class="learn-list-item"> <view class="learn-list-item">
<view class="item-content"> <view class="item-content">
<view class="item-st"><text <view class="item-st">
class="item-st-text">{{item.title.split(' ') ? item.title.split(' ')[0] : ''}}</text> <image style="width: 80rpx;height: 36rpx;" :src="kcImage"></image>
<text class="item-st-text">{{item.title.split(' ') ? item.title.split(' ')[0] : ''}}</text>
</view> </view>
<view class="item-title">{{item.title.split(' ') ? item.title.split(' ')[1] : ''}}</view> <view class="item-title">{{item.title.split(' ') ? item.title.split(' ')[1] : ''}}</view>
</view> </view>
...@@ -139,6 +140,9 @@ ...@@ -139,6 +140,9 @@
}, },
tips1Image() { tips1Image() {
return qn_base_url + 'tips1.png' return qn_base_url + 'tips1.png'
},
kcImage() {
return qn_base_url + 'kc.png'
} }
}, },
onLoad() { onLoad() {
...@@ -291,16 +295,18 @@ ...@@ -291,16 +295,18 @@
.item-st { .item-st {
width: 80rpx; width: 80rpx;
height: 36rpx; height: 36rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174);
font-size: 16rpx;
border-radius: 6rpx 36rpx 36rpx 6rpx;
padding-top: 8rpx;
padding-right: 2rpx; padding-right: 2rpx;
text-align: center; text-align: center;
margin-right: 20rpx; margin-right: 20rpx;
line-height: 24rpx; line-height: 24rpx;
position: relative;
.item-st-text { .item-st-text {
color: #FFFFFF; color: #FFFFFF;
position: absolute;
font-size: 16rpx;
left: 20rpx;
top: 8rpx;
line-height: 28rpx;
} }
} }
......
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