Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfp-program
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
sfp-program
Commits
ae4b6cb4
Commit
ae4b6cb4
authored
Sep 23, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉
parent
e5c6b004
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
12 deletions
+38
-12
api/api.ts
+4
-1
index.html
+2
-2
pages/housePurchase/housePurchase.vue
+32
-9
No files found.
api/api.ts
View file @
ae4b6cb4
...
@@ -13,6 +13,9 @@ export default {
...
@@ -13,6 +13,9 @@ export default {
//增额寿和年金(单利复利)计算结果查询接口
//增额寿和年金(单利复利)计算结果查询接口
queryIrrAndSimple
(
params
){
queryIrrAndSimple
(
params
){
return
request
(
`
${
baseURL
}
/api/sfp/calcuteUtil/queryIrrAndSimple`
,
"POST"
,
params
)
return
request
(
`
${
baseURL
}
/api/sfp/calcuteUtil/queryIrrAndSimple`
,
"POST"
,
params
)
},
//获取城市
provCityQry
(
params
){
return
request
(
`
${
baseURL
}
/api/metadata/provCityQry`
,
"POST"
,
params
)
}
}
}
}
index.html
View file @
ae4b6cb4
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<div
id=
"app"
>
<!--app-html-->
</div>
<div
id=
"app"
>
<!--app-html-->
</div>
<script
type=
"module"
src=
"/main.js"
></script>
<script
type=
"module"
src=
"/main.js"
></script>
<!-- 移动端调试 -->
<!-- 移动端调试 -->
<script
type=
"text/javascript"
src=
"//cdn.jsdelivr.net/npm/eruda"
></script>
<!--
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>
eruda
.
init
();
</script>
<script>eruda.init();</script>
-->
</body>
</body>
</html>
</html>
pages/housePurchase/housePurchase.vue
View file @
ae4b6cb4
...
@@ -24,12 +24,15 @@
...
@@ -24,12 +24,15 @@
</view>
</view>
<view
class=
"inputItem"
>
<view
class=
"inputItem"
>
<text>
预购城市:
</text>
<text>
预购城市:
</text>
<view
class=
"inputContent"
>
<
!--
<
view
class=
"inputContent"
>
<select
name=
""
id=
""
>
<select
name=
""
id=
""
>
<option
value=
""
>
上海
</option>
<option
value=
""
>
上海
</option>
<option
value=
""
>
深圳
</option>
<option
value=
""
>
深圳
</option>
</select>
</select>
</view>
</view>
-->
<uni-data-picker
placeholder=
"请选择地址"
popup-title=
"请选择城市"
collection=
"opendb-city-china"
field=
"code as value, name as text"
orderby=
"value asc"
:step-searh=
"true"
self-field=
"code"
parent-field=
"parent_code"
@
change=
"onchange"
@
nodeclick=
"onnodeclick"
>
</uni-data-picker>
</view>
</view>
<view
class=
"inputItem"
>
<view
class=
"inputItem"
>
<text>
预购面积:
</text>
<text>
预购面积:
</text>
...
@@ -270,6 +273,7 @@
...
@@ -270,6 +273,7 @@
import
head
from
'../header/header.vue'
;
import
head
from
'../header/header.vue'
;
import
foot
from
'../footer/footer.vue'
;
import
foot
from
'../footer/footer.vue'
;
import
*
as
echarts
from
'echarts'
;
import
*
as
echarts
from
'echarts'
;
import
api
from
'../../api/api'
;
export
default
{
export
default
{
data
(){
data
(){
...
@@ -277,7 +281,15 @@
...
@@ -277,7 +281,15 @@
isDisplace
:
false
,
isDisplace
:
false
,
myChart
:
null
,
myChart
:
null
,
nyear
:
null
,
nyear
:
null
,
city
:
null
city
:
''
,
provinceList
:
[{
provinceName
:
'选项1'
,
provinceId
:
'1'
},
{
provinceName
:
'选项2'
,
provinceId
:
'2'
},],
}
}
},
},
components
:{
components
:{
...
@@ -287,15 +299,18 @@
...
@@ -287,15 +299,18 @@
foot
foot
},
},
onLoad
(){
onLoad
(){
this
.
echertWidth
=
300
;
this
.
provCityQry
();
this
.
sHeight
=
300
;
},
},
methods
:{
methods
:{
onchange
(
e
)
{
const
value
=
e
.
detail
.
value
},
onnodeclick
(
node
)
{},
drawLine
()
{
drawLine
()
{
// 基于准备好的dom,初始化echarts实例
// 基于准备好的dom,初始化echarts实例
this
.
myChart
=
echarts
.
init
(
document
.
getElementById
(
'myEcharts'
));
this
.
myChart
=
echarts
.
init
(
document
.
getElementById
(
'myEcharts'
));
// 绘制图表
// 绘制图表
this
.
myChart
.
setOption
({
this
.
myChart
.
setOption
({
xAxis
:
{
xAxis
:
{
data
:
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
]
data
:
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
]
},
},
...
@@ -314,6 +329,14 @@
...
@@ -314,6 +329,14 @@
]
]
});
});
},
},
provCityQry
(){
api
.
provCityQry
({
insurerId
:
888
}).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
// this.provinceList = res['data']['provinces'];
}
})
}
},
},
mounted
(){
mounted
(){
this
.
drawLine
();
this
.
drawLine
();
...
...
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