|
@@ -16,21 +16,15 @@
|
|
|
let storeId = '';
|
|
|
let href = location.href;
|
|
|
if (href.indexOf('storeId') > -1) {
|
|
|
- storeId = href.split('=')[1];
|
|
|
- /* console.log(storeId)
|
|
|
- return*/
|
|
|
-
|
|
|
+ storeId = href.split('=')[2];
|
|
|
_.$http('/j/JGEmpolyer/Register', {
|
|
|
userId: _.user_id,
|
|
|
storeId: storeId,
|
|
|
isReg: true
|
|
|
}, res => {
|
|
|
- alert(href)
|
|
|
- setTimeout(() => {
|
|
|
- if (res.data.message === '未注册') {
|
|
|
- that.$router.push({path: '/houseKeeping/login/', query: {storeId: storeId}});
|
|
|
- }
|
|
|
- }, 1000)
|
|
|
+ if (res.data.message === '未注册') {
|
|
|
+ that.$router.push({path: '/houseKeeping/login/', query: {storeId: storeId}});
|
|
|
+ }
|
|
|
})
|
|
|
} else {
|
|
|
weui.alert('请重新扫二维码,进入本页面', function () {
|