centaline-data-driven 1.3.9 → 1.3.10
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 +1 -1
- package/src/centaline/dynamicDetail/src/dynamicAlbums.vue +103 -39
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +10 -20
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -28,26 +28,33 @@
|
|
|
28
28
|
></template>
|
|
29
29
|
</el-carousel>
|
|
30
30
|
|
|
31
|
-
<div
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@click="handleClick(index)"
|
|
31
|
+
<div
|
|
32
|
+
class="hous-img"
|
|
33
|
+
style="position: absolute; bottom: 0; z-index: 9"
|
|
34
|
+
v-if="newMediaAlbums.length > 1"
|
|
35
|
+
>
|
|
36
|
+
<div class="img-i">
|
|
37
|
+
<div class="slide-tabs tabs-3x">
|
|
38
|
+
<template v-for="(item, index) in newMediaAlbums">
|
|
39
|
+
<input
|
|
40
|
+
type="radio"
|
|
41
|
+
:id="'radio-' + index.toString()"
|
|
42
|
+
name="MediaAlbums"
|
|
43
|
+
:label="index"
|
|
44
|
+
:value="index"
|
|
45
|
+
:key="index + 1"
|
|
46
|
+
v-model="activeAlbumsIndex"
|
|
48
47
|
/>
|
|
49
|
-
<
|
|
50
|
-
|
|
48
|
+
<label
|
|
49
|
+
class="tab1"
|
|
50
|
+
:for="'radio-' + index.toString()"
|
|
51
|
+
:label="index"
|
|
52
|
+
:value="index"
|
|
53
|
+
@click="handleClick(index)"
|
|
54
|
+
>{{ item.albumName }}</label
|
|
55
|
+
>
|
|
56
|
+
</template>
|
|
57
|
+
<span class="glider"></span>
|
|
51
58
|
</div>
|
|
52
59
|
</div>
|
|
53
60
|
</div> </template
|
|
@@ -78,7 +85,7 @@ export default {
|
|
|
78
85
|
methods: {
|
|
79
86
|
init() {
|
|
80
87
|
var self = this;
|
|
81
|
-
this.newMediaAlbums =this.mediaAlbums || [];
|
|
88
|
+
this.newMediaAlbums = this.mediaAlbums || [];
|
|
82
89
|
this.albumsList = this.newMediaAlbums[0];
|
|
83
90
|
self.$forceUpdate();
|
|
84
91
|
},
|
|
@@ -175,36 +182,93 @@ export default {
|
|
|
175
182
|
.hous-img {
|
|
176
183
|
margin-top: 10px;
|
|
177
184
|
width: 100%;
|
|
185
|
+
text-align: center;
|
|
178
186
|
overflow-x: hidden;
|
|
179
187
|
overflow-y: hidden;
|
|
180
188
|
white-space: nowrap;
|
|
189
|
+
background-color: #fff;
|
|
190
|
+
opacity: 0.8;
|
|
181
191
|
.img-i {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
height: 44px;
|
|
192
|
+
width: auto;
|
|
193
|
+
height: 20px;
|
|
185
194
|
margin-right: 10px;
|
|
186
195
|
display: inline-block;
|
|
196
|
+
opacity: 0.8;
|
|
197
|
+
//background-color: rgba(0, 0, 0, 0.5);
|
|
198
|
+
-webkit-border-radius: 13px;
|
|
199
|
+
-moz-border-radius: 13px;
|
|
200
|
+
border-radius: 13px;
|
|
187
201
|
img {
|
|
188
202
|
width: 100%;
|
|
189
203
|
height: 100%;
|
|
190
204
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
height: 16px;
|
|
194
|
-
background: rgba(0, 0, 0, 0.5);
|
|
195
|
-
color: #fff;
|
|
196
|
-
position: absolute;
|
|
197
|
-
bottom: 0;
|
|
198
|
-
font-weight: Bold;
|
|
199
|
-
.img-icon {
|
|
200
|
-
width: 12px;
|
|
201
|
-
height: 12px;
|
|
202
|
-
margin: 0 5px;
|
|
203
|
-
margin: 0 5px;
|
|
204
|
-
vertical-align: -1.5px;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
205
|
+
|
|
206
|
+
|
|
207
207
|
}
|
|
208
|
+
|
|
209
|
+
.slide-tabs {
|
|
210
|
+
display: flex;
|
|
211
|
+
position: relative;
|
|
212
|
+
border: 1px solid #3d3d3d;
|
|
213
|
+
border-radius: 10px;
|
|
214
|
+
width: auto;
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
font-weight: Bold;
|
|
217
|
+
opacity:1;
|
|
218
|
+
background: rgb(24 24 24);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.slide-tabs * {
|
|
222
|
+
z-index: 2;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.slide-tabs input[type="radio"] {
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.slide-tabs .tab1 {
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
border-radius: 9px;
|
|
234
|
+
height: 18px;
|
|
235
|
+
font-size: 12px;
|
|
236
|
+
color: #fff;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.slide-tabs .glider {
|
|
241
|
+
display: flex;
|
|
242
|
+
position: absolute;
|
|
243
|
+
border-radius: 9px;
|
|
244
|
+
height: 18px;
|
|
245
|
+
background:#f73638;
|
|
246
|
+
z-index: 1;
|
|
247
|
+
transition: 0.25s ease-out;
|
|
248
|
+
}
|
|
249
|
+
/*降低 z-index */
|
|
250
|
+
|
|
251
|
+
.slide-tabs input[type="radio"]:checked + label {
|
|
252
|
+
color: #fff;
|
|
253
|
+
}
|
|
254
|
+
/*按需修改当前项颜色*/
|
|
255
|
+
.slide-tabs input[type="radio"]:nth-of-type(1):checked ~ .glider {
|
|
256
|
+
transform: translateX(0%);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.slide-tabs input[type="radio"]:nth-of-type(2):checked ~ .glider {
|
|
260
|
+
transform: translateX(100%);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.slide-tabs input[type="radio"]:nth-of-type(3):checked ~ .glider {
|
|
264
|
+
transform: translateX(200%);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.slide-tabs.tabs-3x .tab1,
|
|
268
|
+
.slide-tabs.tabs-3x .glider {
|
|
269
|
+
width: 50px;
|
|
270
|
+
}
|
|
208
271
|
}
|
|
209
272
|
}
|
|
273
|
+
|
|
210
274
|
</style>
|
|
@@ -983,38 +983,28 @@ export default {
|
|
|
983
983
|
clickNextHandler() {
|
|
984
984
|
let key = "chanceID";
|
|
985
985
|
if (this.parentModel && this.parentModel.$refs.table) {
|
|
986
|
-
let oldValue =
|
|
987
|
-
this.parentModel.$refs.table.model.listData[
|
|
988
|
-
this.parentModel.$refs.table.model.selectIndex
|
|
989
|
-
][key];
|
|
986
|
+
let oldValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
|
|
990
987
|
this.parentModel.$refs.table.rowKeyDownHandle(null, 1);
|
|
991
|
-
let newValue =
|
|
992
|
-
this.parentModel.$refs.table.model.listData[
|
|
993
|
-
this.parentModel.$refs.table.model.selectIndex
|
|
994
|
-
][key];
|
|
988
|
+
let newValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
|
|
995
989
|
if (oldValue !== newValue) {
|
|
996
|
-
let parm = this.apiParam;
|
|
990
|
+
let parm = this.$common.cloneObject(this.apiParam);
|
|
997
991
|
parm[key] = newValue;
|
|
998
|
-
this.loaderObj.Detail(this.api, parm, this.load);
|
|
992
|
+
// this.loaderObj.Detail(this.api, parm, this.load);
|
|
993
|
+
this.$common.getDataDrivenOpts().handler.refreshPropertyDetailRET(parm,this.parentModel);
|
|
999
994
|
}
|
|
1000
995
|
}
|
|
1001
996
|
},
|
|
1002
997
|
clickPrevHandler() {
|
|
1003
998
|
let key = "chanceID";
|
|
1004
999
|
if (this.parentModel && this.parentModel.$refs.table) {
|
|
1005
|
-
let oldValue =
|
|
1006
|
-
this.parentModel.$refs.table.model.listData[
|
|
1007
|
-
this.parentModel.$refs.table.model.selectIndex
|
|
1008
|
-
][key];
|
|
1000
|
+
let oldValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
|
|
1009
1001
|
this.parentModel.$refs.table.rowKeyDownHandle(null, -1);
|
|
1010
|
-
let newValue =
|
|
1011
|
-
this.parentModel.$refs.table.model.listData[
|
|
1012
|
-
this.parentModel.$refs.table.model.selectIndex
|
|
1013
|
-
][key];
|
|
1002
|
+
let newValue = this.parentModel.$refs.table.model.listData[this.parentModel.$refs.table.model.selectIndex][key];
|
|
1014
1003
|
if (oldValue !== newValue) {
|
|
1015
|
-
let parm = this.apiParam;
|
|
1004
|
+
let parm = this.$common.cloneObject(this.apiParam);
|
|
1016
1005
|
parm[key] = newValue;
|
|
1017
|
-
this.loaderObj.Detail(this.api, parm, this.load);
|
|
1006
|
+
// this.loaderObj.Detail(this.api, parm, this.load);
|
|
1007
|
+
this.$common.getDataDrivenOpts().handler.refreshPropertyDetailRET(parm,this.parentModel);
|
|
1018
1008
|
}
|
|
1019
1009
|
}
|
|
1020
1010
|
},
|