|
@@ -17,11 +17,7 @@
|
|
|
<div class="title">寄售价格</div>
|
|
<div class="title">寄售价格</div>
|
|
|
<div class="price">
|
|
<div class="price">
|
|
|
<el-form :model="form" :rules="rules" ref="numberValidateForm" label-width="85px" class="demo-ruleForm">
|
|
<el-form :model="form" :rules="rules" ref="numberValidateForm" label-width="85px" class="demo-ruleForm">
|
|
|
- <el-form-item
|
|
|
|
|
- label="寄售价格(元)"
|
|
|
|
|
- prop="price"
|
|
|
|
|
- :rules="[{ required: true, message: '价格不能为空' }]"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item label="寄售价格(元)" prop="price">
|
|
|
<el-input
|
|
<el-input
|
|
|
placeholder="请设置寄售价格"
|
|
placeholder="请设置寄售价格"
|
|
|
style="width: 300px; margin-top: 20px"
|
|
style="width: 300px; margin-top: 20px"
|
|
@@ -32,19 +28,26 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<div class="border1"></div>
|
|
<div class="border1"></div>
|
|
|
<div class="title">请输入交易密码,验证信息</div>
|
|
<div class="title">请输入交易密码,验证信息</div>
|
|
|
- <el-form-item prop="password">
|
|
|
|
|
- <el-input
|
|
|
|
|
- style="width: 300px; margin: 20px 0 0 100px"
|
|
|
|
|
- type="password"
|
|
|
|
|
- v-model="form.password"
|
|
|
|
|
- placeholder="请输入纯数字交易密码"
|
|
|
|
|
- autocomplete="off"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ <div v-if="sets">
|
|
|
|
|
+ <el-form-item prop="password">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ style="width: 300px; margin: 20px 0 0 100px"
|
|
|
|
|
+ type="password"
|
|
|
|
|
+ v-model="form.password"
|
|
|
|
|
+ placeholder="请输入纯数字交易密码"
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <div @click="all('/transaction')" class="password">
|
|
|
|
|
+ <el-link type="danger" class="sets"> 忘记密码?</el-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-else>
|
|
|
|
|
+ <el-link type="danger" @click="all('/transaction')" class="set"
|
|
|
|
|
+ >您当前没有交易密码,点击去设置</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <div @click="all('/transaction')" class="password">
|
|
|
|
|
- <el-link> 忘记密码?</el-link>
|
|
|
|
|
- </div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="sub-btn">
|
|
<span slot="footer" class="sub-btn">
|
|
|
<el-button :disabled="btn" type="primary" @click="submit">立即寄售</el-button>
|
|
<el-button :disabled="btn" type="primary" @click="submit">立即寄售</el-button>
|
|
@@ -54,14 +57,16 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { mapState } from 'vuex';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
isShow: false,
|
|
isShow: false,
|
|
|
-
|
|
|
|
|
|
|
+ sets: false,
|
|
|
form: { price: '', password: '' },
|
|
form: { price: '', password: '' },
|
|
|
rules: {
|
|
rules: {
|
|
|
- password: { min: 6, max: 6, message: '密码长度在 6 到 6 个数字', trigger: 'blur' }
|
|
|
|
|
|
|
+ password: { min: 6, max: 6, message: '密码长度在 6 到 6 个数字', trigger: 'blur' },
|
|
|
|
|
+ price: { min: 1, max: 8, message: '价格长度在 1 到 8 位数', trigger: 'blur' }
|
|
|
},
|
|
},
|
|
|
list: [
|
|
list: [
|
|
|
{
|
|
{
|
|
@@ -83,6 +88,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
|
|
+ ...mapState(['userInfo']),
|
|
|
btn() {
|
|
btn() {
|
|
|
if (this.form.price && this.form.password) {
|
|
if (this.form.price && this.form.password) {
|
|
|
return false;
|
|
return false;
|
|
@@ -91,7 +97,23 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ if (this.isLogin) {
|
|
|
|
|
+ this.passFn();
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ passFn() {
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .get('/user/tradeCodeStatus', {
|
|
|
|
|
+ // set: true
|
|
|
|
|
+ userId: this.userInfo.id
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ this.sets = res.set;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
handleClose() {
|
|
handleClose() {
|
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
|
},
|
|
},
|
|
@@ -169,6 +191,9 @@ input::-webkit-inner-spin-button {
|
|
|
/deep/ .el-dialog__body {
|
|
/deep/ .el-dialog__body {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
}
|
|
}
|
|
|
|
|
+/deep/ .el-form-item__content {
|
|
|
|
|
+ margin-left: 98px !important;
|
|
|
|
|
+}
|
|
|
/deep/ .el-form-item__label {
|
|
/deep/ .el-form-item__label {
|
|
|
width: 200px !important;
|
|
width: 200px !important;
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
@@ -218,6 +243,20 @@ input::-webkit-inner-spin-button {
|
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .sets {
|
|
|
|
|
+ /deep/ .el-link--inner {
|
|
|
|
|
+ color: #ff4f50;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .set {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ line-height: 24px;
|
|
|
|
|
+ margin-top: 50px;
|
|
|
|
|
+ margin-left: 225px;
|
|
|
|
|
+ /deep/ .el-link--inner {
|
|
|
|
|
+ color: #ff4f50;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
.sub-btn {
|
|
.sub-btn {
|
|
|
padding-top: 62px;
|
|
padding-top: 62px;
|
|
|
display: flex;
|
|
display: flex;
|