s_index.wxml
7.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<nav backgroundColor="#199095" color="#ffffff">飞鸭外卖商户端</nav>
<view class="tips" wx:if="{{hasTips}}">
<view class="jian"></view>
<view class="content flex-lr">
<view class="text flex-ll">
点击
<view class="more"></view>
添加到我的小程序,微信下拉即可快速
<text class="man" bindtap="closeTip">管理店铺</text>
</view>
<view class="close" bindtap="closeTip"></view>
</view>
</view>
<!-- <audio src="http://nosqn.colorcun.com/audio/tts_online.mp3" id="myAudio"></audio> -->
<view class="container">
<view class="store-top">
<view class="store-top-name padding-left40r flex-lr">
<view class="font38r font-more sellerText" style="width:500rpx;">{{seller.sellername ? seller.sellername : '示例店铺'}}<text>{{seller.id}}</text></view>
</view>
<view class="store-info flex-lr padding-left40r">
<view class="flex-ll" style="height:50rpx;">
<block wx:if="{{auth.user_name}}">
<view class="store-info-name font26r white-font">{{auth.user_name}}</view>
</block>
<block wx:else>
<open-data class="store-info-name font26r white-font" type="userNickName"></open-data>
</block>
<view class="store-info-border"></view>
<view class="store-info-name font26r white-font">{{auth.role_name ? auth.role_name : '店员'}}</view>
</view>
<view class="flex-rr">
<button class="share-button flex-cc" open-type="share">
<image src="../image/share.svg"></image>
</button>
<view style="margin-left:20rpx;margin-right: 20rpx;padding: 20rpx;" wx:if="{{sellerlist.length>1}}" bindtap="manageseller">
<image src="../image/transfer.svg" style="width:40rpx;height:40rpx;"></image>
</view>
</view>
</view>
</view>
<view class="store-content">
<view class="store-instro height75r font28r black-font padding-left40r">店铺管理</view>
<block wx:for="{{alllist}}">
<view class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" bindtap="setting" data-id="{{index}}">
<view class="store-instro-act black-font font30r">{{item.name}}</view>
<block wx:if="{{item.hide==true || item.list.length==0}}">
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</block>
<block wx:else>
<block wx:if="{{item.list.length>0}}">
<view class="font24r" style="color:#999;padding:46rpx 0 46rpx 50rpx;">收起</view>
</block>
</block>
</view>
<block wx:if="{{seller && seller.id}}">
<view class="flex-rs store-manage white-bg" hidden="{{item.hide}}" wx:if="{{item.list}}">
<block wx:for="{{item.list}}" wx:for-item="list">
<navigator class="flex-vc store-single-search" style="border-right:{{list.id%3==0 ? '0' : '1px solid #f3f0f0;'}}" url="{{list.url}}">
<image class="store-image" background-size="cover" src="{{list.icon}}" style="width:40rpx;height:40rpx;"></image>
<view class="black-font font28r">{{list.name}}</view>
</navigator>
</block>
</view>
</block>
<block wx:else>
<view class="flex-rs store-manage white-bg" hidden="{{item.hide}}" wx:if="{{item.list}}">
<block wx:for="{{item.list}}" wx:for-item="list">
<view class="flex-vc store-single-search" style="border-right:{{list.id%3==0 ? '0' : '1px solid #f3f0f0;'}}" bindtap="exit">
<image class="store-image" background-size="cover" src="{{list.icon}}" style="width:40rpx;height:40rpx;"></image>
<view class="black-font font28r">{{list.name}}</view>
</view>
</block>
</view>
</block>
<view class="cut"></view>
</block>
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="{{seller && seller.id ? '../print/p_list' : '../login/l_login'}}">
<view class="store-instro-act black-font font30r">打印机管理</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
<view class="cut"></view>
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="{{seller && seller.id ? '../setting/s_grade' : '../login/l_login'}}">
<view class="store-instro-act black-font font30r">员工管理</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
<view class="cut"></view>
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="{{seller && seller.id ? '../order/o_list' : '../login/l_login'}}">
<view class="store-instro-act black-font font30r">订单管理</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
<view class="cut"></view>
<block wx:if="{{seller}}">
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="../manage/config?sellerid={{sellerid}}">
<view class="store-instro-act black-font font30r">经营设置</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
<view class="cut"></view>
</block>
<block wx:if="{{seller}}">
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="../currency/c_setting">
<view class="store-instro-act black-font font30r">通用设置</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
<view class="cut"></view>
</block>
<navigator class="store-instro-list height115r border-top-bottom flex-lr white-bg padding-left40r padding-right40r" hover-class="none" url="{{seller && seller.id ? '../custom/seller/menu?id='+seller.id : '../custom/seller/menu?id=3'}}" open-type="reLaunch">
<view class="store-instro-act black-font font30r">切换到顾客端</view>
<image src="../image/click.png" background-size="cover" class="icon12-22"></image>
</navigator>
</view>
<block wx:if="{{seller}}">
<view class="bg_gray" style="height:100rpx;"></view>
<view class="fixed-function bg_white flex-lr">
<block wx:for="{{totalfunction}}">
<view class="flex-vc" bindtap="{{index==0 ? 'sellerreport' : ''}}">
<image src="{{item.imgurl}}" class="manage-total-icon"></image>
<view class="{{item.isActive==true ? 'green-font' : 'black-font'}} font24r flex-cc" style="height:28rpx;">{{item.title}}</view>
</view>
</block>
</view>
</block>
<block wx:if="{{!seller}}">
<button class="bg_green font36r smooth login-button white-font flex-cc" bindtap="togetpromise">注册/登录</button>
</block>
</view>
<netWork bind:netchange="netchange" id="network"></netWork>