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 873b8a25
authored
Mar 22, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务中心联调
1 parent
163920de
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
2 deletions
packageMine/pages/serviceManage/editService/constant/data.js
packageMine/pages/serviceManage/editService/editService.js
packageMine/pages/serviceManage/editService/editService.scss
packageMine/pages/serviceManage/editService/editService.wxml
packageMine/pages/serviceManage/serviceList/serviceList.js
packageMine/pages/serviceManage/editService/constant/data.js
View file @
873b8a2
...
...
@@ -21,6 +21,11 @@ const formRule = {
}
const
formItems
=
[{
label
:
'商户号'
,
props
:
'merchantId'
,
type
:
'input'
,
disabled
:
true
},
{
label
:
'服务中心名称'
,
props
:
'merchantName'
,
type
:
'input'
,
...
...
@@ -44,6 +49,7 @@ const formItems = [{
tips
:
'(可用于PC端登录)'
,
props
:
'password'
,
type
:
'input'
,
inputType
:
'safe-password'
,
password
:
true
,
placeholder
:
'请输入登录密码(6-20位字母+数字)'
,
maxlength
:
20
...
...
packageMine/pages/serviceManage/editService/editService.js
View file @
873b8a2
...
...
@@ -62,6 +62,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
let
{
formItems
}
=
this
.
data
wx
.
$router
.
getData
(
res
=>
{
let
{
addOrEdit
,
target
}
=
res
this
.
setData
({
...
...
@@ -71,6 +72,12 @@ Page({
oldPhone
:
target
.
phone
||
''
}
})
if
(
addOrEdit
==
'add'
)
{
formItems
.
shift
()
this
.
setData
({
formItems
})
}
})
},
...
...
packageMine/pages/serviceManage/editService/editService.scss
View file @
873b8a2
...
...
@@ -37,6 +37,10 @@
color
:
#323436
;
}
.input-disabled
{
background
:
#E1E2E6
;
}
.select-box
{
display
:
flex
;
justify-content
:
space-between
;
...
...
packageMine/pages/serviceManage/editService/editService.wxml
View file @
873b8a2
...
...
@@ -7,8 +7,8 @@
<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}}" maxlength="{{item.maxlength}}" class="input" value="{{formData[item.props]}}" password="{{item.passwor
d}}" placeholder-class="input-placeholder" data-attr="{{item.props}}" bindinput="handleInput" />
<view class="input-box
{{item.disabled ? 'input-disabled' : ''}}
" wx:if="{{item.type == 'input'}}">
<input
placeholder="{{item.placeholder || '请输入' + item.label}}" maxlength="{{item.maxlength}}" class="input" value="{{formData[item.props]}}" type="{{item.inputType || 'text'}}" password="{{item.password}}" disabled="{{item.disable
d}}" placeholder-class="input-placeholder" data-attr="{{item.props}}" bindinput="handleInput" />
</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>
...
...
packageMine/pages/serviceManage/serviceList/serviceList.js
View file @
873b8a2
...
...
@@ -23,6 +23,7 @@ Page({
addOrEdit
:
type
,
target
:
e
.
currentTarget
.
dataset
?.
target
||
{}
}
delete
params
.
target
?.
createdDate
wx
.
$router
.
go
(
'packageMine.editService'
,
params
)
},
...
...
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