|
@@ -50,9 +50,37 @@
|
|
|
console.log('111111111111111111', )
|
|
|
if (uni.getStorageSync('merchantType') == 4) {
|
|
|
// Verification/ems
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pagesHouse/Verification/ems"
|
|
|
- });
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: "/pagesHouse/Verification/ems"
|
|
|
+ // });
|
|
|
+ uni.scanCode({
|
|
|
+ onlyFromCamera: true,
|
|
|
+ success: (res) => {
|
|
|
+ //
|
|
|
+ if(JSON.parse(res.result).merchantId!=uni.getStorageSync('merchantId')){
|
|
|
+ uni.showToast({
|
|
|
+ title:'您的核销码不是该商家的核销码',
|
|
|
+ icon:'none',
|
|
|
+ duration:1500
|
|
|
+ })
|
|
|
+ setTimeout(()=>{
|
|
|
+ uni.reLaunch({
|
|
|
+ url:'/pagesHouse/home/index'
|
|
|
+ })
|
|
|
+ },1500)
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pagesHouse/Verification/detailsewm?list=" + res.result
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ error: (res) => {
|
|
|
+ uni.reLaunch({
|
|
|
+ url:'/pagesHouse/home/index'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
} else {
|
|
|
this.tabbarValues = i;
|