@ -10,11 +10,11 @@ Page({
{
url: '',
title: '入库数据总量',
num: '0'
num: '1'
}, {
title: '微博数据',
num: '2'
title: '其他数据',
@ -46,6 +46,36 @@ Page({
},
],
tabList: [
text: '精选推荐',
key: 0,
text: '夏日防晒',
key: 1,
text: '二胎大作战',
key: 2,
text: '人气榜',
key: 3,
text: '好评榜',
key: 4,
text: 'RTX 30',
key: 5,
text: '手机也疯狂',
key: 6,
onLoad: function (options) {
@ -1,5 +1,10 @@
<!--index.wxml-->
<view class="container">
<view>
<view wx:for="{{tabList}}"
wx:for-index="index"
wx:key="index"
label="{{item.text}}"
value="{{item.key}}"></view>
<scroll-view class="scrollList" scroll-x="true" enable-flex="true">
<text wx:for="{{condition}}" class="{{index === 0 ? 'actived' : ''}}" wx:key="index">{{item}}</text>
</scroll-view>
@ -16,4 +21,4 @@
</view>
<tabbar />
@ -44,12 +44,11 @@ background: #F0F5FF;
background-color: white;
/* padding-top: 0.4rem; */
flex-shrink: 0;
width: 350rpx;
width: 300rpx;
height: 350rpx;
border-radius: 10%;
text-align: center;
display: flex;
/* display: flex; */
justify-content: center;
padding-left: 36rpx;
}