jufubao-movie 1.0.36-beta7 → 1.0.37

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.
@@ -1,164 +0,0 @@
1
- <template>
2
- <view class="content" @click="handleDetail(item)">
3
- <view
4
- class="image"
5
- :style="{marginRight: outSpacing + 'rpx',borderRadius:borderRadius+'rpx'}"
6
- >
7
- <image :src="item['poster']" :alt="item['show_name']"></image>
8
- </view>
9
- <view class="middle">
10
- <view class="name">{{item['show_name']}}</view>
11
- <view class="other">类型:{{item['type']}}</view>
12
- <view class="other">导演:{{item['director']}}</view>
13
- <view class="other">主演:{{item['leading_role']}}</view>
14
- </view>
15
- <view class="right">
16
- <view class="score">
17
- <template v-if="item['remark']">
18
- <text>评分:</text><text :style="{color:color}">{{item['remark']}}</text>
19
- </template>
20
- </view>
21
- <view class="btn">
22
- <template v-if="type === 'hot'">
23
- <xd-button
24
- v-if="item['show_button'] === '1'"
25
- type="primary"
26
- style="display:block;"
27
- size="small"
28
- @click.stop="handleBuy(item)">购票</xd-button>
29
- <xd-button
30
- v-else-if="item['show_button'] === '2'"
31
- type="subPrimary"
32
- style="display:block;"
33
- size="small"
34
- @click="handleBuy(item)">预售</xd-button>
35
- </template>
36
- <template v-if="type === 'rightnow'">
37
- <xd-button
38
- v-if="item['show_button'] === '3'"
39
- type="success"
40
- style="display:block;"
41
- size="small"
42
- @click.stop="handleDetail(item)"
43
- >想看</xd-button>
44
- <xd-button
45
- v-else-if="item['show_button'] === '2'"
46
- type="subPrimary"
47
- style="display:block;"
48
- size="small"
49
- @click.stop="handleBuy(item)">预售</xd-button>
50
- </template>
51
- </view>
52
- </view>
53
- </view>
54
- </template>
55
-
56
- <script>
57
- import XdButton from "@/components/XdButton/XdButton.vue";
58
- export default {
59
- name:'ContentItem',
60
- components:{
61
- XdButton
62
- },
63
- props:{
64
- item:Object,
65
- outSpacing: {
66
- type: Number|String,
67
- default: 20
68
- },
69
- color: {
70
- type: String,
71
- default: ''
72
- },
73
- type:{
74
- type: String,
75
- default: 'hot'
76
- },
77
- borderRadius:{
78
- type: String,
79
- default: '10'
80
- }
81
-
82
- },
83
- created() {
84
-
85
- },
86
- methods:{
87
- handleDetail(item){
88
- console.log('handleDetail.item',item,item.id);
89
- this.$emit('on-film-detail',item.id);
90
- },
91
- handleBuy(item){
92
- console.log('handleDetail.item',item,item.id);
93
- this.$emit('on-buy',item.id);
94
- }
95
- }
96
- }
97
- </script>
98
-
99
- <style scoped lang="less">
100
- .content {
101
- display: flex;
102
- justify-content: space-between;
103
- align-items: center;
104
-
105
- .image {
106
- width: 160rpx;
107
- height: 240rpx;
108
- flex-shrink: 0;
109
- overflow: hidden;
110
-
111
- & > image {
112
- width: 100%;
113
- height: 100%;
114
- }
115
- }
116
- .middle {
117
- flex: 1;
118
- & .name {
119
- font-size: 36rpx;
120
- font-weight: 600;
121
- margin-bottom: 20rpx;
122
- .uni-max-cut(2, 90);
123
- line-height: 45rpx;
124
- }
125
-
126
- & .other {
127
- font-size: 25rpx;
128
- color: #999;
129
- .uni-max-cut(1,36);
130
- line-height: 36rpx;
131
- margin-bottom: 10rpx;
132
- &:last-child {
133
- margin-bottom: 0!important;
134
- }
135
- }
136
- }
137
-
138
- .right {
139
- flex-shrink: 0;
140
- display: flex;
141
- align-content: space-between;
142
- align-items: flex-end;
143
- justify-content: flex-end;
144
- flex-flow: wrap;
145
- height: 100%;
146
- box-sizing: border-box;
147
- width: 160rpx;
148
-
149
- & .score {
150
- height: 40rpx;
151
- width:100%;
152
- text-align: right;
153
- & > text:nth-child(1) {
154
- font-size: 20rpx;
155
- }
156
- & > text:nth-child(2) {
157
- font-size: 28rpx;
158
- }
159
-
160
- }
161
-
162
- }
163
- }
164
- </style>
@@ -1,87 +0,0 @@
1
- <template>
2
- <view class="xd-query-filter">
3
- <view class="filter_wrap">
4
- <view v-for="item in list" @click.stop="onConfirm(item)" :key="item.area_code" class="filter_item">
5
- <view>{{item.area_name}}</view>
6
- <view v-if="item.area_code !== 'all'">{{item.cinema_count}}</view>
7
- </view>
8
- </view>
9
- </view>
10
- </template>
11
-
12
- <script>
13
- import XdButton from "@/components/XdButton/XdButton"
14
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon"
15
- export default {
16
- components: {
17
- XdButton,
18
- XdFontIcon
19
- },
20
- props: {
21
- list: {
22
- type: Array,
23
- default: function(){
24
- return []
25
- }
26
- },
27
- },
28
- data(){
29
- return {
30
- filter_tabs: []
31
- }
32
- },
33
- watch: {
34
- list(n, o){
35
-
36
- }
37
- },
38
-
39
- methods: {
40
- onConfirm(item){
41
- this.$emit("onConfirm", item);
42
- }
43
- }
44
- }
45
- </script>
46
-
47
- <style lang="less" scoped>
48
- .xd-query-filter {
49
- box-shadow: 0 5rpx 20rpx 0 rgba(0,0,0, .1);
50
- background: #fff;
51
- border-radius: 0 0 20rpx 20rpx;
52
- }
53
- .filter_wrap{
54
- min-height: 500rpx;
55
- max-height: 600rpx;
56
- overflow-y: auto;
57
-
58
- .filter_item {
59
- border-top: 6rpx dotted #F7F7F7;
60
- cursor: pointer;
61
- display: flex;
62
- justify-content: space-between;
63
- align-items: center;
64
- line-height: 80rpx;
65
- padding: 0 30rpx;
66
- font-size: 28rpx;
67
-
68
- &:first-child{
69
- border-top: 0;
70
- }
71
-
72
- & > view:nth-child(2) {
73
- text-align: center;
74
- font-size: 24rpx;
75
- background-color: #eee;
76
- color: #333;
77
- border-radius: 20rpx;
78
- height: 40rpx;
79
- line-height: 40rpx;
80
- padding: 0 10rpx;
81
- min-width: 30rpx;
82
- }
83
- }
84
-
85
-
86
- }
87
- </style>
@@ -1,149 +0,0 @@
1
- <template>
2
- <view class="xd-query-sort">
3
- <view v-for="item in sortList" :key="item.key" class="cell_wrap">
4
- <view class="cell_label">{{item.label}}</view>
5
- <view class="sub_value" v-if="item.children && item.children.length">
6
- <view class="sub_tag" :class="{active: (item.checked && sub.value == item.value)}"
7
- v-for="sub in item.children" :key="sub.value"
8
- @click="handleSubClick(item, sub.value)"
9
- >{{sub.label}}</view>
10
- </view>
11
- <view v-else :key="renderRadio">
12
- <xd-radio @change="e => handleChange(e, item)" size="mini" :value="item.checked"></xd-radio>
13
- </view>
14
- </view>
15
- </view>
16
- </template>
17
-
18
- <script>
19
- import XdRadio from "@/components/XdRadio/XdRadio"
20
- export default {
21
- components: {
22
- XdRadio
23
- },
24
- props: {
25
- list: {
26
- type: Array,
27
- default: () => {
28
- return [
29
- {
30
- label: "综合",
31
- key: "default",
32
- value: "default"
33
- },
34
- {
35
- label: "销量",
36
- key: "sale_num",
37
- children: [
38
- {label: "由高到低", value: 'sale_num_desc'},
39
- {label: "由低到高", value: 'sale_num_asc'}
40
- ]
41
- },
42
- {
43
- label: "价格",
44
- key: "price",
45
- children: [
46
- {label: "由高到低", value: 'price_desc'},
47
- {label: "由低到高", value: 'price_asc'}
48
- ]
49
- }
50
- ]
51
- }
52
- },
53
- sort: {
54
- type: String,
55
- default: "default"
56
- }
57
- },
58
- watch: {
59
- sortList(n){
60
- this.renderRadio = Date.now();
61
- let cur = this.sortList.find(item => item.checked);
62
- if(cur) this.$emit("onConfirm", cur)
63
- }
64
- },
65
- data(){
66
- return {
67
- sortList: [],
68
- renderRadio: "renderRadio"
69
- }
70
- },
71
- created(){
72
- this.sortList = this.list.map(item => {
73
- if(this.sort.startsWith(item.key)) {
74
- item.checked = true;
75
- item.value = this.sort;
76
- }else{
77
- item.value = "";
78
- item.checked = false;
79
- }
80
- return item;
81
- });
82
- },
83
- methods: {
84
- handleSubClick(item, value){
85
- this.sortList = this.sortList.map(tt => {
86
- tt['checked'] = false;
87
- if(tt.key == item.key){
88
- tt.value = value;
89
- tt['checked'] = true;
90
- }
91
- return tt;
92
- })
93
- },
94
- handleChange(flat, item){
95
- if(flat) {
96
- this.sortList = this.sortList.map(tt => {
97
- tt['checked'] = false;
98
- if(tt.key == item.key){
99
- tt['checked'] = true;
100
- tt['value'] = tt.key;
101
- }
102
- return tt;
103
- })
104
- }
105
- }
106
- }
107
- }
108
- </script>
109
-
110
- <style lang="less" scoped>
111
- .xd-query-sort{
112
- box-shadow: 0 5rpx 20rpx 0 rgba(0,0,0, .1);
113
- background: #fff;
114
- border-radius: 0 0 20rpx 20rpx;
115
- }
116
-
117
- .cell_wrap{
118
- display: flex;
119
- align-items: center;
120
- justify-content: space-between;
121
- border-bottom: 1px solid #F5F5F5;
122
- padding: 20rpx 48rpx 20rpx 88rpx;
123
- &:last-child {
124
- border-bottom:0;
125
- }
126
- .cell_label{
127
- font-size: 28rpx;
128
- color: #333333;
129
- }
130
- .sub_value{
131
- display: flex;
132
- .sub_tag{
133
- font-size: 24rpx;
134
- color: #AAAAAA;
135
- border: 1px solid #F2F2F2;
136
- line-height: 60rpx;
137
- width: 160rpx;
138
- text-align: center;
139
- border-radius: 80rpx;
140
- margin-left: 24rpx;
141
-
142
- &.active{
143
- color: #A5D63F;
144
- border-color: #A5D63F;
145
- }
146
- }
147
- }
148
- }
149
- </style>
@@ -1,234 +0,0 @@
1
- <template>
2
- <view class="uni-swiper__warp">
3
- <slot />
4
- <view v-if="mode === 'default'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='default'>
5
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
6
- 'width': (index === current? dots.width*1.7: dots.width ) + 'px','height':dots.width*(2/5) +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border-radius':'0px'}"
7
- :key="index" class="uni-swiper__dots-item uni-swiper__dots-bar" />
8
- </view>
9
- <view v-if="mode === 'dot'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='dot'>
10
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
11
- 'width': dots.width + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
12
- :key="index" class="uni-swiper__dots-item" />
13
- </view>
14
- <view v-if="mode === 'round'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='round'>
15
- <view v-for="(item,index) in info" @click="clickItem(index)" :class="[index === current&&'uni-swiper__dots-long']" :style="{
16
- 'width':(index === current? dots.width*3:dots.width ) + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
17
- :key="index" class="uni-swiper__dots-item " />
18
- </view>
19
- <view v-if="mode === 'nav'" key='nav' :style="{'background-color':dotsStyles.backgroundColor,'bottom':'0'}" class="uni-swiper__dots-box uni-swiper__dots-nav">
20
- <text :style="{'color':dotsStyles.color}" class="uni-swiper__dots-nav-item">{{ (current+1)+"/"+info.length }}</text>
21
- </view>
22
- <view v-if="mode === 'indexes'" key='indexes' :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box">
23
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
24
- 'width':dots.width + 'rpx','height':dots.height +'rpx' ,'color':index === current?dots.selectedColor:dots.color,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
25
- :key="index" class="uni-swiper__dots-item uni-swiper__dots-indexes"><text class="uni-swiper__dots-indexes-text">{{ index+1 }}</text></view>
26
- </view>
27
- </view>
28
- </template>
29
-
30
- <script>
31
-
32
- /**
33
- * XdSwiperDot 轮播图指示点
34
- * @description 自定义轮播图指示点
35
- * @tutorial https://ext.dcloud.net.cn/plugin?id=284
36
- * @property {Number} current 当前指示点索引,必须是通过 `swiper` 的 `change` 事件获取到的 `e.detail.current`
37
- * @property {String} mode = [default|round|nav|indexes] 指示点的类型
38
- * @value defualt 默认指示点
39
- * @value round 圆形指示点
40
- * @value nav 条形指示点
41
- * @value indexes 索引指示点
42
- * @property {String} field mode 为 nav 时,显示的内容字段(mode = nav 时必填)
43
- * @property {String} info 轮播图的数据,通过数组长度决定指示点个数
44
- * @property {Object} dotsStyles 指示点样式
45
- * @event {Function} clickItem 组件触发点击事件时触发,e={currentIndex}
46
- */
47
-
48
- export default {
49
- name: 'XdSwiperDot',
50
- emits:['clickItem'],
51
- props: {
52
- info: {
53
- type: Array,
54
- default () {
55
- return []
56
- }
57
- },
58
- current: {
59
- type: Number,
60
- default: 0
61
- },
62
- dotsStyles: {
63
- type: Object,
64
- default () {
65
- return {}
66
- }
67
- },
68
- // 类型 :default(默认) indexes long nav
69
- mode: {
70
- type: String,
71
- default: 'default'
72
- },
73
- // 只在 nav 模式下生效,变量名称
74
- field: {
75
- type: String,
76
- default: ''
77
- }
78
- },
79
- data() {
80
- return {
81
- dotsSource: {
82
- width: 8,
83
- height: 8,
84
- bottom: 7,
85
- color: '#fff',
86
- backgroundColor: 'rgba(0, 0, 0, .3)',
87
- border: '1px rgba(0, 0, 0, .3) solid',
88
- selectedBackgroundColor: '#333',
89
- selectedBorder: '1px rgba(0, 0, 0, .9) solid'
90
- },
91
- dots: { }
92
- }
93
- },
94
- watch: {
95
- dotsStyles(newVal) {
96
- this.init(newVal)
97
- },
98
- mode() {
99
- this.init(this.dotsStyles)
100
- }
101
-
102
- },
103
- created() {
104
- this.init(this.dotsStyles)
105
- },
106
- methods: {
107
- clickItem(index) {
108
- this.$emit('clickItem', index)
109
- },
110
-
111
- init(value){
112
- let dot = {};
113
- if (this.mode === 'indexes') {
114
- dot = {
115
- width: 34,
116
- height: 34,
117
- }
118
- }
119
- this.dots = Object.assign(
120
- JSON.parse(JSON.stringify(this.dotsSource)),
121
- JSON.parse(JSON.stringify(value)),
122
- dot
123
- )
124
- }
125
-
126
- }
127
- }
128
- </script>
129
-
130
- <style lang="scss" scoped>
131
- .uni-swiper__warp {
132
- /* #ifndef APP-NVUE */
133
- display: flex;
134
- /* #endif */
135
- flex: 1;
136
- flex-direction: column;
137
- position: relative;
138
- overflow: hidden;
139
- }
140
-
141
- .uni-swiper__dots-box {
142
- position: absolute;
143
- bottom: 10px;
144
- left: 0;
145
- right: 0;
146
- /* #ifndef APP-NVUE */
147
- display: flex;
148
- /* #endif */
149
- flex: 1;
150
- flex-direction: row;
151
- justify-content: center;
152
- align-items: center;
153
- }
154
-
155
- .uni-swiper__dots-item {
156
- width: 8px;
157
- border-radius: 100px;
158
- margin-left: 6px;
159
- background-color: $uni-bg-color-mask;
160
- /* #ifndef APP-NVUE */
161
- cursor: pointer;
162
- /* #endif */
163
- /* #ifdef H5 */
164
- // border-width: 5px 0;
165
- // border-style: solid;
166
- // border-color: transparent;
167
- // background-clip: padding-box;
168
- /* #endif */
169
- // transition: width 0.2s linear; 不要取消注释,不然会不能变色
170
- }
171
-
172
- .uni-swiper__dots-item:first-child {
173
- margin: 0;
174
- }
175
-
176
- .uni-swiper__dots-default {
177
- border-radius: 100px;
178
- }
179
-
180
- .uni-swiper__dots-long {
181
- border-radius: 50px;
182
- }
183
-
184
- .uni-swiper__dots-bar {
185
- border-radius: 50px;
186
- }
187
-
188
- .uni-swiper__dots-nav {
189
- bottom: 20rpx!important;
190
- height: 38rpx;
191
- line-height: 38rpx;
192
- position: absolute;
193
- right: 0;
194
- left: initial;
195
- /* #ifndef APP-NVUE */
196
- display: flex;
197
- /* #endif */
198
- flex: 1;
199
- flex-direction: row;
200
- justify-content: flex-start;
201
- align-items: center;
202
- background-color: rgba(0, 0, 0, 0.5);
203
- border-radius: 6rpx 0 0 6rpx;
204
-
205
- & > text {
206
- font-size: 20rpx;
207
- padding: 0 10px!important;
208
- margin: 0;
209
- text-align: center;
210
- }
211
- }
212
-
213
- .uni-swiper__dots-nav-item {
214
- /* overflow: hidden;
215
- text-overflow: ellipsis;
216
- white-space: nowrap; */
217
- font-size: $uni-font-size-base;
218
- color: #fff;
219
- margin: 0 15px;
220
- }
221
-
222
- .uni-swiper__dots-indexes {
223
- /* #ifndef APP-NVUE */
224
- display: flex;
225
- /* #endif */
226
- // flex: 1;
227
- justify-content: center;
228
- align-items: center;
229
- }
230
-
231
- .uni-swiper__dots-indexes-text {
232
- font-size: $uni-font-size-sm;
233
- }
234
- </style>