diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue index 2d3c840..422e6b1 100644 --- a/src/views/productsMsg/components/productInfo.vue +++ b/src/views/productsMsg/components/productInfo.vue @@ -12,15 +12,11 @@ export default { iframViewStyle:{ height:"", }, - url:'' + url:`http://localhost:80/productinformation?type=${this.$route.query.type}&flag=${this.$route.query.flag}&data=${this.$route.query.data}&token=${localStorage.getItem('MSSM-LIAONING__TOKEN')}` } }, - created(){ - this.url = `http://localhost:80/productinformation?type=${this.$route.query.type}&flag=${this.$route.query.flag || ''}&data=${this.$route.query.data || ''}` - }, methods:{ }, - mounted() { this.$nextTick(()=>{ let dom = document.getElementsByClassName('ifram-view'); diff --git a/src/views/productsMsg/index.vue b/src/views/productsMsg/index.vue index 7e6cc36..4379ec4 100644 --- a/src/views/productsMsg/index.vue +++ b/src/views/productsMsg/index.vue @@ -154,7 +154,10 @@ export default { methods: { //去内嵌页面 toDetail(e) { - console.log(e); + this.$router.push({ + path: `/cosmeticsDetail`, + query: { type: 2, data:e.yppzwh }, + }); }, //搜索 searchList() {