Commit c2825b9a authored by 程新智's avatar 程新智 👽

shop

parent e0af07f8
...@@ -17,9 +17,12 @@ ...@@ -17,9 +17,12 @@
} }
uni-page-body { uni-page-body {
width: 100%; width: 100%;
height: 100%;
background: #f9f9f9; background: #f9f9f9;
} }
uni-page-wrapper{ uni-page-wrapper{
width: 100%;
height: 100%; height: 100%;
background: #f9f9f9;
} }
</style> </style>
...@@ -124,6 +124,12 @@ ...@@ -124,6 +124,12 @@
"navigationBarTitleText": "精选商城" "navigationBarTitleText": "精选商城"
} }
}, },
{
"path": "pages/shop/detail",
"style": {
"navigationBarTitleText": "商品详情"
}
},
{ {
"path": "pages/personal/index", "path": "pages/personal/index",
"style": { "style": {
......
...@@ -83,7 +83,6 @@ export default { ...@@ -83,7 +83,6 @@ export default {
<style lang="scss"> <style lang="scss">
.moveCar { .moveCar {
.move_car__content { .move_car__content {
padding: 40rpx; padding: 40rpx;
......
<template>
<div class="shop__detail">
11
</div>
</template>
<script>
export default {
data() {
return {
}
},
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
<div class="shop__list__one"> <div class="shop__list__one">
<div class="view__title">车主精选 养车必备</div> <div class="view__title">车主精选 养车必备</div>
<div class="list__one__items"> <div class="list__one__items">
<div class="one__item" v-for="(vo,inx) in 4" :key="inx"> <div class="one__item" v-for="(vo,inx) in 4" :key="inx" @click="goDetail">
<div class="one__item__img"> <div class="one__item__img">
<image src="../../static/shop/item.png" /> <image src="../../static/shop/item.jpg" />
</div> </div>
<div class="one__item__title"> <div class="one__item__title">
临时停车牌 临时停车牌
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
</div> </div>
</view> </view>
<u-gap bgColor="transparent" height="70"></u-gap> <u-gap bgColor="transparent" height="60"></u-gap>
</view> </view>
</template> </template>
...@@ -60,6 +60,13 @@ export default { ...@@ -60,6 +60,13 @@ export default {
], ],
} }
}, },
methods: {
goDetail() {
uni.navigateTo({
url: '/pages/shop/detail'
})
}
},
}; };
</script> </script>
...@@ -68,6 +75,7 @@ export default { ...@@ -68,6 +75,7 @@ export default {
height: 100%; height: 100%;
.shop__list__one { .shop__list__one {
padding: 0 30rpx; padding: 0 30rpx;
background: #f9f9f9;
.list__one__items { .list__one__items {
display: flex; display: flex;
...@@ -89,6 +97,7 @@ export default { ...@@ -89,6 +97,7 @@ export default {
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 20rpx;
} }
} }
......
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