Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
thinkApp
Commits
be01c52d
Commit
be01c52d
authored
Sep 27, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5ea2bf53
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
33 deletions
+61
-33
erp.js
src/api/erp.js
+15
-3
index.vue
src/pages/FriendsAndRelatives/index.vue
+1
-1
addChild.vue
src/pages/MyChild/addChild.vue
+38
-23
index.vue
src/pages/MyChild/index.vue
+7
-6
No files found.
src/api/erp.js
View file @
be01c52d
...
...
@@ -144,12 +144,12 @@ export function GetOrderPage(data) {
}
/**
* 根据编号删除“
亲友团
”
* 根据编号删除“
小孩
”
* @param {JSON参数} data
*/
export
function
Remove
MyChil
d
(
data
)
{
export
function
Remove
Bin
d
(
data
)
{
return
request
({
url
:
'/AppletCenter/Remove
MyChil
d'
,
url
:
'/AppletCenter/Remove
Bin
d'
,
method
:
'post'
,
data
})
...
...
@@ -191,6 +191,18 @@ export function GetOrderPage(data) {
})
}
/**
* 根据编号删除“亲友团”
* @param {JSON参数} data
*/
export
function
RemoveMyChild
(
data
)
{
return
request
({
url
:
'/AppletCenter/RemoveMyChild'
,
method
:
'post'
,
data
})
}
/**
* 获取面对面邀请码
* @param {JSON参数} data
...
...
src/pages/FriendsAndRelatives/index.vue
View file @
be01c52d
...
...
@@ -252,7 +252,7 @@
if
(
res
.
confirm
)
{
uni
.
showLoading
()
let
msg
=
{
Id
:
item
.
Account
Id
Id
:
item
.
Stu
Id
}
let
res
=
RemoveMyChild
(
msg
);
if
(
res
)
{
...
...
src/pages/MyChild/addChild.vue
View file @
be01c52d
...
...
@@ -108,7 +108,7 @@
</van-cell-group>
</view>
</view>
<view>
<view
style=
"margin-bottom: 100rpx;"
>
<view
class=
"user-item"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"clickChecked(item)"
>
<view
class=
"avatar"
>
...
...
@@ -118,7 +118,7 @@
{{
item
.
StuName
}}
</view>
<view
class=
"check"
>
<van-icon
:name=
"item.checked?
success:circle
"
/>
<van-icon
:name=
"item.checked?
'success':'circle'
"
/>
</view>
</view>
<van-empty
description=
"暂无小孩信息"
v-if=
"dataList.length === 0"
/>
...
...
@@ -177,8 +177,8 @@
},
msg
:
{
pageIndex
:
1
,
pageSize
:
100
0
,
KeyWords
:
''
,
//关键词
pageSize
:
2
0
,
KeyWords
:
'
182155
'
,
//关键词
},
pageCount
:
0
,
dataList
:
[],
...
...
@@ -188,6 +188,7 @@
});
const
methods
=
{
clickChecked
(
item
){
data
.
list
=
[]
data
.
dataList
.
forEach
(
i
=>
{
i
.
checked
=
false
if
(
item
.
StuId
==
i
.
StuId
){
...
...
@@ -195,15 +196,24 @@
}
})
item
.
checked
=
true
data
.
form
=
{
Id
:
item
.
Id
,
AccountId
:
item
.
AccountId
,
StuId
:
item
.
StuId
,
OpenId
:
item
.
OpenId
,
WeChatName
:
item
.
WeChatName
,
WeChatImg
:
item
.
WeChatImg
,
UnionId
:
item
.
UnionId
}
// data.form.Target.Id = item.Id
data
.
form
.
Target
.
AccountId
=
item
.
AccountId
data
.
form
.
Target
.
StuId
=
item
.
StuId
data
.
form
.
Target
.
OpenId
=
item
.
OpenId
data
.
form
.
Target
.
WeChatName
=
item
.
WeChatName
data
.
form
.
Target
.
WeChatImg
=
item
.
WeChatImg
data
.
form
.
Target
.
UnionId
=
item
.
UnionId
// let msgData = {
// Id: item.Id,
// AccountId: item.AccountId,
// StuId: item.StuId,
// OpenId: item.OpenId,
// WeChatName: item.WeChatName,
// WeChatImg: item.WeChatImg,
// UnionId: item.UnionId
// }
console
.
log
(
data
.
form
,
'----'
)
},
clickIcon
(){
that
.
getData
()
...
...
@@ -213,6 +223,8 @@
that
.
getData
()
},
async
addChild
(){
console
.
log
(
data
.
form
)
return
if
(
!
data
.
form
.
Id
){
uni
.
showToast
({
title
:
'请选择需要添加的小孩'
,
...
...
@@ -237,23 +249,23 @@
let
res
=
await
GetStudentPageList
(
data
.
msg
);
if
(
res
)
{
uni
.
hideLoading
()
let
data
=
res
.
Data
.
PageData
let
data
s
=
res
.
Data
.
PageData
let
addList
=
function
(
arr
)
{
arr
.
forEach
(
item
=>
{
item
.
checked
=
false
});
};
addList
(
data
);
addList
(
data
s
);
if
(
data
.
timer
)
data
.
timer
=
null
;
data
.
dataList
=
res
.
Data
&&
res
.
Data
.
PageData
;
return
//
data.dataList = res.Data&&res.Data.PageData;
//
return
if
(
data
.
msg
.
pageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
&&
res
.
Data
.
PageData
;
data
.
dataList
=
res
.
Data
.
PageData
;
}
else
{
data
.
dataList
=
[...
data
.
dataList
,
...
res
.
Data
.
PageData
];
}
data
.
pageCount
=
res
.
Data
&&
res
.
Data
.
PageCount
if
(
data
.
msg
.
pageIndex
>=
res
.
Data
&&
res
.
Data
.
PageCount
)
{
data
.
pageCount
=
res
.
Data
.
PageCount
if
(
data
.
msg
.
pageIndex
>=
res
.
Data
.
PageCount
)
{
data
.
pageState
=
"none"
;
}
else
{
data
.
pageState
=
"more"
;
...
...
@@ -263,7 +275,7 @@
};
let
that
=
methods
;
onMounted
(()
=>
{
//
that.getData()
that
.
getData
()
});
return
{
...
toRefs
(
data
),
...
...
@@ -272,14 +284,17 @@
},
onLoad
(
options
)
{
},
onShow
(){
this
.
dataList
=
[]
},
onReachBottom
()
{
if
(
this
.
msg
.
pageIndex
<
this
.
pageCount
)
{
data
.
pageState
=
"loading"
;
this
.
pageState
=
"loading"
;
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
);
this
.
timer
=
setTimeout
(()
=>
{
this
.
msg
.
pageIndex
++
;
th
at
.
getList
();
th
is
.
getData
();
},
1000
);
}
else
{
this
.
pageState
=
"none"
;
...
...
src/pages/MyChild/index.vue
View file @
be01c52d
...
...
@@ -148,9 +148,10 @@
async-close
:key=
"index"
@
close=
"onClose"
>
<view
class=
"dataList-form active"
>
<view
class=
"dataList-form"
:class=
"
{'active':item.StuSexStr!='女'}">
<view
class=
"dataList-image flex"
>
<image
:src=
"i
mgBoy
?imgBoy:imgGirl"
<image
:src=
"i
tem.StuSexStr!='女'
?imgBoy:imgGirl"
mode=
"aspectFill"
style=
"width:101rpx;height:101rpx;"
>
</image>
<text>
{{
item
.
StuName
}}
</text>
...
...
@@ -163,9 +164,9 @@
<text>
{{
item
.
StuRealMobile
}}
</text>
</view>
</view>
<view
class=
"dataList-right flex"
:class=
"
{'active':item.StateStr!='
正常
'}">
<image
:src=
"item.StateStr=='
正常
'?imgUrlG:imgUrlR"
style=
"width: 24rpx;height: 24rpx;"
></image>
<view
v-if=
"item.StateStr"
class=
"dataList-right flex"
:class=
"
{'active':item.StateStr!='
学习中
'}">
<image
:src=
"item.StateStr=='
学习中
'?imgUrlG:imgUrlR"
style=
"width: 24rpx;height: 24rpx;"
></image>
<text>
{{
item
.
StateStr
}}
</text>
</view>
</view>
...
...
@@ -250,7 +251,7 @@
if
(
res
.
confirm
)
{
uni
.
showLoading
()
let
msg
=
{
Id
:
item
.
Id
Id
:
item
.
Stu
Id
}
let
res
=
RemoveMyChild
(
msg
);
if
(
res
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment