|
|
|
@ -52,8 +52,10 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup name="Home"> |
|
|
|
import Vconsole from "vconsole"; |
|
|
|
// import Vconsole from "vconsole"; |
|
|
|
import { showFailToast } from 'vant'; |
|
|
|
import {getEnterpriseMerchantAuthorization} from '@/api/Home'; |
|
|
|
import {checkIsExists} from '@/api/enterprise'; |
|
|
|
import {szyptGetToken} from "../../api/Home"; |
|
|
|
import wx from "weixin-js-sdk"; |
|
|
|
const { useCommon } = $globalStore; |
|
|
|
@ -128,12 +130,30 @@ const ClickScan = () => { |
|
|
|
// 页面跳转 |
|
|
|
console.log("=========== 扫码返回 ===========") |
|
|
|
console.log(res) |
|
|
|
checkIsExists(res,success=>{ |
|
|
|
console.log(success.data) |
|
|
|
if(success.data){ |
|
|
|
router.push({ |
|
|
|
path: "/enterpriseScanPreview", |
|
|
|
query: { |
|
|
|
path:"/enterpriseScanPreview", |
|
|
|
query:{ |
|
|
|
enterpriseNumber: res.resultStr |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
showFailToast('企业信息不存在,请确认二维码是否正确!'); |
|
|
|
router.push({ |
|
|
|
path:"/enforce/scanQrCode", |
|
|
|
}) |
|
|
|
} |
|
|
|
},error =>{ |
|
|
|
|
|
|
|
}) |
|
|
|
// router.push({ |
|
|
|
// path: "/enterpriseScanPreview", |
|
|
|
// query: { |
|
|
|
// enterpriseNumber: res.resultStr |
|
|
|
// } |
|
|
|
// }); |
|
|
|
}, |
|
|
|
cancel: (res) => { |
|
|
|
console.log('err', res); |
|
|
|
|