Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9ab5ad8c
authored
Jul 12, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开放客户管理,并隐藏部分功能
1 parent
ddb74705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
packageMine/pages/customerManagement/customerList/customerList.wxml
pages/tab/mine/mine.js
packageMine/pages/customerManagement/customerList/customerList.wxml
View file @
9ab5ad8
<!--packageMine/pages/customerManagement/customerList/customerList.wxml-->
<!--packageMine/pages/customerManagement/customerList/customerList.wxml-->
<!-- <wxs src="../index.wxs" module="format" /> -->
<!-- <wxs src="../index.wxs" module="format" /> -->
<van-tabs active="{{active}}" bind:change="tabChange">
<
!-- <
van-tabs active="{{active}}" bind:change="tabChange">
<van-tab name="customer" title="客户"></van-tab>
<van-tab name="customer" title="客户"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
</van-tabs>
</van-tabs>
-->
<!-- 客户 -->
<!-- 客户 -->
<view wx:if="{{active == 'customer'}}" class="customer-list-page">
<view wx:if="{{active == 'customer'}}" class="customer-list-page">
<view class="btn_box" bindtap="handleEdit" data-type="add">
<
!-- <
view class="btn_box" bindtap="handleEdit" data-type="add">
<glsx-image src="index/apply.png" class="icon" />
<glsx-image src="index/apply.png" class="icon" />
<text>创建新客户</text>
<text>创建新客户</text>
</view>
</view>
-->
<view class="content-box">
<view class="content-box">
<view class="title-box">
<view class="title-box">
<view class="title">客户数量:<text class="number">{{total < 0 ? 0 : total}}</text>
<view class="title">客户数量:<text class="number">{{total < 0 ? 0 : total}}</text>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</view>
</view>
</view>
</view>
<scroll-view wx:if="{{customerList.length}}" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="onRefreshBottom" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - 148rpx - 110rpx);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<scroll-view wx:if="{{customerList.length}}" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="onRefreshBottom" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - 148rpx - 110rpx);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="item-box" wx:for="{{customerList}}" wx:key="index"
bindtap="handleEdit"
data-type="edit" data-target="{{item}}">
<view class="item-box" wx:for="{{customerList}}" wx:key="index" data-type="edit" data-target="{{item}}">
<view class="top">
<view class="top">
<view class="message">
<view class="message">
<glsx-image src="personal/customer_head.png" class="avatar" />
<glsx-image src="personal/customer_head.png" class="avatar" />
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view>
</view>
</view>
</view>
</view>
<
glsx-image src="personal/arrow_right.png" class="arrow_right" /
>
<
!-- <glsx-image src="personal/arrow_right.png" class="arrow_right" /> --
>
</view>
</view>
<view class="employee-box">
<view class="employee-box">
<view class="employee-list">
<view class="employee-list">
...
...
pages/tab/mine/mine.js
View file @
9ab5ad8
...
@@ -41,12 +41,11 @@ Page({
...
@@ -41,12 +41,11 @@ Page({
path
:
'packageMine.staffList'
,
path
:
'packageMine.staffList'
,
isHide
:
true
isHide
:
true
},
},
// 个人中心-客户管理,不再向服务商开放客户管理功能
{
// {
name
:
'客户管理'
,
// name: '客户管理',
path
:
'packageMine.customerList'
,
// path: 'packageMine.customerList',
isHide
:
true
// isHide: true
},
// },
{
{
name
:
'更新日志'
,
name
:
'更新日志'
,
path
:
'packageMine.log'
,
path
:
'packageMine.log'
,
...
@@ -156,8 +155,8 @@ Page({
...
@@ -156,8 +155,8 @@ Page({
judgeIsHide
()
{
judgeIsHide
()
{
let
{
boxItemList
,
userInfo
}
=
this
.
data
let
{
boxItemList
,
userInfo
}
=
this
.
data
//
let nameList = ['服务中心管理', '员工管理', '客户管理']
let
nameList
=
[
'服务中心管理'
,
'员工管理'
,
'客户管理'
]
let
nameList
=
[
'服务中心管理'
,
'员工管理'
]
//
let nameList = ['服务中心管理', '员工管理']
if
(
!
userInfo
.
isSuper
)
{
if
(
!
userInfo
.
isSuper
)
{
nameList
.
forEach
(
item
=>
{
nameList
.
forEach
(
item
=>
{
let
idx
=
boxItemList
.
findIndex
(
k
=>
k
.
name
==
item
)
let
idx
=
boxItemList
.
findIndex
(
k
=>
k
.
name
==
item
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment