260 lines
7.2 KiB
Vue
260 lines
7.2 KiB
Vue
<template>
|
||
<view>
|
||
<top-bar></top-bar>
|
||
<common-header></common-header>
|
||
<category-bar></category-bar>
|
||
<view class="w-1200">
|
||
<u-swiper :list="list" :height="380" borderRadius="0"></u-swiper>
|
||
<view class="tool-bar">
|
||
<view class="search">
|
||
<text>地区:</text>
|
||
<el-cascader :options="options">
|
||
<template slot-scope="{ node, data }">
|
||
<span>{{ data.label }}</span>
|
||
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
||
</template>
|
||
</el-cascader>
|
||
</view>
|
||
<view class="buy-btn">
|
||
<image src="https://oss.wsdns.cn/20231204/bcc976f4396e437abf19deb11c1f06b4.png" mode="widthFix" />
|
||
</view>
|
||
</view>
|
||
<view class="tool-bar">
|
||
<view class="item">分类:</view>
|
||
<view class="item">全部</view>
|
||
<view class="item">果蔬农产品</view>
|
||
<view class="item">特产食品粮油肉蛋禽</view>
|
||
<view class="item">茶类</view>
|
||
<view class="item">酒类</view>
|
||
<view class="item">工艺类</view>
|
||
<view class="item">旅游户外商用</view>
|
||
<view class="item">日用美容洗涤</view>
|
||
<view class="item">电子产品</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="goods-list">
|
||
<el-row class="wrap" type="flex" :gutter="10" justify="space-between">
|
||
<el-col :span="5">
|
||
<div class="grid-content bg-purple" @click="navTo('/pages/goods-detail/goods-detail?id=1')">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">
|
||
<el-tag
|
||
type="danger"
|
||
size="mini">
|
||
自营
|
||
</el-tag>
|
||
商品名称
|
||
</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
<el-col :span="5">
|
||
<div class="grid-content bg-purple">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">商品名称</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
<el-col :span="5">
|
||
<div class="grid-content bg-purple">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">商品名称</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
<el-col :span="5">
|
||
<div class="grid-content bg-purple">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">商品名称</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
<el-col :span="4">
|
||
<div class="grid-content bg-purple">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">商品名称</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
<el-col :span="5">
|
||
<div class="grid-content bg-purple">
|
||
<image src="http://jyx.gxwebsoft.com/uploads/20210828/0d9c23898f9c922fd96983f974d3fe84.jpg" mode="aspectFit" />
|
||
<view class="comments">
|
||
<view class="goods-name">商品名称</view>
|
||
<view class="goods-price">¥139.00</view>
|
||
</view>
|
||
</div>
|
||
</el-col>
|
||
</el-row>
|
||
<div class="pagination">
|
||
<el-pagination
|
||
background
|
||
layout="prev, pager, next"
|
||
:total="1000">
|
||
</el-pagination>
|
||
</div>
|
||
</view>
|
||
<!-- 现货市场 end -->
|
||
<gap height="50"/>
|
||
<common-footer></common-footer>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import UGap from "@/uni_modules/vk-uview-ui/components/u-gap/u-gap.vue";
|
||
|
||
export default {
|
||
components: {UGap},
|
||
data() {
|
||
return {
|
||
list: [{
|
||
image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
|
||
title: '昨夜星辰昨夜风,画楼西畔桂堂东'
|
||
},
|
||
{
|
||
image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
|
||
title: '身无彩凤双飞翼,心有灵犀一点通'
|
||
},
|
||
{
|
||
image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
|
||
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
|
||
}
|
||
],
|
||
options: [{
|
||
value: 'zhinan',
|
||
label: '广西',
|
||
children: [{
|
||
value: 'shejiyuanze',
|
||
label: '南宁市',
|
||
children: [{
|
||
value: 'yizhi',
|
||
label: '良庆区'
|
||
}, {
|
||
value: 'fankui',
|
||
label: 'XXX'
|
||
}, {
|
||
value: 'xiaolv',
|
||
label: 'XXX'
|
||
}, {
|
||
value: 'kekong',
|
||
label: 'XXX'
|
||
}]
|
||
}, {
|
||
value: 'daohang',
|
||
label: '北海市',
|
||
children: [{
|
||
value: 'cexiangdaohang',
|
||
label: 'XXX'
|
||
}, {
|
||
value: 'dingbudaohang',
|
||
label: 'XXX'
|
||
}]
|
||
}]
|
||
}]
|
||
};
|
||
},
|
||
onLoad(options) {
|
||
console.log(options);
|
||
if (options && options.menu) {
|
||
this.currMenu = options.menu
|
||
}
|
||
},
|
||
methods: {
|
||
menuSelect(e) {
|
||
this.currMenu = e
|
||
},
|
||
navTo(url) {
|
||
vk.navigateTo(url);
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
.w-1200 {
|
||
width: 1200px;
|
||
margin: 20px auto;
|
||
background-color: #fff;
|
||
.test{
|
||
height: 50px;
|
||
color: #ffffff;
|
||
font-size: 18px;
|
||
background-color: #bf2b28;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
text{
|
||
margin: 0 20px;
|
||
}
|
||
}
|
||
.tool-bar{
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 20px;
|
||
font-size: 16px;
|
||
.search{
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
}
|
||
}
|
||
.wrap{
|
||
flex-wrap: wrap;
|
||
}
|
||
.goods-list{
|
||
width: 1200px;
|
||
margin: 20px auto;
|
||
.grid-content{
|
||
display: flex;
|
||
justify-content: center;
|
||
background-color: #fff;
|
||
width: 100%;
|
||
padding: 10px;
|
||
margin-bottom: 10px;
|
||
flex-direction: column;
|
||
.comments{
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: start;
|
||
line-height: 2em;
|
||
.goods-name{
|
||
font-size: 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.goods-price{
|
||
color: #bf2b28;
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
}
|
||
}
|
||
}
|
||
.bg-purple{
|
||
border-top: 1px solid #f3f3f3;
|
||
border-right: 1px solid #f3f3f3;
|
||
image{
|
||
width: 180px;
|
||
height: 180px;
|
||
}
|
||
}
|
||
}
|
||
.pagination{
|
||
width: 1200px;
|
||
margin: 20px auto;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
</style>
|