Commit 5706d176 authored by zhengke's avatar zhengke

优化 模版详情 预览

parent ada59fc9
......@@ -143,6 +143,10 @@ const props = defineProps({
type: Number,
default: 0,
},
isModel: {
type: Number as any,
default: 0,
}
})
const emit = defineEmits<{
(event: 'close'): void,
......@@ -237,7 +241,7 @@ const goToTemplate = (item: any) => {
url = createSaleEditorLink(Editor.id,item.TempId,Editor.type,Editor.pid,Editor.e,Editor.c)
}
else if(model.value==0 && router.currentRoute.value.params.configId) url = createOpEditorLink(parseInt(router.currentRoute.value.params.configId.toString()),item.TempType,item.TempId)
else if(model.value==1) {
else if(model.value==1||props.isModel) {
searchData.value.currentMenu = null
url = managerTemplateLink(item.TempId,item.TemplateType)
openNewBlank(url)
......
......@@ -196,8 +196,7 @@
</div>
<div class="MarketIndexList-img">
<LazyImg :url="item.CoverImg"
class="rounded" style="display: block;"
@error="errorImg"/>
class="rounded" style="display: block;"/>
</div>
</div>
</template>
......@@ -343,9 +342,6 @@ const goBackTop = () => {
marketRef.value.scrollTop = 0
}
const errorImg = (res:any)=>{
console.log(res,'===')
}
// 关闭vip购买提示
const closeVip = () =>{
......
......@@ -201,6 +201,7 @@
:Details="datas.TemDetails"
:Total="dataList.length"
:TemCurrent="datas.currentImg"
:isModel="1"
@close="DetailsVisible=false"
@previous="previous"
@next="next"/>
......@@ -266,7 +267,7 @@ const SalesEditorStore = useSellTemplateStore()
const { SalesEditor, SalesBack } = storeToRefs(useSellTemplateStore())
const personVisible = ref(false)
const model = ref(2)
// const model = ref(2)
const showCurrentTemplate = ref<any>()
const imgList = ref<any>()
const deleteLoading = ref<any>(null)
......
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