Commit 623468c1 authored by zhengke's avatar zhengke

模版解锁

parent 79d5a65b
<template> <template>
<div ref="marketRef" class="Market-from"> <div ref="marketRef" class="Market-from">
<div class="Market-fromBj"></div> <div class="Market-fromBj"></div>
<div class="relative" style="padding: 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;"> <div class="">
<div :class="[datas.scrollTop>200?'MarketHeader':'']"> <div :class="[datas.scrollTop>200?'MarketHeader':'']">
<div class="row items-center"> <adHeader v-if="!userInfo.iv&&!userInfo.it&&!userInfo.OpenScanCode" style="position: relative;z-index: 2;"
@close="closeScanCode" @scanCode="isPublicAccount=true"></adHeader>
<div class="MarketSearch row items-center">
<img class="q-pr-36 cusor-pointer" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png" style="height: 28px;" @click="forwordHandler('/space')" /> <img class="q-pr-36 cusor-pointer" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png" style="height: 28px;" @click="forwordHandler('/space')" />
<div class="row grow Market-select reactive"> <div class="row grow Market-select reactive">
<el-input v-model="queryObj.Title" placeholder="请输入关键字" class="input-with-select q-pr-33"> <el-input v-model="queryObj.Title" placeholder="请输入关键字" class="input-with-select q-pr-33">
...@@ -16,9 +18,10 @@ ...@@ -16,9 +18,10 @@
</template> </template>
</el-input> </el-input>
</div> </div>
<UserCard></UserCard> <UserCard :ScanCode="ScanCode"></UserCard>
</div> </div>
</div> </div>
<div class="relative" style="padding: 0 17px 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;">
<div class="marketTag-from row"> <div class="marketTag-from row">
<div class="bg-white rounded text-nowrap marketTag"> <div class="bg-white rounded text-nowrap marketTag">
<div class="column text-small"> <div class="column text-small">
...@@ -177,7 +180,7 @@ ...@@ -177,7 +180,7 @@
</div> --> </div> -->
<div class="MarketIndexListBox bg-white rounded"> <div class="MarketIndexListBox bg-white rounded">
<div class="MarketIndexList-Hover"> <div class="MarketIndexList-Hover">
<div class="MarketIndexButtomIcon row flex-between"> <div v-if="item.TempId" class="MarketIndexButtomIcon row flex-between">
<div> <div>
</div> </div>
<div> <div>
...@@ -187,10 +190,14 @@ ...@@ -187,10 +190,14 @@
</el-icon> </el-icon>
</div> </div>
</div> </div>
<div v-else class="Unlock-Box row items-center flex-center">
<img class="cursor-pointer" src="../../assets//img/Unlock.png"
style="width: 87px;height: 94px;" @click="goToTemplate(item,1)"/>
</div>
<div class="MarketIndexButtomBox"> <div class="MarketIndexButtomBox">
<el-button class="MarketIndexButtom" type="primary" <el-button class="MarketIndexButtom" type="primary"
@click="goToTemplate(item)"> @click="item.TempId?goToTemplate(item):goToTemplate(item,1)">
{{model==1?'编辑':'使用'}} {{item.TempId?'使用':'立即解锁'}}
</el-button> </el-button>
</div> </div>
</div> </div>
...@@ -212,6 +219,8 @@ ...@@ -212,6 +219,8 @@
</div> </div>
</div> </div>
</div>
<foote v-if="(queryObj.pageCount == queryObj.pageIndex || queryObj.pageCount==0) && !loading"></foote> <foote v-if="(queryObj.pageCount == queryObj.pageIndex || queryObj.pageCount==0) && !loading"></foote>
</div> </div>
...@@ -227,6 +236,9 @@ ...@@ -227,6 +236,9 @@
<vipFooter v-if="!userInfo.iv&&!userInfo.it&&!userInfo.OpenPrompt" @close="closeVip"></vipFooter> <vipFooter v-if="!userInfo.iv&&!userInfo.it&&!userInfo.OpenPrompt" @close="closeVip"></vipFooter>
<!-- 到顶部 --> <!-- 到顶部 -->
<BackTop v-if="dataList.length>10" :scrollTop="marketRef&&marketRef.scrollTop>=0?marketRef.scrollTop:0" @BackTop="goBackTop"></BackTop> <BackTop v-if="dataList.length>10" :scrollTop="marketRef&&marketRef.scrollTop>=0?marketRef.scrollTop:0" @BackTop="goBackTop"></BackTop>
<!-- 关注公众号 -->
<follow v-show="isPublicAccount" :show="isPublicAccount" @close="isPublicAccount=false"
@success="isPublicAccount=false,userInfo.OpenScanCode=true"></follow>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
...@@ -247,6 +259,7 @@ import { VIEWPORT_SIZE, VIEWPORT_VER_SIZE } from '@/configs/canvas' ...@@ -247,6 +259,7 @@ import { VIEWPORT_SIZE, VIEWPORT_VER_SIZE } from '@/configs/canvas'
import foote from '@/components/footer/index.vue'; import foote from '@/components/footer/index.vue';
import temDetails from "@/components/home/temDetails.vue"; import temDetails from "@/components/home/temDetails.vue";
import vipFooter from "@/components/home/vipFooter.vue"; import vipFooter from "@/components/home/vipFooter.vue";
import adHeader from '@/components/home/adHeader.vue';
import BackTop from "@/components/home/BackTop.vue"; import BackTop from "@/components/home/BackTop.vue";
import { LazyImg, Waterfall } from 'vue-waterfall-plugin-next' import { LazyImg, Waterfall } from 'vue-waterfall-plugin-next'
import 'vue-waterfall-plugin-next/dist/style.css' import 'vue-waterfall-plugin-next/dist/style.css'
...@@ -338,11 +351,17 @@ const loadProps = reactive({ ...@@ -338,11 +351,17 @@ const loadProps = reactive({
error error
}) })
const isPublicAccount = ref(false)
const goBackTop = () => { const goBackTop = () => {
marketRef.value.scrollTop = 0 marketRef.value.scrollTop = 0
} }
// 关闭扫码提示
const closeScanCode = () =>{
userInfo.value.OpenScanCode = true
}
// 关闭vip购买提示 // 关闭vip购买提示
const closeVip = () =>{ const closeVip = () =>{
userInfo.value.OpenPrompt = true userInfo.value.OpenPrompt = true
...@@ -430,7 +449,10 @@ const getTemplate = (item:any,index:Number) => { ...@@ -430,7 +449,10 @@ const getTemplate = (item:any,index:Number) => {
/** /**
* 页面跳转 * 页面跳转
*/ */
const goToTemplate = (item: any) => { const goToTemplate = (item: any,type:any) => {
if(type) return router.push({
path:`/p/show`
})
searchData.value.TempId = item.TempId searchData.value.TempId = item.TempId
if((searchData.value.TempId2&&searchData.value.TempId2!=item.TempId)||!searchData.value.TempId2) { if((searchData.value.TempId2&&searchData.value.TempId2!=item.TempId)||!searchData.value.TempId2) {
slidesStore.ClearSlides() slidesStore.ClearSlides()
...@@ -762,17 +784,17 @@ onMounted(()=>{ ...@@ -762,17 +784,17 @@ onMounted(()=>{
margin-top: 38px; margin-top: 38px;
} }
.MarketHeader>div{ .MarketHeader .MarketSearch{
padding: 10px 22px; /* padding: 10px 22px;
max-width:1440px; max-width:1440px;
margin:0 auto; margin:0 auto; */
} }
.MarketHeader{ .MarketHeader{
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
z-index: 2; z-index: 3;
background: #E3ECFF; background: #E3ECFF;
animation:myHeader 1s; animation:myHeader 1s;
-webkit-animation:myHeader 1s; -webkit-animation:myHeader 1s;
...@@ -788,6 +810,13 @@ onMounted(()=>{ ...@@ -788,6 +810,13 @@ onMounted(()=>{
from {top: -100px;} from {top: -100px;}
to {top: 0px;} to {top: 0px;}
} }
.MarketSearch{
padding: 0 17px;
max-width:1440px;
margin: 22px auto;
position: relative;
z-index: 2;
}
.Market-select-line{ .Market-select-line{
width: 1px; width: 1px;
height: 14px; height: 14px;
...@@ -1017,4 +1046,11 @@ onMounted(()=>{ ...@@ -1017,4 +1046,11 @@ onMounted(()=>{
padding: 0; padding: 0;
width: 199px !important; width: 199px !important;
} }
.Unlock-Box{
position: absolute;
left: 0;
right: 0;
bottom: 42px;
}
</style> </style>
\ No newline at end of file
...@@ -162,9 +162,11 @@ const openFilePositionHandler = (item:any)=>{ ...@@ -162,9 +162,11 @@ const openFilePositionHandler = (item:any)=>{
</script> </script>
<style> <style>
.search-area{ .search-area{
position:absolute; position: relative;
left: calc(50% - 31.8vw - 10px);
/* position: absolute;
left: calc(50% - 19vw - 10px); */
top:0px; top:0px;
left: calc(50% - 19vw - 10px);
z-index:9; z-index:9;
} }
.search-range-box{ .search-range-box{
......
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