jufubao-base 1.0.441 → 1.0.442
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
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
export default {
|
|
11
11
|
style: [],
|
|
12
12
|
content: (data, gValue, gColor, oldData={}) => {
|
|
13
|
-
|
|
13
|
+
const cardPath = getAttrPathMsg(data , 'cardPath', '票券列表');
|
|
14
14
|
return [
|
|
15
15
|
{
|
|
16
16
|
ele: 'title',
|
|
@@ -41,22 +41,22 @@ export default {
|
|
|
41
41
|
placeholder: "输入去绑定票券自定义文案"
|
|
42
42
|
},
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
{
|
|
45
|
+
label: cardPath.label,
|
|
46
|
+
ele: 'xd-select-pages-path',
|
|
47
|
+
valueKey: cardPath['key'],
|
|
48
|
+
groupKey:'advanced',
|
|
49
|
+
placeholder: cardPath.hold,
|
|
50
|
+
value: cardPath.path,
|
|
51
|
+
labelInline:true,
|
|
52
|
+
className: 'input100',
|
|
53
|
+
setting: {
|
|
54
|
+
mode:'new',
|
|
55
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
56
|
+
},
|
|
57
|
+
inline: false,
|
|
58
|
+
notice: '当用户票券列表为空时,使用到跳转到票券列表'
|
|
59
|
+
},
|
|
60
60
|
{
|
|
61
61
|
label: '版本号:',
|
|
62
62
|
ele: 'el-input',
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
:style="[show_type === item.value ? activityType : '']"
|
|
89
89
|
@click="handleChangeType(item.value)"
|
|
90
90
|
>{{ item.label }}</view>
|
|
91
|
+
<view>
|
|
92
|
+
<view @click="handleBindCard">新票券</view>
|
|
93
|
+
</view>
|
|
91
94
|
</view>
|
|
92
95
|
<view class="ticket_content">
|
|
93
96
|
<view class="ticket_list" :key="renderChecked" v-if="showCardList.length">
|
|
@@ -230,7 +233,7 @@
|
|
|
230
233
|
//基础
|
|
231
234
|
takeTitleName: '提货二维码',
|
|
232
235
|
bindName:'去绑定票券',
|
|
233
|
-
|
|
236
|
+
cardPath:'',
|
|
234
237
|
|
|
235
238
|
//品牌logo
|
|
236
239
|
//#ifdef H5
|
|
@@ -262,8 +265,21 @@
|
|
|
262
265
|
},
|
|
263
266
|
methods: {
|
|
264
267
|
handleBindCard(){
|
|
265
|
-
if(this.$configProject['isPreview']) return;
|
|
266
|
-
|
|
268
|
+
if(this.$configProject['isPreview'] ) return;
|
|
269
|
+
|
|
270
|
+
if(!this.cardPath) {
|
|
271
|
+
this.$xdAlert({
|
|
272
|
+
content: '未链接配置地址',
|
|
273
|
+
time: 2500,
|
|
274
|
+
isClose: false,
|
|
275
|
+
zIndex: 5000
|
|
276
|
+
});
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
this.$xdUniHelper.redirectTo({
|
|
281
|
+
url: this.cardPath
|
|
282
|
+
})
|
|
267
283
|
},
|
|
268
284
|
/**
|
|
269
285
|
* @description 监听页面进入,开始拉取展码数据
|
|
@@ -304,7 +320,7 @@
|
|
|
304
320
|
init(container) {
|
|
305
321
|
this.takeTitleName = gCPVal(container, 'takeTitleName', '提货二维码');
|
|
306
322
|
this.bindName = gCPVal(container, 'bindName', '去绑定票券');
|
|
307
|
-
|
|
323
|
+
this.cardPath = gCPVal(container, 'cardPath', {value:''}).value;
|
|
308
324
|
},
|
|
309
325
|
/**
|
|
310
326
|
* @description 未带卡号入参时,拉取可用票券列表并默认选中登录卡
|
|
@@ -731,6 +747,23 @@
|
|
|
731
747
|
margin: 0 unit(24, rpx);
|
|
732
748
|
height: unit(72, rpx);
|
|
733
749
|
line-height: unit(72, rpx);
|
|
750
|
+
flex-shrink: 0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
& > view:nth-child(3) {
|
|
754
|
+
flex: 1;
|
|
755
|
+
display: flex;
|
|
756
|
+
justify-content: flex-end;
|
|
757
|
+
align-items: center;
|
|
758
|
+
|
|
759
|
+
& > view {
|
|
760
|
+
border-radius: 8rpx;
|
|
761
|
+
padding: 0 32rpx;
|
|
762
|
+
border: 1px solid var(--g-theme-mainColor);
|
|
763
|
+
height: 48rpx;
|
|
764
|
+
line-height: 48rpx;
|
|
765
|
+
color: var(--g-theme-mainColor);
|
|
766
|
+
}
|
|
734
767
|
}
|
|
735
768
|
}
|
|
736
769
|
|