Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b71cf67a
authored
May 06, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标签选择,日历
1 parent
a8a59aef
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
config.js
tabDate/components/calendar/index.js
tabDate/pages/apprManage/apprManage.js
tabDate/pages/detail/detail.wxml
tabDate/pages/detail/detail.wxss
tabDate/pages/userPortrait/userPortrait.js
config.js
View file @
b71cf67
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* 2测试
* 2测试
* 3生产环境
* 3生产环境
*/
*/
let
index
=
0
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
tabDate/components/calendar/index.js
View file @
b71cf67
...
@@ -573,8 +573,8 @@ Component({
...
@@ -573,8 +573,8 @@ Component({
this
.
setData
({
this
.
setData
({
currentSelect
:
full
,
currentSelect
:
full
,
selectDay
:
o
,
selectDay
:
o
,
showCurrentMonth
:
`
${
o
.
year
}
年
${
o
.
month
}
月
${
o
.
day
}
日`
,
showCurrentMonth
:
`
${
o
.
year
}
年
${
o
.
month
}
月
${
o
.
day
}
日`
isShow
:
false
//
isShow: false
})
})
// this.triggerEvent('change', list)
// this.triggerEvent('change', list)
this
.
triggerEventSelectDay
();
this
.
triggerEventSelectDay
();
...
...
tabDate/pages/apprManage/apprManage.js
View file @
b71cf67
...
@@ -13,7 +13,7 @@ Page({
...
@@ -13,7 +13,7 @@ Page({
jump
(
e
)
{
jump
(
e
)
{
let
{
item
,
name
}
=
e
.
currentTarget
.
dataset
let
{
item
,
name
}
=
e
.
currentTarget
.
dataset
item
.
id
=
item
.
customer
Id
item
.
id
=
item
.
inviteRecord
Id
wx
.
$router
.
go
(
name
,
item
)
wx
.
$router
.
go
(
name
,
item
)
},
},
...
...
tabDate/pages/detail/detail.wxml
View file @
b71cf67
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<view class="item">
<view class="item">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view
<view
class="value
text-hide
"
class="value
{{item.key != 'userPortrait' ? 'text-hide' : ''}}
"
style="color:{{item.color}};"
style="color:{{item.color}};"
catchtap="{{item.callBack}}"
catchtap="{{item.callBack}}"
data-data="{{detail[item.key]}}">
data-data="{{detail[item.key]}}">
...
...
tabDate/pages/detail/detail.wxss
View file @
b71cf67
...
@@ -336,7 +336,7 @@ page {
...
@@ -336,7 +336,7 @@ page {
.portrait-item {
.portrait-item {
box-sizing: border-box;
box-sizing: border-box;
height: 48rpx;
/* height: 48rpx; */
line-height: 48rpx;
line-height: 48rpx;
background: #E6F0FF;
background: #E6F0FF;
border-radius: 8rpx;
border-radius: 8rpx;
...
...
tabDate/pages/userPortrait/userPortrait.js
View file @
b71cf67
...
@@ -17,13 +17,14 @@ Page({
...
@@ -17,13 +17,14 @@ Page({
let
{
pidx
,
idx
}
=
e
.
currentTarget
.
dataset
let
{
pidx
,
idx
}
=
e
.
currentTarget
.
dataset
let
{
formData
}
=
this
.
data
let
{
formData
}
=
this
.
data
let
_item
=
formData
[
pidx
]
let
_item
=
formData
[
pidx
]
let
_active
=
formData
[
pidx
].
optionList
[
idx
].
active
if
(
!
_item
.
isMult
)
{
if
(
!
_item
.
isMult
)
{
this
.
setData
({
this
.
setData
({
[
`formData[
${
pidx
}
].optionList`
]:
JSON
.
parse
(
JSON
.
stringify
(
CONSTANTDATA
[
_item
.
optionsName
]))
[
`formData[
${
pidx
}
].optionList`
]:
JSON
.
parse
(
JSON
.
stringify
(
CONSTANTDATA
[
_item
.
optionsName
]))
})
})
}
}
this
.
setData
({
this
.
setData
({
[
`formData[
${
pidx
}
].optionList[
${
idx
}
].active`
]:
!
this
.
data
.
formData
[
pidx
].
optionList
[
idx
].
active
[
`formData[
${
pidx
}
].optionList[
${
idx
}
].active`
]:
(
_item
.
name
==
'customerSex'
||
_item
.
isMult
)
?
!
this
.
data
.
formData
[
pidx
].
optionList
[
idx
].
active
:
!
_
active
})
})
},
},
...
@@ -53,6 +54,10 @@ Page({
...
@@ -53,6 +54,10 @@ Page({
item
.
optionList
.
find
(
k
=>
k
.
confId
==
info
[
item
.
name
]).
active
=
true
item
.
optionList
.
find
(
k
=>
k
.
confId
==
info
[
item
.
name
]).
active
=
true
}
}
}
}
}
else
{
if
(
item
.
name
==
'customerSex'
)
{
item
.
optionList
.
find
(
k
=>
k
.
confId
==
'1'
).
active
=
true
}
}
}
})
})
this
.
setData
({
this
.
setData
({
...
...
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