|
@@ -276,6 +276,30 @@
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
+ <view v-if="active == 0" class="two">
|
|
|
+ <view
|
|
|
+ @click="
|
|
|
+ goPath('/otherPages/exerciseFree/index', {
|
|
|
+ title: '免费试用',
|
|
|
+ })
|
|
|
+ "
|
|
|
+ class="two-item"
|
|
|
+ >
|
|
|
+ <image class="" :src="freeUseBg"></image>
|
|
|
+ <text style="color: #486ea5" class="twp-text">免费试用</text>
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ @click="
|
|
|
+ goPath('/otherPages/exerciseFree/index', {
|
|
|
+ title: '新规秘卷',
|
|
|
+ })
|
|
|
+ "
|
|
|
+ class="two-item"
|
|
|
+ >
|
|
|
+ <image :src="newRulesBg"></image>
|
|
|
+ <text style="color: #3b917a" class="twp-text">新规秘卷</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -289,6 +313,8 @@ import tabRight from "./components/tabRight.vue";
|
|
|
import TabCenter from "./components/tabCenter.vue";
|
|
|
import VideoListBox from "./components/videoListBox.vue";
|
|
|
import userInfoHead from "./components/userInfoHead.vue";
|
|
|
+import freeUseBg from "@/assets/img/freeUseBg.png";
|
|
|
+import newRulesBg from "@/assets/img/newRulesPaperBg.png";
|
|
|
import utils from "@/utils/index";
|
|
|
|
|
|
export default {
|
|
@@ -303,6 +329,8 @@ export default {
|
|
|
userInfoHead,
|
|
|
},
|
|
|
data: () => ({
|
|
|
+ freeUseBg,
|
|
|
+ newRulesBg,
|
|
|
subjectMap: ["科目一", "科目二", "科目三", "科目四"],
|
|
|
tabQuery: {
|
|
|
liceCar: 1,
|
|
@@ -365,7 +393,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/RealExaminationRoomSimulation@2x.png",
|
|
|
- text: "免费试用",
|
|
|
+ text: "真实模拟考试",
|
|
|
path: "/otherPages/classifyFree/index",
|
|
|
},
|
|
|
|
|
@@ -423,8 +451,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
img: "https://t1-1305573081.file.myqcloud.com/wxapp/static/imgs/home/RealExaminationRoomSimulation@2x.png",
|
|
|
- text: "免费试用",
|
|
|
- path: "/otherPages/classifyFree/index",
|
|
|
+ text: "真实模拟考试",
|
|
|
+ path: "/otherPages/classifyFree/index",
|
|
|
},
|
|
|
|
|
|
{
|
|
@@ -527,6 +555,12 @@ export default {
|
|
|
// });
|
|
|
},
|
|
|
methods: {
|
|
|
+ goPath(url, extraQuery = {}) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url:
|
|
|
+ url + "?" + utils.mapToUrlQuery({ ...this.tabQuery, ...extraQuery }),
|
|
|
+ });
|
|
|
+ },
|
|
|
scrollTabs(e) {
|
|
|
console.log(e);
|
|
|
},
|
|
@@ -592,6 +626,26 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.two {
|
|
|
+ width: 100%;
|
|
|
+ height: 140rpx;
|
|
|
+ padding: 0 30rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .two-item {
|
|
|
+ position: relative;
|
|
|
+ .twp-text {
|
|
|
+ position: absolute;
|
|
|
+ top: 32rpx;
|
|
|
+ left: 30rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+ }
|
|
|
+ image {
|
|
|
+ width: 334rpx;
|
|
|
+ height: 140rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
.tabTitle {
|
|
|
width: 690rpx;
|
|
|
margin: 0 auto;
|