jufubao-base 1.0.217 → 1.0.218-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 +1 -1
- package/src/components/JfbBaseCard/Attr.js +35 -0
- package/src/components/JfbBaseCard/JfbBaseCard.vue +91 -17
- package/src/components/JfbBaseCardEntry/Attr.js +35 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +23 -1
- package/src/components/JfbBaseCardV2/Attr.js +35 -0
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +95 -41
- package/src/components/JfbBaseCardV3/Attr.js +35 -0
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +23 -1
- package/src/components/JfbBaseHeader/Attr.js +58 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +22 -1
- package/src/components/JfbBaseNoticeDialog/Api.js +58 -0
- package/src/components/JfbBaseNoticeDialog/Attr.js +48 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +111 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogLess.less +79 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogMixin.js +30 -0
- package/src/components/JfbBaseNoticeDialog/Mock.js +13 -0
- package/src/components/JfbBaseTfkCardLogin/Attr.js +35 -0
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +21 -1
- package/src/components/JfbBaseUserCenter/Attr.js +35 -0
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +38 -16
|
@@ -19,14 +19,26 @@
|
|
|
19
19
|
<view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
|
|
20
20
|
<view class="my-card-add__btn" :style="[titleMarginComp]">
|
|
21
21
|
<view :style="[titleStyleComp]">我的{{cardName}}</view>
|
|
22
|
-
<view
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
icon
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
<view style="display:flex">
|
|
23
|
+
<view v-if="isShowBuy==='Y'" class="addBtn" :style="[addBtnStyleComp]" @click="toBuyNew">
|
|
24
|
+
<text>{{buy_name}}</text>
|
|
25
|
+
<view v-if="isShowICONBtn === 'Y'">
|
|
26
|
+
<xd-font-icon
|
|
27
|
+
icon="iconxiangyou_xian"
|
|
28
|
+
:color="addBtnStyleComp.color"
|
|
29
|
+
:size="20"
|
|
30
|
+
></xd-font-icon>
|
|
31
|
+
</view>
|
|
32
|
+
</view>
|
|
33
|
+
<view class="addBtn" :style="[addBtnStyleComp]" @click="handleToLink(add_url)">
|
|
34
|
+
<text>添加{{cardName}}</text>
|
|
35
|
+
<view v-if="isShowICONBtn === 'Y'">
|
|
36
|
+
<xd-font-icon
|
|
37
|
+
icon="iconxiangyou_xian"
|
|
38
|
+
:color="addBtnStyleComp.color"
|
|
39
|
+
:size="20"
|
|
40
|
+
></xd-font-icon>
|
|
41
|
+
</view>
|
|
30
42
|
</view>
|
|
31
43
|
</view>
|
|
32
44
|
</view>
|
|
@@ -188,7 +200,9 @@
|
|
|
188
200
|
is_border: 'Y',
|
|
189
201
|
is_border_w: 0,
|
|
190
202
|
is_border_c: '',
|
|
191
|
-
|
|
203
|
+
buy_new_url: '',
|
|
204
|
+
isShowBuy: "",
|
|
205
|
+
buy_name: ""
|
|
192
206
|
}
|
|
193
207
|
},
|
|
194
208
|
watch: {
|
|
@@ -211,6 +225,12 @@
|
|
|
211
225
|
})
|
|
212
226
|
},
|
|
213
227
|
|
|
228
|
+
toBuyNew() {
|
|
229
|
+
this.$xdUniHelper.navigateTo({
|
|
230
|
+
url: `${this.buy_new_url}`,
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
|
|
214
234
|
/**
|
|
215
235
|
* @description 监听事件变化
|
|
216
236
|
* @param container {object} 业务组件对象自己
|
|
@@ -258,6 +278,10 @@
|
|
|
258
278
|
this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
|
|
259
279
|
this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
|
|
260
280
|
this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
|
|
281
|
+
|
|
282
|
+
this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
|
|
283
|
+
this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
|
|
284
|
+
this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
|
|
261
285
|
},
|
|
262
286
|
}
|
|
263
287
|
}
|
|
@@ -273,6 +297,11 @@
|
|
|
273
297
|
display: flex;
|
|
274
298
|
justify-content: center;
|
|
275
299
|
align-items: center;
|
|
300
|
+
width: unit(200, rpx);
|
|
301
|
+
height: unit(60, rpx);
|
|
302
|
+
line-height: unit(60, rpx);
|
|
303
|
+
text-align: center;
|
|
304
|
+
margin-left: 20rpx;
|
|
276
305
|
|
|
277
306
|
& > view {
|
|
278
307
|
margin-left: 10rpx;
|
|
@@ -287,13 +316,6 @@
|
|
|
287
316
|
justify-content: space-between;
|
|
288
317
|
align-items: center;
|
|
289
318
|
font-size: unit(28, rpx);
|
|
290
|
-
|
|
291
|
-
& > view:nth-child(2) {
|
|
292
|
-
width: unit(200, rpx);
|
|
293
|
-
height: unit(60, rpx);
|
|
294
|
-
line-height: unit(60, rpx);
|
|
295
|
-
text-align: center;
|
|
296
|
-
}
|
|
297
319
|
}
|
|
298
320
|
|
|
299
321
|
&__link {
|