@ -0,0 +1,160 @@
|
||||
<template> |
||||
<!--pages/release/companyAuth/index.wxml--> |
||||
<view class="auth-page"> |
||||
<view class="company-info-box"> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">项目名称<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" |
||||
placeholder="请输入"> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">项目领域<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<picker class="pick-box" @change="" mode="selector"> |
||||
<view class="picker row-middle">{{'请选择'}} |
||||
<image src="../../../static/images/arror-right.png" mode="" class="toright"></image> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">融资阶段<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<picker class="pick-box" @change="" mode="selector"> |
||||
<view class="picker row-middle">{{'请选择'}} |
||||
<image src="../../../static/images/arror-right.png" mode="" class="toright"></image> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">融资金额<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<input type="text" @input="inpChange" data-type="" placeholder="请输入(必填)"> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">项目标签<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<picker class="pick-box" @change="" mode="selector"> |
||||
<view class="picker row-middle">{{'请选择(3项)'}} |
||||
<image src="../../../static/images/arror-right.png" mode="" class="toright"></image> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">项目图片<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<picker class="pick-box" @change="" mode="selector"> |
||||
<view class="picker row-middle">{{'上传'}} |
||||
<image src="../../../static/images/arror-right.png" mode="" class="toright"></image> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="form-item acea-row row-between row-middle"> |
||||
<view class="label">所属区域<text class="asterisk">*</text></view> |
||||
<view class="inp-box"> |
||||
<picker class="pick-box" @change="" mode="selector"> |
||||
<view class="picker row-middle">{{'请选择'}} |
||||
<image src="../../../static/images/arror-right.png" mode="" class="toright"></image> |
||||
</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="form-item "> |
||||
<view class="label">项目亮点<text class="asterisk">*</text></view> |
||||
<view class="area-box"> |
||||
<textarea value="" placeholder="请填写项目亮点" class="input"/> |
||||
</view> |
||||
</view> |
||||
<view class="form-item "> |
||||
<view class="label">项目详情<text class="asterisk">*</text></view> |
||||
<view class="area-box"> |
||||
<textarea value="" placeholder="请填写项目详细信息" class="input"/> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="submit-btn" @tap="submit">保存并提交</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
|
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
<style> |
||||
page { |
||||
background-color: #F8F8F8; |
||||
font-size: 28rpx; |
||||
} |
||||
|
||||
label { |
||||
margin-right: 40rpx; |
||||
} |
||||
|
||||
.company-info-box { |
||||
width: 100%; |
||||
padding: 0rpx 40rpx; |
||||
margin-top: 32rpx; |
||||
background-color: #fff; |
||||
} |
||||
|
||||
.form-item { |
||||
font-size: 28rpx; |
||||
color: #1D1D1D; |
||||
padding: 45rpx 0; |
||||
border-bottom: 2rpx solid #EEEEEE; |
||||
} |
||||
|
||||
.form-item .inp-box { |
||||
width: 70%; |
||||
text-align: right; |
||||
} |
||||
.inp-box{ |
||||
color: #848484; |
||||
} |
||||
|
||||
.asterisk { |
||||
color: #FF6D31; |
||||
} |
||||
|
||||
.toright { |
||||
width: 10rpx; |
||||
height: 20rpx; |
||||
margin-left: 10rpx; |
||||
} |
||||
.area-box{ |
||||
width: 100%; |
||||
height: auto; |
||||
min-height: 134rpx; |
||||
background-color: #F2F2F2; |
||||
border-radius: 12rpx; |
||||
margin-top: 14rpx; |
||||
} |
||||
.input{ |
||||
width: 100%; |
||||
height: auto; |
||||
min-height: 134rpx; |
||||
padding: 12rpx 24rpx; |
||||
} |
||||
.submit-btn { |
||||
width: 670rpx; |
||||
height: 76rpx; |
||||
background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); |
||||
border-radius: 38rpx; |
||||
color: #fff; |
||||
font-size: 28rpx; |
||||
line-height: 76rpx; |
||||
text-align: center; |
||||
margin: 40rpx auto; |
||||
} |
||||
</style> |
@ -0,0 +1,312 @@
|
||||
<template> |
||||
<view class="Manager-page"> |
||||
<view class="resource-tabs acea-row row-around"> |
||||
<view :class="'tab ' + (active == 1 ? 'tab-a' : '')" data-i="1" @tap="tabClick">发布中</view> |
||||
<view :class="'tab ' + (active == 2 ? 'tab-a' : '')" data-i="2" @tap="tabClick">审核中</view> |
||||
<view :class="'tab ' + (active == 3 ? 'tab-a' : '')" data-i="3" @tap="tabClick">草稿箱</view> |
||||
<view :class="'tab ' + (active == 4 ? 'tab-a' : '')" data-i="4" @tap="tabClick">已发布</view> |
||||
</view> |
||||
<view class="modular-box"> |
||||
<viwe class="project-box" v-if="active == 1"> |
||||
<view class="project-list" v-for="(item,index) in 2"> |
||||
<view class="project-top acea-row row-left"> |
||||
<image src="../../../static/images/home/menu6.png" class="project-img"></image> |
||||
<view class="right-con acea-row row-column-between"> |
||||
<view class="acea-row row-middle title"> |
||||
<image src="../../../static/images/new-icon.png" mode="" class="new-icon"> |
||||
</image> |
||||
<view class="title-h line1">富硒产品</view> |
||||
</view> |
||||
<view class="title-s line2">农业项目、国家扶贫、乡村振兴、优质资源利用、国家大力支持</view> |
||||
<view class="category-box acea-row"> |
||||
<view class="tag-item-y tag">持续盈利</view> |
||||
<view class="tag-item-b tag">财务规范</view> |
||||
<view class="tag-item-p tag">零负债</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="project-bottom acea-row row-middle"> |
||||
<view class="finance-price">融资金额</view> |
||||
<view class="price line1">200万元-300万元</view> |
||||
<view class="tocheck acea-row row-center">取消发布</view> |
||||
</view> |
||||
</view> |
||||
</viwe> |
||||
<viwe class="project-box" v-if="active == 2"> |
||||
<view class="project-list"> |
||||
<view class="project-top acea-row row-left"> |
||||
<image src="../../../static/images/home/menu6.png" class="project-img"></image> |
||||
<view class="right-con acea-row row-column-between"> |
||||
<view class="acea-row row-middle title"> |
||||
<image src="../../../static/images/new-icon.png" mode="" class="new-icon"> |
||||
</image> |
||||
<view class="title-h line1">富硒产品</view> |
||||
<view class="colorO">等待审核</view> |
||||
</view> |
||||
<view class="title-s line2">农业项目、国家扶贫、乡村振兴、优质资源利用、国家大力支持</view> |
||||
<view class="category-box acea-row"> |
||||
<view class="tag-item-y tag">持续盈利</view> |
||||
<view class="tag-item-b tag">财务规范</view> |
||||
<view class="tag-item-p tag">零负债</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="project-bottom acea-row row-middle"> |
||||
<view class="finance-price">融资金额</view> |
||||
<view class="price line1">200万元-300万元</view> |
||||
<view class="tocheck acea-row row-center">撤回审核</view> |
||||
</view> |
||||
</view> |
||||
</viwe> |
||||
<viwe class="project-box" v-if="active == 3"> |
||||
<view class="project-list"> |
||||
<view class="project-top acea-row row-left"> |
||||
<image src="../../../static/images/home/menu6.png" class="project-img"></image> |
||||
<view class="right-con acea-row row-column-between"> |
||||
<view class="acea-row row-middle title"> |
||||
<image src="../../../static/images/new-icon.png" mode="" class="new-icon"> |
||||
</image> |
||||
<view class="title-h line1">富硒产品</view> |
||||
<view class="colorO">未编辑完成</view> |
||||
</view> |
||||
<view class="title-s line2">农业项目、国家扶贫、乡村振兴、优质资源利用、国家大力支持</view> |
||||
<view class="category-box acea-row"> |
||||
<view class="tag-item-y tag">持续盈利</view> |
||||
<view class="tag-item-b tag">财务规范</view> |
||||
<view class="tag-item-p tag">零负债</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="project-bottom acea-row"> |
||||
<view class="tocheck acea-row row-center">编辑发布</view> |
||||
<view class="todetail acea-row row-center">删除项目</view> |
||||
</view> |
||||
</view> |
||||
<view class="project-list"> |
||||
<view class="project-top acea-row row-left"> |
||||
<image src="../../../static/images/home/menu6.png" class="project-img"></image> |
||||
<view class="right-con acea-row row-column-between"> |
||||
<view class="acea-row row-middle title"> |
||||
<image src="../../../static/images/new-icon.png" mode="" class="new-icon"> |
||||
</image> |
||||
<view class="title-h line1">富硒产品</view> |
||||
<view class="colorO">审核未通过</view> |
||||
</view> |
||||
<view class="title-s line2">农业项目、国家扶贫、乡村振兴、优质资源利用、国家大力支持</view> |
||||
<view class="category-box acea-row"> |
||||
<view class="tag-item-y tag">持续盈利</view> |
||||
<view class="tag-item-b tag">财务规范</view> |
||||
<view class="tag-item-p tag">零负债</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="text">未通过原因:不符合项目要求,需要重新修改项目...</view> |
||||
<view class="project-bottom acea-row"> |
||||
<view class="time acea-row row-bottom">2021.12.21申请</view> |
||||
<view class="tocheck acea-row row-center">编辑发布</view> |
||||
<view class="todetail acea-row row-center">删除项目</view> |
||||
</view> |
||||
</view> |
||||
</viwe> |
||||
<viwe class="project-box" v-if="active == 4"> |
||||
12 |
||||
</viwe> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
data() { |
||||
return { |
||||
active: '1', |
||||
} |
||||
}, |
||||
methods: { |
||||
tabClick(e) { |
||||
this.setData({ |
||||
active: e.currentTarget.dataset.i, |
||||
}) |
||||
}, |
||||
}, |
||||
} |
||||
</script> |
||||
|
||||
<style lang="less"> |
||||
.Manager-page { |
||||
width: 100%; |
||||
height: 100vh; |
||||
background-color: #EEEEEE; |
||||
} |
||||
|
||||
.resource-tabs { |
||||
width: 100%; |
||||
padding-top: 10rpx; |
||||
background: #fff; |
||||
|
||||
.tab { |
||||
width: auto; |
||||
padding: 25rpx 0; |
||||
font-size: 32rpx; |
||||
color: #BFBFBF; |
||||
position: relative; |
||||
font-weight: 500; |
||||
text-align: center; |
||||
} |
||||
|
||||
.tab::after { |
||||
display: block; |
||||
content: ''; |
||||
width: 84rpx; |
||||
height: 12rpx; |
||||
border-radius: 8rpx; |
||||
background: #FF5100; |
||||
position: absolute; |
||||
bottom: -6rpx; |
||||
left: 50%; |
||||
margin-left: -42rpx; |
||||
opacity: 0; |
||||
transform: scaleX(0); |
||||
transition: all .2s ease, opacity .15s ease; |
||||
} |
||||
|
||||
.tab-a { |
||||
color: #FF5100; |
||||
} |
||||
|
||||
.tab-a::after { |
||||
opacity: 1; |
||||
transform: scaleX(1); |
||||
} |
||||
} |
||||
|
||||
.modular-box { |
||||
width: 670rpx; |
||||
margin: 0 auto; |
||||
background-color: #F5F5F5; |
||||
margin-bottom: 76rpx; |
||||
/* 全部项目 */ |
||||
.project-box { |
||||
.project-list { |
||||
width: 670rpx; |
||||
height: auto; |
||||
background: #FFFFFF; |
||||
border-radius: 12rpx; |
||||
margin-top: 32rpx; |
||||
padding: 16rpx 22rpx; |
||||
.project-top { |
||||
width: 630rpx; |
||||
height: 160rpx; |
||||
margin-bottom: 15rpx; |
||||
.project-img { |
||||
width: 160rpx; |
||||
height: 160rpx; |
||||
margin-right: 18rpx; |
||||
} |
||||
.right-con { |
||||
width: 450rpx; |
||||
.title { |
||||
height: 35rpx; |
||||
line-height: 35rpx; |
||||
font-weight: 800; |
||||
.new-icon { |
||||
width: 48rpx; |
||||
height: 24rpx; |
||||
margin-right: 8rpx; |
||||
} |
||||
.title-h { |
||||
max-width: 250rpx; |
||||
height: 35rpx; |
||||
color: #1D1D1D; |
||||
} |
||||
.colorO{ |
||||
color: #FF5100; |
||||
} |
||||
} |
||||
.title-s { |
||||
width: 450rpx; |
||||
height: 70rpx; |
||||
font-size: 24rpx; |
||||
color: #707070; |
||||
} |
||||
.category-box { |
||||
width: 100%; |
||||
height: 36rpx; |
||||
overflow: hidden; |
||||
.tag { |
||||
padding: 0 10rpx; |
||||
height: 36rpx; |
||||
line-height: 34rpx; |
||||
border-radius: 4rpx; |
||||
font-size: 20rpx; |
||||
margin-right: 16rpx; |
||||
text-align: center; |
||||
} |
||||
|
||||
.tag-item-b { |
||||
border: 1rpx solid #3A9EFA; |
||||
color: #3A9EFA; |
||||
} |
||||
|
||||
.tag-item-y { |
||||
border: 1px solid #FFAA00; |
||||
color: #FFAA00; |
||||
} |
||||
|
||||
.tag-item-p { |
||||
color: #FC9367; |
||||
border: 1px solid #FC9367; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
.text{ |
||||
width: 100%; |
||||
height: 34rpx; |
||||
font-size: 24rpx; |
||||
font-weight: 500; |
||||
line-height: 34rpx; |
||||
color: #FF5100; |
||||
margin: 94rpx 0 24rpx 0; |
||||
} |
||||
.project-bottom { |
||||
width: 100%; |
||||
height: 56rpx; |
||||
color: #FF5100; |
||||
font-size: 24rpx; |
||||
.finance-price { |
||||
margin-right: 20rpx; |
||||
font-weight: 900; |
||||
} |
||||
.price { |
||||
width: 300rpx; |
||||
font-weight: 900; |
||||
} |
||||
.time{ |
||||
color: #A7A7A7; |
||||
} |
||||
.tocheck { |
||||
margin-left: auto; |
||||
width: 150rpx; |
||||
height: 56rpx; |
||||
line-height: 56rpx; |
||||
background: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%); |
||||
border-radius: 12rpx; |
||||
font-weight: 600; |
||||
color: #fff; |
||||
} |
||||
.todetail{ |
||||
margin-left: 16rpx; |
||||
width: 150rpx; |
||||
height: 56rpx; |
||||
line-height: 56rpx; |
||||
font-weight: 600; |
||||
background: linear-gradient(134deg, #BFBFBF 0%, #BFBFBF 100%); |
||||
border-radius: 12rpx; |
||||
color: #fff; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
</style> |
@ -0,0 +1,560 @@
|
||||
<template> |
||||
<view class="productSort"> |
||||
<view class="page-top-box" :class="isFixed == true ? 'on' : ''"> |
||||
<view class="top-box acea-row row-between-wrapper"> |
||||
<view class="top-box-l acea-row row-middle"> |
||||
<image src="../../static/images/localtion.png"></image> |
||||
<text>武汉</text> |
||||
</view> |
||||
<view class="cart-btn-box" @click="goShoppingCart()"> |
||||
<image src="../../static/images/cart.png"></image> |
||||
</view> |
||||
</view> |
||||
<view class="search-box acea-row row-middle"> |
||||
<image src="../../static/images/search.png" mode="" class="search-icon"></image> |
||||
<input type="text" value="" placeholder="周末去哪儿聚餐" @click="goGoodSearch()"/> |
||||
<view class="search">搜一下</view> |
||||
</view> |
||||
</view> |
||||
<!-- <view class="banner-img-box acea-row row-between-wrapper"> |
||||
<view class="img-box-l"> |
||||
<image src="https://download.cyjyyjy.com/life1.png" @click="alertMessage('功能开发中...')"></image> |
||||
</view> |
||||
<view class="img-box-r"> |
||||
<image src="https://download.cyjyyjy.com/life2.png" @click="alertMessage('功能开发中...')"></image> |
||||
<image src="https://download.cyjyyjy.com/life3.png" @click="alertMessage('功能开发中...')"></image> |
||||
</view> |
||||
</view> --> |
||||
<view class="nav-box"> |
||||
<image src="../../static/images/business-img1.png" mode="" class="nav-img"></image> |
||||
<view class="nav-list acea-row row-between"> |
||||
<view class="modular acea-row row-center"> |
||||
<image src="../../static/images/life-icon1.png" mode=""></image> |
||||
<view>至尊宝座</view> |
||||
</view> |
||||
<view class="modular acea-row row-center"> |
||||
<image src="../../static/images/life-icon2.png" mode=""></image> |
||||
<view>优选好房</view> |
||||
</view> |
||||
<view class="modular acea-row row-center"> |
||||
<image src="../../static/images/life-icon3.png" mode=""></image> |
||||
<view>权益福利</view> |
||||
</view> |
||||
<view class="modular acea-row row-center"> |
||||
<image src="../../static/images/life-icon4.png" mode=""></image> |
||||
<view>商超福利</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<view class="category-tab-box"> |
||||
<scroll-view class="scroll-view_H" scroll-x="true"> |
||||
<view class="category-item category-item-active" >猜您喜欢</view> |
||||
<view class="category-item">至尊保驾</view> |
||||
<view class="category-item">优选好房</view> |
||||
<view class="category-item">商城福利</view> |
||||
<view class="category-item">回头率榜单</view> |
||||
</scroll-view> |
||||
</view> |
||||
|
||||
<view class="warter-box"> |
||||
<!-- <view class="headline"> |
||||
<image src="../../static/images/rec-title.png" mode=""></image> |
||||
</view> --> |
||||
<u-waterfall v-model="flowList" ref="uWaterfall"> |
||||
<template v-slot:left="{ leftList }"> |
||||
<view |
||||
class="warter" |
||||
v-for="(item, index) in leftList" |
||||
:key="index" |
||||
@tap="toGoodsDetail(item.id)" |
||||
> |
||||
<image |
||||
class="warter-img" |
||||
:src="item.image" |
||||
:index="index" |
||||
mode="widthFix" |
||||
></image> |
||||
<view class="goodsinfo-box"> |
||||
<view class="title line2"> {{ item.storeName }} </view> |
||||
<view class="price-box acea-row row-between-wrapper"> |
||||
<text class="price">¥{{ item.price }}</text> |
||||
<text class="old-price">¥{{ item.price }}</text> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
<template v-slot:right="{ rightList }"> |
||||
<view |
||||
class="warter" |
||||
v-for="(item, index) in rightList" |
||||
:key="index" |
||||
@tap="toGoodsDetail(item.id)" |
||||
> |
||||
<image |
||||
class="warter-img" |
||||
:src="item.image" |
||||
:index="index" |
||||
mode="widthFix" |
||||
></image> |
||||
<view class="goodsinfo-box"> |
||||
<view class="title line2"> {{ item.storeName }} </view> |
||||
<view class="price-box acea-row row-between-wrapper"> |
||||
<text class="price">¥{{ item.price }}</text> |
||||
<text class="old-price">¥{{ item.otPrice }}</text> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
</u-waterfall> |
||||
<u-loadmore |
||||
bg-color="rgb(240, 240, 240)" |
||||
:status="loadStatus" |
||||
@loadmore="addRandomData" |
||||
></u-loadmore> |
||||
</view> |
||||
<!-- <tabbar :current="currentTabIndex" @click="tabBarClick"></tabbar> --> |
||||
</view> |
||||
</template> |
||||
<script> |
||||
import { getCategory, getProducts, getArticle, getActivity } from "@/api/store"; |
||||
import { trim } from "@/utils"; |
||||
import { mapGetters } from "vuex"; |
||||
import tabbar from "../../tabbarComponent/tabbar"; |
||||
import vSwiper from "@/components/vSwiper.vue"; |
||||
const app = getApp(); |
||||
export default { |
||||
components: { |
||||
tabbar, |
||||
vSwiper, |
||||
}, |
||||
name: "GoodsClass", |
||||
computed: mapGetters(["userInfo"]), |
||||
props: {}, |
||||
data: function () { |
||||
return { |
||||
category: [], |
||||
navActive: 0, |
||||
search: "", |
||||
lock: false, |
||||
menuHeight: app.globalData.menuHeight, |
||||
navHeight: app.globalData.navHeight, |
||||
menuTop: app.globalData.menuTop, |
||||
currentTabIndex: 3, |
||||
flowList: [], |
||||
isFixed: false, |
||||
loadStatus: "loadmore", |
||||
page: 1, |
||||
limit: 10, |
||||
isLoad: true, //是否还有更多 |
||||
articleList: [], |
||||
active: 1, |
||||
show: false, |
||||
activity: [], |
||||
}; |
||||
}, |
||||
watch: { |
||||
"$yroute.query.id": function (n) { |
||||
if (n) { |
||||
this.activeCateId(n); |
||||
} |
||||
}, |
||||
}, |
||||
// onShow: function (options) { |
||||
|
||||
// }, |
||||
mounted: function () { |
||||
this.getProducts(); |
||||
this.getActivity(); |
||||
}, |
||||
onReachBottom() { |
||||
if (this.isLoad) { |
||||
this.page = this.page + 1; |
||||
this.getProducts(); |
||||
} |
||||
}, |
||||
onPullDownRefresh() { |
||||
wx.showNavigationBarLoading(); |
||||
this.isLoad = true; |
||||
this.page = 1; |
||||
this.getActivity(); |
||||
this.clear().then(() => { |
||||
this.getProducts(); |
||||
}); |
||||
}, |
||||
|
||||
methods: { |
||||
toAritcleList() { |
||||
this.$yrouter.push("/pages/life/articleList/index"); |
||||
}, |
||||
async clear() { |
||||
this.$refs.uWaterfall.clear(); |
||||
}, |
||||
tabBarClick(index) { |
||||
this.currentTabIndex = index; |
||||
}, |
||||
goShoppingCart() { |
||||
this.$yrouter.push("/pages/shop/ShoppingCart/index"); |
||||
}, |
||||
goGoodSearch() { |
||||
this.$yrouter.push("/pages/shop/GoodSearch/index"); |
||||
}, |
||||
goGoodsList(child) { |
||||
this.$yrouter.push({ |
||||
path: "/pages/shop/GoodsList/index", |
||||
query: { id: child.id, title: child.cateName }, |
||||
}); |
||||
}, |
||||
toGoodsDetail(id) { |
||||
this.$yrouter.push({ |
||||
path: "/pages/shop/GoodsCon/index", |
||||
query: { id: id }, |
||||
}); |
||||
}, |
||||
activeCateId(n) { |
||||
let index = 0; |
||||
n = parseInt(n); |
||||
if (!n) return; |
||||
this.category.forEach((cate, i) => { |
||||
if (cate.id === n) index = i; |
||||
}); |
||||
if (index !== this.navActive) { |
||||
this.asideTap(index); |
||||
} |
||||
}, |
||||
loadCategoryData() { |
||||
getCategory().then((res) => { |
||||
this.category = res.data; |
||||
this.$nextTick(() => { |
||||
if (this.$yroute.query.id) { |
||||
this.activeCateId(this.$yroute.query.id); |
||||
} |
||||
}); |
||||
}); |
||||
}, |
||||
getActivity() { |
||||
getActivity().then((res) => { |
||||
this.articleList = res.data.articleList; |
||||
this.activity = res.data.activityList; |
||||
}); |
||||
}, |
||||
toActiveDetail(e) { |
||||
let id = e.currentTarget.dataset.id; |
||||
uni.navigateTo({ |
||||
url: "/pages/activity/detail/index?id=" + id, |
||||
}); |
||||
}, |
||||
|
||||
tabClick(i) { |
||||
console.log(i, "aiiii"); |
||||
this.active = i; |
||||
}, |
||||
getProducts() { |
||||
this.loadStatus = "loading"; |
||||
getProducts({ page: this.page, limit: this.limit }).then((res) => { |
||||
// console.log(res) |
||||
if (this.page > 1) { |
||||
this.flowList = this.flowList.concat(res.data); |
||||
} else { |
||||
this.flowList = res.data; |
||||
} |
||||
// this.isLoad = this.limit <= res.data.length |
||||
if (this.limit <= res.data.length) { |
||||
//分页数等于返回值的length说明还有 |
||||
this.isLoad = true; |
||||
} else { |
||||
console.log("没有了"); |
||||
this.isLoad = false; |
||||
this.loadStatus = "nomore"; |
||||
} |
||||
wx.hideNavigationBarLoading(); |
||||
uni.stopPullDownRefresh(); |
||||
}); |
||||
}, |
||||
submitForm: function () { |
||||
var val = trim(this.search); |
||||
if (val) { |
||||
this.$yrouter.push({ |
||||
path: "/pages/shop/GoodsList/index", |
||||
query: { s: val }, |
||||
}); |
||||
setTimeout(() => (this.search = ""), 500); |
||||
} |
||||
}, |
||||
asideTap(index) { |
||||
this.navActive = index; |
||||
}, |
||||
alertMessage(msg) { |
||||
uni.showToast({ |
||||
title: msg, |
||||
icon: "none", |
||||
}); |
||||
}, |
||||
}, |
||||
beforeDestroy: function () { |
||||
// document.removeEventListener("scroll", this.onScroll, false); |
||||
}, |
||||
}; |
||||
</script> |
||||
<style lang="scss" scoped> |
||||
</style> |
||||
|
||||
<style lang="less" scoped> |
||||
.productSort { |
||||
// height: 100%; |
||||
// padding-bottom: 200rpx; |
||||
// background: #eeeeee !important; |
||||
position: relative; |
||||
} |
||||
|
||||
.page-top-box { |
||||
width: 100%; |
||||
position: fixed; |
||||
top: 0; |
||||
left: 0; |
||||
z-index: 99; |
||||
background: #fff; |
||||
padding: 0 30rpx 0rpx; |
||||
// box-shadow: 0px -6px 20px rgba(0, 0, 0, 0.11); |
||||
.top-box { |
||||
.top-box-l { |
||||
font-size: 32rpx; |
||||
color: #000; |
||||
font-weight: 500; |
||||
image { |
||||
width: 26rpx; |
||||
height: 30rpx; |
||||
display: block; |
||||
margin-right: 10rpx; |
||||
} |
||||
} |
||||
.cart-btn-box { |
||||
width: 50rpx; |
||||
height: 50rpx; |
||||
image { |
||||
width: 100%; |
||||
height: 100%; |
||||
} |
||||
} |
||||
} |
||||
// 搜索 |
||||
.search-box { |
||||
width: 670rpx; |
||||
height: 68rpx; |
||||
border-radius: 8rpx; |
||||
margin: 24rpx auto; |
||||
background: #EEEEEE; |
||||
border-radius: 8rpx; |
||||
|
||||
.search-icon { |
||||
width: 35rpx; |
||||
height: 35rpx; |
||||
margin: 0 29rpx 0 52rpx; |
||||
} |
||||
|
||||
.search { |
||||
margin-left: auto; |
||||
width: 124rpx; |
||||
height: 68rpx; |
||||
line-height: 65rpx; |
||||
text-align: center; |
||||
color: #fff; |
||||
background: linear-gradient(149deg, #FFA782 0%, #FF6D31 100%); |
||||
border-radius: 0rpx 8rpx 8rpx 0rpx; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.nav-box{ |
||||
width: 100%; |
||||
height: auto; |
||||
padding: 180rpx 40rpx 0 40rpx; |
||||
.nav-img{ |
||||
width: 100%; |
||||
height: 370rpx; |
||||
} |
||||
.nav-list{ |
||||
width: 100%; |
||||
height: 105rpx; |
||||
padding: 0 30rpx; |
||||
margin: 24rpx 0 20rpx 0; |
||||
.modular{ |
||||
width: 96rpx; |
||||
font-size: 24rpx; |
||||
image{ |
||||
width: 70rpx; |
||||
height: 70rpx; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.category-tab-box { |
||||
width: 100%; |
||||
height: 108rpx; |
||||
line-height: 108rpx; |
||||
padding-left: 30rpx; |
||||
.scroll-view_H { |
||||
white-space: nowrap; |
||||
width: 100%; |
||||
.category-item { |
||||
display: inline-block; |
||||
font-size: 28rpx; |
||||
line-height: 40rpx; |
||||
color: #999; |
||||
margin-right: 40rpx; |
||||
&.category-item-active { |
||||
color: #ff6d31; |
||||
font-size: 32rpx; |
||||
font-weight: 500; |
||||
position: relative; |
||||
&::after { |
||||
content: ""; |
||||
width: 70rpx; |
||||
height: 8rpx; |
||||
border-radius: 6rpx; |
||||
display: block; |
||||
position: absolute; |
||||
bottom: -24rpx; |
||||
left: 0; |
||||
background: #ff7942; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
.warter-box { |
||||
width: 100%; |
||||
padding: 44rpx 24rpx 190rpx 24rpx; |
||||
.u-waterfall { |
||||
width: 100%; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
.u-column { |
||||
.warter { |
||||
width: 336rpx !important; |
||||
border-radius: 10rpx; |
||||
background-color: #ffffff; |
||||
position: relative; |
||||
overflow: hidden; |
||||
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.06); |
||||
margin-bottom: 20rpx; |
||||
image { |
||||
width: 100%; |
||||
display: block; |
||||
} |
||||
.goodsinfo-box { |
||||
width: 100%; |
||||
padding: 12rpx 16rpx; |
||||
.title { |
||||
font-size: 28rpx; |
||||
font-weight: 500; |
||||
color: #1d1d1d; |
||||
width: 100%; |
||||
height: 80rpx; |
||||
} |
||||
.price { |
||||
font-size: 28rpx; |
||||
font-weight: bold; |
||||
line-height: 40rpx; |
||||
color: #ff7942; |
||||
} |
||||
.old-price { |
||||
font-size: 20rpx; |
||||
line-height: 28rpx; |
||||
color: #bfbfbf; |
||||
text-decoration: line-through; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
.banner-img-box { |
||||
width: 100%; |
||||
padding: 220rpx 40rpx 32rpx; |
||||
.img-box-l { |
||||
width: 324rpx; |
||||
height: 400rpx; |
||||
image { |
||||
width: 100%; |
||||
height: 100%; |
||||
} |
||||
} |
||||
.img-box-r { |
||||
width: 324rpx; |
||||
height: 400rpx; |
||||
display: flex; |
||||
flex-direction: column; |
||||
justify-content: space-between; |
||||
// align-items: ; |
||||
image { |
||||
width: 324rpx; |
||||
height: 190rpx; |
||||
} |
||||
} |
||||
} |
||||
.goods-list-box { |
||||
width: 100%; |
||||
padding: 0 30rpx; |
||||
.goods-list-item { |
||||
width: 100%; |
||||
.goods-type-box { |
||||
image { |
||||
width: 94rpx; |
||||
height: 94rpx; |
||||
} |
||||
.t-word { |
||||
font-size: 36rpx; |
||||
color: #222; |
||||
font-weight: 600; |
||||
} |
||||
} |
||||
.goods-list { |
||||
width: 100%; |
||||
.goods-item { |
||||
width: 335rpx; |
||||
background: #fff; |
||||
margin-right: 10rpx; |
||||
margin-bottom: 30rpx; |
||||
border-radius: 10rpx; |
||||
overflow: hidden; |
||||
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.06); |
||||
image { |
||||
width: 100%; |
||||
height: 278rpx; |
||||
} |
||||
} |
||||
.goods-item:nth-child(2n) { |
||||
margin-right: 0; |
||||
} |
||||
.goods-desc-box { |
||||
width: 100%; |
||||
padding: 16rpx; |
||||
font-size: 24rpx; |
||||
.goods-name { |
||||
line-height: 34rpx; |
||||
} |
||||
.price { |
||||
font-size: 28rpx; |
||||
color: #e5270f; |
||||
line-height: 40rpx; |
||||
margin-bottom: 26rpx; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
</style> |
After Width: | Height: | Size: 505 B |
After Width: | Height: | Size: 519 B |
After Width: | Height: | Size: 636 B |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 4.0 KiB |