jufubao-mall 2.0.44-beta2 → 2.0.44-beta4
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
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
</view>
|
|
67
67
|
<view class="shop_addr">
|
|
68
68
|
<view class="addr_foot">
|
|
69
|
-
<view id="textRef">{{shopInfo.brand_about}}
|
|
69
|
+
<view id="textRef" class="textRef">{{shopInfo.brand_about}}
|
|
70
70
|
</view>
|
|
71
|
-
<view id="textRefHidden">{{shopInfo.brand_about}}
|
|
71
|
+
<view id="textRefHidden" class="textRefHidden">{{shopInfo.brand_about}}
|
|
72
72
|
</view>
|
|
73
73
|
<view v-if="isTextOverflow" class="addr_more" @click="handleShowBrandDetail">品牌详情<xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon> </view>
|
|
74
74
|
</view>
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
</view>
|
|
134
134
|
<!-- 二维码 -->
|
|
135
135
|
<view class="qrcode_box" v-if="shopInfo&&shopInfo.show_qrcode&&!is_plus_site&&showTake==='Y'">
|
|
136
|
-
<qrcode-show :show_qrcode="shopInfo.show_qrcode" :shop_id="shopInfo.shop_id" :layoutInfo="layoutInfo"></qrcode-show>
|
|
136
|
+
<qrcode-show :show_qrcode="shopInfo.show_qrcode" :shop_id="shopInfo.shop_id" :layoutInfo="layoutInfo" :xnamespace="xnamespace" :brandLogo="brandLogo" :successPath="successPath"></qrcode-show>
|
|
137
137
|
</view>
|
|
138
138
|
<!-- 二维码 -->
|
|
139
139
|
<view v-if="isShowCodeProduct && productList.length" class="code_product_wrap">
|
|
@@ -201,8 +201,6 @@
|
|
|
201
201
|
<template>
|
|
202
202
|
<view class="brand_detail_box">
|
|
203
203
|
{{shopInfo.brand_about}}
|
|
204
|
-
福司令渠道门店品牌描述内容福司令渠道门店品牌描述内容
|
|
205
|
-
福司令渠道门店品牌描述品牌描述描述福司令渠道门店品牌描述品牌描述描述福司令渠道门店品牌描述品牌描述描述
|
|
206
204
|
</view>
|
|
207
205
|
</template>
|
|
208
206
|
</xd-down-drawer>
|
|
@@ -227,6 +225,10 @@
|
|
|
227
225
|
import { mapState } from 'vuex';
|
|
228
226
|
import Color from 'color'
|
|
229
227
|
export default {
|
|
228
|
+
// #ifdef MP-WEIXIN
|
|
229
|
+
options: { styleIsolation: 'shared' },
|
|
230
|
+
// #endif
|
|
231
|
+
|
|
230
232
|
name: "JfbMallShop",
|
|
231
233
|
components: {
|
|
232
234
|
XdFontIcon,
|
|
@@ -318,6 +320,8 @@
|
|
|
318
320
|
differ: "",
|
|
319
321
|
isTextOverflow:false,
|
|
320
322
|
showBrandDetailDialog:false,
|
|
323
|
+
brandLogo:'',
|
|
324
|
+
successPath:'',
|
|
321
325
|
}
|
|
322
326
|
},
|
|
323
327
|
watch: {
|
|
@@ -456,6 +460,16 @@
|
|
|
456
460
|
},
|
|
457
461
|
methods: {
|
|
458
462
|
onJfbLoad(options) {
|
|
463
|
+
if (options["x-params"]) {
|
|
464
|
+
try {
|
|
465
|
+
let params = JSON.parse(Base64.decode(options["x-params"]));
|
|
466
|
+
console.log(params, 'params')
|
|
467
|
+
this.brandLogo = params["qrcode_logo"];
|
|
468
|
+
|
|
469
|
+
} catch (e) {
|
|
470
|
+
console.warn(options["x-params"]);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
459
473
|
this.options = options;
|
|
460
474
|
//设置业务请求代码
|
|
461
475
|
this.setNameSpace(options);
|
|
@@ -474,6 +488,7 @@
|
|
|
474
488
|
if(this.$configProject.isPreview) urlParams['brand_id'] = 'test1';
|
|
475
489
|
|
|
476
490
|
this.uiBaiduAk = this.baiduAk || this.$settings.baiduAk;
|
|
491
|
+
console.log(this.xnamespace,'xnamespace')
|
|
477
492
|
let params = {
|
|
478
493
|
...urlParams,
|
|
479
494
|
city_code: this.stateCity.city_code,
|
|
@@ -503,8 +518,8 @@
|
|
|
503
518
|
this.shopInfo = shopInfo;
|
|
504
519
|
this.mapCenter = {lng: shopInfo.longitude, lat: shopInfo.latitude}
|
|
505
520
|
this.initBaidu = true;
|
|
506
|
-
this.checkTextOverflow();
|
|
507
521
|
this.$nextTick(() => {
|
|
522
|
+
this.checkTextOverflow();
|
|
508
523
|
if(this.isShowCodeProduct){
|
|
509
524
|
this.p_getProductList();
|
|
510
525
|
}
|
|
@@ -591,7 +606,7 @@
|
|
|
591
606
|
this.showDiscount = gCPVal(container, 'showDiscount', 'Y');
|
|
592
607
|
this.isAddCart = gCPVal(container, 'isAddCart', 'Y');
|
|
593
608
|
this.differ = gCPVal(container, 'differ', 1);
|
|
594
|
-
|
|
609
|
+
this.successPath = getContainerPropsValue(container, 'content.successPath', {value: ""}).value;
|
|
595
610
|
console.log("cartStyle", this.cartName, this.cartStyle);
|
|
596
611
|
|
|
597
612
|
console.log("itemBgcColoStyle", itemBgcColoStyle);
|
|
@@ -639,14 +654,14 @@
|
|
|
639
654
|
|
|
640
655
|
// 获取元素位置信息
|
|
641
656
|
query.select('#textRef').fields({
|
|
657
|
+
rect: true,
|
|
642
658
|
size: true,
|
|
643
|
-
scrollOffset: true
|
|
644
659
|
}, (res) => {
|
|
645
660
|
if (!res) return;
|
|
646
661
|
const hiddenQuery = uni.createSelectorQuery().in(this)
|
|
647
662
|
hiddenQuery.select('#textRefHidden').fields({
|
|
663
|
+
rect: true,
|
|
648
664
|
size: true,
|
|
649
|
-
scrollOffset: true
|
|
650
665
|
}, (hiddenRes) => {
|
|
651
666
|
if (!hiddenRes) return;
|
|
652
667
|
console.log('元素尺寸:', res);
|
|
@@ -832,7 +847,7 @@
|
|
|
832
847
|
margin-top: 20rpx;
|
|
833
848
|
position: relative;
|
|
834
849
|
}
|
|
835
|
-
|
|
850
|
+
.textRef{
|
|
836
851
|
display: -webkit-box;
|
|
837
852
|
-webkit-box-orient: vertical;
|
|
838
853
|
-webkit-line-clamp: 3;
|
|
@@ -840,7 +855,7 @@
|
|
|
840
855
|
line-height: 40rpx;
|
|
841
856
|
width: 100%;
|
|
842
857
|
}
|
|
843
|
-
|
|
858
|
+
.textRefHidden{
|
|
844
859
|
position: absolute;
|
|
845
860
|
top: 0;
|
|
846
861
|
left: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="body-qrcode">
|
|
3
|
-
<show-qp v-if="show_qrcode==='QP'" :shop_id="shop_id" :layoutInfo="layoutInfo"></show-qp>
|
|
4
|
-
<show-card v-if="show_qrcode==='CARD'" :shop_id="shop_id" :layoutInfo="layoutInfo"></show-card>
|
|
3
|
+
<show-qp v-if="show_qrcode==='QP'" :shop_id="shop_id" :layoutInfo="layoutInfo" :xnamespace="xnamespace" :successPath="successPath"></show-qp>
|
|
4
|
+
<show-card v-if="show_qrcode==='CARD'" :shop_id="shop_id" :layoutInfo="layoutInfo" :xnamespace="xnamespace" :brandLogo="brandLogo"></show-card>
|
|
5
5
|
</view>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
type:Boolean,
|
|
22
22
|
default: false
|
|
23
23
|
},
|
|
24
|
+
brandLogo: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ''
|
|
27
|
+
},
|
|
24
28
|
show_qrcode: {
|
|
25
29
|
type: String,
|
|
26
30
|
default: ''
|
|
@@ -33,6 +37,14 @@
|
|
|
33
37
|
type: Object,
|
|
34
38
|
default: () => {}
|
|
35
39
|
},
|
|
40
|
+
xnamespace:{
|
|
41
|
+
type: String,
|
|
42
|
+
default: ''
|
|
43
|
+
},
|
|
44
|
+
successPath: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ''
|
|
47
|
+
}
|
|
36
48
|
},
|
|
37
49
|
data(){
|
|
38
50
|
return {
|
|
@@ -44,7 +56,7 @@
|
|
|
44
56
|
}
|
|
45
57
|
},
|
|
46
58
|
created() {
|
|
47
|
-
console.log(this.layoutInfo,'layoutInfo')
|
|
59
|
+
console.log(this.layoutInfo,this.brandLogo,'layoutInfo')
|
|
48
60
|
},
|
|
49
61
|
methods:{
|
|
50
62
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:style="{width: '280rpx', height: '280rpx'}"
|
|
13
13
|
:src="info.card_qrcode"
|
|
14
14
|
></image>
|
|
15
|
-
|
|
15
|
+
<image v-if="isBrandLogo" class="logo-icon" :src="brandLogoReal"></image>
|
|
16
16
|
</view>
|
|
17
17
|
<view style="display:flex;align-items: center;justify-content: center;z-index: 111;position: relative;">
|
|
18
18
|
<view v-if="timeStr">{{ timeStr }}后自动刷新</view>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</view>
|
|
45
45
|
<view class="qrcode_choose" @click="handleChooseCard">
|
|
46
46
|
<view class="qrcode_choose_name"><xd-font-icon style="margin-right: 24rpx;" size="32" icon="iconpiao"></xd-font-icon>{{card_name}}</view>
|
|
47
|
-
<view><xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon></view>
|
|
47
|
+
<view class="qrcode_choose_icon"><xd-font-icon style="margin-left: 4rpx;" size="22" icon="iconxiangyou_xian"></xd-font-icon></view>
|
|
48
48
|
</view>
|
|
49
49
|
<xd-down-drawer
|
|
50
50
|
:show.sync="showCardDialog"
|
|
@@ -127,7 +127,15 @@
|
|
|
127
127
|
width="670rpx"
|
|
128
128
|
type="primary"
|
|
129
129
|
radius="40rpx"
|
|
130
|
-
|
|
130
|
+
v-if="checkedCards.length"
|
|
131
|
+
@click="handleChooseConfirm"
|
|
132
|
+
>确定</xd-button>
|
|
133
|
+
<xd-button
|
|
134
|
+
width="670rpx"
|
|
135
|
+
type="primary"
|
|
136
|
+
radius="40rpx"
|
|
137
|
+
v-else
|
|
138
|
+
:disabled="true"
|
|
131
139
|
@click="handleChooseConfirm"
|
|
132
140
|
>确定</xd-button>
|
|
133
141
|
</view>
|
|
@@ -160,10 +168,6 @@
|
|
|
160
168
|
XdButton,
|
|
161
169
|
},
|
|
162
170
|
props:{
|
|
163
|
-
isBrandLogo: {
|
|
164
|
-
type:Boolean,
|
|
165
|
-
default: false
|
|
166
|
-
},
|
|
167
171
|
shop_id: {
|
|
168
172
|
type: Number,
|
|
169
173
|
default: null
|
|
@@ -172,6 +176,10 @@
|
|
|
172
176
|
type: Object,
|
|
173
177
|
default: () => {}
|
|
174
178
|
},
|
|
179
|
+
brandLogo:{
|
|
180
|
+
type: String,
|
|
181
|
+
default: ''
|
|
182
|
+
},
|
|
175
183
|
},
|
|
176
184
|
computed:{
|
|
177
185
|
activityType(){
|
|
@@ -190,6 +198,13 @@
|
|
|
190
198
|
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
191
199
|
if (this.$configProject['isPreview']) this.init(value)
|
|
192
200
|
},
|
|
201
|
+
showCardDialog(val){
|
|
202
|
+
if(!val){
|
|
203
|
+
this.checkedCards=[];
|
|
204
|
+
this.chooseData=[];
|
|
205
|
+
this.card_name='请选择票券';
|
|
206
|
+
}
|
|
207
|
+
}
|
|
193
208
|
},
|
|
194
209
|
data(){
|
|
195
210
|
return {
|
|
@@ -218,6 +233,13 @@
|
|
|
218
233
|
activeIndex:0,
|
|
219
234
|
card_number:'',
|
|
220
235
|
successPath:'',
|
|
236
|
+
isBrandLogo:false,
|
|
237
|
+
//#ifdef H5
|
|
238
|
+
brandLogoReal:'//img.jufubao.cn/common/jufubao_logo.png?v=1.0.0',
|
|
239
|
+
//#endif
|
|
240
|
+
//#ifdef MP-WEIXIN
|
|
241
|
+
brandLogoReal:'https://img.jufubao.cn/common/jufubao_logo.png?v=1.0.0',
|
|
242
|
+
//#endif
|
|
221
243
|
}
|
|
222
244
|
},
|
|
223
245
|
created() {
|
|
@@ -225,6 +247,13 @@
|
|
|
225
247
|
this.getCardList('');
|
|
226
248
|
}
|
|
227
249
|
},
|
|
250
|
+
mounted(){
|
|
251
|
+
console.log(this.brandLogo,'brandLogo')
|
|
252
|
+
if(this.brandLogo){
|
|
253
|
+
//品牌logo
|
|
254
|
+
this.brandLogoReal = this.brandLogo;
|
|
255
|
+
}
|
|
256
|
+
},
|
|
228
257
|
beforeDestroy(){
|
|
229
258
|
this.timeStr = ""
|
|
230
259
|
if (this.timeer) {
|
|
@@ -317,6 +346,10 @@
|
|
|
317
346
|
if (res && res.card_point) {
|
|
318
347
|
res["other_card_point"] = this.$xdUniHelper.divisionFloatNumber(res.other_card_point, 100);
|
|
319
348
|
}
|
|
349
|
+
//显示按钮
|
|
350
|
+
if (res["is_show_qrcode_logo"] === "Y") {
|
|
351
|
+
this.isBrandLogo = true;
|
|
352
|
+
}
|
|
320
353
|
this.info = res;
|
|
321
354
|
this.card_name = '已选卡号'+res.card_number;
|
|
322
355
|
this.showCardDialog = false;
|
|
@@ -511,6 +544,11 @@
|
|
|
511
544
|
display: flex;
|
|
512
545
|
justify-content: flex-start;
|
|
513
546
|
}
|
|
547
|
+
&_icon{
|
|
548
|
+
display: flex;
|
|
549
|
+
justify-content: center;
|
|
550
|
+
align-items: center;
|
|
551
|
+
}
|
|
514
552
|
}
|
|
515
553
|
.ticket_title{
|
|
516
554
|
line-height: 100rpx;
|
|
@@ -595,6 +633,14 @@
|
|
|
595
633
|
line-height: 72rpx;
|
|
596
634
|
}
|
|
597
635
|
}
|
|
636
|
+
.logo-icon {
|
|
637
|
+
width: unit(80, rpx) !important;
|
|
638
|
+
height: unit(80, rpx) !important;
|
|
639
|
+
position: absolute;
|
|
640
|
+
top: 50%;
|
|
641
|
+
left: 50%;
|
|
642
|
+
transform: translate(-50rpx, -50rpx);
|
|
643
|
+
}
|
|
598
644
|
}
|
|
599
645
|
::v-deep .xd-up-drawer{
|
|
600
646
|
z-index: 9999!important;
|
|
@@ -121,14 +121,12 @@
|
|
|
121
121
|
hasCreateOrder: false,
|
|
122
122
|
payChannels: [],
|
|
123
123
|
channel_provider_id: "",
|
|
124
|
-
xnamespace: "",
|
|
125
124
|
|
|
126
125
|
paySortList: [],
|
|
127
126
|
tempList: [],
|
|
128
127
|
temp_order_id: "",
|
|
129
128
|
request_order_id: "",
|
|
130
129
|
//todo
|
|
131
|
-
successPath: '',
|
|
132
130
|
}
|
|
133
131
|
},
|
|
134
132
|
props:{
|
|
@@ -140,6 +138,14 @@
|
|
|
140
138
|
type: Object,
|
|
141
139
|
default: () => {}
|
|
142
140
|
},
|
|
141
|
+
xnamespace:{
|
|
142
|
+
type: String,
|
|
143
|
+
default: ""
|
|
144
|
+
},
|
|
145
|
+
successPath:{
|
|
146
|
+
type:String,
|
|
147
|
+
default:""
|
|
148
|
+
}
|
|
143
149
|
},
|
|
144
150
|
computed: {
|
|
145
151
|
...mapState({
|
|
@@ -165,13 +171,13 @@
|
|
|
165
171
|
|
|
166
172
|
},
|
|
167
173
|
watch: {
|
|
168
|
-
container(value,oldValue) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
},
|
|
174
|
+
// container(value,oldValue) {
|
|
175
|
+
// if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
176
|
+
// if (this.$configProject['isPreview']) this.init(value)
|
|
177
|
+
// },
|
|
172
178
|
},
|
|
173
179
|
created() {
|
|
174
|
-
|
|
180
|
+
console.log(this.successPath,'successPathsuccessPath')
|
|
175
181
|
this.projectAttr = getApp().globalData.$xd.brandInfo;
|
|
176
182
|
console.log(this.projectAttr,'this.projectAttr')
|
|
177
183
|
this.isPreview = this.$configProject.isPreview;
|
|
@@ -197,9 +203,7 @@
|
|
|
197
203
|
* @description 监听事件变化
|
|
198
204
|
* @param container {object} 业务组件对象自己
|
|
199
205
|
*/
|
|
200
|
-
|
|
201
|
-
this.successPath = getContainerPropsValue(container, 'content.successPath', {value: ""}).value;
|
|
202
|
-
},
|
|
206
|
+
|
|
203
207
|
handleRefreshCode(){
|
|
204
208
|
if (this.$configProject['isPreview']) return;
|
|
205
209
|
this.onRefreshPage();
|
|
@@ -715,7 +719,7 @@
|
|
|
715
719
|
bottom: 0;
|
|
716
720
|
left: 0;
|
|
717
721
|
right: 0;
|
|
718
|
-
z-index:
|
|
722
|
+
z-index: 9999;
|
|
719
723
|
.deduct_mask{
|
|
720
724
|
position: absolute;
|
|
721
725
|
top: 0;
|