|
@@ -1,6 +1,12 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <van-nav-bar title="创建企业" left-text="返回" @click-left="$route_back" left-arrow></van-nav-bar>
|
|
|
|
|
|
+ <van-nav-bar title="创建企业" left-text="返回" @click-left="$route_back" left-arrow>
|
|
|
|
+ <template slot="right" class="department_right_nav">
|
|
|
|
+ <van-dropdown-menu duration="0.3" text="text" class="head_dropdown_menu">
|
|
|
|
+ <van-dropdown-item title="•••" @change="plus_menu" :options="option" />
|
|
|
|
+ </van-dropdown-menu>
|
|
|
|
+ </template>
|
|
|
|
+ </van-nav-bar>
|
|
<div class="body_com has_header">
|
|
<div class="body_com has_header">
|
|
<div class="body_com_bg"></div>
|
|
<div class="body_com_bg"></div>
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
@@ -26,40 +32,27 @@
|
|
<div class="submit_btn_box login_butto">
|
|
<div class="submit_btn_box login_butto">
|
|
<van-button hairline plain v-show="false" type="info" size="small" round block @click="$router.push({ name: 'scanqr' })">加入已有组织</van-button>
|
|
<van-button hairline plain v-show="false" type="info" size="small" round block @click="$router.push({ name: 'scanqr' })">加入已有组织</van-button>
|
|
</div>
|
|
</div>
|
|
- <!-- <div style="position: absolute;bottom: .3rem;right: .2rem;cursor: pointer;font-size: .26rem;" @click="show = true">
|
|
|
|
- <span>注销账号</span>
|
|
|
|
- </div> -->
|
|
|
|
</div>
|
|
</div>
|
|
<van-popup v-model="industry_columns_show" position="bottom"><van-picker :columns="industry_columns" @confirm="onIndustryChange" show-toolbar /></van-popup>
|
|
<van-popup v-model="industry_columns_show" position="bottom"><van-picker :columns="industry_columns" @confirm="onIndustryChange" show-toolbar /></van-popup>
|
|
<van-popup v-model="scale_columns_show" position="bottom">
|
|
<van-popup v-model="scale_columns_show" position="bottom">
|
|
<van-picker :columns="scale_columns" @confirm="onScaleChange" show-toolbar @cancel="scale_columns_show = false" />
|
|
<van-picker :columns="scale_columns" @confirm="onScaleChange" show-toolbar @cancel="scale_columns_show = false" />
|
|
</van-popup>
|
|
</van-popup>
|
|
- <van-dialog v-model="show" show-cancel-button @confirm="verify">
|
|
|
|
- <div class="text">
|
|
|
|
- <div style="color: red;font-size: .3rem;">操作前需要验证你的登录密码</div>
|
|
|
|
- <div style="padding: 0 0.2rem;color: #333;margin-top: 0.2rem;">如果忘了原密码,请退出登录,点击"忘记密码",使用短信验证码重新登录后设置新密码。</div>
|
|
|
|
- </div>
|
|
|
|
- <van-cell-group>
|
|
|
|
- <van-field v-model="password" label="原密码" placeholder="请输入原密码" type="password" />
|
|
|
|
- </van-cell-group>
|
|
|
|
- </van-dialog>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import Vue from 'vue';
|
|
import Vue from 'vue';
|
|
import { setToken } from '@/utils/auth';
|
|
import { setToken } from '@/utils/auth';
|
|
-import { Picker } from 'vant';
|
|
|
|
import {returnJSEncrypt} from '@/utils/auth'
|
|
import {returnJSEncrypt} from '@/utils/auth'
|
|
|
|
+import { Picker,DropdownMenu,DropdownItem } from 'vant';
|
|
|
|
+
|
|
|
|
+Vue.use(Picker).use(DropdownMenu).use(DropdownItem);
|
|
|
|
|
|
-Vue.use(Picker);
|
|
|
|
export default {
|
|
export default {
|
|
name: 'create_company',
|
|
name: 'create_company',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- account_info: this.$store.getters.account_info,
|
|
|
|
- password:'',
|
|
|
|
- show:false,
|
|
|
|
|
|
+ option: [{ text: '账号注销', value: 1 }],
|
|
submit_loading: false,
|
|
submit_loading: false,
|
|
formdata: {
|
|
formdata: {
|
|
tel: '',
|
|
tel: '',
|
|
@@ -97,27 +90,10 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- verify () {
|
|
|
|
- if (!this.password) {
|
|
|
|
- this.$toast('请输入密码')
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- this.$toast.loading({
|
|
|
|
- mask: true,
|
|
|
|
- message: '正在验证...'
|
|
|
|
- })
|
|
|
|
- let data = {
|
|
|
|
- tel: this.account_info.tel,
|
|
|
|
- password: this.password,
|
|
|
|
- st: new Date().getTime()
|
|
|
|
|
|
+ plus_menu (val) {
|
|
|
|
+ if (val) {
|
|
|
|
+ this.$router.push('/verify')
|
|
}
|
|
}
|
|
- this.$axiosUser('post', '/api/destruction',{data:returnJSEncrypt(data)},'v2').then(res => {
|
|
|
|
- if (res.data.code == 1) {
|
|
|
|
- this.$router.push({name: 'login'})
|
|
|
|
- }
|
|
|
|
- }).finally(e => {
|
|
|
|
- this.$toast.clear()
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
get_company_info(id) {
|
|
get_company_info(id) {
|
|
let self = this;
|
|
let self = this;
|
|
@@ -292,4 +268,19 @@ export default {
|
|
border: 0.02rem solid #238dfa;
|
|
border: 0.02rem solid #238dfa;
|
|
border-radius: 0.04rem;
|
|
border-radius: 0.04rem;
|
|
}
|
|
}
|
|
|
|
+.text{
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #969799;
|
|
|
|
+ font-size: 0.28rem;
|
|
|
|
+ padding: 0.2rem 0;
|
|
|
|
+}
|
|
|
|
+/deep/ .van-dropdown-menu__bar {
|
|
|
|
+ background-color: transparent;
|
|
|
|
+}
|
|
|
|
+/deep/ .van-dropdown-menu__title{
|
|
|
|
+ color: #FFF;
|
|
|
|
+}
|
|
|
|
+/deep/ .van-dropdown-menu__title::after{
|
|
|
|
+ display: none;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|