Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JTWXWebApp
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
ReactNative
JTWXWebApp
Commits
d55c29dc
提交
d55c29dc
authored
3月 21, 2018
作者:
吴强
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
first deploy version commit
上级
067e13c4
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
11 行增加
和
23 行删除
+11
-23
package.json
package.json
+1
-1
index.html
public/index.html
+1
-1
CardViewThree.js
src/components/CardViewThree.js
+0
-1
CardViewTwo.js
src/components/CardViewTwo.js
+0
-1
home.js
src/models/Home/home.js
+0
-2
search.js
src/models/Home/search.js
+0
-2
login.js
src/models/login.js
+2
-3
middleselect.js
src/models/middleselect.js
+0
-1
HomePage.js
src/routes/Home/HomePage.js
+1
-5
IndexPage.js
src/routes/IndexPage.js
+5
-5
MiddleSelectPage.js
src/routes/MiddleSelectPage.js
+1
-1
没有找到文件。
package.json
浏览文件 @
d55c29dc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"start"
:
"roadhog dev"
,
"start"
:
"roadhog dev"
,
"build"
:
"
set ANALYZE=true &
roadhog build"
,
"build"
:
"roadhog build"
,
"lint"
:
"eslint --ext .js src test"
,
"lint"
:
"eslint --ext .js src test"
,
"precommit"
:
"npm run lint"
"precommit"
:
"npm run lint"
},
},
...
...
public/index.html
浏览文件 @
d55c29dc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Dva Demo
</title>
<title>
上海征地房屋补偿
</title>
<link
rel=
"stylesheet"
href=
"index.css"
/>
<link
rel=
"stylesheet"
href=
"index.css"
/>
</head>
</head>
<body>
<body>
...
...
src/components/CardViewThree.js
浏览文件 @
d55c29dc
...
@@ -7,7 +7,6 @@ import {
...
@@ -7,7 +7,6 @@ import {
WhiteSpace
,
WhiteSpace
,
Flex
,
Flex
,
}
from
'antd-mobile'
;
}
from
'antd-mobile'
;
import
MyBodyCard
from
"../components/CardViewTwo"
;
class
CardThreeContent
extends
React
.
Component
{
class
CardThreeContent
extends
React
.
Component
{
render
(){
render
(){
const
{
todayQianYue
,
todayCheXiao
,
suoDingTongJi
,
shiWuSuoTongJi
,
jinDuTongJi
,
chengBenTongJi
,
shiYongFangYuanTongJi
,
jiDiFangYuanTongJi
,
xiaoQuTongJi
}
=
this
.
props
.
search
;
const
{
todayQianYue
,
todayCheXiao
,
suoDingTongJi
,
shiWuSuoTongJi
,
jinDuTongJi
,
chengBenTongJi
,
shiYongFangYuanTongJi
,
jiDiFangYuanTongJi
,
xiaoQuTongJi
}
=
this
.
props
.
search
;
...
...
src/components/CardViewTwo.js
浏览文件 @
d55c29dc
...
@@ -6,7 +6,6 @@ import {
...
@@ -6,7 +6,6 @@ import {
Card
,
Card
,
WhiteSpace
,
WhiteSpace
,
Flex
,
Flex
,
WingBlank
,
}
from
'antd-mobile'
;
}
from
'antd-mobile'
;
class
MyBodyCard
extends
React
.
Component
{
class
MyBodyCard
extends
React
.
Component
{
pushRoute
=
(
item
)
=>
{
pushRoute
=
(
item
)
=>
{
...
...
src/models/Home/home.js
浏览文件 @
d55c29dc
import
{
getData
}
from
'../../utils/DataTemplate'
;
import
{
getData
}
from
'../../utils/DataTemplate'
;
import
{
login
}
from
"../../services/login"
;
import
{
setToken
}
from
"../../utils/auth"
;
export
default
{
export
default
{
namespace
:
'home'
,
namespace
:
'home'
,
...
...
src/models/Home/search.js
浏览文件 @
d55c29dc
import
{
getData
}
from
'../../utils/DataTemplate'
;
import
{
getData
}
from
'../../utils/DataTemplate'
;
import
{
login
}
from
"../../services/login"
;
import
{
setToken
}
from
"../../utils/auth"
;
export
default
{
export
default
{
namespace
:
'search'
,
namespace
:
'search'
,
...
...
src/models/login.js
浏览文件 @
d55c29dc
import
request
from
"../utils/request"
;
import
{
fetch
}
from
"../utils/polyfill"
;
import
{
fetch
}
from
"../utils/polyfill"
;
...
@@ -48,7 +47,7 @@ export default {
...
@@ -48,7 +47,7 @@ export default {
*
checkNumber
({
payload
},
{
call
,
put
,
select
})
{
// eslint-disable-line
*
checkNumber
({
payload
},
{
call
,
put
,
select
})
{
// eslint-disable-line
const
{
telnum
}
=
yield
select
(
state
=>
state
.
login
);
const
{
telnum
}
=
yield
select
(
state
=>
state
.
login
);
console
.
info
(
telnum
);
console
.
info
(
telnum
);
const
wuqiang
=
yield
call
(
sendMsg
,
telnum
);
yield
call
(
sendMsg
,
telnum
);
},
},
*
checkYanZhengMa
({
payload
},
{
call
,
put
,
select
})
{
// eslint-disable-line
*
checkYanZhengMa
({
payload
},
{
call
,
put
,
select
})
{
// eslint-disable-line
const
{
telnum
,
YanZhengMa
}
=
yield
select
(
state
=>
state
.
login
);
const
{
telnum
,
YanZhengMa
}
=
yield
select
(
state
=>
state
.
login
);
...
@@ -56,7 +55,7 @@ export default {
...
@@ -56,7 +55,7 @@ export default {
const
wuqiang
=
yield
call
(
checkYanZhengMa
,
telnum
,
YanZhengMa
);
const
wuqiang
=
yield
call
(
checkYanZhengMa
,
telnum
,
YanZhengMa
);
if
(
wuqiang
===
"sucess"
)
if
(
wuqiang
===
"sucess"
)
{
{
document
.
location
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx
3dcfb1de089346b3
&redirect_uri=http%3a%2f%2fwww.shzdfwbc.net.cn%2fbm-wx%2f&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"
;
document
.
location
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx
8b334b8d6e040c05
&redirect_uri=http%3a%2f%2fwww.shzdfwbc.net.cn%2fbm-wx%2f&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"
;
}
else
{
}
else
{
alert
(
"登陆失败"
);
alert
(
"登陆失败"
);
}
}
...
...
src/models/middleselect.js
浏览文件 @
d55c29dc
import
request
from
"../utils/request"
;
import
{
routerRedux
}
from
'dva/router'
;
import
{
routerRedux
}
from
'dva/router'
;
import
{
setToken
}
from
"../utils/auth"
;
import
{
setToken
}
from
"../utils/auth"
;
...
...
src/routes/Home/HomePage.js
浏览文件 @
d55c29dc
import
React
,
{
Component
}
from
'react'
;
import
React
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
MyTopCard
from
'../../components/CardViewOne'
;
import
MyTopCard
from
'../../components/CardViewOne'
;
import
{
import
{
Cell
,
Select
,
Select
,
Page
,
Page
,
Badge
,
CellBody
,
Form
,
}
from
'react-weui'
;
}
from
'react-weui'
;
//import styles
//import styles
import
'weui'
;
import
'weui'
;
...
...
src/routes/IndexPage.js
浏览文件 @
d55c29dc
...
@@ -25,8 +25,8 @@ class IndexPage extends React.Component{
...
@@ -25,8 +25,8 @@ class IndexPage extends React.Component{
//手机号判断
//手机号判断
telCheck
=
(
event
)
=>
{
telCheck
=
(
event
)
=>
{
const
tel
=
event
.
target
.
value
;
const
tel
=
event
.
target
.
value
;
var
reg
=
/^1
[
34578
]\d{9}
$/
;
let
reg
=
/^1
[
34578
]\d{9}
$/
;
if
(
reg
.
test
(
tel
)
==
false
){
if
(
reg
.
test
(
tel
)
==
=
false
){
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
true
,
errormsg
:
"请输入正确的手机号"
}
});
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
true
,
errormsg
:
"请输入正确的手机号"
}
});
window
.
setTimeout
(
e
=>
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
false
}
}),
2000
)
window
.
setTimeout
(
e
=>
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
false
}
}),
2000
)
}
else
{
}
else
{
...
@@ -36,8 +36,8 @@ class IndexPage extends React.Component{
...
@@ -36,8 +36,8 @@ class IndexPage extends React.Component{
//验证码判断
//验证码判断
telYanZhengMa
=
(
event
)
=>
{
telYanZhengMa
=
(
event
)
=>
{
const
tel
=
event
.
target
.
value
;
const
tel
=
event
.
target
.
value
;
var
reg
=
/
\d{4}
$/
;
let
reg
=
/
\d{4}
$/
;
if
(
reg
.
test
(
tel
)
==
false
){
if
(
reg
.
test
(
tel
)
==
=
false
){
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
true
,
errormsg
:
"请输入正确的验证码"
}
});
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
true
,
errormsg
:
"请输入正确的验证码"
}
});
window
.
setTimeout
(
e
=>
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
false
}
}),
2000
)
window
.
setTimeout
(
e
=>
this
.
props
.
dispatch
({
type
:
'login/setShowToptips'
,
payload
:
{
ShowToptips
:
false
}
}),
2000
)
}
else
{
}
else
{
...
@@ -76,7 +76,7 @@ class IndexPage extends React.Component{
...
@@ -76,7 +76,7 @@ class IndexPage extends React.Component{
<
Input
type
=
"tel"
placeholder
=
"验证码"
onBlur
=
{(
event
)
=>
this
.
telYanZhengMa
(
event
)}
style
=
{{
color
:
"#fff"
}}
/
>
<
Input
type
=
"tel"
placeholder
=
"验证码"
onBlur
=
{(
event
)
=>
this
.
telYanZhengMa
(
event
)}
style
=
{{
color
:
"#fff"
}}
/
>
<
/CellBody
>
<
/CellBody
>
<
CellFooter
>
<
CellFooter
>
<
Button
type
=
"vcode"
onClick
=
{
this
.
sendCheckNum
}
>
发送
<
/Button
>
<
Button
type
=
"vcode"
onClick
=
{
this
.
sendCheckNum
}
style
=
{{
height
:
"25px"
,
lineHeight
:
"25px"
}}
>
发送
<
/Button
>
<
/CellFooter
>
<
/CellFooter
>
<
/FormCell
>
<
/FormCell
>
<
/Form
>
<
/Form
>
...
...
src/routes/MiddleSelectPage.js
浏览文件 @
d55c29dc
import
React
,
{
Component
}
from
'react'
;
import
React
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
class
MiddleSelectPage
extends
React
.
Component
{
class
MiddleSelectPage
extends
React
.
Component
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论