diff --git a/pages/order/visitorderinfo.vue b/pages/order/visitorderinfo.vue
index 64bd069..2129940 100644
--- a/pages/order/visitorderinfo.vue
+++ b/pages/order/visitorderinfo.vue
@@ -9,73 +9,76 @@
- 参观日期:{{timeFormat(info.date, 'MM月DD日')}}
-
-
-
- 参观时段:{{info.time||""}}
+ 参观日期:{{timeFormat(info.date, 'MM月DD日')}}
+
+
+
+ 参观时段:{{info.time||""}}
参观人数:{{info.total||0}}
-
+
-
+
-
-
- 可扫“入馆码”入馆
-
-
-
- 入馆码:{{info.code}}-0
-
-
-
-
-
-
-
-
-
-
-
-
-
- 入馆码:{{info.code}}-{{item.code}}
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
- 可使用身份证
-
-
- 不可使用身份证
-
-
-
-
-
-
-
+
+ 可扫“入馆码”入馆
+
+
+
+
+ 入馆码:{{info.code}}-0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 入馆码:{{info.code}}-{{item.code}}
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+ 可凭二维码或者身份证入场馆
+
+
+ 可凭二维码入场馆
+
+
+
+
+
+
-
-
-
- 领队人:{{info.leader||""}}丨 {{info.mobile||""}}
- 联系方式:{{info.mobile||""}}
-
-
-
-
- 单位名称:{{info.unit||""}}
-
-
- 下单时间:{{info.created_at||""}}
-
+ -->
+
+
+
+ 领队人:{{info.leader||""}}丨 {{info.mobile||""}}
+ 联系方式:{{info.mobile||""}}
+
+
+
+
+ 单位名称:{{info.unit||""}}
+
+
+ 下单时间:{{info.created_at||""}}
+
@@ -121,7 +124,7 @@
参观须知
- {{info.type==1?vinfo.person_notice:vinfo.team_notice}}
+
@@ -133,57 +136,57 @@
data() {
return {
info: {},
- vinfo: {},
- detailsinfo:[],
- showview:false,
- timer:null,
- optionid:"",
- timer:null
+ vinfo: {},
+ detailsinfo: [],
+ showview: false,
+ timer: null,
+ optionid: "",
+ timer: null
}
},
onLoad(options) {
this.loadIntroduce();
- if (!this.util.isNull(options.id)) {
+ if (!this.util.isNull(options.id)) {
this.optionid = options.id
this.loadInfo(options.id);
}
- },
-
- onShow() {
- var that = this
- this.timer = setInterval(function(){
- that.loadInfo(that.optionid);
- },4000)
- },
-
- onHide() {
- clearInterval(this.timer)
- },
-
- onUnload() {
- clearInterval(this.timer)
- },
-
+ },
+
+ onShow() {
+ var that = this
+ this.timer = setInterval(function() {
+ that.loadInfo(that.optionid);
+ }, 4000)
+ },
+
+ onHide() {
+ clearInterval(this.timer)
+ },
+
+ onUnload() {
+ clearInterval(this.timer)
+ },
+
methods: {
- qrFun: function(text,qrcode) {
- var id = "qrcode";
- if(qrcode){
- id = qrcode
- }
- uQRCode.make({
- canvasId: id,
- componentInstance: this,
- text: text,
- size: 200,
- // margin: 10,
- backgroundColor: '#ffffff',
- foregroundColor: '#000000',
- fileType: 'jpg',
- errorCorrectLevel: uQRCode.errorCorrectLevel.H,
- success: res => {
-
- }
- })
+ qrFun: function(text, qrcode) {
+ var id = "qrcode";
+ if (qrcode) {
+ id = qrcode
+ }
+ uQRCode.make({
+ canvasId: id,
+ componentInstance: this,
+ text: text,
+ size: 200,
+ // margin: 10,
+ backgroundColor: '#ffffff',
+ foregroundColor: '#000000',
+ fileType: 'jpg',
+ errorCorrectLevel: uQRCode.errorCorrectLevel.H,
+ success: res => {
+
+ }
+ })
},
loadIntroduce() {
var that = this;
@@ -210,24 +213,24 @@
},
utilSuccess: function(res) {
that.info = res;
- that.detailsinfo = res.details;
- if(res.status!=1){
- clearInterval(that.timer)
- }
- if(res.type==1){
- that.qrFun(res.code+"-"+"0");
- setTimeout(function(){
- that.showview = true
- },500)
-
- }
- if(res.type==2){
- for(var i=0;i