纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

68 lines
3.5 KiB

<!--pages/shop/index/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">我的店铺</view>
</cu-custom>
<view wx:if="{{detail && status == 2}}">
<view wx:if="{{detail}}" style="position: relative">
<swiper class="screen-swiper {{imgList.length > 1 ? 'square-dot' : ''}}" style="min-height:{{imageHeight}}rpx" indicator-dots="{{imgList.length > 1}}" indicator-color="#FFFFFF" indicator-active-color="#008AFF" autoplay="true" interval="3000" duration="500">
<swiper-item wx:for="{{imgList}}" wx:key="index">
<view bindtap="viewImage" style="width:100%;height:100%" data-url="{{item}}">
<image src="{{item}}" mode="aspectFill"></image>
</view>
</swiper-item>
</swiper>
<view class="info-layout" style="text-align:right">
<view class="text-white text-df" style="line-height:50rpx;">店主昵称:{{detail.contacts}}({{detail.contactPhoneNo}})</view>
<view class="text-white text-df" style="line-height:50rpx;">店铺地址:{{detail.locDetails}}</view>
</view>
</view>
</view>
<view class="bg-white text-sg" style="padding: 0rpx 32rpx" wx:if="{{detail && status == 2}}">
<view class="flex flex-justify detail-layout" style="border-bottom:1px solid #f3f3f3">
<view class="flex" style="align-items: center;">
<view class="text-black text-lg">{{detail.name}}</view>
</view>
<view class="flex" style="align-items: center;">
<text class="cuIcon-locationfill text-blue" style="font-size:16px;padding-top:6rpx" />
<view class="text-df text-blue" style="margin-left:6rpx">{{detail.locProvinceName}} {{detail.locCityName}}</view>
</view>
</view>
</view>
<view class="bg-white" style="padding:32rpx;" wx:else>
<wux-button block type="positive" bind:click="apllyShop">{{ hasStore ? (status == 2 ? '我的店铺' : '完善店铺') : '申请开店' }}</wux-button>
</view>
<view class="cu-list grid col-4 no-border {{(detail && status == 2) ? '' : ''}}">
<view class="cu-item" wx:for="{{iconList}}" wx:key="index" data-index="{{item.index}}" bindtap="onGridTap">
<view class="cuIcon-{{item.icon}} text-{{item.color}}" style="font-size:32px">
<view class="cu-tag badge" wx:if="{{item.badge!=0}}">
<block wx:if="{{item.badge!=1}}">{{item.badge>99?"99+":item.badge}}</block>
</view>
</view>
<text>{{item.name}}</text>
</view>
</view>
<view style="height:18rpx"></view>
<wux-cell-group>
<wux-cell title="店铺账单" is-link data-index="{{6}}" bind:click="onGridTap">
<view slot="header" class="cuIcon-recharge text-black" style="font-size:20px;margin-right:12rpx"></view>
<text slot="footer" style="padding-top:4px">¥{{form.todayMargin || 0}}</text>
</wux-cell>
<wux-cell title="店铺订单" is-link data-index="{{4}}" bind:click="onGridTap">
<view slot="header" class="cuIcon-text text-black" style="font-size:20px;margin-right:12rpx"></view>
</wux-cell>
<wux-cell title="商品管理" is-link data-index="{{3}}" bind:click="onGridTap">
<view slot="header" class="cuIcon-form text-black" style="font-size:20px;margin-right:12rpx"></view>
</wux-cell>
<wux-cell title="竞价管理" is-link data-index="{{2}}" bind:click="onGridTap">
<view slot="header" class="cuIcon-form text-black" style="font-size:20px;margin-right:12rpx"></view>
</wux-cell>
<wux-cell title="采购管理" is-link data-index="{{8}}" bind:click="onGridTap">
<view slot="header" class="cuIcon-form text-black" style="font-size:20px;margin-right:12rpx"></view>
</wux-cell>
</wux-cell-group>
<view style="height:18rpx"></view>
<wux-dialog id="wux-dialog" />