初始化万家商超用户端仓库
This commit is contained in:
140
pages/sy/allLIstcategories/allLIstcategories.vue
Normal file
140
pages/sy/allLIstcategories/allLIstcategories.vue
Normal file
@ -0,0 +1,140 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<!-- <view class="flex align-stretch benben-position-layout flex allLIstcategories_flex_0"
|
||||
:style="{height:(100+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
||||
<view class='flex align-center justify-between flex-sub allLIstcategories_fd0_0'>
|
||||
<view class='flex align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
|
||||
<text class='fu-iconfont2 allLIstcategories_fd0_0_c0_c0'></text>
|
||||
</view>
|
||||
<view class='flex align-center flex-sub allLIstcategories_fd0_0_c1'>
|
||||
<image class='allLIstcategories_fd0_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"53.png"'></image>
|
||||
<input class='flex-sub allLIstcategories_fd0_0_c1_c1' type="text" placeholder="请输入关键字" confirm-type="done"
|
||||
:maxlength="-1" placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx" v-model="fd0_0_c1_c1" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view :style="{height: (100+StatusBarRpx)+'rpx'}"></view> -->
|
||||
<benben-goods-classify top='0' :lists="cateList" @handle-item="handleItem">
|
||||
</benben-goods-classify>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
"fd0_0_c1_c1": "",
|
||||
cateList: []
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
themeColor() {
|
||||
return this.$store.getters.themeColor
|
||||
},
|
||||
|
||||
},
|
||||
watch: {},
|
||||
onLoad(options) {
|
||||
this.getAllCate();
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
onReady() {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
|
||||
},
|
||||
onResize() {
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
onReachBottom(e) {
|
||||
|
||||
},
|
||||
onPageScroll(e) {
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleItem(e, pe) {
|
||||
console.log(e)
|
||||
console.log(pe)
|
||||
uni.navigateTo({
|
||||
url: `/pages/sy/classificationList/classificationList?id=${pe.aid}&title=${pe.title}&cid=${e.aid}`
|
||||
})
|
||||
},
|
||||
getAllCate() {
|
||||
this.$api.post(global.apiUrls.getAllCate)
|
||||
.then(res => {
|
||||
if (res.data.code == 1) {
|
||||
this.cateList = res.data.data;
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100vw;
|
||||
overflow-x: hidden;
|
||||
min-height: calc(100vh - var(--window-bottom));
|
||||
background: #F8F8F8;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.allLIstcategories_flex_0 {
|
||||
background: #fff;
|
||||
width: 750rpx;
|
||||
height: 100rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
top: 0rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.allLIstcategories_fd0_0_c1_c1 {
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.allLIstcategories_fd0_0_c1_c0 {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
margin: 0rpx 16rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.allLIstcategories_fd0_0_c1 {
|
||||
background: rgba(246, 247, 249, 1);
|
||||
height: 64rpx;
|
||||
border-radius: 34rpx 34rpx 34rpx 34rpx;
|
||||
padding: 0rpx 24rpx 0rpx 24rpx;
|
||||
margin: 0rpx 0rpx 0rpx 32rpx;
|
||||
}
|
||||
|
||||
.allLIstcategories_fd0_0_c0_c0 {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
}
|
||||
|
||||
.allLIstcategories_fd0_0 {
|
||||
padding: 0rpx 24rpx 0rpx 24rpx;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user