|
|
|
<template>
|
|
|
|
<div class="passport-layout-web-reg web-v3-layout-box">
|
|
|
|
<div class="web-v3-common-logo main-logo">
|
|
|
|
<img src="../assets/franchise1/logo.png" class="logo-image" alt="">
|
|
|
|
</div>
|
|
|
|
<div class="is-h5">
|
|
|
|
<div class="login-com-lang">
|
|
|
|
<div class="newLogin_lang-box">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="language-options-h5-mask">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="newLogin_lang-options newLogin_lang-options-down"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="web-reg-left">
|
|
|
|
<img class="isv-img" src="../assets/franchise1/left_list.png" alt="">
|
|
|
|
</div>
|
|
|
|
<div class="web-reg-right">
|
|
|
|
<div class="web-req-right-top">
|
|
|
|
<div class="web-main-content">
|
|
|
|
<div class="login-content-container">
|
|
|
|
<div class="new-account-login-box new-account-login-box-hide-back">
|
|
|
|
<div class="new-account-login-module new-account-module-nopadding">
|
|
|
|
<div class="step-box enter-credential ud__modal__content">
|
|
|
|
<!-- <div class="ud__modal__header">
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
<el-form :model="form" :rules="rules" class="el-row demo-ruleForm" ref="formRef">
|
|
|
|
<div class="right-form">
|
|
|
|
<GuipFormItem column="column" addClass="w388">
|
|
|
|
<div slot="formLeft" class="form-top-icon">
|
|
|
|
<img src="../assets/franchise1/storeNum.svg" alt="">
|
|
|
|
<span>订单号</span>
|
|
|
|
</div>
|
|
|
|
<GuipInput slot="formDom" ref="GuipInput" v-model="form.tid" prop="tid" placeholder="拍1件金额3000元订单" desc="2000元加盟费+1000元充值账户余额"/>
|
|
|
|
</GuipFormItem>
|
|
|
|
<GuipFormItem column="column" addClass="w388">
|
|
|
|
<div slot="formLeft" class="form-top-icon">
|
|
|
|
<img src="../assets/franchise1/nicheng.svg" alt="">
|
|
|
|
<span>平台昵称</span>
|
|
|
|
</div>
|
|
|
|
<GuipInput slot="formDom" ref="GuipInput" v-model="form.nick" prop="nick" placeholder="为自己取个平台昵称" desc="仅用于后台内使用、区分子账号"/>
|
|
|
|
</GuipFormItem>
|
|
|
|
<GuipFormItem column="column" addClass="w388">
|
|
|
|
<div slot="formLeft" class="form-top-icon">
|
|
|
|
<img src="../assets/franchise1/nicheng.svg" alt="">
|
|
|
|
<span>联系人姓名</span>
|
|
|
|
</div>
|
|
|
|
<GuipInput slot="formDom" ref="GuipInput" v-model="form.name" prop="name" placeholder="您的真实姓名"/>
|
|
|
|
</GuipFormItem>
|
|
|
|
<GuipFormItem column="column" addClass="w388">
|
|
|
|
<div slot="formLeft" class="form-top-icon">
|
|
|
|
<img src="../assets/franchise1/storeNum.svg" alt="">
|
|
|
|
<span>手机号码</span>
|
|
|
|
</div>
|
|
|
|
<PhoneCode slot="formDom" ref="PhoneCode" v-model="form.phone" prop="phone"></PhoneCode>
|
|
|
|
</GuipFormItem>
|
|
|
|
<GuipFormItem column="column" addClass="w388">
|
|
|
|
<div slot="formLeft" class="form-top-icon">
|
|
|
|
<img src="../assets/franchise1/codeNumber.svg" alt="">
|
|
|
|
<span>验证码</span>
|
|
|
|
</div>
|
|
|
|
<GuipInput slot="formDom" ref="GuipInput" v-model="form.sms_code" prop="sms_code" placeholder="填写验证码"/>
|
|
|
|
</GuipFormItem>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
<div class="ud__modal__footer">
|
|
|
|
<div class="step-box__footer">
|
|
|
|
<GuipButton :btnstyle="btnstyleObj" type="primary" @click="goAddFranchise">加盟并进入后台</GuipButton>
|
|
|
|
<p class="attention">
|
|
|
|
<el-checkbox v-model="checked"></el-checkbox>
|
|
|
|
<b>代理商需要阅读并同意<a href="">《哈哈哈哈》</a></b>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Footer></Footer>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import PhoneCode from '@/components/PhoneCode.vue';
|
|
|
|
import GuipButton from '@/components/GuipButton.vue';
|
|
|
|
import GuipInput from '@/components/GuipInput.vue';
|
|
|
|
import GuipFormItem from '@/components/GuipFormItem.vue';
|
|
|
|
import Footer from '@/components/Footer.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
checked:true,
|
|
|
|
btnstyleObj: {
|
|
|
|
width: '388px',
|
|
|
|
height: '46px'
|
|
|
|
},
|
|
|
|
form: {
|
|
|
|
tid: '',
|
|
|
|
name: '',
|
|
|
|
phone: '',
|
|
|
|
sms_code: '',
|
|
|
|
nick: '',
|
|
|
|
recommended_aid: '',
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
tid: [
|
|
|
|
{ required: true, message: '请输入订单号', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
nick: [
|
|
|
|
{ required: true, message: '请输入平台昵称', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
name: [
|
|
|
|
{ required: true, message: '请输入真实姓名', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
phone: [
|
|
|
|
{ required: true, message: '请输入手机号', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
sms_code: [
|
|
|
|
{ required: true, message: '请输入验证码', trigger: 'blur' }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
GuipButton,
|
|
|
|
GuipInput,
|
|
|
|
GuipFormItem,
|
|
|
|
PhoneCode,
|
|
|
|
Footer
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
if(this.$route.aid){
|
|
|
|
this.form.recommended_aid = this.$route.aid;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
goAddFranchise(){
|
|
|
|
console.log(this.form)
|
|
|
|
const that = this
|
|
|
|
that.$refs.formRef.validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
this.$http('POST', '/agentnew/ajax_submit_register_info', {
|
|
|
|
tid: that.form.tid,
|
|
|
|
name: that.form.name,
|
|
|
|
phone: that.form.phone,
|
|
|
|
sms_code: that.form.sms_code,
|
|
|
|
nick: that.form.nick,
|
|
|
|
recommended_aid: that.form.recommended_aid,
|
|
|
|
}).then(response => {
|
|
|
|
if (!response.status) {
|
|
|
|
that.$message.warning(response.info);
|
|
|
|
}else{
|
|
|
|
that.$message.success(response.info);
|
|
|
|
}
|
|
|
|
}).catch(error => {
|
|
|
|
console.error(error, 'error')
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
console.log('表单校验失败');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import '../style/franchise.scss';
|
|
|
|
|
|
|
|
.right-form {
|
|
|
|
padding: 40px 40px 0;
|
|
|
|
}
|
|
|
|
.form-item1{
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
.attention{
|
|
|
|
margin-top: 20px;
|
|
|
|
b{
|
|
|
|
font-weight: normal;
|
|
|
|
a{
|
|
|
|
text-decoration: none;
|
|
|
|
color: #006AFF;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.web-req-right-top{
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|