jufubao-base 1.0.237-beta2 → 1.0.237

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.
Files changed (105) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +8 -0
  3. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  4. package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
  5. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +6 -25
  6. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -11
  7. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -8
  8. package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
  9. package/src/components/JfbBaseTfkSearch/listMixins.js +1 -1
  10. package/src/components/JfbBaseUserInfo/Attr.js +10 -102
  11. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +114 -305
  12. package/src/components/JfbBaseBalance/Api.js +0 -46
  13. package/src/components/JfbBaseBalance/Attr.js +0 -316
  14. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -332
  15. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
  16. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
  17. package/src/components/JfbBaseBalance/Mock.js +0 -9
  18. package/src/components/JfbBaseCodeOpenVip/Api.js +0 -36
  19. package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
  20. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -253
  21. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
  22. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
  23. package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
  24. package/src/components/JfbBaseConsumpCode/Api.js +0 -133
  25. package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
  26. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -961
  27. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
  28. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
  29. package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
  30. package/src/components/JfbBaseOpenVip/Api.js +0 -39
  31. package/src/components/JfbBaseOpenVip/Attr.js +0 -270
  32. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -424
  33. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
  34. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
  35. package/src/components/JfbBaseOpenVip/Mock.js +0 -7
  36. package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -125
  37. package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
  38. package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
  39. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
  40. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
  41. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
  42. package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
  43. package/src/components/JfbBaseOpenVipDetail/Api.js +0 -36
  44. package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
  45. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -225
  46. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
  47. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
  48. package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -13
  49. package/src/components/JfbBasePersonalData/Api.js +0 -26
  50. package/src/components/JfbBasePersonalData/Attr.js +0 -12
  51. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -198
  52. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
  53. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
  54. package/src/components/JfbBasePersonalData/Mock.js +0 -13
  55. package/src/components/JfbBasePointsCard/Api.js +0 -18
  56. package/src/components/JfbBasePointsCard/Attr.js +0 -187
  57. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -208
  58. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
  59. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
  60. package/src/components/JfbBasePointsCard/Mock.js +0 -5
  61. package/src/components/JfbBasePointsDetail/Api.js +0 -48
  62. package/src/components/JfbBasePointsDetail/Attr.js +0 -304
  63. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
  64. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
  65. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
  66. package/src/components/JfbBasePointsDetail/Mock.js +0 -6
  67. package/src/components/JfbBasePosterGroup/Api.js +0 -58
  68. package/src/components/JfbBasePosterGroup/Attr.js +0 -48
  69. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -111
  70. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
  71. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
  72. package/src/components/JfbBasePosterGroup/Mock.js +0 -13
  73. package/src/components/JfbBaseSavingDetail/Api.js +0 -41
  74. package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
  75. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -679
  76. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
  77. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
  78. package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
  79. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
  80. package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
  81. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
  82. package/src/components/JfbBaseShare/Api.js +0 -20
  83. package/src/components/JfbBaseShare/Attr.js +0 -14
  84. package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -261
  85. package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
  86. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
  87. package/src/components/JfbBaseShare/Mock.js +0 -16
  88. package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
  89. package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
  90. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -334
  91. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
  92. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
  93. package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
  94. package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
  95. package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
  96. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
  97. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
  98. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
  99. package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
  100. package/src/components/JfbBaseWithdraw/Api.js +0 -48
  101. package/src/components/JfbBaseWithdraw/Attr.js +0 -328
  102. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -245
  103. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
  104. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
  105. package/src/components/JfbBaseWithdraw/Mock.js +0 -7
