提交 d133166a 编写于 作者: 芊里

个人中心解构赋值

上级 13ae858e
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
</view> </view>
</view> </view>
<uni-grid class="grid" :column="5" :showBorder="false" :square="true"> <uni-grid class="grid" :column="5" :showBorder="false" :square="true">
<uni-grid-item class="item" v-for="({text,icon},index) in gridList" @click.native="tapGrid(index)"> <uni-grid-item class="item" v-for="(item,index) in gridList" @click.native="tapGrid(index)">
<uni-icons class="icon" color="#5d5e64" :type="icon" size="28"></uni-icons> <uni-icons class="icon" color="#5d5e64" :type="item.icon" size="28"></uni-icons>
<text class="text">{{text}}</text> <text class="text">{{item.text}}</text>
</uni-grid-item> </uni-grid-item>
</uni-grid> </uni-grid>
<uni-list class="center-list" v-for="(sublist , index) in ucenterList"> <uni-list class="center-list" v-for="(sublist , index) in ucenterList">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册