Browse Source

上传

master
前端-胡立永 3 months ago
parent
commit
2bb457ee46
2 changed files with 20 additions and 8 deletions
  1. +17
    -5
      pages/index/category.vue
  2. +3
    -3
      pages_order/auth/wxLogin.vue

+ 17
- 5
pages/index/category.vue View File

@ -42,10 +42,10 @@
:list="category[current].children"
:current="currentChildren"
keyName="name"
:chain="true"
:chain="false"
@change="change">
<!-- <view class="list"> -->
<template v-for="(item, index) in category[current].children">
<!-- <template v-for="(item, index) in category[current].children">
<uv-vtabs-item :index="index" :key="index">
<view class="category-item">
<view class="category-title">
@ -57,9 +57,18 @@
@click="$utils.navigateTo(`/pages_order/product/productDetail?id=${pro.id}`)" />
</view>
</uv-vtabs-item>
</template>
<uv-empty mode="list" v-if="category[current].children.length == 0"></uv-empty>
</template> -->
<!-- </view> -->
<uv-vtabs-item>
<view class="category-item">
<productItem :item="pro"
v-for="(pro, i) in categoryList.shopList" :key="i"
@click="$utils.navigateTo(`/pages_order/product/productDetail?id=${pro.id}`)" />
<uv-empty v-if="categoryList.shopList.length == 0" text="还没有呢"/>
</view>
</uv-vtabs-item>
</uv-vtabs>
</view>
@ -91,7 +100,10 @@
}
},
computed: {
...mapState(['category'])
...mapState(['category']),
categoryList(){
return this.category[this.current].children[this.currentChildren]
},
},
onLoad({
search,


+ 3
- 3
pages_order/auth/wxLogin.vue View File

@ -10,11 +10,11 @@
<view class="btn mt"
@click="wxLogin">
<view class="icon">
<!-- <view class="icon">
<image src="../static/auth/wx.png" mode=""></image>
</view>
</view> -->
<view class="">
微信授权登录
手机号授权登录
</view>
</view>


Loading…
Cancel
Save