card-mini/pages/mine/shop/mineshop.wxml
2021-08-12 09:22:40 +08:00

200 lines
7.8 KiB
Plaintext

<!--pages/mine/shop/mineshop.wxml-->
<cu-custom isBack="{{true}}">
<view slot="content">我的店铺</view>
</cu-custom>
<view class="page-content">
<view class="info-box bg-yellow-yellow">
<!-- logo与基础信息 -->
<view class="base-info">
<image src="{{baseImageUrl+shopBean.shopLogo}}" mode="scaleToFill"></image>
<view class="base-info-text">
<text class="shop-name">{{shopBean.shopName}}</text>
<text>{{shopBean.industryName}}</text>
<text>开业时间:{{shopBean.openDate}}</text>
</view>
</view>
<!-- 宣传视频与模板 -->
<view class="shop-img">
<view class="shop-img-item" bindtap="showMovie" data-path="{{shopBean.shopVideo}}">
<text>宣传视频</text>
<image src="/images/ic_arrow_cir.png" mode="scaleToFill"></image>
</view>
<view class="shop-img-item" bindtap="showTemplete" data-path="{{shopBean.shopTemplatePhoto}}">
<text>店铺样式</text>
<image src="/images/ic_arrow_cir.png" mode="scaleToFill"></image>
</view>
</view>
<!-- 地址 -->
<view class="base-info-loc">
<text>地址:{{shopBean.areaName+shopBean.areaCityName+shopBean.areaCountyName+shopBean.shopAddress}}</text>
</view>
</view>
<view class="authentication-info" style="top:{{top}}px">
<image src="{{shopBean.isCertification == 0 ? '/images/ic_unauth.png' : '/images/ic_auth.png'}}" mode="scaleToFill">
</image>
</view>
<!-- 操作按钮区 -->
<view class="control-box">
<view class="control-btn" bindtap="doDelItem">删除店铺</view>
<view class="control-btn" bindtap="doEditItem">信息编辑</view>
<view class="control-btn" bindtap="showCertificationInfo">{{shopBean.isCertification == 0 ? '店铺认证' : '认证信息' }}
</view>
</view>
<!-- 店铺管理操作-->
<view class="hint-title margin-top-sm">
<image src="/images/title-bg.png" mode="scaleToFill"></image>
<text>店铺管理</text>
</view>
<view class="cu-card bg-white" style="width:95%;">
<view class="cu-list menu">
<!-- 优惠券管理 -->
<view class="cu-item" bindtap="couponManage">
<view class="content">
<image src="/images/ic_position_icon.png" mode="scaleToFill" style="width:48rpx;height:48rpx;">
</image>
<text class="text-black">优惠券管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<!-- 职位管理 -->
<view class="cu-item" bindtap="positionManage">
<view class="content">
<image src="/images/ic_position_icon.png" mode="scaleToFill" style="width:48rpx;height:48rpx;">
</image>
<text class="text-black">职位管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<view class="cu-item" bindtap="staffManage">
<view class="content">
<image src="/images/ic_staff_list_icon.png" mode="scaleToFill" style="width:48rpx;height:48rpx;">
</image>
<text class="text-black">员工管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<view class="cu-item" bindtap="memberManage">
<view class="content">
<image src="/images/ic_member_list_icon.png" mode="scaleToFill" style="width:48rpx;height:48rpx;">
</image>
<text class="text-black">会员管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<view class="cu-item" bindtap="catalogManage">
<view class="content">
<image src="/images/ic_goods_catalog.png" mode="scaleToFill" style="width:48rpx;height:48rpx;">
</image>
<text class="text-black">商品类目管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<view class="cu-item" bindtap="productManage">
<view class="content">
<image src="/images/ic_goods_list_icon.png" mode="scaleToFill" style="width:48rpx;height:48rpx;" />
<text class="text-black">商品管理</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<!-- 添加会员 -->
<view class="cu-item" bindtap="addMember">
<view class="content">
<image src="/images/ic_member_qrcode.png" mode="scaleToFill" style="width:48rpx;height:48rpx;" />
<text class="text-black">会员二维码</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<!-- 添加员工 -->
<view class="cu-item" bindtap="addStaff">
<view class="content">
<image src="/images/ic_staff_qrcode.png" mode="scaleToFill" style="width:48rpx;height:48rpx;" />
<text class="text-black">员工二维码</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view>
<!-- 扫一扫 -->
<!-- <view class="cu-item" bindtap="scanCode">
<view class="content">
<text class="cuIcon-list text-green"></text>
<text class="text-black">扫一扫</text>
</view>
<view class="action">
<text class="cuIcon-right"></text>
</view>
</view> -->
</view>
</view>
</view>
<van-dialog use-slot title="二维码" show="{{ show }}" bind:close="onClose" show-cancel-button>
<image src="{{qrCode}}" />
</van-dialog>
<!-- <scroll-view refresher-enabled="true" refresher-threshold="{{50}}" refresher-background="#fff"
bindrefresherrefresh="refreshView" refresher-triggered="{{refresherTriggered}}">
<van-swipe-cell style="margin:5rpx;" id="swipe-item-{{index}}" right-width="{{ 175 }}" wx:for="{{mineShopList}}"
wx:key="index" bind:open="onOpen" bind:close="onClose" async-close="true">
<view class="cu-list menu-avatar solid" style="margin-left:10rpx;margin-right:10rpx;">
<view class="cu-item">
<view class="cu-avatar radius xl" style="background-image:url({{baseImageUrl+item.shopLogo}});">
</view>
<view class="content" style="width:100%;" bindtap="showShopDetail" data-item="{{item}}">
<view class="text-depblack">
<text class="text-cut">{{item.shopName}}</text>
</view>
<view class="text-gray text-sm flex">
<text class="text-cut">{{item.shopSummary}}</text>
</view>
<view class="line-solid-gray"></view>
<view class="bottom-action margin-top-ls">
<view class="text-grey text-df">{{item.openDate}}</view>
<view class="cu-tag lg round {{item.isCertification == 0 ? 'bg-red' :'bg-gray'}}" bindtap="doAuth"
data-item="{{item}}">
{{item.isCertification == 0 ? '未认证' :'已认证'}}</view>
</view>
</view>
</view>
</view> -->
<!-- 功能按钮 -->
<!-- <view slot="right">
<view class="flex flex-wrap">
<view class=" bg-red text-center light" style="padding:60rpx" data-menu="del" data-item="{{item}}"
bindtap="doDelItem">
<view class="text-lg">删除</view>
</view>
<view class="bg-blue text-center light" style="padding:60rpx" data-menu="edit" data-item="{{item}}"
bindtap="doEditItem">
<view class="text-lg">编辑</view>
</view>
</view>
</view>
<view>
</view>
</van-swipe-cell> -->
<!-- 添加按钮 -->
<!-- <view class="cu-card bg-white padding-xs margin-left-sm margin-right-sm">
<view class="cu-item" bindtap="toAddShop">
<view class="cardTitle">
<text class="cuIcon-roundaddfill text-gray"></text>
</view>
</view>
</view>
</scroll-view> -->