|
@@ -100,6 +100,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import md5 from 'js-md5'
|
|
|
export default {
|
|
|
name: 'registerEnterprise',
|
|
|
data () {
|
|
@@ -223,6 +224,7 @@
|
|
|
},
|
|
|
// 获取验证码
|
|
|
getCheckCode () {
|
|
|
+ let md5Code = md5(`{mobile=${this.step1.mobile},code=${this.code},salt=sso}`)
|
|
|
if (this.tokenTime > 0 && this.tokenTime < 60) {
|
|
|
this.downToast('请稍后再点击,我在倒计时')
|
|
|
} else if (this.code === '') {
|
|
@@ -232,7 +234,7 @@
|
|
|
if (this.state.mobile === 'success') {
|
|
|
this.$indicator.open('获取中...')
|
|
|
let _this = this
|
|
|
- this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.step1.mobile, timestamp: new Date().getTime() + '', code: this.code}})
|
|
|
+ this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.step1.mobile, timestamp: new Date().getTime() + '', code: this.code, sign: md5Code}})
|
|
|
.then(response => {
|
|
|
this.$indicator.close()
|
|
|
if (response.data.errMsg) {
|