diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index b360df4f..bb2c6cab 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -672,4 +672,8 @@ export const constantRouterMap = [ path: '/shopping/billDetail',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/components/billDetail'), }, + { + path: '/shopping/ClothDetail1',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/clothDetail1'), + }, ] diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue index 8369464e..b7a79afd 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/chengyi.vue @@ -75,6 +75,7 @@ diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue index e52de488..fd9171b5 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail.vue @@ -293,6 +293,11 @@ path: "/shopping/placeOrder", query: { // id: item.id,//传参 + goodsid:this.$route.query.id, + size : this.size, + title :this.$route.query.title, + name :this.$route.query.name, + parentName : this.$route.query.parentName, }, }); } diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail1.vue b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail1.vue index 3d266d19..0865ef57 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail1.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/clothDetail1.vue @@ -1,6 +1,6 @@ - - + + @@ -27,7 +27,7 @@ - + @@ -73,8 +73,8 @@ - - + + @@ -151,7 +151,7 @@ import Footer from "../components/Footer/FooterView" import { httpAction, getAction } from '@/api/manage' export default { - name: "clothDetail", + name: "clothDetail1", components: { Header,Footer }, data() { return { @@ -293,6 +293,11 @@ path: "/shopping/placeOrder", query: { // id: item.id,//传参 + goodsid:this.$route.query.id, + size : this.size, + title :this.$route.query.title, + name :this.$route.query.name, + parentName : this.$route.query.parentName, }, }); } @@ -334,7 +339,7 @@ }; diff --git a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue index 4f7844d8..68f829dc 100644 --- a/ant-design-vue-jeecg/src/views/shopping/shopHome.vue +++ b/ant-design-vue-jeecg/src/views/shopping/shopHome.vue @@ -86,7 +86,7 @@ - + {{item.title}} {{item.time}} @@ -121,6 +121,7 @@ class="item d-flex" v-for="(item, index) in nanzhuang" :key="index" + @click="tjspxq(item.id,item.title2)" > @@ -138,7 +139,7 @@ - 更多男装 + 更多类型 @@ -148,6 +149,7 @@ class="item d-flex" v-for="(item, index) in nvzhuang" :key="index" + @click="tjspxq(item.id,item.title2)" > @@ -165,7 +167,7 @@ - 更多女装 + 更多类型 @@ -175,6 +177,7 @@ class="item d-flex" v-for="(item, index) in tongzhuang" :key="index" + @click="tjspxq(item.id,item.title2)" > @@ -192,7 +195,7 @@ - 更多童装 + 更多类型 @@ -217,6 +220,7 @@ zxdz: "/zygoods/zyGoods/zxdz", tjsp: "/zygoods/zyGoods/tjsp", fzlx: "/zygoods/zyGoods/fzlx", + tjspxq: "/zygoods/zyGoods/tjspxq", }, // 轮播图数据 imgList: [ @@ -655,10 +659,38 @@ } }) }, + methods:{ + tjspxq(id,title){ + getAction(this.url.tjspxq,{id:id}).then((res) => { + if (res.success) { + console.log(res.result) + this.$router.push({ + path: "/shopping/ClothDetail", + query: { id: id, title: title ,name:res.result.name,parentName:res.result.parentName}, + }); + }else{ + this.$message.error(res.message); + } + }) + }, + tjspxq1(id,title){ + getAction(this.url.tjspxq,{id:id}).then((res) => { + if (res.success) { + console.log(res.result) + this.$router.push({ + path: "/shopping/ClothDetail1", + query: { id: id, title: title ,name:res.result.name,parentName:res.result.parentName}, + }); + }else{ + this.$message.error(res.message); + } + }) + }, + }, }
{{item.title}}
{{item.time}}
@@ -138,7 +139,7 @@
@@ -165,7 +167,7 @@
@@ -192,7 +195,7 @@