Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-app(废弃)
Overview
Overview
Details
Activity
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
new-zhengjiang
zj-app(废弃)
Commits
d177d96d
Commit
d177d96d
authored
Apr 12, 2023
by
songwenlu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx
parent
ba17180b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
36 deletions
+87
-36
axios.js
src/utils/axios.js
+9
-3
declare.vue
src/views/deedtax/declare.vue
+78
-33
No files found.
src/utils/axios.js
View file @
d177d96d
...
@@ -44,7 +44,7 @@ request2.interceptors.request.use(
...
@@ -44,7 +44,7 @@ request2.interceptors.request.use(
(
config
)
=>
{
(
config
)
=>
{
config
.
headers
=
{
config
.
headers
=
{
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Authorization"
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
)
Authorization
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
),
// "Authorization": "Bearer lkT98D62spmAUVpkZv5TwTlZKSYncn1Tww7NNPe7jHtxV0Yjj7zyjIxBYizEAxMZ" //测试token
// "Authorization": "Bearer lkT98D62spmAUVpkZv5TwTlZKSYncn1Tww7NNPe7jHtxV0Yjj7zyjIxBYizEAxMZ" //测试token
};
};
// alert(JSON.stringify(config.headers))
// alert(JSON.stringify(config.headers))
...
@@ -64,7 +64,10 @@ request2.interceptors.request.use(
...
@@ -64,7 +64,10 @@ request2.interceptors.request.use(
request2
.
interceptors
.
response
.
use
(
request2
.
interceptors
.
response
.
use
(
(
response
)
=>
{
(
response
)
=>
{
const
res
=
response
.
data
;
const
res
=
response
.
data
;
console
.
log
(
res
,
"tijaio--------"
);
if
(
response
.
config
.
url
.
indexOf
(
config2
.
basePurchase
)
!==
-
1
)
{
if
(
response
.
config
.
url
.
indexOf
(
config2
.
basePurchase
)
!==
-
1
)
{
console
.
log
(
res
,
"1234"
);
if
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Status
===
"True"
)
{
if
(
res
.
EpointDataBody
.
DATA
.
ReturnInfo
.
Status
===
"True"
)
{
return
res
;
return
res
;
}
else
{
}
else
{
...
@@ -76,16 +79,19 @@ request2.interceptors.response.use(
...
@@ -76,16 +79,19 @@ request2.interceptors.response.use(
);
);
}
}
}
else
if
(
response
.
config
.
url
.
indexOf
(
config2
.
baseServiceUrl
)
!==
-
1
)
{
}
else
if
(
response
.
config
.
url
.
indexOf
(
config2
.
baseServiceUrl
)
!==
-
1
)
{
console
.
log
(
res
.
status
.
text
,
"67777"
);
if
(
res
.
status
.
code
===
200
)
{
if
(
res
.
status
.
code
===
200
)
{
return
res
;
return
res
;
}
else
{
}
else
{
Toast
(
res
.
status
.
text
||
"网络错误"
);
Toast
(
res
.
status
.
text
||
"网络错误"
);
return
Promise
.
reject
(
new
Error
(
res
.
status
.
text
||
"网络错误"
));
return
Promise
.
reject
(
new
Error
(
res
.
status
.
text
||
"网络错误"
));
}
}
}
else
{
}
else
{
// alert(JSON.stringify(res))
// alert(JSON.stringify(res))
console
.
log
(
res
,
"shihsihsi"
);
if
(
parseInt
(
res
.
code
)
===
200
)
{
if
(
parseInt
(
res
.
code
)
===
200
||
parseInt
(
res
.
code
)
===
1004011003
)
{
return
res
;
return
res
;
}
else
{
}
else
{
Toast
(
res
.
message
||
res
.
msg
||
"网络错误"
);
Toast
(
res
.
message
||
res
.
msg
||
"网络错误"
);
...
@@ -110,7 +116,7 @@ request3.interceptors.request.use(
...
@@ -110,7 +116,7 @@ request3.interceptors.request.use(
(
config
)
=>
{
(
config
)
=>
{
config
.
headers
=
{
config
.
headers
=
{
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Content-Type"
:
"application/json;multipart/form-data;"
,
"Authorization"
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
)
Authorization
:
"Bearer "
+
sessionStorage
.
getItem
(
"token"
),
// "Authorization": "Bearer lkT98D62spmAUVpkZv5TwTlZKSYncn1Tww7NNPe7jHtxV0Yjj7zyjIxBYizEAxMZ" //测试token
// "Authorization": "Bearer lkT98D62spmAUVpkZv5TwTlZKSYncn1Tww7NNPe7jHtxV0Yjj7zyjIxBYizEAxMZ" //测试token
};
};
// if (config.method === 'post') {
// if (config.method === 'post') {
...
...
src/views/deedtax/declare.vue
View file @
d177d96d
<
template
>
<
template
>
<div
class=
"declare-box"
>
<div
class=
"declare-box"
>
<div
class=
"step"
v-if=
"!this.view"
>
<div
<van-steps
:active=
"active"
active-icon=
"success"
active-color=
"#EB4E3F"
>
class=
"step"
v-if=
"!this.view"
>
<van-steps
:active=
"active"
active-icon=
"success"
active-color=
"#EB4E3F"
>
<van-step>
申报
</van-step>
<van-step>
申报
</van-step>
<van-step>
项目初审
</van-step>
<van-step>
项目初审
</van-step>
<van-step>
窗口复审
</van-step>
<van-step>
窗口复审
</van-step>
...
@@ -118,12 +125,12 @@
...
@@ -118,12 +125,12 @@
<div
class=
"card-box"
>
<div
class=
"card-box"
>
<div
class=
"top-box"
>
<div
class=
"top-box"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
<div
class=
"name"
@
click=
"showDialog"
>
<div
银行卡
class=
"name"
<span
@
click=
"showDialog"
style=
"font-size: 12px; font-weight: 400; color: #EB4E3F;margin-left: 15px;"
>
填写说明
</span
>
>
银行卡
<span
style=
"font-size: 12px; font-weight: 400; color: #EB4E3F;margin-left: 15px;"
>
填写说明
</span>
</div>
</div>
</div>
</div>
<div
class=
"bottom-box"
>
<div
class=
"bottom-box"
>
...
@@ -375,7 +382,11 @@
...
@@ -375,7 +382,11 @@
</div>
</div>
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
label=
"房屋属性"
required
:disabled=
"this.view"
>
<van-field
label=
"房屋属性"
required
:disabled=
"this.view"
>
<
template
#
input
>
<
template
#
input
>
<van-radio-group
<van-radio-group
v-model=
"form.houseType"
v-model=
"form.houseType"
...
@@ -500,12 +511,27 @@
...
@@ -500,12 +511,27 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"submit-box"
v-if=
"!this.view"
>
<div
<van-button
class=
"submit1-box"
@
click=
"go(1)"
>
提交
</van-button>
class=
"submit-box"
v-if=
"!this.view"
>
<van-button
class=
"submit1-box"
@
click=
"go(1)"
>
提交
</van-button>
</div>
</div>
<div
class=
"submit-box"
v-else
>
<div
<van-button
class=
"submit2-box"
@
click=
"go(2)"
>
返回上一级
</van-button>
class=
"submit-box"
<van-button
class=
"submit2-box"
@
click=
"submit"
>
确认提交
</van-button>
v-else
>
<van-button
class=
"submit2-box"
@
click=
"go(2)"
>
返回上一级
</van-button>
<van-button
class=
"submit2-box"
@
click=
"submit"
>
确认提交
</van-button>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -1087,10 +1113,15 @@ export default {
...
@@ -1087,10 +1113,15 @@ export default {
name
:
"DeedtaxDeclared"
,
name
:
"DeedtaxDeclared"
,
query
:
{
code
:
this
.
code
},
query
:
{
code
:
this
.
code
},
});
});
}
if
(
res
.
code
==
1004011003
){
}
this
.
$dialog
.
alert
({
if
(
res
.
code
==
1004011003
)
{
this
.
$toast
.
clear
();
this
.
$dialog
.
alert
({
message
:
res
.
msg
,
message
:
res
.
msg
,
});
})
}
}
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
@@ -1100,6 +1131,7 @@ export default {
...
@@ -1100,6 +1131,7 @@ export default {
}
else
{
}
else
{
addDeedTax
(
params
)
addDeedTax
(
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$toast
.
clear
();
this
.
$toast
.
clear
();
// this.$toast('提交成功');
// this.$toast('提交成功');
...
@@ -1108,10 +1140,12 @@ export default {
...
@@ -1108,10 +1140,12 @@ export default {
query
:
{
code
:
res
.
data
},
query
:
{
code
:
res
.
data
},
});
});
}
}
if
(
res
.
code
==
1004011003
){
if
(
res
.
code
==
1004011003
)
{
this
.
$dialog
.
alert
({
this
.
$toast
.
clear
();
this
.
$dialog
.
alert
({
message
:
res
.
msg
,
message
:
res
.
msg
,
});
})
}
}
})
})
...
@@ -1162,34 +1196,39 @@ export default {
...
@@ -1162,34 +1196,39 @@ export default {
</
script
>
</
script
>
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
.box_megic
{
.box_megic
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.megic
{
.megic
{
width
:
100px
;
width
:
100px
;
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
border-bottom
:
1px
solid
#888
;
border-bottom
:
1px
solid
#888
;
}
}
.megic2
{
.megic2
{
width
:
150px
;
width
:
150px
;
}
}
.megic3
{
.megic3
{
width
:
300px
;
width
:
300px
;
}
}
}
}
.declare-box
{
.declare-box
{
height
:
100vh
;
height
:
100vh
;
overflow
:
auto
;
overflow
:
auto
;
.content-box1{
.content-box1
{
padding
:
20px
;
padding
:
20px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
overflow-y
:
auto
;
overflow-y
:
auto
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
.card-box{
.card-box
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
border-radius
:
8px
;
border-radius
:
8px
;
...
@@ -1197,18 +1236,20 @@ export default {
...
@@ -1197,18 +1236,20 @@ export default {
padding
:
20px
;
padding
:
20px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.top-box
{
.top-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
15px
0
;
margin
:
15px
0
;
.icon{
.icon
{
width
:
4px
;
width
:
4px
;
height
:
24px
;
height
:
24px
;
background
:
#EB4E3F
;
background
:
#EB4E3F
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
border-radius
:
2px
;
border-radius
:
2px
;
}
}
.name
{
.name
{
font-size
:
28px
;
font-size
:
28px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -1217,29 +1258,33 @@ export default {
...
@@ -1217,29 +1258,33 @@ export default {
margin-left
:
15px
;
margin-left
:
15px
;
}
}
}
}
.bottom-box
{
.bottom-box
{
//
display
:
flex
;
//
display
:
flex
;
//
flex-direction
:
column
;
//
flex-direction
:
column
;
//
height
:
500px
;
//
height
:
500px
;
}
}
}
}
}
}
.submit-box
{
width
100%;
.submit-box
{
width
:
100%
;
padding
:
20px
40px
;
padding
:
20px
40px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
.submit1-box{
width
80%;
.submit1-box
{
width
:
80%
;
height
:
88px
;
height
:
88px
;
background
:
linear-gradient
(
311deg
,
#EB4E3F
0%
,
#FF8138
100%
);
background
:
linear-gradient
(
311deg
,
#EB4E3F
0%
,
#FF8138
100%
);
box-shadow
:
0px
15px
18px
-2px
rgba
(
235
,
78
,
63
,
0.2
);
box-shadow
:
0px
15px
18px
-2px
rgba
(
235
,
78
,
63
,
0.2
);
border-radius
:
49px
;
border-radius
:
49px
;
color
:
#fff
;
color
:
#fff
;
}
}
.submit2-box
{
width
40%;
.submit2-box
{
width
:
40%
;
height
:
88px
;
height
:
88px
;
background
:
linear-gradient
(
311deg
,
#EB4E3F
0%
,
#FF8138
100%
);
background
:
linear-gradient
(
311deg
,
#EB4E3F
0%
,
#FF8138
100%
);
box-shadow
:
0px
15px
18px
-2px
rgba
(
235
,
78
,
63
,
0.2
);
box-shadow
:
0px
15px
18px
-2px
rgba
(
235
,
78
,
63
,
0.2
);
...
...
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