dev_2022-05-11
yujialong 3 years ago
parent 43cafcabfc
commit ce92192f0b
  1. BIN
      src/assets/img/mini-code.png
  2. BIN
      src/assets/img/mini-code1.png
  3. 7
      src/router/index.js
  4. 4
      src/setting.js
  5. 3
      src/utils/api.js
  6. 38
      src/views/join/index.vue
  7. 68
      src/views/join/success.vue
  8. 6
      src/views/parner/staff.vue
  9. 2
      src/views/system/manageLog.vue
  10. 1
      src/views/system/staff.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

@ -169,6 +169,11 @@ let router = new Router({
component: () => import('../views/join'), component: () => import('../views/join'),
// meta: { title: '个人中心' } // meta: { title: '个人中心' }
}, },
{
path: '/success',
component: () => import('../views/join/success'),
// meta: { title: '个人中心' }
},
{ {
path: '*', path: '*',
redirect: '/404' redirect: '/404'
@ -180,7 +185,7 @@ router.beforeEach(function(to, from, next) {
// 根据路由元信息设置文档标题 // 根据路由元信息设置文档标题
window.document.title = to.meta.title || '中台'; window.document.title = to.meta.title || '中台';
//使用钩子函数对路由进行权限跳转 //使用钩子函数对路由进行权限跳转
if (!sessionStorage.getItem('token') && to.path !== '/login' && to.path !== '/join') { if (!sessionStorage.getItem('token') && to.path !== '/login' && to.path !== '/join' && to.path !== '/success') {
next('/login'); next('/login');
} else { } else {
next(); next();

@ -10,8 +10,8 @@ let host = `${location.origin}:9000/`
if (isDev) { if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统
// host = 'http://39.108.250.202:9000/' // host = 'http://39.108.250.202:9000/'
host = 'http://192.168.31.151:9000/'// 榕 // host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://192.168.31.137:9000/'// 赓 host = 'http://192.168.31.137:9000/'// 赓
} else if (isPro) { } else if (isPro) {
jumpPath = "http://www.huorantech.cn/judgmentPoint/"; jumpPath = "http://www.huorantech.cn/judgmentPoint/";
} }

@ -269,5 +269,6 @@ export default {
partnerAccountList: `nakadai/partnerAccount/partnerAccountList`, partnerAccountList: `nakadai/partnerAccount/partnerAccountList`,
savePartnerAccount: `nakadai/partnerAccount/savePartnerAccount`, savePartnerAccount: `nakadai/partnerAccount/savePartnerAccount`,
generateInvitationCode: `nakadai/partnerAccount/generateInvitationCode`, generateInvitationCode: `nakadai/partnerAccount/generateInvitationCode`,
generationQrCode: `nakadai/partnerAccount/generationQrCode `, generationQrCode: `nakadai/partnerAccount/generationQrCode`,
queryUserInfoByPhone: `nakadai/partner-team/queryUserInfoByPhone`,
}; };

@ -11,14 +11,14 @@
</div> </div>
<div class="inner"> <div class="inner">
<el-form class="form" ref="form" :model="form" :rules="rules"> <el-form class="form" ref="form" :model="form" :rules="rules">
<el-form-item prop="phone">
<el-input v-model.trim="form.phone" placeholder="请输入手机号" maxlength="11" @change="phoneChange"></el-input>
</el-form-item>
<el-form-item prop="userName"> <el-form-item prop="userName">
<el-input v-model.trim="form.userName" placeholder="请输入姓名"></el-input> <el-input v-model.trim="form.userName" placeholder="请输入姓名" :disabled="repeat"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="account"> <el-form-item prop="account">
<el-input v-model.trim="form.account" placeholder="请输入账号"></el-input> <el-input v-model.trim="form.account" placeholder="请输入账号" :disabled="repeat"></el-input>
</el-form-item>
<el-form-item prop="phone">
<el-input v-model.trim="form.phone" placeholder="请输入手机号" maxlength="11"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="code"> <el-form-item prop="code">
<div class="ver-code"> <div class="ver-code">
@ -44,7 +44,7 @@ export default {
form: { form: {
id: this.$route.query.accountId, id: this.$route.query.accountId,
partnerClassificationId: this.$route.query.id, partnerClassificationId: this.$route.query.id,
isTeam: 0, isTeam: this.$route.query.isTeam, // (0)pc(1)
account: '', account: '',
phone: '', phone: '',
code: '', code: '',
@ -64,6 +64,7 @@ export default {
{ required: true, message: "请输入验证码", trigger: 'blur' } { required: true, message: "请输入验证码", trigger: 'blur' }
] ]
}, },
repeat: false, //
phoneDisabled: false, phoneDisabled: false,
phoneTimer: null, phoneTimer: null,
phoneOpener: '', phoneOpener: '',
@ -122,6 +123,25 @@ export default {
} }
}).catch(res => {}) }).catch(res => {})
}, },
//
phoneChange() {
//
if (!this.form.isTeam) {
const { form } = this
this.$get(this.api.queryUserInfoByPhone, {
phone: form.phone
}).then(({ info }) => {
//
if (info) {
this.repeat = true
form.account = info.account
form.userName = info.userName
} else {
this.repeat = false
}
}).catch(res => {})
}
},
// //
submit() { submit() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
@ -132,13 +152,9 @@ export default {
if (this.emailRepeat) return util.warningMsg("该邮箱已存在") if (this.emailRepeat) return util.warningMsg("该邮箱已存在")
const { form } = this const { form } = this
form.uniqueIdentification = Date.now() form.uniqueIdentification = Date.now()
form.isTeam = this.isMobile ? 0 : 1 // (0)pc(1)
this.submiting = true this.submiting = true
this.$post(this.api.savePartnerAccount, form).then(res => { this.$post(this.api.savePartnerAccount, form).then(res => {
util.successMsg('加入成功!') this.$router.push('/success')
setTimeout(() => {
location.reload()
}, 1000)
}).catch(res => { }).catch(res => {
this.submiting = false this.submiting = false
}) })

@ -0,0 +1,68 @@
<template>
<div class="wrap">
<div class="inner">
<div class="icon">
<i class="el-icon-success icon"></i>
<p class="tips">加入成功</p>
</div>
<p class="text">你已加入城市合伙人计划</p>
<p class="text">请保存并用微信扫以下二维码打开城市合伙人小程序</p>
<img class="qrcode" src="@/assets/img/mini-code1.png" alt="">
</div>
</div>
</template>
<script>
export default {
data() {
return {
};
},
mounted() {
},
methods: {
}
};
</script>
<style lang="scss" scoped>
.wrap {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: #f3f6fa;
}
.inner {
width: 436px;
padding: 50px 0;
text-align: center;
border-radius: 6px;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
.icon {
font-size: 40px;
color: #007eff;
}
.tips {
margin: 10px 0;
font-size: 20px;
}
.text {
margin-bottom: 15px;
font-size: 14px;
}
.qrcode {
width: 200px;
}
}
@media (max-width: 720px) {
.inner {
width: 90%;
}
}
</style>

@ -256,7 +256,11 @@ export default {
list.map(e => { list.map(e => {
e.ids = ids ? [...ids, e.id] : [e.id] e.ids = ids ? [...ids, e.id] : [e.id]
if (e.children.length) { if (e.children.length) {
if (e.isTeam) {
delete e.children
} else {
handleLeaf(e.children, e.ids) handleLeaf(e.children, e.ids)
}
} else { } else {
delete e.children delete e.children
} }
@ -428,7 +432,7 @@ export default {
this.expireTime = `${date.getFullYear()}-${util.preZero(date.getMonth() + 1)}-${util.preZero(date.getDate())} ${util.preZero(date.getHours())}:${util.preZero(date.getMinutes())}:${util.preZero(date.getMinutes())}` this.expireTime = `${date.getFullYear()}-${util.preZero(date.getMonth() + 1)}-${util.preZero(date.getDate())} ${util.preZero(date.getHours())}:${util.preZero(date.getMinutes())}:${util.preZero(date.getMinutes())}`
this.parnerVisible = true this.parnerVisible = true
const cur = this.$refs.orgTree.getCurrentKey() const cur = this.$refs.orgTree.getCurrentKey()
const link = `${location.origin}${Setting.isDev || Setting.isPro ? '' : '/nakadai'}/#/join?accountId=${accountId}&id=${cur || ''}` const link = `${location.origin}${Setting.isDev || Setting.isPro ? '' : '/nakadai'}/#/join?accountId=${accountId}&id=${cur || ''}&isTeam=1`
// //
this.link = link this.link = link

@ -42,8 +42,10 @@
</span> </span>
</div> </div>
<div> <div>
<template v-if="!i">
<span class="withdraw" v-if="item.withdraw && !item.revoke">已撤回</span> <span class="withdraw" v-if="item.withdraw && !item.revoke">已撤回</span>
<el-button v-if="item.revoke" style="margin-right: 10px" type="primary" size="small" @click="revoke(item)">撤销</el-button> <el-button v-if="item.revoke" style="margin-right: 10px" type="primary" size="small" @click="revoke(item)">撤销</el-button>
</template>
<el-switch v-model="item.open" :active-value="0" :inactive-value="1" @change="switchOff($event, item)" v-auth="'/system:日志更新:管理:开启日志'"></el-switch> <el-switch v-model="item.open" :active-value="0" :inactive-value="1" @change="switchOff($event, item)" v-auth="'/system:日志更新:管理:开启日志'"></el-switch>
</div> </div>

@ -672,7 +672,6 @@ export default {
}) })
} else { } else {
form.uniqueIdentification = new Date().getTime() form.uniqueIdentification = new Date().getTime()
form.userAvatars = this.$store.state.avatar
this.$post(this.api.saveStaff, form).then(res => { this.$post(this.api.saveStaff, form).then(res => {
util.successMsg("新增成功!") util.successMsg("新增成功!")
this.staffVisible = false this.staffVisible = false

Loading…
Cancel
Save