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 a6a2ab72
authored
Mar 20, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务中心
1 parent
cf6a3e60
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
408 additions
and
2 deletions
packageMine/pages/serviceManage/serviceList/serviceList.js
packageMine/pages/serviceManage/serviceList/serviceList.json
packageMine/pages/serviceManage/serviceList/serviceList.scss
packageMine/pages/serviceManage/serviceList/serviceList.wxml
packagesList/mineDetail/pages/serviceManage/editService/editService.js
packagesList/mineDetail/pages/serviceManage/editService/editService.json
packagesList/mineDetail/pages/serviceManage/editService/editService.scss
packagesList/mineDetail/pages/serviceManage/editService/editService.wxml
packageMine/pages/serviceManage/serviceList/serviceList.js
View file @
a6a2ab7
// packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.js
// packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.js
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
serviceList
:
[{
merchantId
:
'4400000'
,
merchantName
:
'广东嘀加第一服务中心'
,
contactName
:
'张三'
,
phone
:
'15718122929'
,
createdDate
:
'2022.10.03'
,
password
:
'123456'
}],
total
:
15
,
pageCof
:
{
pageNum
:
1
,
pageSize
:
10
}
},
handleEdit
(
e
)
{
console
.
log
(
e
)
let
{
type
}
=
e
.
currentTarget
.
dataset
let
params
=
{
addOrEdit
:
type
,
target
:
e
.
currentTarget
.
dataset
?.
target
||
{}
}
wx
.
$router
.
go
(
'packagesList.editService'
,
params
)
},
},
getList
()
{},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
...
...
packageMine/pages/serviceManage/serviceList/serviceList.json
View file @
a6a2ab7
{
{
"navigationBarTitleText"
:
"服务中心管理"
,
"usingComponents"
:
{}
"usingComponents"
:
{}
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/serviceManage/serviceList/serviceList.scss
View file @
a6a2ab7
/* packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxss */
\ No newline at end of file
\ No newline at end of file
/* packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxss */
.service-list-page
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
20rpx
;
background-color
:
#F2F3F7
;
.btn_box
{
width
:
100%
;
height
:
96rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#FFFFFF
;
border-radius
:
16rpx
;
color
:
var
(
--
btnColor
);
font-size
:
28rpx
;
font-weight
:
600
;
margin-bottom
:
32rpx
;
.icon
{
width
:
40rpx
;
height
:
40rpx
;
margin-right
:
16rpx
;
vertical-align
:
-12rpx
}
}
.title-box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
20rpx
;
.title
{
color
:
#323436
;
font-size
:
28rpx
;
font-weight
:
600
;
.number
{
color
:
var
(
--
btnColor
)
}
}
// .select-btn {
// box-sizing: border-box;
// padding: 16rpx 0;
// display: flex;
// align-items: center;
// z-index: 2;
// background-color: #f2f3f7;
// .type {
// margin-left: 8px;
// display: flex;
// justify-content: center;
// align-items: center;
// padding: 0 16rpx;
// height: 24px;
// line-height: 24px;
// background: #ffffff;
// border-radius: 14px;
// font-size: 12px;
// color: #8a8c90;
// text {
// max-width: 360rpx;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
// }
// .point {
// margin-left: 2px;
// width: 12px;
// height: 12px;
// }
// }
// }
}
.item-box
{
width
:
100%
;
background
:
#FFFFFF
;
border-radius
:
12rpx
;
margin-bottom
:
20rpx
;
.top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
24rpx
32rpx
;
.message
{
display
:
flex
;
.avatar
{
flex-shrink
:
0
;
width
:
72rpx
;
height
:
72rpx
;
margin-right
:
12rpx
;
}
.message-text
{
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
.merchant
{
color
:
#323436
;
font-size
:
28rpx
;
}
.contact
{
color
:
#858A94
;
font-size
:
26rpx
;
}
}
}
.arrow_right
{
width
:
36rpx
;
height
:
36rpx
;
}
}
.bottom
{
padding
:
0
32rpx
;
height
:
72rpx
;
background-color
:
#FFF9F2
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
font-size
:
24rpx
;
color
:
#8A8C90
;
.service_name
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
.bottomTips
{
text-align
:
center
;
color
:
#393b3e
;
font-size
:
26rpx
;
height
:
60rpx
;
line-height
:
40rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/serviceManage/serviceList/serviceList.wxml
View file @
a6a2ab7
<!--packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml-->
<!--packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml-->
<text>packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml</text>
<view class="service-list-page">
<view class="btn_box" bindtap="handleEdit" data-type="add">
<glsx-image src="index/apply.png" class="icon" />
<text>创建新的服务中心</text>
</view>
<view class="content-box" wx:if="{{serviceList.length}}">
<view class="title-box">
<view class="title">服务中心数量:<text class="number">{{total}}</text></view>
</view>
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" style="height:calc(100vh - 148rpx - 110rpx);" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="item-box" wx:for="{{serviceList}}" wx:key="index" bindtap="handleEdit" data-type="edit" data-target="{{item}}">
<view class="top">
<view class="message">
<glsx-image src="personal/service_head.png" class="avatar" />
<view class="message-text">
<view class="merchant">{{item.merchantName}}</view>
<view class="contact">{{item.contactName}} {{item.phone}}</view>
</view>
</view>
<glsx-image src="personal/arrow_right.png" class="arrow_right" />
</view>
<view class="bottom">
<view class="service_name">
商户号:{{item.merchantId}}
</view>
<view class="time">{{item.createdDate}}</view>
</view>
</view>
<view class="bottomTips" wx:if="{{serviceList.length>10}}">到底啦!</view>
</scroll-view>
</view>
<view wx:else>
<nothing-tips tips="暂无服务中心~" bgColor="{{'#F2F3F7'}}" bg="{{bgUrl}}" />
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packagesList/mineDetail/pages/serviceManage/editService/editService.js
0 → 100644
View file @
a6a2ab7
// packagesList/mineDetail/pages/serviceManage/editService/editService.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
addOrEdit
:
''
,
formData
:
{},
formItems
:
[{
label
:
'服务中心名称'
,
props
:
'merchantName'
,
type
:
'input'
},
{
label
:
'联系人'
,
props
:
'contactName'
,
type
:
'input'
},
{
label
:
'联系电话'
,
tips
:
'(登录凭证)'
,
props
:
'phone'
,
type
:
'input'
},
{
label
:
'登录密码'
,
tips
:
'(可用于PC端登录)'
,
props
:
'password'
,
type
:
'input'
}],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
wx
.
$router
.
getData
(
res
=>
{
let
{
addOrEdit
,
target
}
=
res
this
.
setData
({
addOrEdit
,
formData
:
target
||
{}
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
\ No newline at end of file
packagesList/mineDetail/pages/serviceManage/editService/editService.json
0 → 100644
View file @
a6a2ab7
{
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
packagesList/mineDetail/pages/serviceManage/editService/editService.scss
0 → 100644
View file @
a6a2ab7
/* packagesList/mineDetail/pages/serviceManage/editService/editService.wxss */
.create-service-page
{
margin
:
20rpx
;
.tips
{
padding
:
12rpx
;
color
:
#323436
;
font-size
:
28rpx
;
font-weight
:
600
;
}
.form-content
{
background
:
#FFFFFF
;
border-radius
:
16rpx
;
padding
:
44rpx
40rpx
;
.label
{
font-size
:
28rpx
;
font-weight
:
600
;
color
:
#323436
;
margin-bottom
:
12rpx
;
.tips
{
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#F35251
;
}
}
.input-box
,
.select-box
{
height
:
40rpx
;
background
:
#F8F9FC
;
border-radius
:
12rpx
;
padding
:
32rpx
24rpx
;
margin-bottom
:
16rpx
;
color
:
#323436
;
}
.select-box
{
display
:
flex
;
justify-content
:
space-between
;
.arrow_right
{
width
:
36rpx
;
height
:
36rpx
;
}
.name
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
.btn
{
position
:
fixed
;
bottom
:
16rpx
;
left
:
0
;
width
:
calc
(
100%
-
64rpx
);
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
}
.btn-blue
{
background
:
var
(
--
btnColor
);
border-radius
:
8rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
packagesList/mineDetail/pages/serviceManage/editService/editService.wxml
0 → 100644
View file @
a6a2ab7
<!--packagesList/mineDetail/pages/serviceManage/editService/editService.wxml-->
<!-- <navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back" customBack="{{true}}">
{{!showServiceConfirm ? (addOrEdit == 'add' ? '创建员工' : '编辑员工') : '选择服务中心'}}
</navigation-bar> -->
<view class="create-service-page" style="padding-top:{{tabBarStyle}}px;">
<view class="tips" wx:if="{{addOrEdit == 'add'}}">请完善服务中心资料完成创建:</view>
<view class="form-content">
<block wx:for="{{formItems}}" wx:key="index">
<view class="label">{{item.label}}<text class="tips">{{item.tips}}</text></view>
<view class="input-box" wx:if="{{item.type == 'input'}}">
<input type="text" placeholder="{{item.placeholder || '请输入' + item.label}}" class="input" value="{{formData[item.props]}}" placeholder-class="input-placeholder" />
</view>
<view class="select-box" wx:if="{{item.type == 'select'}}" bindtap="jump" data-type="{{item.pageType}}">
<view class="name" wx:if="{{formData[item.valueFn]}}">{{formData[item.valueFn]}}</view>
<view class="placeholder-text" wx:else>{{item.placeholder}}</view>
<glsx-image src="personal/arrow_right.png" class="arrow_right" />
</view>
</block>
</view>
<view class="isFullSucreen btn">
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
</view>
</view>
<select-service-confirm show="{{showServiceConfirm}}" tabBarStyle="{{tabBarStyle}}" serviceList="{{serviceList}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
\ No newline at end of file
\ No newline at end of file
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