jufubao-movie 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -53,6 +53,7 @@
53
53
  <script>
54
54
 
55
55
  import XdSwiperDot from "./XdSwiperDot.vue";
56
+ import posterMixins from "@/mixins/posterMixins";
56
57
 
57
58
  export default {
58
59
  name: "XdPoster",
@@ -78,6 +79,7 @@ export default {
78
79
  default:''
79
80
  }
80
81
  },
82
+ mixins:[posterMixins],
81
83
  components: {
82
84
  XdSwiperDot
83
85
  },
@@ -87,64 +89,6 @@ export default {
87
89
  }
88
90
  },
89
91
  methods:{
90
- handlePosterClick(item,index){
91
- if(!item.redirect_data) {
92
- console.warn(`未配置链接地址: ${item.redirect_data}`);
93
- console.error(`未配置链接地址: ${item.redirect_data}`);
94
- return
95
- }
96
-
97
- //内部链接跳转地址
98
- if (item.redirect_type === 'INN') {
99
- try {
100
- let url = JSON.parse(item.redirect_data);
101
- let params = '';
102
- if(url.page) {
103
- if (item['redirect_params']) params = `?${item['redirect_params']}`;
104
- this.$xdUniHelper.navigateTo({url: url.page + params})
105
- }
106
- else {
107
- console.error(`应用链接配置错误: ${url.page}`)
108
- }
109
- } catch (e) {
110
- console.error(`应用链接配置错误: ${item.redirect_data}`)
111
- }
112
- }
113
-
114
- //外部链接
115
- if (item.redirect_type === 'URL') {
116
- let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
117
- let spReg = /(-apiuri\/v)/;
118
- //#ifdef MP-WEIXIN
119
- try {
120
- let url = JSON.parse(item.redirect_data);
121
- if (reg.test(url.url) || spReg.test(url.url)) {
122
- console.warn(`广告跳转外站: ${url.url}`)
123
- this.$xdUniHelper.navigateTo(url);
124
- } else {
125
- console.error(`广告跳转外站配置错误: ${url.url}`)
126
- }
127
- } catch (e) {
128
- console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
129
- }
130
- //#endif
131
- //#ifdef H5
132
- try {
133
- let url = JSON.parse(item.redirect_data);
134
- console.warn(`广告跳转外站: ${url.url}`);
135
- this.$xdUniHelper.redirectTo(url, false)
136
- } catch (e) {
137
- console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
138
- }
139
- //#endif
140
-
141
- }
142
-
143
- //无跳转地址
144
- if(item.redirect_type === 'EMP') {
145
- console.warn(`无跳转地址`);
146
- }
147
- },
148
92
 
149
93
  handleAnimationfinish(e){
150
94
  this.current = e.detail.current;