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

first deploy version commit

上级 067e13c4
......@@ -2,7 +2,7 @@
"private": true,
"scripts": {
"start": "roadhog dev",
"build": "set ANALYZE=true & roadhog build",
"build": "roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint"
},
......
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dva Demo</title>
<title>上海征地房屋补偿</title>
<link rel="stylesheet" href="index.css" />
</head>
<body>
......
......@@ -7,7 +7,6 @@ import {
WhiteSpace,
Flex,
} from 'antd-mobile';
import MyBodyCard from "../components/CardViewTwo";
class CardThreeContent extends React.Component{
render(){
const {todayQianYue, todayCheXiao, suoDingTongJi, shiWuSuoTongJi, jinDuTongJi, chengBenTongJi, shiYongFangYuanTongJi, jiDiFangYuanTongJi, xiaoQuTongJi}=this.props.search;
......
......@@ -6,7 +6,6 @@ import {
Card,
WhiteSpace,
Flex,
WingBlank,
} from 'antd-mobile';
class MyBodyCard extends React.Component{
pushRoute=(item)=>{
......
import { getData } from '../../utils/DataTemplate';
import {login} from "../../services/login";
import {setToken} from "../../utils/auth";
export default {
namespace: 'home',
......
import { getData } from '../../utils/DataTemplate';
import {login} from "../../services/login";
import {setToken} from "../../utils/auth";
export default {
namespace: 'search',
......
import request from "../utils/request";
import {fetch} from "../utils/polyfill";
......@@ -48,7 +47,7 @@ export default {
*checkNumber({ payload }, { call, put ,select}) { // eslint-disable-line
const { telnum } = yield select(state => state.login);
console.info(telnum);
const wuqiang=yield call(sendMsg,telnum);
yield call(sendMsg,telnum);
},
*checkYanZhengMa({ payload }, { call, put ,select}) { // eslint-disable-line
const { telnum,YanZhengMa } = yield select(state => state.login);
......@@ -56,7 +55,7 @@ export default {
const wuqiang=yield call(checkYanZhengMa,telnum,YanZhengMa);
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{
alert("登陆失败");
}
......
import request from "../utils/request";
import { routerRedux } from 'dva/router';
import {setToken} from "../utils/auth";
......
import React, { Component } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'dva';
import MyTopCard from '../../components/CardViewOne';
import {
Cell,
Select,
Page,
Badge,
CellBody,
Form,
} from 'react-weui';
//import styles
import 'weui';
......
......@@ -25,8 +25,8 @@ class IndexPage extends React.Component{
//手机号判断
telCheck=(event)=>{
const tel=event.target.value;
var reg=/^1[34578]\d{9}$/;
if(reg.test(tel)==false){
let reg=/^1[34578]\d{9}$/;
if(reg.test(tel)===false){
this.props.dispatch({ type: 'login/setShowToptips', payload: { ShowToptips:true,errormsg:"请输入正确的手机号" } });
window.setTimeout(e=> this.props.dispatch({ type: 'login/setShowToptips', payload: { ShowToptips:false } }), 2000)
}else{
......@@ -36,8 +36,8 @@ class IndexPage extends React.Component{
//验证码判断
telYanZhengMa=(event)=>{
const tel=event.target.value;
var reg=/\d{4}$/;
if(reg.test(tel)==false){
let reg=/\d{4}$/;
if(reg.test(tel)===false){
this.props.dispatch({ type: 'login/setShowToptips', payload: { ShowToptips:true,errormsg:"请输入正确的验证码" } });
window.setTimeout(e=> this.props.dispatch({ type: 'login/setShowToptips', payload: { ShowToptips:false } }), 2000)
}else{
......@@ -76,7 +76,7 @@ class IndexPage extends React.Component{
<Input type="tel" placeholder="验证码" onBlur={(event)=>this.telYanZhengMa(event)} style={{color:"#fff"}}/>
</CellBody>
<CellFooter>
<Button type="vcode" onClick={this.sendCheckNum}>发送</Button>
<Button type="vcode" onClick={this.sendCheckNum} style={{height:"25px",lineHeight:"25px"}}>发送</Button>
</CellFooter>
</FormCell>
</Form>
......
import React, { Component } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'dva';
class MiddleSelectPage extends React.Component{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论