提交 d55c29dc authored 作者: 吴强's avatar 吴强

first deploy version commit

上级 067e13c4
...@@ -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"
}, },
......
...@@ -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>
......
...@@ -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;
......
...@@ -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)=>{
......
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',
......
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',
......
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=wx3dcfb1de089346b3&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=wx8b334b8d6e040c05&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("登陆失败");
} }
......
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";
......
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';
......
...@@ -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>
......
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论