| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <view class="container">
- <!-- 轮播图 -->
- <swiper class="swiper" indicator-dots autoplay circular interval="3000" duration="1000">
- <swiper-item wx:for="{{ banner }}" wx:key="id">
- <navigator hover-class="none" url="{{ item.link }}">
- <image src="{{ item.url }}" />
- </navigator>
- </swiper-item>
- </swiper>
- <!-- welfare -->
- <view class="welfare acea-row row-evenly">
- <view class="item acea-row row-middle">
- <image src="/static/images/index_shangcheng.png" />
- <text>官方商城</text>
- </view>
- <view class="item acea-row row-middle">
- <image src="/static/images/index_zhengpin.png" />
- <text>正品保证</text>
- </view>
- </view>
- <!-- 商品类目 -->
- <view class="category jhx_bg0 acea-row row-between">
- <view class="item" wx:for="{{ channel }}" wx:key="id" data-id="{{ item.id }}" bindtap="toCatelog">
- <image src="{{ item.iconUrl }}" />
- <view>{{ item.name }}</view>
- </view>
- </view>
- <!-- 商品 -->
- <view class="goods">
- <scroll-view class="scroll category-scroll" scroll-x>
- <view class="item {{ categoryId == item.id ? 'active' : '' }}" wx:for="{{ category }}" wx:key="id" bindtap="changeCategory" data-id="{{ item.id }}">{{ item.name }}</view>
- </scroll-view>
- <view class="list acea-row row-between">
- <view class="item jhx_bg0" wx:for="{{ floorGoods }}" wx:key="id" data-item="{{ item }}" bindtap="toDetail">
- <image src="{{ item.picUrl[0] }}" />
- <view class="title line1 line2">{{ item.name }}</view>
- <view class="label {{ item.labelName ? '' : 'block' }}">{{ item.labelName }}</view>
- <view class="price"><text>¥</text>{{ item.retailPrice }}</view>
- </view>
- </view>
- <van-empty wx:if="{{ !floorGoods.length }}" image="/static/images/empty_goods.png" description="没有相关商品" />
- <view wx:else hidden="{{ totalPages > page }}" class="no-more">— 没有更多了 —</view>
- </view>
-
- <popup custom-class="user-popup" show="{{ show }}" closeable catchtouchmove="prevent" bind:close="hidePopup">
- <view class="title">维护身份信息</view>
- <van-field label="姓名" value="{{ nickname }}" border="{{ false }}" clearable placeholder="请输入姓名" bind:input="nameInput" />
- <van-field label="手机号" value="{{ mobile }}" border="{{ false }}" clearable placeholder="请输入手机号" bind:input="mobileInput" />
- <view class="btn-group">
- <view class="btn" bindtap="hidePopup">取消</view>
- <view class="btn" bindtap="updateUser">提交</view>
- </view>
- </popup>
- </view>
|