|
@@ -2,6 +2,7 @@
|
|
|
import { ref, reactive, defineComponent } from 'vue'
|
|
|
import { useStore } from 'vuex'
|
|
|
import { useRoute } from "vue-router"
|
|
|
+import { getQueryParamFromUrl } from '@/assets/js/conmmon'
|
|
|
import banner from '@/components/layout/banner.vue'
|
|
|
import recomMendation from '@/components/layout/recomMendation.vue'
|
|
|
export default defineComponent({
|
|
@@ -20,9 +21,9 @@ export default defineComponent({
|
|
|
}
|
|
|
return array
|
|
|
}
|
|
|
- setTimeout(()=>{
|
|
|
- pageStatus.value = true
|
|
|
- })
|
|
|
+ store.state.pageContent = []
|
|
|
+ store.state.footerStatus = false
|
|
|
+ pageStatus.value = true
|
|
|
return { store, recomMendationList,pageStatus }
|
|
|
},
|
|
|
components:{
|
|
@@ -52,22 +53,25 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if(params.query?.categoryid && !params.query.dup){
|
|
|
- paramsData = {
|
|
|
- params:{
|
|
|
- categoryid: params.query?.categoryid,
|
|
|
- pageNum:1,
|
|
|
- pageSize:1,
|
|
|
- order:"sortindex",
|
|
|
- articleid: params.query?.id,
|
|
|
- id: params.query?.id,
|
|
|
- details:true
|
|
|
- },
|
|
|
- index:params.path,
|
|
|
- sub:sub.value
|
|
|
+ setTimeout(()=>{
|
|
|
+ params.query = route.value.query
|
|
|
+ if(params.query?.categoryid && !params.query.dup){
|
|
|
+ paramsData = {
|
|
|
+ params:{
|
|
|
+ categoryid: params.query?.categoryid,
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:1,
|
|
|
+ order:"sortindex",
|
|
|
+ articleid: params.query?.id,
|
|
|
+ id: params.query?.id,
|
|
|
+ details:true
|
|
|
+ },
|
|
|
+ index:params.path,
|
|
|
+ sub:sub.value
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- return store.dispatch('getPageData',paramsData)
|
|
|
+ return store.dispatch('getPageData',paramsData)
|
|
|
+ },1)
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -77,7 +81,7 @@ export default defineComponent({
|
|
|
<section class="common-bradcrumb-section" >
|
|
|
<banner />
|
|
|
</section>
|
|
|
- <section class="product-content-section pt-60" v-show="pageStatus">
|
|
|
+ <section class="product-content-section pt-60" v-if="pageStatus">
|
|
|
<div class="container" v-if="store.state.pageContent.length>0">
|
|
|
<div class="row">
|
|
|
<div class="col-lg-12 col-md-12 content">
|