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
d1a46e30
authored
2024-02-23 15:17:30 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2.1.0 正式版本
1 parent
66b52cf9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
10 deletions
common/api.js
config.js
personalVip/addVip.vue
personalVip/monthFee.vue
common/api.js
View file @
d1a46e3
...
...
@@ -257,6 +257,26 @@ export function uploadImgCorp(tempFilePath) {
uni
.
hideLoading
();
});
}
//only for addVip photoUp
export
function
uploadImgCorpPhoto
(
tempFilePath
)
{
const
imgUrl
=
tempFilePath
uni
.
showLoading
({
title
:
'加载中'
});
return
uni
.
uploadFile
({
url
:
config
.
baseUrl_api
+
'/upload/uploadImgToLocalServerCaiJian'
,
header
:
{
'Authorization'
:
uni
.
getStorageSync
(
'token'
),
},
filePath
:
imgUrl
,
name
:
'image'
}).
then
(
res
=>
{
let
data
=
JSON
.
parse
(
res
.
data
);
return
data
}).
finally
(()
=>
{
uni
.
hideLoading
();
});
}
export
function
getInfo
(
perId
)
{
return
request
({
...
...
@@ -1182,7 +1202,8 @@ export function mentDocList(data) {
}
export
function
wdBack
(
yjIds
)
{
return
request
({
url
:
`/person/paymentDocYj/wd/
${
yjIds
}
`
url
:
`/person/paymentDocYj/wd/
${
yjIds
}
`
,
method
:
'get'
})
}
// 个人会员月结缴费单
...
...
config.js
View file @
d1a46e3
...
...
@@ -5,11 +5,11 @@
// staging 会员系统
// const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
// const baseUrl_api = "http://36.153.235.222:7899/stage-api";
// const baseUrl_api = 'http://192.168.1.13
0
:8787'
// const baseUrl_api = 'http://192.168.1.13
2
: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://system.taekwondo.org.cn/stage-api'
const
baseUrl_api
=
'https://system.taekwondo.org.cn/stage-api'
export
default
{
baseUrl_api
}
...
...
personalVip/addVip.vue
View file @
d1a46e3
...
...
@@ -63,7 +63,8 @@
<uni-forms-item
label=
"头像"
required
>
<uni-file-picker
v-model=
"photoArr"
@
delete=
"delPhoto"
return-type=
"object"
limit=
"1"
@
select=
"upPhoto"
:del-ico=
"false"
:image-styles=
"imageStylesTx"
></uni-file-picker>
@
select=
"upPhoto"
:del-ico=
"false"
:image-styles=
"imageStylesTx"
></uni-file-picker>
<image
mode=
"aspectFill"
v-if=
"baseFormData.photo2"
style=
"height:200rpx;width:200rpx;"
:src=
"config.baseUrl_api + baseFormData.photo2"
/>
</uni-forms-item>
</view>
...
...
@@ -294,8 +295,10 @@
uni
.
showLoading
({
title
:
'加载中'
});
api
.
uploadImgCorp
(
resp
.
tempFilePath
).
then
(
data
=>
{
baseFormData
.
value
.
photo
=
data
.
msg
;
api
.
uploadImgCorpPhoto
(
resp
.
tempFilePath
).
then
(
data
=>
{
console
.
log
(
data
)
baseFormData
.
value
.
photo
=
data
.
data
.
fang
;
baseFormData
.
value
.
photo2
=
data
.
data
.
yuan
;
photoArr
.
value
=
{
url
:
config
.
baseUrl_api
+
baseFormData
.
value
.
photo
,
name
:
'头像'
,
...
...
@@ -326,7 +329,8 @@
function
delPhoto
(
n
)
{
photoArr
.
value
=
{};
baseFormData
.
value
.
photo
=
''
;
baseFormData
.
value
.
photo
=
''
;
baseFormData
.
value
.
photo2
=
''
;
}
...
...
personalVip/monthFee.vue
View file @
d1a46e3
...
...
@@ -43,9 +43,9 @@
</view>
<view
class=
"func"
>
<button
@
click=
"handleUpdate(item)"
class=
"miniBtn"
v-if=
"
item.settleFlag != 0
"
>
确认并上传
@
click=
"handleUpdate(item)"
class=
"miniBtn"
v-if=
"
!(item.settleFlag == 0||item.payFlag == 2)
"
>
确认并上传
</button>
<button
@
click=
"handleDownload(item)"
class=
"miniBtn"
>
下载缴费通知单
</button>
<button
v-if=
"item.sendFlag != 0"
@
click=
"handleDownload(item)"
class=
"miniBtn"
>
下载缴费通知单
</button>
<button
class=
"miniBtn"
v-if=
"!(item.settleFlag==0||item.payFlag==0||item.payFlag==2)"
@
click=
"handleBack(item)"
>
撤回
</button>
</view>
</view>
...
...
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