This commit is contained in:
limqhz
2021-02-25 08:57:16 +08:00
parent 798893e65d
commit b07f61006c
4 changed files with 70 additions and 67 deletions

View File

@@ -224,6 +224,7 @@ Page({
// duration: 5000
// })qr
scanVenue = res.result;
console.log(res.result);
wx.navigateTo({
url: '/pages/scanCode/index?venueId=' + scanVenue,
})

View File

@@ -31,8 +31,10 @@ Page({
setTimeout(function() {
that.setData({canOpen : false});
},60000);
}else if (res.InitError){
venue: res.InitError
}else if (res.InitError!=undefined){
this.setData({
venue: res
});
}
});
},

View File

@@ -1,12 +1,10 @@
<!--pages/scanCode/index.wxml-->
<header isGoHome="{{isGoHome}}"></header>
<view class='container' wx:if="{{venue.name}}">
<view class='container' wx:if="{{venue}}">
<rich-text wx:if="{{!venue.venueInit}}" class='info' nodes="{{venue.InitError}}"></rich-text>
<image class='logo' src='{{venue.listImage}}' mode='widthFix'></image>
<rich-text class='info' nodes="[{{venue.name}}] 欢迎您!请在60秒内操作开门"></rich-text>
<rich-text wx:if="{{venue.name}}" class='info' nodes="[{{venue.name}}] 欢迎您!请在60秒内操作开门"></rich-text>
<view wx:if="{{canOpen==true}}" class='footer-btn' bindtap='enterClick'>开门</view>
<view wx:if="{{canOpen==false}}" class='footer-btn' bindtap='backClick'>返回</view>
</view>
<view class='container' wx:if="{{!venue.venueInit}}">
<rich-text class='info' nodes="{{venue.InitError}}"></rich-text>
</view>
<confirm-dialog title="{{'提示'}}" message="{{'确认开门'}}" bindcancelselect="cancelDialog" bindconfirmselect="confirmEnterDialog" wx:if="{{showDeleteDialog}}"></confirm-dialog>

View File

@@ -21,14 +21,20 @@
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": false,
"useApiHook": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.10.2",
@@ -39,15 +45,12 @@
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"plugin": {
"current": -1,
"list": []
},
"game": {
@@ -55,7 +58,6 @@
"list": []
},
"gamePlugin": {
"current": -1,
"list": []
}
}