Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4037b935
authored
2023-12-23 15:42:05 +0800
by
华明祺
1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登录调整
1 parent
8630af21
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
751 additions
and
715 deletions
App.vue
common/login.js
common/request.js
config.js
group/apply/applyList.vue
group/apply/mergeUp.vue
group/feeBill.vue
group/newChange.vue
level/addApply.vue
level/payment.vue
login/login.vue
pages/exam/payment.vue
pages/index/index.vue
personalVip/addChange.vue
personalVip/addChangeLevel.vue
personalVip/addVip.vue
personalVip/audit.vue
personalVip/auditDetail.vue
personalVip/editVip.vue
personalVip/feeBill.vue
App.vue
View file @
4037b93
<
script
>
import
{
h5Login
getInfo
}
from
'@/common/login.js'
;
import
*
as
api
from
'@/common/api.js'
;
import
config
from
'@/config.js'
;
...
...
@@ -13,19 +13,16 @@ export default {
firstload
=
true
this
.
globalData
.
baseUrl_api
=
config
.
baseUrl_api
;
if
(
loginUrl
.
indexOf
(
options
.
path
)
==-
1
){
if
(
loginUrl
.
indexOf
(
options
.
path
)
==-
1
){
let
userName
=
uni
.
getStorageSync
(
'userName'
)
if
(
userName
)
{
h5Login
(
userName
)
.
then
(()
=>
{
getInfo
().
then
(()
=>
{
this
.
globalData
.
isLogin
=
true
;
let
firstLoadCallback
=
getApp
().
firstLoadCallback
;
if
(
firstLoadCallback
)
{
firstLoadCallback
();
}
})
.
catch
(()
=>
{
}).
catch
(()
=>
{
uni
.
redirectTo
({
url
:
'/login/login'
})
...
...
common/login.js
View file @
4037b93
...
...
@@ -87,6 +87,7 @@ function getInfo() {
// uni.setStorageSync('perId', personInfo.perId||-1)
app
.
globalData
.
deptType
=
user
.
dept
.
deptType
app
.
globalData
.
genFlag
=
user
.
dept
.
genFlag
user
.
dept
.
deptType
=
'3'
switch
(
user
.
dept
.
deptType
)
{
case
'1'
:
// 中跆协
app
.
globalData
.
userType
=
'1'
...
...
@@ -136,5 +137,6 @@ export {
loginByPhone
,
groupMemberRegister
,
getMyOwnMemberInfo
,
logout
logout
,
getInfo
}
...
...
common/request.js
View file @
4037b93
import
config
from
'@/config.js'
import
{
h5LoginAuto
}
from
'./login'
import
_
from
'lodash'
const
excludeUrls
=
[
'
login/login'
,
'login/register
'
]
const
excludeUrls
=
[
'
getMemberCountInfo'
,
'getInfo
'
]
// 获取Token
function
getToken
()
{
...
...
@@ -68,7 +66,7 @@ const request = function(req) {
const
data
=
res
.
data
||
{}
if
(
data
.
code
===
0
||
data
.
code
===
200
||
data
.
pageData
?.
code
===
200
)
{
resolve
(
data
)
}
else
if
(
req
.
url
.
indexOf
(
'getMemberCountInfo'
)
>
-
1
)
{
}
else
if
(
_
.
some
(
excludeUrls
,
(
url
)
=>
req
.
url
.
indexOf
(
url
)
>
-
1
)
)
{
resolve
(
data
)
}
else
{
// if (!excludeUrls.includes(req.url)) {
...
...
@@ -90,26 +88,26 @@ const request = function(req) {
// }
// 登录超时
if
(
data
.
code
===
60002
||
data
.
code
===
60001
)
{
uni
.
redirectTo
({
url
:
'/login/login'
})
}
else
if
(
data
.
code
===
401
)
{
h5LoginAuto
()
.
then
(()
=>
{
uni
.
hideLoading
()
uni
.
redirectTo
({
url
:
getCurrentPages
()[
getCurrentPages
()
.
length
-
1
].
$page
.
fullPath
})
})
.
catch
(()
=>
{
uni
.
showToast
({
title
:
'服务异常,请稍后重试'
,
icon
:
'none'
})
})
}
//
if (data.code === 60002 || data.code === 60001) {
//
uni.redirectTo({
//
url: '/login/login'
//
})
//
} else if (data.code === 401) {
//
h5LoginAuto()
//
.then(() => {
//
uni.hideLoading()
//
uni.redirectTo({
//
url: getCurrentPages()[getCurrentPages()
//
.length - 1].$page.fullPath
//
})
//
})
//
.catch(() => {
//
uni.showToast({
//
title: '服务异常,请稍后重试',
//
icon: 'none'
//
})
//
})
//
}
reject
(
res
)
}
...
...
config.js
View file @
4037b93
...
...
@@ -5,9 +5,9 @@
// staging 会员系统
// const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
// const baseUrl_api = "http://123.60.96.243/stage-api/";
// const baseUrl_api = 'http://192.168.1.11
:8787'
const
baseUrl_api
=
'http://192.168.1.98
:8787'
// const baseUrl_api = 'https://ztx.itechtop.cn/stage-api'
const
baseUrl_api
=
'https://tkcn.19wk.cn:8443/stage-api'
//
const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api'
// const baseUrl_api = 'https://newsystem.taekwondo.org.cn/stage-api'
export
default
{
...
...
group/apply/applyList.vue
View file @
4037b93
...
...
@@ -91,36 +91,36 @@
<image
mode=
"aspectFit"
src=
"/static/nodata.png"
></image>
<text>
暂无数据
</text>
</view>
<!--
<view
v-if=
"userType=='2'"
class=
"block-btn-box"
>
<!--
<view
v-if=
"userType=='2'"
class=
"block-btn-box"
>
<button
@
click=
"goMerge"
class=
"btn-red-kx"
>
前往合并 >
</button>
</view>
-->
</view>
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
// pageNum: 1,
// pageSize: 10
auditStatus
:
'0'
})
const
navs
=
ref
([
'审核中'
,
'审核通过'
,
'审核拒绝'
,
'撤回'
])
const
current
=
ref
()
const
list
=
ref
([])
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
const
totalCost
=
ref
(
0
)
onLoad
(()
=>
{
})
const
navs
=
ref
([
'审核中'
,
'审核通过'
,
'审核拒绝'
,
'撤回'
])
const
current
=
ref
()
const
list
=
ref
([])
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
const
totalCost
=
ref
(
0
)
onLoad
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -129,22 +129,22 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
userType
.
value
=
app
.
globalData
.
userType
console
.
log
(
userType
.
value
)
//
console.log(userType.value)
getList
()
}
}
function
onClickItem
(
e
)
{
function
onClickItem
(
e
)
{
console
.
log
(
e
)
queryParams
.
value
.
auditStatus
=
e
.
currentIndex
getList
()
}
}
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -167,9 +167,9 @@
})
total
.
value
=
res
.
total
})
}
}
function
audit
(
recordId
,
flag
)
{
function
audit
(
recordId
,
flag
)
{
if
(
flag
==
'0'
)
{
// 拒绝
// 弹出框填写理由
...
...
@@ -201,9 +201,9 @@
}
})
}
}
}
function
doApproval
(
recordId
,
flag
,
reason
)
{
function
doApproval
(
recordId
,
flag
,
reason
)
{
var
obj
=
{
flag
:
flag
,
reason
:
reason
||
''
,
...
...
@@ -218,9 +218,9 @@
})
getList
()
})
}
}
function
goDetail
(
item
)
{
function
goDetail
(
item
)
{
const
auditLog
=
encodeURIComponent
(
JSON
.
stringify
(
item
.
auditLog
))
const
form
=
encodeURIComponent
(
JSON
.
stringify
(
item
))
...
...
@@ -237,23 +237,23 @@
url
:
path
});
}
}
}
function
goMerge
()
{
function
goMerge
()
{
let
path
=
`/group/apply/merge`
uni
.
redirectTo
({
url
:
path
});
}
}
function
goMergeUp
()
{
function
goMergeUp
()
{
let
path
=
`/group/apply/mergeUp`
uni
.
redirectTo
({
url
:
path
});
}
}
function
sendBack
(
row
)
{
function
sendBack
(
row
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定撤回
${
row
.
content
.
certName
}
吗`
,
...
...
@@ -273,7 +273,7 @@
}
}
})
}
}
</
script
>
<
style
scoped
>
...
...
group/apply/mergeUp.vue
View file @
4037b93
...
...
@@ -54,29 +54,29 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
// pageNum: 1,
// pageSize: 10
mergeFlag
:
100
,
statusFlag
:
'101'
})
const
navs
=
ref
([
'待提交'
,
'审核中'
,
'审核通过'
,
'审核拒绝'
,
'已撤回'
])
const
current
=
ref
()
const
list
=
ref
([])
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
onLoad
(()
=>
{
})
const
navs
=
ref
([
'待提交'
,
'审核中'
,
'审核通过'
,
'审核拒绝'
,
'已撤回'
])
const
current
=
ref
()
const
list
=
ref
([])
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
onLoad
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -85,16 +85,16 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
userType
.
value
=
app
.
globalData
.
userType
console
.
log
(
userType
.
value
)
//
console.log(userType.value)
getList
()
}
}
function
onClickItem
(
e
)
{
function
onClickItem
(
e
)
{
console
.
log
(
e
)
switch
(
e
.
currentIndex
){
case
0
:
...
...
@@ -114,9 +114,9 @@
break
;
}
getList
()
}
}
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -153,9 +153,9 @@
})
total
.
value
=
res
.
total
})
}
}
function
handleAudit
(
item
){
function
handleAudit
(
item
){
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定提交
${
item
.
content
.
certName
}
吗`
,
...
...
@@ -174,9 +174,9 @@
}
}
})
}
}
function
goDetail
(
item
)
{
function
goDetail
(
item
)
{
const
form
=
encodeURIComponent
(
JSON
.
stringify
(
item
))
// 查看
let
path
=
`/group/apply/mergeUpDetail?&form=
${
form
}
`
...
...
@@ -184,20 +184,20 @@
url
:
path
});
}
function
goMerge
(){
}
function
goMerge
(){
let
path
=
`/group/apply/merge`
uni
.
redirectTo
({
url
:
path
});
}
function
goApply
(){
}
function
goApply
(){
let
path
=
`/group/apply/applyList`
uni
.
redirectTo
({
url
:
path
});
}
function
sendBack
(
row
){
}
function
sendBack
(
row
){
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定撤回
${
row
.
content
.
certName
}
吗`
,
...
...
@@ -217,8 +217,8 @@
}
}
})
}
function
resolution
(
row
){
}
function
resolution
(
row
){
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定拆分
${
row
.
content
.
certName
}
吗`
,
...
...
@@ -235,7 +235,7 @@
}
}
})
}
}
</
script
>
<
style
scoped
>
...
...
group/feeBill.vue
View file @
4037b93
...
...
@@ -80,28 +80,28 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
queryParams
=
ref
({})
const
totalCost
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
queryParams
=
ref
({})
const
totalCost
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
docId
:
''
,
payTime
:
''
,
url
:
''
,
remark
:
''
})
onLoad
(()
=>
{
})
onLoad
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -110,14 +110,14 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
getList
()
}
}
function
getList
()
{
function
getList
()
{
if
(
queryParams
.
value
.
settle
==
1
)
{
queryParams
.
value
.
settleFlag
=
undefined
queryParams
.
value
.
payFlag
=
undefined
...
...
@@ -131,19 +131,22 @@
totalCost
.
value
=
totalCost
.
value
+
(
item
.
allPrice
*
1
)
})
})
}
}
function
handleUpdate
(
item
)
{
function
handleUpdate
(
item
)
{
form
.
value
.
docId
=
item
.
docId
if
(
item
.
payEvidence
)
{
form
.
value
.
url
=
item
.
payEvidence
}
UpPop
.
value
.
open
()
}
let
selectFileValue
=
{}
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
function
selectFile
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -153,17 +156,17 @@
form
.
value
.
url
=
JSON
.
stringify
([
selectFileValue
])
});
}
}
function
fileProgress
(
e
)
{
function
fileProgress
(
e
)
{
console
.
log
(
'progress:'
+
e
)
}
}
function
delSupplementFile
(
index
)
{
function
delSupplementFile
(
index
)
{
selectFileValue
=
{}
}
}
function
uploadSure
()
{
function
uploadSure
()
{
console
.
log
(
form
.
value
)
if
(
!
form
.
value
.
payTime
){
uni
.
showToast
({
...
...
@@ -188,16 +191,16 @@
})
getList
()
})
}
}
function
goDetail
(
item
)
{
function
goDetail
(
item
)
{
//详情
console
.
log
(
item
.
docId
)
let
path
=
`/group/feeBillDetail?docId=
${
item
.
docId
}
`
uni
.
navigateTo
({
url
:
path
});
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
group/newChange.vue
View file @
4037b93
...
...
@@ -123,34 +123,34 @@
</template>
<
script
setup
>
import
{
import
{
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
import
*
as
api
from
'@/common/api.js'
import
config
from
'/config.js'
const
queryParams
=
ref
({})
const
query
=
ref
({})
const
total
=
ref
(
0
)
const
list
=
ref
([])
const
popup
=
ref
(
null
)
const
choseStudent
=
ref
(
null
)
const
studentList
=
ref
([])
const
type
=
ref
(
''
)
const
form
=
ref
({})
onLoad
((
option
)
=>
{
}
from
'@dcloudio/uni-app'
import
*
as
api
from
'@/common/api.js'
import
config
from
'/config.js'
const
queryParams
=
ref
({})
const
query
=
ref
({})
const
total
=
ref
(
0
)
const
list
=
ref
([])
const
popup
=
ref
(
null
)
const
choseStudent
=
ref
(
null
)
const
studentList
=
ref
([])
const
type
=
ref
(
''
)
const
form
=
ref
({})
onLoad
((
option
)
=>
{
if
(
option
.
rangeId
)
{
queryParams
.
value
.
rangeId
=
option
.
rangeId
getList
()
}
})
onShow
(()
=>
{})
})
onShow
(()
=>
{})
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -162,16 +162,16 @@
total
.
value
=
res
.
total
uni
.
hideLoading
()
})
}
}
function
handleChange
(
a
,
b
)
{
function
handleChange
(
a
,
b
)
{
type
.
value
=
b
form
.
value
=
a
console
.
log
(
form
.
value
.
newName
)
popup
.
value
.
open
()
}
}
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
uni
.
showModal
({
content
:
`确认删除
${
row
.
newName
}
`
,
success
:
function
(
res
)
{
...
...
@@ -185,9 +185,9 @@
}
}
})
}
}
function
chooseOnline
()
{
function
chooseOnline
()
{
uni
.
showLoading
({
title
:
'加载中'
,
icon
:
'none'
...
...
@@ -199,8 +199,8 @@
choseStudent
.
value
.
open
()
})
}
function
getSonList
(){
}
function
getSonList
(){
uni
.
showLoading
({
title
:
'加载中'
,
icon
:
'none'
...
...
@@ -210,17 +210,17 @@
studentList
.
value
=
res
.
data
.
rows
uni
.
hideLoading
()
})
}
}
function
checkThis
(
n
)
{
function
checkThis
(
n
)
{
if
(
n
.
checked
)
{
n
.
checked
=
false
}
else
{
n
.
checked
=
true
}
}
}
function
handleImport
()
{
function
handleImport
()
{
var
arr
=
[]
for
(
var
n
of
studentList
.
value
)
{
if
(
n
.
checked
)
{
...
...
@@ -235,9 +235,9 @@
choseStudent
.
value
.
close
()
getList
()
})
}
}
function
submitForm
(
type
)
{
function
submitForm
(
type
)
{
api
.
groupChangeEditMod
({
id
:
form
.
value
.
id
,
newName
:
form
.
value
.
newName
...
...
@@ -248,9 +248,9 @@
})
getList
()
})
}
}
function
commitFN
()
{
function
commitFN
()
{
const
flag
=
list
.
value
.
some
(
item
=>
{
if
(
!
item
.
fileUrl
)
{
uni
.
showToast
({
...
...
@@ -278,13 +278,15 @@
}
}
})
}
let
selectFileValue
=
{}
}
let
selectFileValue
=
{}
function
selectFile
(
row
,
e
)
{
console
.
log
(
row
,
e
)
function
selectFile
(
row
,
e
)
{
form
.
value
=
row
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -304,12 +306,12 @@
getList
()
})
});
}
}
function
delSupplementFile
(
row
)
{
function
delSupplementFile
(
row
)
{
selectFileValue
=
{}
row
.
fileUrl
=
[]
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.searchbar
{
...
...
level/addApply.vue
View file @
4037b93
...
...
@@ -162,82 +162,82 @@
</
template
>
<
script
setup
>
import
{
import
{
ref
}
from
'vue'
;
import
*
as
api
from
'@/common/api.js'
;
import
{
}
from
'vue'
;
import
*
as
api
from
'@/common/api.js'
;
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
config
from
'@/config.js'
import
dayjs
from
'dayjs'
import
_
from
'lodash'
const
app
=
getApp
();
const
memberInfo
=
app
.
globalData
.
memberInfo
const
form
=
ref
({
}
from
'@dcloudio/uni-app'
;
import
config
from
'@/config.js'
import
dayjs
from
'dayjs'
import
_
from
'lodash'
const
app
=
getApp
();
const
memberInfo
=
app
.
globalData
.
memberInfo
const
form
=
ref
({
type
:
1
});
const
dataList
=
ref
([]);
const
examinerForChoose
=
[
'A'
,
'B'
,
'C'
]
const
examinerArr
=
[]
const
active
=
ref
(
0
)
const
total
=
ref
(
0
)
const
list1
=
ref
([{
});
const
dataList
=
ref
([]);
const
examinerForChoose
=
[
'A'
,
'B'
,
'C'
]
const
examinerArr
=
[]
const
active
=
ref
(
0
)
const
total
=
ref
(
0
)
const
list1
=
ref
([{
title
:
'考级基本信息'
},
{
},
{
title
:
'添加考生'
}])
const
choseStudent
=
ref
(
null
)
const
UpPop
=
ref
(
null
)
const
studentList
=
ref
([])
const
infoList
=
ref
([])
const
ids
=
ref
([])
const
tablePersonInfo
=
ref
({})
const
transcript
=
ref
([])
const
studentQuery
=
ref
({
}])
const
choseStudent
=
ref
(
null
)
const
UpPop
=
ref
(
null
)
const
studentList
=
ref
([])
const
infoList
=
ref
([])
const
ids
=
ref
([])
const
tablePersonInfo
=
ref
({})
const
transcript
=
ref
([])
const
studentQuery
=
ref
({
name
:
''
})
const
levelArr
=
ref
([{
})
const
levelArr
=
ref
([{
value
:
'10'
,
text
:
'十级'
},
{
},
{
value
:
'9'
,
text
:
'九级'
},
{
},
{
value
:
'8'
,
text
:
'八级'
},
{
},
{
value
:
'7'
,
text
:
'七级'
},
{
},
{
value
:
'6'
,
text
:
'六级'
},
{
},
{
value
:
'5'
,
text
:
'五级'
},
{
},
{
value
:
'4'
,
text
:
'四级'
},
{
},
{
value
:
'3'
,
text
:
'三级'
},
{
},
{
value
:
'2'
,
text
:
'二级'
},
{
},
{
value
:
'1'
,
text
:
'一级'
}])
const
range
=
ref
([{
}])
const
range
=
ref
([{
value
:
'1'
,
text
:
'是'
},
{
},
{
value
:
'0'
,
text
:
'否'
}])
let
examId
onLoad
(
option
=>
{
}])
let
examId
onLoad
(
option
=>
{
console
.
log
(
option
)
if
(
app
.
globalData
.
isLogin
)
{
form
.
value
.
memberName
=
app
.
globalData
.
memberInfo
.
name
...
...
@@ -266,21 +266,21 @@
}
};
}
});
onShow
(
option
=>
{
});
onShow
(
option
=>
{
// if(!!option){
// console.log(option)
// }
uni
.
$on
(
'chosen'
,
updateData
)
})
})
function
updateData
(
e
)
{
function
updateData
(
e
)
{
// console.log(e)
examinerArr
.
push
(
e
.
obj
)
form
.
value
[
`examiner_
${
e
.
ec
}
`
]
=
e
.
obj
.
name
}
}
function
getDetail
()
{
function
getDetail
()
{
api
.
getLevelApplyInfo
(
examId
).
then
(
res
=>
{
const
data
=
res
.
data
if
(
data
.
examiner
)
{
...
...
@@ -298,9 +298,9 @@
form
.
value
=
data
})
}
}
function
selectFN
(
ec
)
{
function
selectFN
(
ec
)
{
const
chosen
=
[]
const
type
=
form
.
value
.
type
_
.
each
(
examinerForChoose
,
ec
=>
{
...
...
@@ -320,9 +320,9 @@
uni
.
navigateTo
({
url
:
path
});
}
}
function
submitForm
(
flag
)
{
function
submitForm
(
flag
)
{
form
.
value
.
status
=
'0'
const
examinerIds
=
[]
const
examinerNames
=
[]
...
...
@@ -384,9 +384,9 @@
}
})
}
}
}
function
save
()
{
function
save
()
{
if
(
form
.
value
.
examId
)
{
return
api
.
updateLevelInfo
(
form
.
value
).
then
(()
=>
{
uni
.
showToast
({
...
...
@@ -404,9 +404,9 @@
})
})
}
}
}
function
chooseOnline
()
{
function
chooseOnline
()
{
uni
.
showLoading
({
title
:
'加载中'
,
icon
:
'none'
...
...
@@ -429,17 +429,17 @@
uni
.
hideLoading
()
choseStudent
.
value
.
open
()
})
}
}
function
checkThis
(
item
)
{
function
checkThis
(
item
)
{
if
(
item
.
checked
)
{
item
.
checked
=
false
}
else
{
item
.
checked
=
true
}
}
}
function
submitStudents
()
{
function
submitStudents
()
{
ids
.
value
=
[]
for
(
var
s
of
studentList
.
value
)
{
if
(
s
.
checked
)
{
...
...
@@ -460,9 +460,9 @@
getChosedStudentList
()
choseStudent
.
value
.
close
()
})
}
}
function
getChosedStudentList
()
{
function
getChosedStudentList
()
{
var
obj
=
{
examId
:
form
.
value
.
examId
}
...
...
@@ -492,9 +492,9 @@
infoList
.
value
=
res
.
rows
}).
then
(
getTablePersonInfo
)
}
}
function
getTablePersonInfo
()
{
function
getTablePersonInfo
()
{
const
total
=
infoList
.
value
.
length
const
levelArr
=
[]
_
.
each
(
infoList
.
value
,
(
d
)
=>
{
...
...
@@ -517,20 +517,20 @@
return
l
.
level
})
}
}
}
function
szToHz
(
num
)
{
function
szToHz
(
num
)
{
const
hzArr
=
[
'〇'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'七'
,
'八'
,
'九'
,
'十'
]
return
hzArr
[
parseInt
(
num
)]
}
}
let
nowRow
let
nowRow
function
changeLevelfather
(
row
)
{
function
changeLevelfather
(
row
)
{
nowRow
=
row
}
}
function
changeLevel
(
e
)
{
function
changeLevel
(
e
)
{
console
.
log
(
e
)
if
(
e
!==
nowRow
.
levelRecommend
)
{
uni
.
showModal
({
...
...
@@ -546,9 +546,9 @@
}
})
}
}
}
function
submitForm2
(
flag
)
{
function
submitForm2
(
flag
)
{
if
(
flag
===
1
)
{
if
(
infoList
.
value
.
length
==
0
)
{
uni
.
showToast
({
...
...
@@ -584,9 +584,9 @@
})
})
}
}
}
function
saveStep2
(
flag
)
{
function
saveStep2
(
flag
)
{
const
data
=
_
.
map
(
infoList
.
value
,
(
d
)
=>
{
return
{
id
:
d
.
id
,
...
...
@@ -601,15 +601,18 @@
transcript
:
form
.
value
.
transcript
,
status
:
flag
})
}
}
function
handleUpdate
()
{
function
handleUpdate
()
{
UpPop
.
value
.
open
()
}
let
selectFileValue
=
{}
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
console
.
log
(
e
)
function
selectFile
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
for
(
const
n
in
e
.
tempFiles
)
{
api
.
uploadFileList
(
e
.
tempFilePaths
[
n
]).
then
(
data
=>
{
console
.
log
(
data
)
...
...
@@ -623,20 +626,20 @@
});
}
}
}
function
fileProgress
(
e
)
{
function
fileProgress
(
e
)
{
console
.
log
(
'progress:'
+
e
)
}
}
function
delSupplementFile
(
e
)
{
function
delSupplementFile
(
e
)
{
transcript
.
value
=
_
.
remove
(
transcript
.
value
,
function
(
n
)
{
return
n
.
name
!=
e
.
tempFile
.
name
;
});
console
.
log
(
transcript
.
value
)
}
}
function
uploadSure
()
{
function
uploadSure
()
{
console
.
log
(
transcript
.
value
)
// 上传确定
if
(
transcript
.
value
.
length
==
0
)
{
...
...
@@ -654,9 +657,9 @@
}
}))
UpPop
.
value
.
close
()
}
}
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定删除
${
row
.
realName
}
?`
,
...
...
@@ -671,7 +674,7 @@
}
}
})
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
level/payment.vue
View file @
4037b93
...
...
@@ -66,26 +66,26 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
docId
:
''
,
payTime
:
''
,
url
:
''
,
remark
:
''
})
onLoad
((
option
)
=>
{
})
onLoad
((
option
)
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -94,26 +94,29 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
getList
()
}
}
function
getList
()
{
function
getList
()
{
api
.
getFeeBillList
().
then
(
res
=>
{
list
.
value
=
res
.
rows
})
}
}
function
handleUpdate
(
item
)
{
function
handleUpdate
(
item
)
{
form
.
value
.
docId
=
item
.
docId
UpPop
.
value
.
open
()
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -123,14 +126,14 @@
form
.
value
.
url
=
JSON
.
stringify
([
selectFileValue
])
});
}
function
fileProgress
(
e
)
{
}
function
fileProgress
(
e
)
{
console
.
log
(
'progress:'
+
e
)
}
function
delSupplementFile
(
index
)
{
}
function
delSupplementFile
(
index
)
{
selectFileValue
=
{}
}
function
uploadSure
(){
}
function
uploadSure
(){
console
.
log
(
form
.
value
)
api
.
commitPaymentVoucher
(
form
.
value
).
then
(
res
=>
{
UpPop
.
value
.
close
()
...
...
@@ -141,15 +144,15 @@
})
getList
()
})
}
function
goDetail
(
item
)
{
}
function
goDetail
(
item
)
{
//详情
console
.
log
(
item
.
docId
)
let
path
=
`/personalVip/feeBillDetail?docId=
${
item
.
docId
}
`
uni
.
navigateTo
({
url
:
path
});
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
login/login.vue
View file @
4037b93
...
...
@@ -72,65 +72,68 @@
</
template
>
<
script
setup
>
import
{
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
{
}
from
'@dcloudio/uni-app'
;
import
{
ref
}
from
'vue'
import
config
from
'@/config.js'
import
{
}
from
'vue'
import
config
from
'@/config.js'
import
{
getCodeImg
,
getSmsCode
,
pcLogin
,
loginByPhone
}
from
'@/common/login.js'
}
from
'@/common/login.js'
const
isActive
=
ref
(
0
)
const
agree
=
ref
(
false
)
const
isRember
=
ref
(
true
)
const
codeUrl
=
ref
(
null
)
const
inputstyle
=
ref
({
const
isActive
=
ref
(
0
)
const
agree
=
ref
(
false
)
const
isRember
=
ref
(
true
)
const
codeUrl
=
ref
(
null
)
const
inputstyle
=
ref
({
borderColor
:
'transparent'
,
fontSize
:
'30rpx'
})
const
form
=
ref
({
})
const
form
=
ref
({
username
:
null
,
password
:
null
,
code
:
null
,
uuid
:
null
})
const
form2
=
ref
({
})
const
form2
=
ref
({
telNo
:
null
,
captcha
:
null
,
code
:
null
,
uuid
:
null
})
const
countDown
=
ref
({
})
const
countDown
=
ref
({
start
:
false
,
second
:
60
})
})
const
app
=
getApp
()
const
app
=
getApp
()
onLoad
(()
=>
{
onLoad
(()
=>
{
getCode
()
if
(
uni
.
showShareMenu
){
uni
.
showShareMenu
({
withShareTicket
:
true
,
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
});
})
}
})
function
changeActive
(
n
)
{
function
changeActive
(
n
)
{
isActive
.
value
=
n
}
}
function
changeAgree
(
item
)
{
function
changeAgree
(
item
)
{
item
=
!
item
}
}
function
login
()
{
function
login
()
{
if
(
isActive
.
value
==
0
)
{
if
(
!
form
.
value
.
username
)
{
uni
.
showToast
({
...
...
@@ -156,7 +159,6 @@
pcLogin
(
form
.
value
)
.
then
((
res
)
=>
{
app
.
globalData
.
isLogin
=
true
uni
.
redirectTo
({
url
:
'/pages/index/index'
...
...
@@ -187,25 +189,25 @@
})
})
}
}
}
function
goRegister
()
{
function
goRegister
()
{
const
path
=
'/login/register'
uni
.
navigateTo
({
url
:
path
})
}
}
function
getCode
()
{
function
getCode
()
{
getCodeImg
().
then
((
res
)
=>
{
codeUrl
.
value
=
'data:image/gif;base64,'
+
res
.
data
.
img
form
.
value
.
uuid
=
res
.
data
.
uuid
form2
.
value
.
uuid
=
res
.
data
.
uuid
})
}
}
// 发送短信验证码
function
getCaptchaSms
()
{
// 发送短信验证码
function
getCaptchaSms
()
{
if
(
!
form2
.
value
.
telNo
)
{
uni
.
showToast
({
title
:
'手机号不能为空'
,
...
...
@@ -232,13 +234,13 @@
})
countDown
.
value
.
start
=
true
}).
catch
(
getCode
)
}
}
function
timeup
()
{
function
timeup
()
{
countDown
.
value
.
start
=
false
countDown
.
value
.
second
=
60
getCode
()
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
pages/exam/payment.vue
View file @
4037b93
...
...
@@ -75,32 +75,32 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
_
from
'lodash'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
_
from
'lodash'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
queryParams
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
queryParams
=
ref
({
type
:
'1'
})
const
totalCost
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
selectFileValue
=
ref
({})
const
form
=
ref
({
})
const
totalCost
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
selectFileValue
=
ref
({})
const
form
=
ref
({
docId
:
''
,
payTime
:
''
,
payCert
:
''
,
remark
:
''
})
onLoad
((
option
)
=>
{
})
onLoad
((
option
)
=>
{
queryParams
.
value
.
type
=
option
.
type
console
.
log
(
option
.
type
)
if
(
option
.
type
==
2
)
{
...
...
@@ -121,14 +121,14 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
getList
()
}
}
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -140,9 +140,9 @@
totalCost
.
value
+=
(
info
.
totalAmount
*
1
)
})
})
}
}
function
handleUpdate
(
item
)
{
function
handleUpdate
(
item
)
{
form
.
value
.
payId
=
item
.
payId
if
(
item
.
payCert
)
{
form
.
value
.
payCert
=
item
.
payCert
...
...
@@ -155,10 +155,13 @@
form
.
value
.
remarks
=
item
.
remarks
}
UpPop
.
value
.
open
()
}
}
function
selectFile
(
e
)
{
function
selectFile
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
.
value
=
{
url
:
data
.
msg
,
...
...
@@ -168,17 +171,17 @@
form
.
value
.
payCert
=
JSON
.
stringify
([
selectFileValue
.
value
])
});
}
}
function
fileProgress
(
e
)
{
function
fileProgress
(
e
)
{
console
.
log
(
'progress:'
+
e
)
}
}
function
delSupplementFile
(
index
)
{
function
delSupplementFile
(
index
)
{
selectFileValue
.
value
=
{}
}
}
function
uploadSure
()
{
function
uploadSure
()
{
console
.
log
(
form
.
value
)
if
(
!
form
.
value
.
payTime
)
{
uni
.
showToast
({
...
...
@@ -203,16 +206,16 @@
title
:
'操作成功'
})
})
}
}
function
goDetail
(
item
)
{
function
goDetail
(
item
)
{
//详情
const
form
=
encodeURIComponent
(
JSON
.
stringify
(
item
))
let
path
=
`/pages/exam/paymentDetail?form=
${
form
}
&type=
${
queryParams
.
value
.
type
}
`
uni
.
navigateTo
({
url
:
path
});
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
pages/index/index.vue
View file @
4037b93
...
...
@@ -253,34 +253,34 @@
</template>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
;
import
*
as
loginServer
from
'@/common/login.js'
;
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
;
import
*
as
loginServer
from
'@/common/login.js'
;
import
config
from
'@/config.js'
import
{
onLoad
,
onShow
,
onReady
,
onPullDownRefresh
}
from
'@dcloudio/uni-app'
;
import
{
}
from
'@dcloudio/uni-app'
;
import
{
ref
,
getCurrentInstance
}
from
'vue'
;
}
from
'vue'
;
const
{
const
{
proxy
}
=
getCurrentInstance
()
const
app
=
getApp
();
const
userType
=
ref
(
'1'
)
const
memberInfo
=
ref
({})
}
=
getCurrentInstance
()
const
app
=
getApp
();
const
userType
=
ref
(
'1'
)
const
memberInfo
=
ref
({})
let
proId
;
const
svId
=
ref
(
null
);
const
numData
=
ref
({});
let
proId
;
const
svId
=
ref
(
null
);
const
numData
=
ref
({});
const
messageList
=
ref
([])
onShow
(()
=>
{
const
messageList
=
ref
([])
onShow
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -288,20 +288,22 @@
init
()
};
}
})
onLoad
(
option
=>
{
})
onLoad
(
option
=>
{
if
(
option
.
scene
)
{
proId
=
decodeURIComponent
(
option
.
scene
);
}
else
{
proId
=
option
.
proId
;
}
if
(
uni
.
showShareMenu
){
uni
.
showShareMenu
({
withShareTicket
:
true
,
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
});
});
}
});
function
loginOut
()
{
function
loginOut
()
{
uni
.
showModal
({
content
:
`确认退出吗?`
,
success
:
function
(
res
)
{
...
...
@@ -315,9 +317,9 @@
}
}
})
}
}
function
goPath
(
path
)
{
function
goPath
(
path
)
{
if
(
app
.
globalData
.
authenticationStatus
==
'5'
)
{
if
(
app
.
globalData
.
genFlag
==
1
)
{
uni
.
showModal
({
...
...
@@ -350,16 +352,16 @@
url
:
path
});
}
}
function
init
()
{
function
init
()
{
uni
.
showLoading
({
title
:
'加载中'
});
loginServer
.
getMyOwnMemberInfo
().
then
(
res
=>
{
userType
.
value
=
app
.
globalData
.
userType
memberInfo
.
value
=
app
.
globalData
.
memberInfo
console
.
log
(
userType
.
value
,
app
.
globalData
.
authenticationStatus
)
//
console.log(userType.value, app.globalData.authenticationStatus)
if
(
app
.
globalData
.
authenticationStatus
==
'5'
)
{
if
(
app
.
globalData
.
genFlag
==
1
)
{
uni
.
showModal
({
...
...
@@ -412,9 +414,9 @@
api
.
getRemindCount
().
then
(
res
=>
{
numData
.
value
=
res
.
data
})
}
}
function
getMes
()
{
function
getMes
()
{
uni
.
showLoading
({
title
:
'加载中'
});
...
...
@@ -470,9 +472,9 @@
messageList
.
value
=
res
.
rows
uni
.
hideLoading
();
})
}
}
function
readMessage
(
item
)
{
function
readMessage
(
item
)
{
uni
.
navigateTo
({
url
:
item
.
path
});
...
...
@@ -481,7 +483,7 @@
}).
then
(
res
=>
{
item
.
readFlag
=
'1'
})
}
}
</
script
>
<
style
scope
lang=
"scss"
>
.page
{
...
...
personalVip/addChange.vue
View file @
4037b93
...
...
@@ -54,7 +54,7 @@
<text
class=
"text-danger"
>
*需上传证件照等有效资料
</text>
</view>
</view>
<!--
<view>
<!--
<view>
<label>
开始日期:
</label>
{{
n
.
oldBeginTime
?.
slice
(
0
,
10
)
}}
<text
class=
"text-primary"
@
click=
"handleChange(n,'newBeginTime')"
>
变更
</text>
...
...
@@ -163,31 +163,31 @@
</template>
<
script
setup
>
import
{
import
{
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
import
*
as
api
from
'@/common/api.js'
import
config
from
'/config.js'
const
queryParams
=
ref
({})
const
total
=
ref
(
0
)
const
list
=
ref
([])
const
popup
=
ref
(
null
)
const
choseStudent
=
ref
(
null
)
const
studentList
=
ref
([])
const
type
=
ref
(
''
)
const
form
=
ref
({})
const
sexs
=
ref
([{
}
from
'@dcloudio/uni-app'
import
*
as
api
from
'@/common/api.js'
import
config
from
'/config.js'
const
queryParams
=
ref
({})
const
total
=
ref
(
0
)
const
list
=
ref
([])
const
popup
=
ref
(
null
)
const
choseStudent
=
ref
(
null
)
const
studentList
=
ref
([])
const
type
=
ref
(
''
)
const
form
=
ref
({})
const
sexs
=
ref
([{
text
:
'男'
,
value
:
'0'
},
{
},
{
text
:
'女'
,
value
:
'1'
}])
const
cardType
=
ref
([{
}])
const
cardType
=
ref
([{
text
:
'身份证'
,
value
:
'0'
},
...
...
@@ -211,8 +211,8 @@
text
:
'户口本'
,
value
:
'5'
}
])
const
cardType1
=
ref
([{
])
const
cardType1
=
ref
([{
text
:
'身份证'
,
value
:
'0'
},
...
...
@@ -228,16 +228,16 @@
text
:
'户口本'
,
value
:
'5'
}
])
onLoad
((
option
)
=>
{
])
onLoad
((
option
)
=>
{
if
(
option
.
rangeId
)
{
queryParams
.
value
.
rangeId
=
option
.
rangeId
getList
()
}
})
onShow
(()
=>
{})
})
onShow
(()
=>
{})
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -249,16 +249,16 @@
total
.
value
=
res
.
total
uni
.
hideLoading
()
})
}
}
function
handleChange
(
a
,
b
)
{
function
handleChange
(
a
,
b
)
{
type
.
value
=
b
form
.
value
=
a
console
.
log
(
form
.
value
.
newName
)
popup
.
value
.
open
()
}
}
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
uni
.
showModal
({
content
:
`确认删除会员
${
row
.
newName
}
`
,
success
:
function
(
res
)
{
...
...
@@ -272,9 +272,9 @@
}
}
})
}
}
function
chooseOnline
()
{
function
chooseOnline
()
{
uni
.
showLoading
({
title
:
'加载中'
,
icon
:
'none'
...
...
@@ -289,17 +289,17 @@
uni
.
hideLoading
()
choseStudent
.
value
.
open
()
})
}
}
function
checkThis
(
n
)
{
function
checkThis
(
n
)
{
if
(
n
.
checked
)
{
n
.
checked
=
false
}
else
{
n
.
checked
=
true
}
}
}
function
handleImport
()
{
function
handleImport
()
{
var
arr
=
[]
for
(
var
n
of
studentList
.
value
)
{
if
(
n
.
checked
)
{
...
...
@@ -314,9 +314,9 @@
choseStudent
.
value
.
close
()
getList
()
})
}
}
function
submitForm
(
type
)
{
function
submitForm
(
type
)
{
if
(
type
==
'newIdcCode'
&&
form
.
value
.
newIdcType
==
0
)
{
// 验证身份证
const
pattern
=
...
...
@@ -346,9 +346,9 @@
})
getList
()
})
}
}
function
commitFN
()
{
function
commitFN
()
{
const
flag
=
list
.
value
.
some
(
item
=>
{
if
(
!
item
.
fileUrl
)
{
uni
.
showToast
({
...
...
@@ -376,13 +376,15 @@
}
}
})
}
let
selectFileValue
=
{}
}
let
selectFileValue
=
{}
function
selectFile
(
row
,
e
)
{
console
.
log
(
row
,
e
)
function
selectFile
(
row
,
e
)
{
form
.
value
=
row
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -408,12 +410,12 @@
getList
()
})
});
}
}
function
delSupplementFile
(
row
)
{
function
delSupplementFile
(
row
)
{
selectFileValue
=
{}
row
.
fileUrl
=
[]
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
personalVip/addChangeLevel.vue
View file @
4037b93
...
...
@@ -100,23 +100,23 @@
</template>
<
script
setup
>
import
{
import
{
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
import
{
}
from
'@dcloudio/uni-app'
import
{
szToHz
}
from
'@/common/utils.js'
import
*
as
api
from
'@/common/api.js'
const
inputstyle
=
ref
({
}
from
'@/common/utils.js'
import
*
as
api
from
'@/common/api.js'
const
inputstyle
=
ref
({
borderColor
:
'#fff'
,
fontSize
:
'30rpx'
})
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
levelArr
=
ref
([{
})
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
levelArr
=
ref
([{
text
:
'九级'
,
value
:
'9'
},
...
...
@@ -152,8 +152,8 @@
text
:
'一级'
,
value
:
'1'
}
])
const
reasonArr
=
ref
([{
])
const
reasonArr
=
ref
([{
text
:
'报错级位'
,
value
:
'1'
},
...
...
@@ -165,9 +165,9 @@
text
:
'其它'
,
value
:
'3'
}
])
])
const
idcTypeListno2
=
ref
([
const
idcTypeListno2
=
ref
([
{
value
:
'0'
,
text
:
"身份证"
...
...
@@ -184,8 +184,8 @@
value
:
'5'
,
text
:
"户口本"
}
])
const
idcTypeList
=
ref
([{
])
const
idcTypeList
=
ref
([{
value
:
'0'
,
text
:
"身份证"
},
...
...
@@ -209,31 +209,31 @@
value
:
'5'
,
text
:
"户口本"
}
])
const
baseFormData
=
ref
({
])
const
baseFormData
=
ref
({
idcType
:
'0'
})
const
list
=
ref
([])
const
levelList
=
ref
([])
const
total
=
ref
(
0
)
const
flag
=
ref
(
true
)
const
popup
=
ref
(
null
)
const
queryParams
=
ref
({
})
const
list
=
ref
([])
const
levelList
=
ref
([])
const
total
=
ref
(
0
)
const
flag
=
ref
(
true
)
const
popup
=
ref
(
null
)
const
queryParams
=
ref
({
rangeId
:
''
})
onLoad
((
option
)
=>
{
})
onLoad
((
option
)
=>
{
if
(
option
.
rangeId
)
{
baseFormData
.
value
.
rangeId
=
option
.
rangeId
queryParams
.
value
.
rangeId
=
option
.
rangeId
}
})
onShow
(()
=>
{
})
onShow
(()
=>
{
if
(
queryParams
.
value
.
rangeId
!=
''
)
{
getList
()
}
})
// 查询会员
function
selectMember
()
{
})
// 查询会员
function
selectMember
()
{
if
(
!
baseFormData
.
value
.
idcCode
)
{
uni
.
showToast
({
title
:
'请输入证件号'
,
...
...
@@ -255,9 +255,9 @@
levelList
.
value
=
res
.
data
popup
.
value
.
open
()
})
}
}
function
submitForm
()
{
function
submitForm
()
{
if
(
!
baseFormData
.
value
.
name
)
{
uni
.
showToast
({
title
:
'请输入姓名'
,
...
...
@@ -297,9 +297,9 @@
baseFormData
.
value
.
name
=
''
getList
()
})
}
}
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
'加载中'
})
...
...
@@ -314,9 +314,9 @@
total
.
value
=
Response
.
total
uni
.
hideLoading
()
})
}
}
function
commitFN
()
{
function
commitFN
()
{
const
flag
=
list
.
value
.
some
(
item
=>
{
if
(
!
item
.
fileUrl
&&
!
item
.
reason
)
{
uni
.
showToast
({
...
...
@@ -334,9 +334,9 @@
})
uni
.
navigateBack
()
})
}
}
function
handleAdd
(
row
)
{
function
handleAdd
(
row
)
{
api
.
addLevelList
({
perId
:
row
.
perId
,
techId
:
row
.
techId
,
...
...
@@ -346,12 +346,14 @@
getList
()
popup
.
value
.
close
()
})
}
let
selectFileValue
=
{}
}
let
selectFileValue
=
{}
function
selectFile
(
row
,
e
)
{
console
.
log
(
row
,
e
)
function
selectFile
(
row
,
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -367,14 +369,14 @@
getList
()
})
});
}
}
function
delSupplementFile
(
row
)
{
function
delSupplementFile
(
row
)
{
selectFileValue
=
{}
row
.
fileUrl
=
[]
}
}
function
reasonFN
(
row
,
e
)
{
function
reasonFN
(
row
,
e
)
{
console
.
log
(
row
,
e
)
api
.
addLevelModToRange
({
reason
:
e
,
...
...
@@ -382,18 +384,18 @@
}).
then
(
res
=>
{
getList
()
})
}
}
function
editJIFN
(
row
,
e
)
{
function
editJIFN
(
row
,
e
)
{
api
.
editNewJi
({
modId
:
row
.
id
,
NewJi
:
e
}).
then
(
res
=>
{
getList
()
})
}
}
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
`确定删除
${
row
.
perName
}
吗?`
,
...
...
@@ -407,7 +409,7 @@
})
}
})
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
personalVip/addVip.vue
View file @
4037b93
...
...
@@ -120,30 +120,30 @@
</
template
>
<
script
setup
>
import
{
import
{
ref
}
from
'vue'
import
*
as
api
from
'@/common/api.js'
import
{
}
from
'vue'
import
*
as
api
from
'@/common/api.js'
import
{
onLoad
}
from
'@dcloudio/uni-app'
import
config
from
'@/config.js'
const
current
=
ref
(
0
)
const
popup
=
ref
(
null
)
const
infoConfirm
=
ref
(
null
)
const
agree
=
ref
(
false
)
const
perId
=
ref
()
const
photoArr
=
ref
({})
const
regionsList
=
ref
([])
const
cardObj
=
ref
({})
const
baseFormData
=
ref
({
}
from
'@dcloudio/uni-app'
import
config
from
'@/config.js'
const
current
=
ref
(
0
)
const
popup
=
ref
(
null
)
const
infoConfirm
=
ref
(
null
)
const
agree
=
ref
(
false
)
const
perId
=
ref
()
const
photoArr
=
ref
({})
const
regionsList
=
ref
([])
const
cardObj
=
ref
({})
const
baseFormData
=
ref
({
photo
:
''
,
sex
:
'0'
,
idcType
:
'0'
,
perType
:
'1'
,
// (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;)
})
const
items
=
ref
([
'手动录入'
,
'自动录入'
])
const
idcTypeList
=
ref
([{
})
const
items
=
ref
([
'手动录入'
,
'自动录入'
])
const
idcTypeList
=
ref
([{
value
:
'0'
,
text
:
"身份证"
},
...
...
@@ -158,20 +158,20 @@
value
:
'4'
,
text
:
'户口本'
}
])
const
sexs
=
ref
([{
])
const
sexs
=
ref
([{
text
:
'女'
,
value
:
'1'
},
{
},
{
text
:
'男'
,
value
:
'0'
}])
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
inputstyle
=
ref
({
}])
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
inputstyle
=
ref
({
borderColor
:
'#fff'
,
fontSize
:
'30rpx'
})
const
imageStylesTx
=
ref
({
})
const
imageStylesTx
=
ref
({
width
:
'210rpx'
,
height
:
'280rpx'
,
background
:
{
...
...
@@ -180,28 +180,28 @@
border
:
{
radius
:
'2px'
}
});
});
const
imageStylesZJ
=
ref
({
const
imageStylesZJ
=
ref
({
width
:
'500rpx'
,
height
:
'316rpx'
});
onLoad
((
option
)
=>
{
});
onLoad
((
option
)
=>
{
if
(
option
.
tab
==
'1'
)
{
current
.
value
=
1
baseFormData
.
value
.
idcType
=
option
.
idcType
||
0
}
// console.log(current.value,option.tab)
getRegionsList
()
})
})
function
getRegionsList
()
{
function
getRegionsList
()
{
api
.
regionsList
().
then
(
res
=>
{
regionsList
.
value
=
res
.
data
})
}
}
function
onClickItem
(
e
)
{
function
onClickItem
(
e
)
{
if
(
current
.
value
!=
e
.
currentIndex
)
{
current
.
value
=
e
.
currentIndex
}
...
...
@@ -223,15 +223,21 @@
sourceFlag
:
1
}
}
}
}
function
changeAgree
(
item
)
{
function
changeAgree
(
item
)
{
agree
.
value
=
!
item
}
//身份证识别
function
upIdCardImgFront
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
//身份证识别
function
upIdCardImgFront
(
e
)
{
baseFormData
.
value
.
card
=
e
.
tempFiles
;
// console.log(e)
// const formData = new FormData()
// formData.append('pic', e.tempFiles[0].file)
...
...
@@ -262,11 +268,14 @@
}
})
}
}
function
upPhoto
(
e
)
{
function
upPhoto
(
e
)
{
const
tempFilePaths
=
e
.
tempFilePaths
;
const
imgUrl
=
tempFilePaths
[
0
]
if
(
!
imgUrl
){
return
}
wx
.
cropImage
({
src
:
imgUrl
,
cropScale
:
'4:5'
,
...
...
@@ -284,23 +293,23 @@
})
}
}
function
delimgFont
(
n
)
{
function
delimgFont
(
n
)
{
baseFormData
.
value
=
{
photo
:
''
,
sex
:
'0'
,
idcType
:
baseFormData
.
value
.
idcType
,
perType
:
'1'
,
};
}
}
function
delPhoto
(
n
)
{
function
delPhoto
(
n
)
{
photoArr
.
value
=
{};
baseFormData
.
value
.
photo
=
''
;
}
}
function
getExtractInfo
(
obj
)
{
function
getExtractInfo
(
obj
)
{
//如果老会员
api
.
extractInfoFromChinaIdCard
(
obj
).
then
(
res
=>
{
if
(
res
.
data
.
perCode
)
{
...
...
@@ -339,9 +348,9 @@
return
}
})
}
}
function
giveBirthDay
()
{
function
giveBirthDay
()
{
// 判断身份证正确性/赋值生日
if
(
baseFormData
.
value
.
idcType
==
0
)
{
if
(
!
(
/
(
^
\d{15}
$
)
|
(
^
\d{17}([
0-9
]
|X
)
$
)
/
.
test
(
baseFormData
.
value
.
idcCode
)))
{
...
...
@@ -394,22 +403,22 @@
return
}
}
}
}
function
changeSex
(
e
)
{
function
changeSex
(
e
)
{
console
.
log
(
"性别:"
,
e
.
detail
.
value
)
}
}
function
openpopup
()
{
function
openpopup
()
{
popup
.
value
.
open
()
}
}
function
closepopup
()
{
function
closepopup
()
{
agree
.
value
=
true
popup
.
value
.
close
()
}
}
function
changeIdcType
(
e
)
{
function
changeIdcType
(
e
)
{
console
.
log
(
e
)
// 切换证件照类型把当前页面数据清空
baseFormData
.
value
=
{
...
...
@@ -419,9 +428,9 @@
perType
:
'1'
,
sourceFlag
:
1
}
}
}
function
goSubmit
()
{
function
goSubmit
()
{
if
(
!
agree
.
value
)
{
uni
.
showToast
({
icon
:
'none'
,
...
...
@@ -500,16 +509,16 @@
}
});
}
}
function
getUserInfo
()
{
function
getUserInfo
()
{
api
.
getInfo
(
perId
.
value
).
then
(
res
=>
{
baseFormData
.
value
=
res
.
data
if
(
baseFormData
.
areaAssName
)
baseFormData
.
ancestorNameList
=
baseFormData
.
value
.
ancestorNameList
.
join
(
','
).
replaceAll
(
','
,
'/'
)
})
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
personalVip/audit.vue
View file @
4037b93
...
...
@@ -60,36 +60,36 @@
<image
mode=
"aspectFit"
src=
"/static/nodata.png"
></image>
<text>
暂无数据
</text>
</view>
<!--
<view
v-if=
"userType=='2'"
class=
"block-btn-box"
>
<!--
<view
v-if=
"userType=='2'"
class=
"block-btn-box"
>
<button
@
click=
"goMerge"
class=
"btn-red-kx"
>
前往合并 >
</button>
</view>
-->
</view>
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onShow
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
// pageNum: 1,
// pageSize: 10
auditStatus
:
'0'
})
const
navs
=
ref
([
'待审核'
,
'审核通过'
,
'审核拒绝'
,
'撤回'
])
const
current
=
ref
(
0
)
const
list
=
ref
([])
const
statistical
=
ref
({})
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
onShow
(()
=>
{
})
const
navs
=
ref
([
'待审核'
,
'审核通过'
,
'审核拒绝'
,
'撤回'
])
const
current
=
ref
(
0
)
const
list
=
ref
([])
const
statistical
=
ref
({})
const
total
=
ref
(
0
)
const
deptType
=
ref
(
''
)
const
userType
=
ref
(
''
)
onShow
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -97,21 +97,21 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
userType
.
value
=
app
.
globalData
.
userType
deptType
.
value
=
app
.
globalData
.
deptType
getList
()
}
}
function
onClickItem
(
e
)
{
function
onClickItem
(
e
)
{
console
.
log
(
e
)
queryParams
.
value
.
auditStatus
=
e
.
currentIndex
getList
()
}
}
function
getList
()
{
function
getList
()
{
uni
.
showLoading
({
title
:
`加载中`
})
...
...
@@ -137,7 +137,7 @@
total
.
value
=
res
.
total
uni
.
hideLoading
()
})
}
}
function
handleDelete
(
row
){
uni
.
showModal
({
title
:
'提示'
,
...
...
@@ -154,7 +154,7 @@ function handleDelete(row){
}
})
}
function
audit
(
recordId
,
flag
)
{
function
audit
(
recordId
,
flag
)
{
if
(
flag
==
'0'
)
{
// 拒绝
// 弹出框填写理由
...
...
@@ -186,9 +186,9 @@ function handleDelete(row){
}
})
}
}
}
function
doApproval
(
recordId
,
flag
,
reason
)
{
function
doApproval
(
recordId
,
flag
,
reason
)
{
var
obj
=
{
flag
:
flag
,
reason
:
reason
||
''
,
...
...
@@ -203,11 +203,11 @@ function handleDelete(row){
})
getList
()
})
}
}
function
goDetail
(
item
)
{
function
goDetail
(
item
)
{
const
form
=
encodeURIComponent
(
JSON
.
stringify
(
item
))
console
.
log
(
userType
.
value
)
//
console.log(userType.value)
let
path
=
`/personalVip/auditDetail?form=
${
form
}
`
...
...
@@ -216,20 +216,20 @@ function handleDelete(row){
});
}
}
function
goMerge
()
{
function
goMerge
()
{
let
path
=
`/personalVip/sheng/merge`
uni
.
redirectTo
({
url
:
path
});
}
function
goMergeUp
()
{
}
function
goMergeUp
()
{
let
path
=
`/personalVip/sheng/mergeUp`
uni
.
redirectTo
({
url
:
path
});
}
}
</
script
>
<
style
>
...
...
personalVip/auditDetail.vue
View file @
4037b93
...
...
@@ -70,32 +70,32 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
queryParams
=
ref
({
pageNum
:
1
,
pageSize
:
6
// mergeFlag: 0,
// auditStatus: ''
})
const
wfId
=
ref
(
''
)
const
form
=
ref
([])
const
list
=
ref
([])
const
id
=
ref
(
''
)
const
feelList
=
ref
([])
const
total
=
ref
(
0
)
const
totalYear
=
ref
(
0
)
const
userType
=
ref
(
''
)
const
statistical
=
ref
({})
onLoad
((
option
)
=>
{
})
const
wfId
=
ref
(
''
)
const
form
=
ref
([])
const
list
=
ref
([])
const
id
=
ref
(
''
)
const
feelList
=
ref
([])
const
total
=
ref
(
0
)
const
totalYear
=
ref
(
0
)
const
userType
=
ref
(
''
)
const
statistical
=
ref
({})
onLoad
((
option
)
=>
{
console
.
log
(
option
)
if
(
app
.
globalData
.
isLogin
)
{
init
(
option
)
...
...
@@ -105,9 +105,9 @@
};
}
})
})
function
init
(
option
)
{
function
init
(
option
)
{
// wfId.value = option.wfId
// queryParams.value.auditStatus = option.auditStatus
if
(
'form'
in
option
)
{
...
...
@@ -117,13 +117,13 @@
console
.
log
(
form
.
value
)
userType
.
value
=
app
.
globalData
.
userType
getForm
()
}
}
function
getForm
()
{
function
getForm
()
{
uni
.
showLoading
({
title
:
'加载中'
})
console
.
log
(
userType
.
value
)
//
console.log(userType.value)
api
.
getDetailPersonList
(
queryParams
.
value
).
then
(
res
=>
{
uni
.
hideLoading
()
...
...
@@ -132,17 +132,17 @@
getFillList
(
list
.
value
[
0
]?.
rangeId
)
})
}
// 审核记录
function
getFillList
(
id
)
{
}
// 审核记录
function
getFillList
(
id
)
{
if
(
id
)
api
.
getHistoryByRelateId
(
id
).
then
(
res
=>
{
feelList
.
value
=
res
.
data
uni
.
hideLoading
()
})
}
}
function
audit
(
recordId
,
flag
)
{
function
audit
(
recordId
,
flag
)
{
if
(
flag
==
'0'
)
{
// 拒绝
// 弹出框填写理由
...
...
@@ -174,9 +174,9 @@
}
})
}
}
}
function
doApproval
(
recordId
,
flag
,
reason
)
{
function
doApproval
(
recordId
,
flag
,
reason
)
{
var
obj
=
{
flag
:
flag
,
reason
:
reason
||
''
,
...
...
@@ -191,24 +191,24 @@
})
uni
.
navigateBack
()
})
}
}
function
changeList
()
{
function
changeList
()
{
}
}
function
goMoreList
()
{
function
goMoreList
()
{
let
path
=
`/personalVip/payPersonList?recordId=
${
queryParams
.
value
.
recordId
}
`
uni
.
navigateTo
({
url
:
path
});
}
}
function
handleInfo
(
n
)
{
function
handleInfo
(
n
)
{
uni
.
navigateTo
({
url
:
`/personalVip/detail?perId=
${
n
.
perId
}
`
})
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
personalVip/editVip.vue
View file @
4037b93
...
...
@@ -50,25 +50,25 @@
</view>
<view
class=
"fixedBottom"
><button
class=
"btn-red"
@
click=
"goSubmit"
>
确 定
</button></view>
</view>
</view>
</
template
>
<
script
setup
>
import
{
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
*
as
api
from
'@/common/api.js'
const
perId
=
ref
()
const
regionsList
=
ref
([])
const
baseFormData
=
ref
({
}
from
'@dcloudio/uni-app'
;
import
*
as
api
from
'@/common/api.js'
const
perId
=
ref
()
const
regionsList
=
ref
([])
const
baseFormData
=
ref
({
sex
:
'0'
,
idcType
:
'0'
})
const
idcTypeList
=
ref
([{
})
const
idcTypeList
=
ref
([{
value
:
'0'
,
text
:
"身份证"
},
...
...
@@ -80,20 +80,20 @@
value
:
'3'
,
text
:
"外国护照"
}
])
const
sexs
=
ref
([{
])
const
sexs
=
ref
([{
text
:
'女'
,
value
:
'0'
},
{
},
{
text
:
'男'
,
value
:
'1'
}])
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
inputstyle
=
ref
({
}])
const
placeholderStyle
=
ref
(
'text-align: right;font-size:30rpx'
)
const
inputstyle
=
ref
({
borderColor
:
'#fff'
,
fontSize
:
'30rpx'
})
const
imageStylesTx
=
ref
({
})
const
imageStylesTx
=
ref
({
width
:
'210rpx'
,
height
:
'280rpx'
,
background
:
{
...
...
@@ -102,45 +102,50 @@
border
:
{
radius
:
'2px'
}
});
onLoad
((
option
)
=>
{
});
onLoad
((
option
)
=>
{
})
onMounted
(()
=>
{
})
onMounted
(()
=>
{
getRegionsList
()
})
})
function
getRegionsList
()
{
function
getRegionsList
()
{
api
.
regionsList
().
then
(
res
=>
{
regionsList
.
value
=
res
.
data
})
}
function
upPhoto
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
function
upPhoto
(
e
)
{
// api.uploadImg(e).then(data => {
// baseFormData.value.photo = data.data;
// });
}
}
function
delimgFont
(
n
)
{
function
delimgFont
(
n
)
{
baseFormData
.
value
.
card
=
''
;
}
}
function
delPhoto
(
n
)
{
function
delPhoto
(
n
)
{
baseFormData
.
value
.
photo
=
''
;
}
}
function
goSubmit
()
{
function
goSubmit
()
{
}
}
function
getUserInfo
()
{
function
getUserInfo
()
{
api
.
getInfo
(
perId
.
value
).
then
(
res
=>
{
forms
.
value
=
res
.
data
if
(
forms
.
areaAssName
)
forms
.
ancestorNameList
=
forms
.
value
.
ancestorNameList
.
join
(
','
).
replaceAll
(
','
,
'/'
)
})
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
personalVip/feeBill.vue
View file @
4037b93
...
...
@@ -67,26 +67,26 @@
</
template
>
<
script
setup
>
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
import
*
as
api
from
'@/common/api.js'
import
config
from
'@/config.js'
import
{
onMounted
,
ref
}
from
'vue'
import
{
}
from
'vue'
import
{
onShow
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
}
from
'@dcloudio/uni-app'
const
app
=
getApp
();
const
list
=
ref
([])
const
deptType
=
ref
(
''
)
const
UpPop
=
ref
(
null
)
const
form
=
ref
({
docId
:
''
,
payTime
:
''
,
url
:
''
,
remark
:
''
})
onShow
(()
=>
{
})
onShow
(()
=>
{
if
(
app
.
globalData
.
isLogin
)
{
init
()
}
else
{
...
...
@@ -94,26 +94,29 @@
init
()
};
}
})
})
function
init
()
{
function
init
()
{
deptType
.
value
=
app
.
globalData
.
deptType
getList
()
}
}
function
getList
()
{
function
getList
()
{
api
.
getFeeBillList
().
then
(
res
=>
{
list
.
value
=
res
.
rows
})
}
}
function
handleUpdate
(
item
)
{
function
handleUpdate
(
item
)
{
form
.
value
.
docId
=
item
.
docId
UpPop
.
value
.
open
()
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
}
let
selectFileValue
=
{}
function
selectFile
(
e
)
{
let
file
=
e
.
tempFiles
[
0
]
if
(
!
file
){
return
}
api
.
uploadFile
(
e
).
then
(
data
=>
{
selectFileValue
=
{
url
:
data
.
msg
,
...
...
@@ -123,14 +126,14 @@
form
.
value
.
url
=
JSON
.
stringify
([
selectFileValue
])
});
}
function
fileProgress
(
e
)
{
}
function
fileProgress
(
e
)
{
console
.
log
(
'progress:'
+
e
)
}
function
delSupplementFile
(
index
)
{
}
function
delSupplementFile
(
index
)
{
selectFileValue
=
{}
}
function
uploadSure
(){
}
function
uploadSure
(){
console
.
log
(
form
.
value
)
api
.
commitPaymentVoucher
(
form
.
value
).
then
(
res
=>
{
UpPop
.
value
.
close
()
...
...
@@ -141,15 +144,15 @@
})
getList
()
})
}
function
goDetail
(
item
)
{
}
function
goDetail
(
item
)
{
//详情
console
.
log
(
item
.
docId
)
let
path
=
`/personalVip/feeBillDetail?docId=
${
item
.
docId
}
`
uni
.
navigateTo
({
url
:
path
});
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
杨炀
@yangyang
mentioned in commit
f391b4a8
2023-12-25 01:54:26 UTC
mentioned in commit
f391b4a8
Toggle commit list
Write
Preview
Styling with
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