@@ -1,79 +0,0 @@
1
- /**
2
- * @desc 获取绝对路径完整地址
3
- * @param @path
4
- **/
5
- //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
- @basePath: 'business/';
7
- @doMain: '//sandbox-img.jufubao.cn/';
8
-
9
- .getBusinessImageUrl(@path, @size: 'size8') {
10
- @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
- background-image: url(@url);
12
- }
13
-
14
- //start
15
- .jfb-base-share {
16
- box-sizing: border-box;
17
-
18
- &__body{
19
- position: relative;
20
- overflow: hidden;
21
- z-index: 2
22
- }
23
-
24
- &.editx,&.editx:hover {
25
- position: relative;
26
- min-height: unit(100, rpx);
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
39
-
40
- }
41
-
42
-
43
- &__edit {
44
- cursor: pointer;
45
- position: absolute;
46
- right: unit(0, rpx);
47
- top: unit(-52, rpx);
48
- height: unit(50, rpx);
49
- line-height: unit(50, rpx);
50
- display: flex;
51
- justify-content: center;
52
- align-items: center;
53
- background: rgba(0, 0, 0, .6);
54
- border-radius: unit(10, rpx);
55
- box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
- color: #fff;
57
- font-size: unit(22, rpx);
58
-
59
- &-icon{
60
- padding: 0 unit(20, rpx);
61
- }
62
-
63
- &.editx {
64
- box-sizing: border-box;
65
-
66
- }
67
- }
68
- }
69
- //end
70
-
71
-
72
- /**notPreview**/
73
- .jfb-base-share {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
78
- }
79
- /**endNotPreview**/
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
-
4
- //@AttrImport
5
- import Attr from "./Attr";
6
- //@EndAttrImport
7
-
8
-
9
- export default {
10
- data() {
11
- return {
12
- //#ifdef H5
13
-
14
- //@AttrData
15
- Attr:{}, //对外开发编辑属性
16
- //@EndAttrData
17
-
18
- // #endif
19
- cssRoot: 'jfb-base-share'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- getInviteCardList: {
5
- total_size: 1,
6
- next_page_token: "",
7
- list: [
8
- {
9
- jump_url: "111111?x-common=eyJzaGFyZV9jb2RlIjogVWY0eng2RVBmVn0",
10
- share_image_url:
11
- "https://sandbox-img.jufubao.cn/uploads/20250410/34559f90dd5a01e7368c02bf33f1b484.png?x-oss-process=style/size8"
12
- }
13
- ],
14
- request_id: "e081f3a16f40bfbe"
15
- }
16
- };
@@ -1,41 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:With
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- mapFnName: 'cancelWithdraw',
10
- title: '用户资产 - 提现取消',
11
- path: '/pay/v1/property/withdraw-order/cancel',
12
- isRule: false,
13
- data: {
14
- order_id: ['提现订单号', 'Number', '必选'],
15
- },
16
- isConsole: true,
17
- disabled: true,
18
- },
19
- {
20
- mapFnName: 'getWithdrawOrderDetail',
21
- title: '用户资产 - 提现订单详情',
22
- path: '/pay/v1/property/withdraw-order/detail',
23
- isRule: false,
24
- params: {
25
- order_id: ['提现订单号', 'Number', '必选'],
26
- },
27
- isConsole: true,
28
- disabled: true,
29
- },
30
- {
31
- mapFnName: 'getWithdrawThirdPlaceOrderList',
32
- title: '用户资产 - 提现渠道下单',
33
- path: '/pay/v1/property/withdraw-order/third-place',
34
- isRule: false,
35
- params: {
36
- order_id: ['提现订单号', 'Number', '必选'],
37
- },
38
- isConsole: true,
39
- disabled: true,
40
- },
41
- ];
@@ -1,92 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
- export default {
7
- style: [],
8
- content: (data) => {
9
- return [
10
- {
11
- label: '外边距:',
12
- ele: 'xd-margin-padding',
13
- valueKey: 'bodyMargin',
14
- groupKey: 'style',
15
- value: data['bodyMargin'] || null,
16
- setting: {
17
- type: 'margin',
18
- },
19
- placeholder: '请设置外边距',
20
- inline: false,
21
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
22
- },
23
- {
24
- label: '外填充:',
25
- ele: 'xd-margin-padding',
26
- valueKey: 'bodyPadding',
27
- groupKey: 'style',
28
- value: data['bodyPadding'] || null,
29
- setting: {
30
- type: 'padding',
31
- },
32
- placeholder: '请设置外填充',
33
- inline: false,
34
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
35
- },
36
- {
37
- label: '圆角设置:',
38
- ele: 'xd-site-select-list',
39
- valueKey: 'radius',
40
- value: data['radius'] || '20',
41
- labelInline: true,
42
- groupKey: 'style',
43
- placeholder: '请选择圆角设置',
44
- multiple: false,
45
- className: 'input60',
46
- handleCustom({ action, data }) {
47
- XdBus.getParentApi('getOptionsSettingList')({
48
- setting_id: 'edtix_style_radius',
49
- key: Date.now()
50
- })
51
- .then(res => {
52
- data.cb(res.list)
53
- })
54
- .catch(error => {
55
- console.error(error);
56
- });
57
- },
58
- },
59
- {
60
- label: "边框设置:",
61
- ele: "xd-border",
62
- valueKey: "bodyBorder",
63
- value: data['bodyBorder'] || { type: 'Y', value: { color: '#eee', style: "solid", width: '1' } },
64
- className: 'input80',
65
- groupKey: 'style',
66
- },
67
- {
68
- label: '背景颜色:',
69
- ele: 'xd-color',
70
- valueKey: 'bgColor',
71
- groupKey: 'style',
72
- value: data['bgColor'] || null,
73
- placeholder: '请选择背景颜色',
74
- labelInline: true,
75
- classNmae: 'input80',
76
- },
77
- {
78
- label: '提现成功路径:',
79
- ele: 'xd-select-pages-path',
80
- valueKey: 'withDrawSuccessPath',
81
- groupKey: 'advanced',
82
- placeholder: '请选择提现成功路径',
83
- value: data['withDrawSuccessPath'] || {},
84
- setting: {
85
- router: XdBus.getParentApi('getPagesTree'),
86
- },
87
- inline: false,
88
- },
89
- ].filter(i => i)
90
- },
91
- advanced: [],
92
- };
@@ -1,334 +0,0 @@
1
- <template>
2
- <view class="jfb-base-with-draw-again" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
3
- <!--#ifdef H5-->
4
- <view class="jfb-base-with-draw-again__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
5
- <view class="jfb-base-with-draw-again__edit-icon" @click="delEdit">删除</view>
6
- </view>
7
- <!-- #endif -->
8
- <view class="jfb-base-with-draw-again__body" :style="{minHeight: layoutInfo.bodyMinHeight}">
9
- <view :style="[bodyStyleComp]">
10
- <view class="jfb-base-with-draw-again__body-title">
11
- <view>提现金额</view>
12
- </view>
13
- <view class="jfb-base-with-draw-again__body-amount">
14
- {{getAmout(info.total_amount)}}
15
- </view>
16
- </view>
17
- <view class="jfb-base-with-draw-again__body-tips">
18
- <image :src="logo"></image>
19
- <!-- <XdFontIcon size="60" color="#28C445" style="margin-right:20rpx" icon="iconwx"></XdFontIcon> -->
20
- 提现至{{channel_name}}
21
- </view>
22
- <view v-if="info.status==='N'" class="fixe_bottom" :style="prod_bottom">
23
- <XdButton fontSize="32" type="primary" @click="handleWithDraw">确认提现</XdButton>
24
- <view @click="handleCancelWithDraw">取消提现</view>
25
- </view>
26
- <XdDailog :radius="30" :showClose="false" :show.sync="showSuccess">
27
- <template slot="title">
28
- <view class="dialog-title">
29
- <view>
30
- 提现成功
31
- </view>
32
- <XdFontIcon class="close" color="#333" size="26" icon="icondanchuangguanbi_xian"></XdFontIcon>
33
- </view>
34
- </template>
35
- <template>
36
- <XdFontIcon color="#00C800" size="96" icon="iconchenggong"></XdFontIcon>
37
- <view class="dialog-content">成功提现 500 积分</view>
38
- </template>
39
- <template slot="btn">
40
- <XdButton width="600" @click="handleWithDrawSuccess" type="primary" fontSize="32" style="width:100%">确定
41
- </XdButton>
42
- </template>
43
- </XdDailog>
44
- </view>
45
- </view>
46
- </template>
47
-
48
- <script>
49
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
50
- import XdDailog from "@/components/XdDailog/XdDailog";
51
- import XdButton from "@/components/XdButton/XdButton";
52
- import { jfbRootExec } from "@/utils/xd.event";
53
- import JfbBaseWithDrawAgainMixin from "./JfbBaseWithDrawAgainMixin";
54
- import { getContainerPropsValue } from "@/utils/xd.base";
55
- import componentsMixins from "@/mixins/componentsMixins";
56
- import extsMixins from "@/mixins/extsMixins";
57
- export default {
58
- name: "JfbBaseWithDrawAgain",
59
- components: {
60
- XdFontIcon,
61
- XdDailog,
62
- XdButton
63
- },
64
- mixins: [
65
- componentsMixins, extsMixins, JfbBaseWithDrawAgainMixin
66
- ],
67
- data() {
68
- return {
69
- radius: 0,
70
- margin: {},
71
- padding: {},
72
- bgColor: '',
73
- bodyBorder: {},
74
- showSuccess: false,
75
- order_id: '',
76
- info: {},
77
- channel_name: '',
78
- logo: '',
79
- withDrawSuccessPath: '',
80
- jwxSDK: null
81
- }
82
- },
83
- computed: {
84
- bodyStyleComp() {
85
- return {
86
- borderRadius: `${this.radius}rpx`,
87
- margin: this.getMarginAndPadding(this.margin, 20),
88
- padding: this.getMarginAndPadding(this.padding, 40),
89
- background: this.bgColor,
90
- border: this.bodyBorder,
91
- }
92
- },
93
- prod_bottom() {
94
- return this.fixedStyle({ height: 0, zIndex: 111, paddingBottom: 70 });
95
- },
96
- },
97
- watch: {
98
- container(value, oldValue) {
99
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
100
- if (this.$configProject['isPreview']) this.init(value)
101
- },
102
- },
103
- created() {
104
- this.init(this.container);
105
- },
106
- methods: {
107
- onJfbLoad(options) {
108
- this.order_id = options.order_id;
109
- this.getOrderDetail()
110
- this.p_getH5WxAuthorize()
111
- },
112
- p_getH5WxAuthorize() {
113
- jfbRootExec("getH5WxAuthorize", {
114
- vm: this,
115
- data: { jsApiList: ["requestMerchantTransfer"] },
116
- })
117
- .then((res) => {
118
- console.log(res, 'appapa');
119
- this.jwxSDK = res.jwxSDK;
120
-
121
- })
122
- .catch(error => {
123
- this.$xdAlert({
124
- content: error,
125
- });
126
- });
127
- },
128
- getAmout(amount) {
129
- return this.$xdUniHelper.divisionFloatNumber(amount, 100)
130
- },
131
- getOrderDetail() {
132
- jfbRootExec("getWithdrawOrderDetail", {
133
- vm: this,
134
- data: {
135
- order_id: this.order_id
136
- },
137
- }).then(res => {
138
- this.info = res.detail;
139
- this.channel_name = res.channel_name;
140
- this.logo = res.logo;
141
- }).catch(err => {
142
- console.log(err, 'err')
143
- })
144
- },
145
- /**
146
- * @description 监听事件变化
147
- * @param container {object} 业务组件对象自己
148
- */
149
- init(container) {
150
- this.radius = getContainerPropsValue(container, 'content.radius', 20);
151
- this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
152
- this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
153
- this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
154
- this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
155
- this.withDrawSuccessPath = getContainerPropsValue(container, 'content.withDrawSuccessPath', { value: '' }).value;
156
- },
157
- handleWithDraw() {
158
- jfbRootExec("getWithdrawThirdPlaceOrderList", {
159
- vm: this,
160
- data: {
161
- order_id: this.order_id
162
- },
163
- }).then(res => {
164
- //调用微信js
165
- let that= this;
166
- //#ifdef MP-WEIXIN
167
- if (wx.canIUse('requestMerchantTransfer')) {
168
- wx.requestMerchantTransfer({
169
- mchId: mch_id,
170
- appId: app_id,
171
- package: channel_data,
172
- success: (request) => {
173
- console.log('success:', request);
174
- that.$xdUniHelper.navigateTo({ url: this.withDrawSuccessPath })
175
- },
176
- fail: (request) => {
177
- console.log('fail:', request);
178
- },
179
- });
180
- } else {
181
- wx.showModal({
182
- content: '你的微信版本过低,请更新至最新版本。',
183
- showCancel: false,
184
- });
185
- }
186
- //#endif
187
- //#ifdef H5
188
- this.jwxSDK.checkJsApi({
189
- jsApiList: ['requestMerchantTransfer'],
190
- success: function (request) {
191
- if (request.checkResult['requestMerchantTransfer']) {
192
- WeixinJSBridge.invoke('requestMerchantTransfer', {
193
- mchId: res.mch_id,
194
- appId: res.app_id,
195
- package: res.channel_data,
196
- },
197
- function (request) {
198
- if (request.err_msg === 'requestMerchantTransfer:ok') {
199
- console.log(request,'requestrequestrequest');
200
- that.$xdUniHelper.navigateTo({ url: this.withDrawSuccessPath })
201
- }
202
- }
203
- );
204
- } else {
205
- alert('你的微信版本过低,请更新至最新版本。');
206
- }
207
- }
208
- })
209
- //#endif
210
- })
211
- },
212
- handleCancelWithDraw() {
213
- jfbRootExec("cancelWithdraw", {
214
- vm: this,
215
- data: {
216
- order_id: this.order_id
217
- },
218
- }).then(res => {
219
- this.$xdUniHelper.navigateBack();
220
- })
221
- },
222
- handleWithDrawSuccess() {
223
- this.showSuccess = false;
224
- this.$xdUniHelper.navigateTo({ url: `${this.withDrawSuccessPath}` })
225
- },
226
- onJfbScroll(options) {
227
- console.log('event.onJfbScroll', options)
228
- },
229
- onJfbReachBottom(options) {
230
- console.log('event.onJfbReachBottom', options)
231
- },
232
- onJfbShow(options) {
233
- console.log('event.onJfbShow', options)
234
- },
235
- onJfbHide(options) {
236
- console.log('event.onJfbHide', options)
237
- },
238
- onJfbBack(options) {
239
- console.log('event.onJfbBack', options)
240
- },
241
- onJfbUpdate(...data) {
242
- console.log('event.onJfbUpdate', data)
243
- },
244
- onJfbCustomEvent(options) {
245
- console.log('event.onJfbReachBottom', options)
246
- },
247
- }
248
- }
249
-
250
- </script>
251
-
252
- <style scoped lang="less">
253
- @import "./JfbBaseWithDrawAgainLess.less";
254
-
255
- .jfb-base-with-draw-again {
256
- &__body {
257
- &-title {
258
- display: flex;
259
- align-items: center;
260
- justify-content: space-between;
261
- font-size: 24rpx;
262
-
263
- &>view:first-child {
264
- color: #999999;
265
- }
266
-
267
- &>view:last-child {
268
- color: #666666;
269
- }
270
- }
271
-
272
- &-amount {
273
- color: #333;
274
- font-size: 64rpx;
275
- font-weight: 500;
276
- margin-top: 40rpx;
277
- }
278
-
279
- &-tips {
280
- display: flex;
281
- align-items: center;
282
- padding-left: 60rpx;
283
- margin-top: 40rpx;
284
- font-size: 24rpx;
285
- color: #333;
286
-
287
- &>image {
288
- width: 60rpx;
289
- height: 60rpx;
290
- margin-right: 20rpx;
291
-
292
- }
293
- }
294
-
295
- .fixe_bottom {
296
- position: fixed;
297
- left: 0;
298
- right: 0;
299
- bottom: 0;
300
- z-index: 999;
301
- background: #fff;
302
- padding: unit(48, rpx) unit(70, rpx);
303
-
304
- &>view {
305
- text-align: center;
306
- font-size: 28rpx;
307
- color: #999;
308
- margin-top: 48rpx;
309
- }
310
- }
311
-
312
- .dialog-title {
313
- font-size: 36rpx;
314
- font-weight: 500;
315
- width: 570rpx;
316
- text-align: center;
317
- position: relative;
318
-
319
- .close {
320
- position: absolute;
321
- right: 0;
322
- top: 0;
323
-
324
- }
325
- }
326
-
327
- .dialog-content {
328
- color: #666666;
329
- font-size: 36rpx;
330
- margin-top: 32rpx;
331
- }
332
- }
333
- }
334
- </style>
@@ -1,79 +0,0 @@
1
- /**
2
- * @desc 获取绝对路径完整地址
3
- * @param @path
4
- **/
5
- //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
- @basePath: 'business/';
7
- @doMain: '//sandbox-img.jufubao.cn/';
8
-
9
- .getBusinessImageUrl(@path, @size: 'size8') {
10
- @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
- background-image: url(@url);
12
- }
13
-
14
- //start
15
- .jfb-base-with-draw-again {
16
- box-sizing: border-box;
17
-
18
- &__body{
19
- position: relative;
20
- overflow: hidden;
21
- z-index: 2
22
- }
23
-
24
- &.editx,&.editx:hover {
25
- position: relative;
26
- min-height: unit(100, rpx);
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
39
-
40
- }
41
-
42
-
43
- &__edit {
44
- cursor: pointer;
45
- position: absolute;
46
- right: unit(0, rpx);
47
- top: unit(-52, rpx);
48
- height: unit(50, rpx);
49
- line-height: unit(50, rpx);
50
- display: flex;
51
- justify-content: center;
52
- align-items: center;
53
- background: rgba(0, 0, 0, .6);
54
- border-radius: unit(10, rpx);
55
- box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
- color: #fff;
57
- font-size: unit(22, rpx);
58
-
59
- &-icon{
60
- padding: 0 unit(20, rpx);
61
- }
62
-
63
- &.editx {
64
- box-sizing: border-box;
65
-
66
- }
67
- }
68
- }
69
- //end
70
-
71
-
72
- /**notPreview**/
73
- .jfb-base-with-draw-again {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
78
- }
79
- /**endNotPreview**/
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
-
4
- //@AttrImport
5
- import Attr from "./Attr";
6
- //@EndAttrImport
7
-
8
-
9
- export default {
10
- data() {
11
- return {
12
- //#ifdef H5
13
-
14
- //@AttrData
15
- Attr:{}, //对外开发编辑属性
16
- //@EndAttrData
17
-
18
- // #endif
19
- cssRoot: 'jfb-base-with-draw-again'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }