|
|
@ -58,6 +58,7 @@ import {getEnterpriseMerchantAuthorization} from '@/api/Home'; |
|
|
import {checkIsExists} from '@/api/enterprise'; |
|
|
import {checkIsExists} from '@/api/enterprise'; |
|
|
import {szyptGetToken} from "../../api/Home"; |
|
|
import {szyptGetToken} from "../../api/Home"; |
|
|
import wx from "weixin-js-sdk"; |
|
|
import wx from "weixin-js-sdk"; |
|
|
|
|
|
|
|
|
const {useCommon} = $globalStore; |
|
|
const {useCommon} = $globalStore; |
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
let carouselList = reactive([]); // 轮播列表 |
|
|
let carouselList = reactive([]); // 轮播列表 |
|
|
@ -120,7 +121,8 @@ const openScan = () => { |
|
|
wx.error((res) => { |
|
|
wx.error((res) => { |
|
|
console.log("获取失败"); |
|
|
console.log("获取失败"); |
|
|
}); |
|
|
}); |
|
|
},error =>{}); |
|
|
}, error => { |
|
|
|
|
|
}); |
|
|
}; |
|
|
}; |
|
|
const ClickScan = () => { |
|
|
const ClickScan = () => { |
|
|
wx.scanQRCode({ |
|
|
wx.scanQRCode({ |
|
|
@ -130,24 +132,24 @@ const ClickScan = () => { |
|
|
// 页面跳转 |
|
|
// 页面跳转 |
|
|
console.log("=========== 扫码返回 ===========") |
|
|
console.log("=========== 扫码返回 ===========") |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
checkIsExists(res,success=>{ |
|
|
// checkIsExists(res, success => { |
|
|
console.log(success.data) |
|
|
// console.log(success.data) |
|
|
if(success.data){ |
|
|
// if (success.data) { |
|
|
router.push({ |
|
|
router.push({ |
|
|
path: "/enterpriseScanPreview", |
|
|
path: "/enterpriseScanPreview", |
|
|
query: { |
|
|
query: { |
|
|
enterpriseNumber: res.resultStr |
|
|
enterpriseNumber: res.resultStr |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
// } else { |
|
|
showFailToast('企业信息不存在,请确认二维码是否正确!'); |
|
|
// showFailToast('企业信息不存在,请确认二维码是否正确!'); |
|
|
router.push({ |
|
|
// router.push({ |
|
|
path:"/enforce/scanQrCode", |
|
|
// path: "/enforce/scanQrCode", |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
},error =>{ |
|
|
// }, error => { |
|
|
|
|
|
// |
|
|
}) |
|
|
// }) |
|
|
// router.push({ |
|
|
// router.push({ |
|
|
// path: "/enterpriseScanPreview", |
|
|
// path: "/enterpriseScanPreview", |
|
|
// query: { |
|
|
// query: { |
|
|
@ -229,6 +231,7 @@ const goBack = () => { |
|
|
background-image: linear-gradient(to bottom, #ebf3fb, transparent); |
|
|
background-image: linear-gradient(to bottom, #ebf3fb, transparent); |
|
|
background-size: cover; |
|
|
background-size: cover; |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
.carousel_box { |
|
|
.carousel_box { |
|
|
position: relative; |
|
|
position: relative; |
|
|
top: 2%; |
|
|
top: 2%; |
|
|
@ -246,6 +249,7 @@ const goBack = () => { |
|
|
width: 30%; |
|
|
width: 30%; |
|
|
font-size: 0.4rem; |
|
|
font-size: 0.4rem; |
|
|
color: #999; |
|
|
color: #999; |
|
|
|
|
|
|
|
|
.box-scan-text { |
|
|
.box-scan-text { |
|
|
margin-top: 70%; |
|
|
margin-top: 70%; |
|
|
display: block; |
|
|
display: block; |
|
|
@ -253,6 +257,7 @@ const goBack = () => { |
|
|
text-align: center |
|
|
text-align: center |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.box-scan-two { |
|
|
.box-scan-two { |
|
|
left: auto; |
|
|
left: auto; |
|
|
right: 12.5%; |
|
|
right: 12.5%; |
|
|
@ -271,7 +276,9 @@ const goBack = () => { |
|
|
padding: 0px 0px 10px 0px; |
|
|
padding: 0px 0px 10px 0px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
}; |
|
|
} |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
.box-qr-code { |
|
|
.box-qr-code { |
|
|
width: 52%; |
|
|
width: 52%; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
@ -289,12 +296,14 @@ const goBack = () => { |
|
|
display: block; |
|
|
display: block; |
|
|
font-size: 0.45333rem; |
|
|
font-size: 0.45333rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
img { |
|
|
img { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 0%; |
|
|
top: 0%; |
|
|
left: 34%; |
|
|
left: 34%; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.box-info { |
|
|
.box-info { |
|
|
width: 52%; |
|
|
width: 52%; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
@ -311,6 +320,7 @@ const goBack = () => { |
|
|
font-size: 17px |
|
|
font-size: 17px |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.box-complaint { |
|
|
.box-complaint { |
|
|
width: 36%; |
|
|
width: 36%; |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
@ -320,6 +330,7 @@ const goBack = () => { |
|
|
margin-left: 2%; |
|
|
margin-left: 2%; |
|
|
background: url("@/assets/images/item_complain.png"); |
|
|
background: url("@/assets/images/item_complain.png"); |
|
|
background-size: cover; |
|
|
background-size: cover; |
|
|
|
|
|
|
|
|
.box-complaint-text { |
|
|
.box-complaint-text { |
|
|
margin-right: 5%; |
|
|
margin-right: 5%; |
|
|
margin-top: 3%; |
|
|
margin-top: 3%; |
|
|
|