@ -0,0 +1,191 @@
|
||||
package au.com.royalpay.payment.manage.application.beans;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by yuan on 2018/5/23.
|
||||
*/
|
||||
public class ClientPreApplyBean {
|
||||
private String username;
|
||||
private String password;
|
||||
private String contact_person;
|
||||
private String contact_phone;
|
||||
private String contact_email;
|
||||
private String company_name;
|
||||
private String company_phone;
|
||||
private String abn;
|
||||
private String short_name;
|
||||
private String address;
|
||||
private String suburb;
|
||||
private String state;
|
||||
private String postcode;
|
||||
private String industry;
|
||||
|
||||
private String bank_no;
|
||||
private String bank_name;
|
||||
private String bsb_no;
|
||||
|
||||
private String clean_days;
|
||||
|
||||
private boolean agree;
|
||||
|
||||
public JSONObject insertObject() {
|
||||
JSONObject res = (JSONObject) JSON.toJSON(this);
|
||||
return res;
|
||||
}
|
||||
public String getCompany_name() {
|
||||
return company_name;
|
||||
}
|
||||
|
||||
public void setCompany_name(String company_name) {
|
||||
this.company_name = company_name;
|
||||
}
|
||||
|
||||
public String getAbn() {
|
||||
return abn;
|
||||
}
|
||||
|
||||
public void setAbn(String abn) {
|
||||
this.abn = abn;
|
||||
}
|
||||
|
||||
public String getShort_name() {
|
||||
return short_name;
|
||||
}
|
||||
|
||||
public void setShort_name(String short_name) {
|
||||
this.short_name = short_name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getSuburb() {
|
||||
return suburb;
|
||||
}
|
||||
|
||||
public void setSuburb(String suburb) {
|
||||
this.suburb = suburb;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getPostcode() {
|
||||
return postcode;
|
||||
}
|
||||
|
||||
public void setPostcode(String postcode) {
|
||||
this.postcode = postcode;
|
||||
}
|
||||
|
||||
public String getIndustry() {
|
||||
return industry;
|
||||
}
|
||||
|
||||
public void setIndustry(String industry) {
|
||||
this.industry = industry;
|
||||
}
|
||||
|
||||
public String getBank_no() {
|
||||
return bank_no;
|
||||
}
|
||||
|
||||
public void setBank_no(String bank_no) {
|
||||
this.bank_no = bank_no;
|
||||
}
|
||||
|
||||
public String getBank_name() {
|
||||
return bank_name;
|
||||
}
|
||||
|
||||
public void setBank_name(String bank_name) {
|
||||
this.bank_name = bank_name;
|
||||
}
|
||||
|
||||
public String getBsb_no() {
|
||||
return bsb_no;
|
||||
}
|
||||
|
||||
public void setBsb_no(String bsb_no) {
|
||||
this.bsb_no = bsb_no;
|
||||
}
|
||||
|
||||
public String getClean_days() {
|
||||
return clean_days;
|
||||
}
|
||||
|
||||
public void setClean_days(String clean_days) {
|
||||
this.clean_days = clean_days;
|
||||
}
|
||||
|
||||
public boolean isAgree() {
|
||||
return agree;
|
||||
}
|
||||
|
||||
public void setAgree(boolean agree) {
|
||||
this.agree = agree;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getContact_person() {
|
||||
return contact_person;
|
||||
}
|
||||
|
||||
public void setContact_person(String contact_person) {
|
||||
this.contact_person = contact_person;
|
||||
}
|
||||
|
||||
public String getContact_phone() {
|
||||
return contact_phone;
|
||||
}
|
||||
|
||||
public void setContact_phone(String contact_phone) {
|
||||
this.contact_phone = contact_phone;
|
||||
}
|
||||
|
||||
public String getContact_email() {
|
||||
return contact_email;
|
||||
}
|
||||
|
||||
public void setContact_email(String contact_email) {
|
||||
this.contact_email = contact_email;
|
||||
}
|
||||
|
||||
public String getCompany_phone() {
|
||||
return company_phone;
|
||||
}
|
||||
|
||||
public void setCompany_phone(String company_phone) {
|
||||
this.company_phone = company_phone;
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package au.com.royalpay.payment.manage.mappers.preapply;
|
||||
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@AutoMapper(tablename = "sys_client_pre_apply", pkName = "client_pre_apply_id")
|
||||
public interface SysClientPreMapperMapper {
|
||||
@AutoSql(type = SqlType.UPDATE)
|
||||
void update(JSONObject data);
|
||||
|
||||
@AutoSql(type = SqlType.INSERT)
|
||||
void save(JSONObject data);
|
||||
|
||||
@AutoSql(type = SqlType.SELECT)
|
||||
JSONObject findByUserName(@Param("username") String username);
|
||||
}
|
@ -0,0 +1,430 @@
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_base, body .progress_inner #step-4:checked + input + div + div + div + div > .box_base, body .progress_inner #step-2:checked + input + input + input + div + div + div + div > .box_base, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_base, body .progress_inner #step-1:checked + input + input + input + input + div + div + div + div > .box_base {
|
||||
top: 50%;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_item, body .progress_inner #step-4:checked + input + div + div + div + div > .box_item, body .progress_inner #step-2:checked + input + input + input + div + div + div + div > .box_item, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_item, body .progress_inner #step-1:checked + input + input + input + input + div + div + div + div > .box_item {
|
||||
top: -30px;
|
||||
left: 0px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_lid, body .progress_inner #step-4:checked + input + div + div + div + div > .box_lid, body .progress_inner #step-2:checked + input + input + input + div + div + div + div > .box_lid {
|
||||
top: -20px;
|
||||
left: 0px;
|
||||
opacity: 0;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_item, body .progress_inner #step-4:checked + input + div + div + div + div > .box_item, body .progress_inner #step-2:checked + input + input + input + div + div + div + div > .box_item {
|
||||
top: -10px;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_item, body .progress_inner #step-4:checked + input + div + div + div + div > .box_item, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_item {
|
||||
top: 10px;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_lid, body .progress_inner #step-4:checked + input + div + div + div + div > .box_lid, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_lid {
|
||||
top: -1px;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_ribbon, body .progress_inner #step-4:checked + input + div + div + div + div > .box_ribbon, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_ribbon {
|
||||
top: 70%;
|
||||
left: 0px;
|
||||
opacity: 0;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_bow, body .progress_inner #step-4:checked + input + div + div + div + div > .box_bow, body .progress_inner #step-3:checked + input + input + div + div + div + div > .box_bow {
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_ribbon, body .progress_inner #step-4:checked + input + div + div + div + div > .box_ribbon {
|
||||
top: 50%;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_bow, body .progress_inner #step-4:checked + input + div + div + div + div > .box_bow {
|
||||
top: -10px;
|
||||
left: 0px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_tag {
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
opacity: 1;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div > .box_string {
|
||||
top: 10px;
|
||||
left: 20px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body .progress_inner__step:before, body .progress_inner, body .progress_inner__status .box_base, body .progress_inner__status .box_item, body .progress_inner__status .box_ribbon, body .progress_inner__status .box_bow, body .progress_inner__status .box_bow__left, body .progress_inner__status .box_bow__right, body .progress_inner__status .box_tag, body .progress_inner__status .box_string {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top:42%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
body .progress_inner__bar, body .progress_inner__bar--set {
|
||||
height: 6px;
|
||||
left: 10%;
|
||||
background: -webkit-repeating-linear-gradient(45deg, #1ea4ec, #1ea4ec 4px, #1f8bc5 4px, #1f8bc5 10px);
|
||||
background: repeating-linear-gradient(45deg, #1ea4ec, #1ea4ec 4px, #1f8bc5 4px, #1f8bc5 10px);
|
||||
-webkit-transition: width 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
transition: width 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
border-radius: 6px;
|
||||
width: 0;
|
||||
position: relative;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
body .progress_inner__step:before {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
color: #70afd0;
|
||||
background: white;
|
||||
line-height: 30px;
|
||||
border: 3px solid #a6cde2;
|
||||
font-size: 12px;
|
||||
top: 3px;
|
||||
border-radius: 100%;
|
||||
-webkit-transition: all .4s;
|
||||
transition: all .4s;
|
||||
cursor: pointer;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
body .progress_inner__step {
|
||||
width: 20%;
|
||||
font-size: 14px;
|
||||
padding: 0 10px;
|
||||
-webkit-transition: all .4s;
|
||||
transition: all .4s;
|
||||
float: left;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
body .progress_inner__step label {
|
||||
padding-top: 50px;
|
||||
top: -20px;
|
||||
display: block;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
/*body .progress_inner__step:hover {
|
||||
color: white;
|
||||
}
|
||||
body .progress_inner__step:hover:before {
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}*/
|
||||
|
||||
body {
|
||||
font-family: "Nunito", sans-serif;
|
||||
background: #a6cde2;
|
||||
color: #2e6c8e;
|
||||
text-align: center;
|
||||
font-weight: 900;
|
||||
}
|
||||
body .progress_inner {
|
||||
height: 200px;
|
||||
width: 1000px;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div {
|
||||
width: 80%;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div > .tab:nth-of-type(5) {
|
||||
opacity: 1;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner #step-5:checked + div + div + div + div {
|
||||
right: 10%;
|
||||
}
|
||||
body .progress_inner #step-4:checked + input + div {
|
||||
width: 60%;
|
||||
}
|
||||
body .progress_inner #step-4:checked + input + div + div + div > .tab:nth-of-type(4) {
|
||||
opacity: 1;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner #step-4:checked + input + div + div + div + div {
|
||||
right: 30%;
|
||||
}
|
||||
body .progress_inner #step-3:checked + input + input + div {
|
||||
width: 40%;
|
||||
}
|
||||
body .progress_inner #step-3:checked + input + input + div + div + div > .tab:nth-of-type(3) {
|
||||
opacity: 1;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner #step-3:checked + input + input + div + div + div + div {
|
||||
right: 50%;
|
||||
}
|
||||
body .progress_inner #step-2:checked + input + input + input + div {
|
||||
width: 20%;
|
||||
}
|
||||
body .progress_inner #step-2:checked + input + input + input + div + div + div > .tab:nth-of-type(2) {
|
||||
opacity: 1;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner #step-2:checked + input + input + input + div + div + div + div {
|
||||
right: 70%;
|
||||
}
|
||||
body .progress_inner #step-1:checked + input + input + input + input + div {
|
||||
width: 0%;
|
||||
}
|
||||
body .progress_inner #step-1:checked + input + input + input + input + div + div + div > .tab:nth-of-type(1) {
|
||||
opacity: 1;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner #step-1:checked + input + input + input + input + div + div + div + div {
|
||||
right: 90%;
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(1):before {
|
||||
content: "1";
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(2):before {
|
||||
content: "2";
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(3):before {
|
||||
content: "3";
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(4):before {
|
||||
content: "4";
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(5):before {
|
||||
content: "5";
|
||||
}
|
||||
body .progress_inner__step:nth-of-type(6):before {
|
||||
content: "6";
|
||||
}
|
||||
body .progress_inner__bar--set {
|
||||
width: 80%;
|
||||
top: -6px;
|
||||
background: #70afd0;
|
||||
position: relative;
|
||||
z-index: -2;
|
||||
}
|
||||
body .progress_inner__tabs .tab {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
text-align: center;
|
||||
margin-top: 80px;
|
||||
box-shadow: 0px 2px 1px #80b7d5;
|
||||
padding: 30px;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
-webkit-transition: all .2s;
|
||||
transition: all .2s;
|
||||
}
|
||||
body .progress_inner__tabs .tab h1 {
|
||||
margin: 0;
|
||||
}
|
||||
body .progress_inner__tabs .tab p {
|
||||
font-weight: 400;
|
||||
opacity: 0.8;
|
||||
}
|
||||
body .progress_inner__status {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
top: -65px;
|
||||
-webkit-transition: right 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
transition: right 800ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
-webkit-transform: translateX(50%);
|
||||
transform: translateX(50%);
|
||||
position: absolute;
|
||||
}
|
||||
body .progress_inner__status div {
|
||||
opacity: 0;
|
||||
-webkit-transition: all 600ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
transition: all 600ms cubic-bezier(0.915, 0.015, 0.3, 1.005);
|
||||
-webkit-transition-delay: 300ms;
|
||||
transition-delay: 300ms;
|
||||
}
|
||||
body .progress_inner__status div {
|
||||
position: absolute;
|
||||
}
|
||||
body .progress_inner__status .box_base {
|
||||
background: -webkit-repeating-linear-gradient(45deg, #986c5d, #986c5d 2px, #775144 2px, #775144 4px);
|
||||
background: repeating-linear-gradient(45deg, #986c5d, #986c5d 2px, #775144 2px, #775144 4px);
|
||||
width: 36px;
|
||||
height: 40px;
|
||||
z-index: 1;
|
||||
border-radius: 1px;
|
||||
}
|
||||
body .progress_inner__status .box_lid {
|
||||
width: 40px;
|
||||
height: 13.33333px;
|
||||
background: #775144;
|
||||
z-index: 2;
|
||||
border-radius: 1px;
|
||||
top: 0;
|
||||
}
|
||||
body .progress_inner__status .box_item {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #be69d2;
|
||||
z-index: 0;
|
||||
border-radius: 4px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
body .progress_inner__status .box_ribbon {
|
||||
width: 10px;
|
||||
height: 42px;
|
||||
background: #ee0f29;
|
||||
z-index: 4;
|
||||
border-radius: 1px;
|
||||
}
|
||||
body .progress_inner__status .box_bow__left, body .progress_inner__status .box_bow__right {
|
||||
width: 6px;
|
||||
height: 10px;
|
||||
background: #be0c21;
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
opacity: 1;
|
||||
border-radius: 1px;
|
||||
}
|
||||
body .progress_inner__status .box_bow {
|
||||
top: -6px;
|
||||
z-index: 1;
|
||||
-webkit-transition-delay: 500ms;
|
||||
transition-delay: 500ms;
|
||||
}
|
||||
body .progress_inner__status .box_bow__left {
|
||||
left: 6px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
body .progress_inner__status .box_bow__right {
|
||||
left: -4px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
body .progress_inner__status .box_tag {
|
||||
width: 20px;
|
||||
height: 10px;
|
||||
background: #487ac7;
|
||||
z-index: 4;
|
||||
-webkit-transform: rotate(-10deg) translateX(-40px) translateY(0px);
|
||||
transform: rotate(-10deg) translateX(-40px) translateY(0px);
|
||||
border-radius: 2px;
|
||||
-webkit-transition-delay: 500ms;
|
||||
transition-delay: 500ms;
|
||||
}
|
||||
body .progress_inner__status .box_string {
|
||||
width: 17px;
|
||||
height: 2px;
|
||||
background: #343434;
|
||||
z-index: 4;
|
||||
-webkit-transform: rotate(-39deg) translateX(-22px) translateY(-12px);
|
||||
transform: rotate(-39deg) translateX(-22px) translateY(-12px);
|
||||
}
|
||||
body .progress_inner input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
.step_header{
|
||||
text-align: left;
|
||||
padding-left:7%;
|
||||
}
|
||||
.step_header img{
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.success_wrapper{
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
.success_img{
|
||||
display: inline-block;
|
||||
}
|
||||
.success_img img{
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.success_text{
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.success_text2{
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 15px;
|
||||
color: #8B919D;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
.success_content{
|
||||
margin-top: 50px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 15px;
|
||||
color: #8B919D;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
.content_align{
|
||||
margin:0 auto;
|
||||
width:50%;
|
||||
text-align:left;
|
||||
}
|
||||
.margin-bottom2{
|
||||
margin-top: 120px;
|
||||
}
|
||||
.agree-text{
|
||||
font-family: SanFranciscoText-Regular;
|
||||
font-size: 15px;
|
||||
color: #FF6600;
|
||||
letter-spacing: 0px;
|
||||
}
|
||||
.agree-to{
|
||||
border: 1px solid #FF6600;
|
||||
padding: 6px 8px 6px 8px;
|
||||
color: grey;
|
||||
cursor: pointer;
|
||||
}
|
||||
.agree_left{
|
||||
text-align: left;
|
||||
}
|
||||
body .dis_before{
|
||||
color: white;
|
||||
}
|
||||
body .dis_before:nth-child(1):before{
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}
|
||||
body .dis_before:nth-child(2):before{
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}
|
||||
body .dis_before:nth-child(3):before{
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}
|
||||
body .dis_before:nth-child(4):before{
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}
|
||||
body .dis_before:nth-child(5):before {
|
||||
color: white;
|
||||
background: #1ea4ec;
|
||||
}
|
||||
/*.progress_inner__step:before{
|
||||
background: #1ea4ec;
|
||||
}
|
||||
.step_submit_color{
|
||||
color: white;
|
||||
|
||||
}*/
|
||||
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.5 KiB |
@ -0,0 +1,262 @@
|
||||
angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', ['$scope', '$http','$interval', function ($scope, $http,$interval) {
|
||||
var countryMap = [{
|
||||
"label": "AUS",
|
||||
"value": "AUS"
|
||||
}, {
|
||||
"label": "CHN",
|
||||
"value": "CHN"
|
||||
}];
|
||||
var stateMap = [
|
||||
{
|
||||
"label": "ACT",
|
||||
"value": "ACT"
|
||||
},
|
||||
{
|
||||
"label": "NSW",
|
||||
"value": "NSW"
|
||||
},
|
||||
{
|
||||
"label": "NT",
|
||||
"value": "NT"
|
||||
},
|
||||
{
|
||||
"label": "QLD",
|
||||
"value": "QLD"
|
||||
},
|
||||
{
|
||||
"label": "SA",
|
||||
"value": "SA"
|
||||
},
|
||||
{
|
||||
"label": "TAS",
|
||||
"value": "TAS"
|
||||
},
|
||||
{
|
||||
"label": "VIC",
|
||||
"value": "VIC"
|
||||
},
|
||||
{
|
||||
"label": "WA",
|
||||
"value": "WA"
|
||||
}
|
||||
];
|
||||
var industryMap = [
|
||||
{
|
||||
"label": "综合商城 Integrated Store",
|
||||
"value": 336
|
||||
},
|
||||
{
|
||||
"label": "食品 Food",
|
||||
"value": 335
|
||||
},
|
||||
{
|
||||
"label": "化妆品 Cosmetics",
|
||||
"value": 334
|
||||
},
|
||||
{
|
||||
"label": "鞋包服饰 Clothes",
|
||||
"value": 327
|
||||
},
|
||||
{
|
||||
"label": "酒店行业 Hospitality industry",
|
||||
"value": 328
|
||||
},
|
||||
{
|
||||
"label": "数码电器 Electric appliances",
|
||||
"value": 332
|
||||
},
|
||||
{
|
||||
"label": "母婴 Baby and maternal products",
|
||||
"value": 333
|
||||
},
|
||||
{
|
||||
"label": "文具/办公用品 Office supplies",
|
||||
"value": 337
|
||||
},
|
||||
{
|
||||
"label": "机票行业 Airline tickets industry",
|
||||
"value": 339
|
||||
},
|
||||
{
|
||||
"label": "国际物流 International logistics",
|
||||
"value": 330
|
||||
},
|
||||
{
|
||||
"label": "教育行业 Education section",
|
||||
"value": 329
|
||||
},
|
||||
{
|
||||
"label": "其它服务行业 Other services industry",
|
||||
"value": 331
|
||||
},
|
||||
{
|
||||
"label": "其它货物贸易行业 Other goods trade industry",
|
||||
"value": 338
|
||||
}
|
||||
];
|
||||
$scope.name_exist = false;
|
||||
$scope.industries = angular.copy(industryMap);
|
||||
$scope.states = angular.copy(stateMap);
|
||||
$scope.countries = angular.copy(countryMap);
|
||||
$scope.seconds = 6;
|
||||
$scope.canClick=false;
|
||||
$scope.description = "Send Code";
|
||||
$scope.partner = {};
|
||||
$scope.bankaccount = {};
|
||||
$scope.rate = {};
|
||||
|
||||
$scope.checkUserName = function (username) {
|
||||
if(username != null && username != ''){
|
||||
$http.get('/register/account/' + $scope.partner.username).then(function (resp) {
|
||||
$scope.name_exist = false;
|
||||
}, function (resp) {
|
||||
if (resp.data.status == 403){
|
||||
$scope.name_exist = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
$scope.disabledArray = new Array(true, false, false, false, false);
|
||||
$scope.chooseArray = new Array(true, false, false, false, false);
|
||||
$scope.changeChoose = function (index) {
|
||||
$scope.chooseArray = new Array(false, false, false, false, false);
|
||||
$scope.chooseArray[index] = true;
|
||||
$scope.disabledArray[index] = true;
|
||||
};
|
||||
$scope.getRateConfig = function () {
|
||||
$http.get('/sys/partners/sys_rates').then(function (resp) {
|
||||
$scope.sysRateConfig = resp.data;
|
||||
}, function (resp) {
|
||||
})
|
||||
};
|
||||
$scope.sendPhoneCodeTime = function(){
|
||||
var second=59;
|
||||
var timerHandler;
|
||||
timerHandler =$interval(function(){
|
||||
if(second<=0){
|
||||
$interval.cancel(timerHandler);
|
||||
second=59;
|
||||
$scope.description="获取验证码";
|
||||
$scope.canClick=false;
|
||||
}else{
|
||||
$scope.description=second+"s后重发";
|
||||
second--;
|
||||
$scope.canClick=true;
|
||||
}
|
||||
},1000)
|
||||
};
|
||||
|
||||
$scope.goToLogin = function () {
|
||||
var timer = $interval(function(){
|
||||
$scope.seconds = $scope.seconds -1;
|
||||
if ($scope.seconds == 0) {
|
||||
location.href = '/login.html';
|
||||
}
|
||||
},1000)
|
||||
};
|
||||
$scope.sendVerificationCode = function (phone_number) {
|
||||
$scope.sendPhoneCodeTime();
|
||||
$http.post('/register/get/code/{number}').then(function (resp) {
|
||||
}, function (resp) {
|
||||
$scope.resError = resp.data.message;
|
||||
});
|
||||
};
|
||||
$scope.searchBankInfo = function (bsb_no) {
|
||||
if (bsb_no != null && bsb_no != "") {
|
||||
$http.get('/register/info/bank/' + bsb_no).then(function (resp) {
|
||||
$scope.bankInfo = resp.data;
|
||||
$scope.bankaccount.bank = $scope.bankInfo.bank;
|
||||
$scope.bankaccount.city = $scope.bankInfo.city;
|
||||
$scope.bankaccount.address = $scope.bankInfo.address;
|
||||
$scope.bankaccount.system = $scope.bankInfo.system;
|
||||
$scope.bankaccount.postcode = $scope.bankInfo.postcode;
|
||||
$scope.bankaccount.state = $scope.bankInfo.state;
|
||||
$scope.bankaccount.branch = $scope.bankInfo.branch;
|
||||
});
|
||||
} else {
|
||||
$scope.resError = "请先填写BSB No";
|
||||
}
|
||||
};
|
||||
$scope.changeDays = function (clean_days) {
|
||||
if (clean_days) {
|
||||
switch (clean_days) {
|
||||
case '1': {
|
||||
$scope.rate.wechat_rate_value = parseFloat($scope.sysRateConfig.t1.Wechat);
|
||||
$scope.rate.alipay_rate_value = parseFloat($scope.sysRateConfig.t1.Alipay);
|
||||
$scope.rate.alipayonline_rate_value = parseFloat($scope.sysRateConfig.t1.AlipayOnline);
|
||||
$scope.rate.bestpay_rate_value = parseFloat($scope.sysRateConfig.t1.Bestpay);
|
||||
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t1.JDpay);
|
||||
break;
|
||||
}
|
||||
case '2': {
|
||||
$scope.rate.wechat_rate_value = parseFloat($scope.sysRateConfig.t2.Wechat);
|
||||
$scope.rate.alipay_rate_value = parseFloat($scope.sysRateConfig.t2.Alipay);
|
||||
$scope.rate.bestpay_rate_value = parseFloat($scope.sysRateConfig.t2.Bestpay);
|
||||
$scope.rate.alipayonline_rate_value = parseFloat($scope.sysRateConfig.t2.AlipayOnline);
|
||||
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t2.JDpay);
|
||||
break;
|
||||
}
|
||||
case '3': {
|
||||
$scope.rate.wechat_rate_value = parseFloat($scope.sysRateConfig.t3.Wechat);
|
||||
$scope.rate.alipay_rate_value = parseFloat($scope.sysRateConfig.t3.Alipay);
|
||||
$scope.rate.bestpay_rate_value = parseFloat($scope.sysRateConfig.t3.Bestpay);
|
||||
$scope.rate.alipayonline_rate_value = parseFloat($scope.sysRateConfig.t3.AlipayOnline);
|
||||
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t3.JDpay);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
$scope.saveApplyInfo = function (form,index) {
|
||||
if (form.$invalid) {
|
||||
angular.forEach(form, function (item, key) {
|
||||
if (key.indexOf('$') < 0) {
|
||||
item.$dirty = true;
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
$http.post('/register/info/update/' + $scope.partner.username, $scope.partner).then(function (resp) {
|
||||
if (index == 3) {
|
||||
$scope.getRateConfig();
|
||||
}
|
||||
if (index == 4) {
|
||||
$scope.goToLogin();
|
||||
}
|
||||
$scope.changeChoose(index);
|
||||
}, function (resp) {
|
||||
$scope.resError = resp.data.message;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
<!--/partners/application/captcha-image-->
|
||||
/* $scope.captchaImage = '/partners/application/captcha-image';
|
||||
$scope.changeCaptchaImage = function () {
|
||||
$scope.captchaImage = '/partners/application/captcha-image?' + Math.floor(Math.random() * 100);
|
||||
};
|
||||
$scope.save = function (form) {
|
||||
if (form.$invalid) {
|
||||
angular.forEach(form, function (item, key) {
|
||||
if (key.indexOf('$') < 0) {
|
||||
item.$dirty = true;
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
$scope.partner.company_name = $scope.partner.short_name;
|
||||
$('#login-btn').attr('disabled', true);
|
||||
$http.post('partners/application', $scope.partner).then(function (resp) {
|
||||
alert("Registered merchant application has been submitted successfully");
|
||||
location.href = 'partner_register_success.html';
|
||||
//commonDialog.alert({title: 'Success', content: 'Registered merchant application has been submitted successfully', type: 'success'});
|
||||
}, function (resp) {
|
||||
alert(resp.data.message);
|
||||
$scope.resError = resp.data.message;
|
||||
$scope.changeCaptchaImage();
|
||||
$('#login-btn').attr('disabled', false);
|
||||
});
|
||||
};*/
|
||||
}]);
|