jufubao-movie 1.0.43 → 1.0.44-beta1
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
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
<view class="xd-seat__footer-tick" v-if="getSelectedNames.length > 0">
|
|
118
118
|
<view
|
|
119
119
|
:style="{ borderColor: styleMainColor, color: styleMainColor }"
|
|
120
|
-
v-for="(name
|
|
121
|
-
:key="
|
|
122
|
-
>{{ name }}</view>
|
|
120
|
+
v-for="(name) in getSelectedNames"
|
|
121
|
+
:key="name.value"
|
|
122
|
+
>{{ name.label }}</view>
|
|
123
123
|
</view>
|
|
124
124
|
<view class="xd-seat__footer-phone">
|
|
125
125
|
<view>手机号:</view>
|
|
@@ -344,10 +344,19 @@ export default {
|
|
|
344
344
|
getSelectedNames() {
|
|
345
345
|
if (this.userSelectedSeatInfo === null) return [];
|
|
346
346
|
if (this.userSelectedSeatInfo["seatSelected"].length === 0) return [];
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
console.log('seatSelected',JSON.stringify(this.userSelectedSeatInfo["seatSelected"].map(item=>{
|
|
348
|
+
return {
|
|
349
|
+
label: item.name,
|
|
350
|
+
value: item.id + item.row + item.column,
|
|
351
|
+
}
|
|
352
|
+
})));
|
|
353
|
+
return this.userSelectedSeatInfo["seatSelected"].map(item=>{
|
|
354
|
+
return {
|
|
355
|
+
label: item.name,
|
|
356
|
+
value: item.id + item.row + item.column,
|
|
357
|
+
}
|
|
358
|
+
})
|
|
359
|
+
|
|
351
360
|
},
|
|
352
361
|
},
|
|
353
362
|
|
|
@@ -1115,7 +1115,6 @@
|
|
|
1115
1115
|
* @param posCol
|
|
1116
1116
|
*/
|
|
1117
1117
|
handleChooseSeat: function (ev, item, posRow, posCol) {
|
|
1118
|
-
|
|
1119
1118
|
//如果是不可选,直接返回
|
|
1120
1119
|
if (item['type'] === 1 || item['type'] === -1) return;
|
|
1121
1120
|
|
|
@@ -1127,17 +1126,20 @@
|
|
|
1127
1126
|
return;
|
|
1128
1127
|
}
|
|
1129
1128
|
|
|
1130
|
-
|
|
1129
|
+
//当前选中的单座已经选中了3个,在选择情侣座控制
|
|
1130
|
+
if ((item['type'] === 0 || item['type']=== 3) && this.seatSelected.length === 3) {
|
|
1131
|
+
if(item.lovely === 'LL' || item.lovely === 'LR') {
|
|
1132
|
+
this.seatTips();
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1131
1136
|
|
|
1132
1137
|
//选择当前行数据
|
|
1133
1138
|
let row = this.$xdUniHelper.cloneDeep(this.seatArray[posRow]);
|
|
1134
|
-
console.log(item, posRow, posCol, item['type']);
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
1139
|
|
|
1138
1140
|
//取消选择中操作
|
|
1139
1141
|
if (item['type'] === 2) {
|
|
1140
|
-
console.log('取消选择中操作', item['type']);
|
|
1142
|
+
console.log('取消选择中操作', item['type'],item.name , item.id);
|
|
1141
1143
|
item['type'] = 0;
|
|
1142
1144
|
item['typeStatus'] = 'use';
|
|
1143
1145
|
|
|
@@ -1164,7 +1166,7 @@
|
|
|
1164
1166
|
|
|
1165
1167
|
//选择中操作
|
|
1166
1168
|
else if (item['type'] === 0 || item['type'] === 3) {
|
|
1167
|
-
console.log('选择中操作', item['type'], item.name);
|
|
1169
|
+
console.log('选择中操作', item['type'], item.name , item.id);
|
|
1168
1170
|
item['type'] = 2;
|
|
1169
1171
|
item['typeStatus'] = 'selected';
|
|
1170
1172
|
this.selectSeat(item, '+');
|