|
@@ -148,6 +148,7 @@
|
|
|
posterSrc:'',
|
|
|
musicPlay:true,
|
|
|
indexBg:`${this.$commonConfig.staticUrl}/img/index-bg.png`,
|
|
|
+ scene:null,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -166,6 +167,7 @@
|
|
|
const scene = decodeURIComponent(page.scene);
|
|
|
if(scene&&scene!='undefined'){
|
|
|
console.log('index scene',scene);
|
|
|
+ this.scene = scene;
|
|
|
scene&&uni.setStorage({
|
|
|
key:'scene',
|
|
|
data:scene
|
|
@@ -239,9 +241,25 @@
|
|
|
this.isblur = false
|
|
|
}
|
|
|
},
|
|
|
- bookticket(item){
|
|
|
+ async bookticket(item){
|
|
|
+ let retailId = null;
|
|
|
+ try {
|
|
|
+ const res = await uni.getStorage({ key: 'retailId' });
|
|
|
+ retailId = res.data;
|
|
|
+ } catch (error) {
|
|
|
+
|
|
|
+ }
|
|
|
// console.log('bookticket',item);
|
|
|
- uni.$u.route('pages/ticketlist',{id:item.id})
|
|
|
+ if(retailId){
|
|
|
+ uni.$u.route('pages/ticketlist',{id:item.id})
|
|
|
+ }else{
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ // appId: 'wx2c348cf579062e56', // 美团小程序appId
|
|
|
+ shortLink: '#小程序://美团丨外卖团购特价美食酒店电影/VPWfvtLFajYiHei',
|
|
|
+ // path: item.url
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
openShare(){
|
|
|
this.shareShow = true;
|