Commit 99d7ed2b authored by 杨梦雪's avatar 杨梦雪

11

parent b5fbbd00
...@@ -73,6 +73,9 @@ export default { ...@@ -73,6 +73,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "a/scss/btn"; @import "a/scss/btn";
.btn{
padding-bottom: 34px;
}
.confirm { .confirm {
padding: 0 50px 60px; padding: 0 50px 60px;
.line { .line {
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
import { setInviteCode } from "r/index/signUp"; import { setInviteCode } from "r/index/signUp";
export default { export default {
name: "Invitation", name: "Invitation",
props: { invitation_code: String },
data() { data() {
return { return {
invatation1: "", invatation1: "",
...@@ -71,6 +72,16 @@ export default { ...@@ -71,6 +72,16 @@ export default {
inputFlag: true, inputFlag: true,
}; };
}, },
created() {
if (this.invitation_code) {
let a = this.invitation_code.split("-");
this.invatation1 = a[0];
this.invatation2 = a[1];
this.invatation3 = a[2];
this.invatation4 = a[3];
// console.log(a[0])
}
},
watch: { watch: {
invatation1: function () { invatation1: function () {
// /\n/g(删除制表符 /t的正则) // /\n/g(删除制表符 /t的正则)
...@@ -106,9 +117,9 @@ export default { ...@@ -106,9 +117,9 @@ export default {
// }, // },
//第一个输入框 //第一个输入框
changeValue1(e) { changeValue1(e) {
const code = e.trim() const code = e.trim();
console.log(code, "输入111") console.log(code, "输入111");
if ( code.indexOf("-") !== -1) { if (code.indexOf("-") !== -1) {
//如果是复制过来的带'-'邀请码 //如果是复制过来的带'-'邀请码
let copyCode = code.split("-"); let copyCode = code.split("-");
console.log(copyCode, "输入222"); console.log(copyCode, "输入222");
......
...@@ -136,8 +136,7 @@ export default { ...@@ -136,8 +136,7 @@ export default {
this.type = "success"; this.type = "success";
} }
this.$emit("getStatus", this.type); this.$emit("getStatus", this.type);
// this.getExamine = res.data.examine_status;
// console.log(res.data.examine_status, "res.data.examine_status");
const code = this.$store.state.indexIdentity; const code = this.$store.state.indexIdentity;
//订单支付金额 //订单支付金额
window.localStorage.setItem("has_amount" + code, res.data.has_amount); window.localStorage.setItem("has_amount" + code, res.data.has_amount);
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<div <div
class="lastBtn" class="lastBtn"
v-show=" v-show="
this.status == 1 ||
this.status == 2 || this.status == 2 ||
this.status == 3 || this.status == 3 ||
this.status == 4 || this.status == 4 ||
...@@ -25,9 +26,14 @@ ...@@ -25,9 +26,14 @@
<Invitation <Invitation
v-else-if="type == 'invitation'" v-else-if="type == 'invitation'"
@getstatus="statuss" @getstatus="statuss"
:invitation_code="invitation_code"
></Invitation> ></Invitation>
<ReferInfo v-else-if="type == 'referInfo'" @getstatus="statuss"></ReferInfo> <ReferInfo v-else-if="type == 'referInfo'" @getstatus="statuss"></ReferInfo>
<Pass v-else-if="type == 'check'" @is_next="is_nextevent" @getstatus="statuss"></Pass> <Pass
v-else-if="type == 'check'"
@is_next="is_nextevent"
@getstatus="statuss"
></Pass>
<Paying v-else-if="type == 'pay'" @getstatus="statuss"></Paying> <Paying v-else-if="type == 'pay'" @getstatus="statuss"></Paying>
<Success v-else-if="type == 'success'" @getstatus="statuss"></Success> <Success v-else-if="type == 'success'" @getstatus="statuss"></Success>
</div> </div>
...@@ -72,6 +78,7 @@ export default { ...@@ -72,6 +78,7 @@ export default {
getExamine: "", getExamine: "",
isNexts: "", isNexts: "",
signBackStatus: "", signBackStatus: "",
invitation_code: "",//邀请码
}; };
}, },
created() { created() {
...@@ -107,12 +114,6 @@ export default { ...@@ -107,12 +114,6 @@ export default {
console.log(res.data.status, "signBack.status"); console.log(res.data.status, "signBack.status");
this.signBackStatus = res.data.status; this.signBackStatus = res.data.status;
this.signUpInit(this.signBackStatus); this.signUpInit(this.signBackStatus);
// if (this.signBackStatus == 2) {
// return this.signUpInit(1);
// } else {
// this.signUpInit(this.signBackStatus);
// }
this.$message.success(res.data.message); this.$message.success(res.data.message);
}); });
}, },
...@@ -207,7 +208,7 @@ export default { ...@@ -207,7 +208,7 @@ export default {
this.$emit("getStatus", this.type); this.$emit("getStatus", this.type);
// this.getExamine = res.data.examine_status; // this.getExamine = res.data.examine_status;
// console.log(res.data.examine_status, "res.data.examine_status"); // console.log(res.data.examine_status, "res.data.examine_status");
this.invitation_code = res. data.invitation_code; //填写的邀请码回显需要
//订单支付金额 //订单支付金额
let code = this.$store.state.indexIdentity; let code = this.$store.state.indexIdentity;
window.localStorage.setItem("has_amount" + code, res.data.has_amount); window.localStorage.setItem("has_amount" + code, res.data.has_amount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment