jufubao-base 1.0.234-beta1 → 1.0.234
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
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
></image>
|
|
288
288
|
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
289
289
|
</view>
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
<view v-if="info.codes[0].can_read_password" class="jfb-base-order-detail__body-cashier-password" @click="showPassword = true">
|
|
292
292
|
{{ showPassword ? info.codes[0].can_read_code : "查看" }}
|
|
293
293
|
</view>
|
|
@@ -801,7 +801,6 @@
|
|
|
801
801
|
</image>
|
|
802
802
|
</view>
|
|
803
803
|
</view>
|
|
804
|
-
<view v-if="dialogCode && dialogCode.tips" class="dialog_password"> {{ dialogCode.tips}}</view>
|
|
805
804
|
<view v-if="dialogPassword" class="dialog_password">{{ dialogPassword }}</view>
|
|
806
805
|
</xd-dailog>
|
|
807
806
|
</view>
|
|
@@ -863,7 +862,6 @@ export default {
|
|
|
863
862
|
|
|
864
863
|
showPassword: false,
|
|
865
864
|
dialogPassword: "",
|
|
866
|
-
dialogCode: null,
|
|
867
865
|
|
|
868
866
|
//基础
|
|
869
867
|
radius: 0,
|
|
@@ -1276,7 +1274,6 @@ export default {
|
|
|
1276
1274
|
this.showType = item.show_type;
|
|
1277
1275
|
this.logo = item.logo;
|
|
1278
1276
|
this.dialogPassword = item.can_read_code;
|
|
1279
|
-
this.dialogCode = item;
|
|
1280
1277
|
console.log(this.codeSrc, "this.codeSrc");
|
|
1281
1278
|
this.showCode = true;
|
|
1282
1279
|
},
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
</view>
|
|
30
30
|
</view>
|
|
31
31
|
<view class="sreen__box carousel" v-if="config['isCarousel'] === true">
|
|
32
|
+
|
|
32
33
|
<xd-swiper-dot
|
|
33
34
|
:current="current"
|
|
34
35
|
:info="list"
|
|
@@ -172,8 +173,10 @@
|
|
|
172
173
|
return parseInt(this.config.titleStyle.lineHeight)+'rpx'
|
|
173
174
|
},
|
|
174
175
|
notCarouselComp(){
|
|
176
|
+
let rowMaxHeight = this.height * this.config.row;
|
|
177
|
+
let trueDataHeight = Math.ceil(this.content.length/this.config.column) * this.height;
|
|
175
178
|
return {
|
|
176
|
-
height:
|
|
179
|
+
height: Math.min(rowMaxHeight, trueDataHeight) + 'px'
|
|
177
180
|
}
|
|
178
181
|
},
|
|
179
182
|
getIndexHeigth(){
|
|
@@ -181,18 +184,15 @@
|
|
|
181
184
|
return (this.config['mode'] === 'normal'?0:48) * this.$rpxNum;
|
|
182
185
|
},
|
|
183
186
|
getContHeight() {
|
|
184
|
-
|
|
185
|
-
|
|
187
|
+
//当只有一屏时候需要判断是否满屏
|
|
186
188
|
if(this.list.length === 1) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
let trueRow = Math.ceil(this.list[0].length/this.config.column);
|
|
190
|
+
return this.height * Math.min(this.config.row,trueRow);
|
|
189
191
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
return this.height * realRow;
|
|
193
|
-
}
|
|
194
|
-
return this.height * this.config['row'];
|
|
192
|
+
//多屏幕情况
|
|
193
|
+
return this.height * this.config.row;
|
|
195
194
|
},
|
|
195
|
+
|
|
196
196
|
boxHeight(){
|
|
197
197
|
return this.height + this.$rpxNum * this.text;
|
|
198
198
|
}
|
|
@@ -102,17 +102,16 @@
|
|
|
102
102
|
class="jfb-base-success__body-card jfb-base-success__body-cashier"
|
|
103
103
|
>
|
|
104
104
|
<view class="jfb-base-success__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<view v-if="info.codes[0].tips" class="jfb-base-success__body-cashier-text">{{ info.codes[0].tips }}</view>
|
|
105
|
+
<view style="position: relative">
|
|
106
|
+
<image
|
|
107
|
+
:style="{
|
|
108
|
+
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
109
|
+
width: info.codes[0].show_type === 'qrcode' ? '50vw' : '85vw',
|
|
110
|
+
}"
|
|
111
|
+
:src="info.codes[0].code_url"
|
|
112
|
+
></image>
|
|
113
|
+
<image v-if="info.codes[0].logo&&info.codes[0].show_type === 'qrcode'" class="logo-icon" :src="info.codes[0].logo"></image>
|
|
114
|
+
</view>
|
|
116
115
|
<view
|
|
117
116
|
v-if="info.codes[0].can_read_password"
|
|
118
117
|
class="jfb-base-success__body-cashier-password"
|
|
@@ -355,7 +354,6 @@
|
|
|
355
354
|
</image>
|
|
356
355
|
</view>
|
|
357
356
|
</view>
|
|
358
|
-
<view v-if="dialogCode && dialogCode.tips" class="jfb-base-success__body-d_password">{{ dialogCode.tips }}</view>
|
|
359
357
|
<view v-if="dialogPassword" class="jfb-base-success__body-d_password">
|
|
360
358
|
{{ dialogPassword }}
|
|
361
359
|
</view>
|
|
@@ -445,7 +443,6 @@ export default {
|
|
|
445
443
|
codeSrc: "",
|
|
446
444
|
logo: "",
|
|
447
445
|
dialogPassword: "",
|
|
448
|
-
dialogCode: null,
|
|
449
446
|
...styleForm.getDataItem(),
|
|
450
447
|
};
|
|
451
448
|
},
|
|
@@ -489,7 +486,6 @@ export default {
|
|
|
489
486
|
this.showType = item.show_type;
|
|
490
487
|
this.logo = item.logo;
|
|
491
488
|
this.dialogPassword = item.can_read_code;
|
|
492
|
-
this.dialogCode = item;
|
|
493
489
|
this.showCode = true;
|
|
494
490
|
},
|
|
495
491
|
/**
|