jufubao-base 1.0.119-beta16 → 1.0.119-beta18
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/JfbBaseConDialog/JfbBaseConDialog.vue +3 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +112 -84
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +10 -6
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +4 -3
package/package.json
CHANGED
|
@@ -297,6 +297,9 @@ export default {
|
|
|
297
297
|
} catch (error) {
|
|
298
298
|
console.log(error, "errorerror");
|
|
299
299
|
}
|
|
300
|
+
console.log(!storage.get(this.containerId) &&
|
|
301
|
+
this.distribution_method !== "paid" &&
|
|
302
|
+
this.distribution_method !== "card_binded",'pppppp');
|
|
300
303
|
if(this.distribution_method === 'card_binded'){
|
|
301
304
|
jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
|
|
302
305
|
}
|
|
@@ -14,96 +14,110 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-con-phone__body" v-if="done">
|
|
17
|
-
<view
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<view>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<input
|
|
40
|
-
v-model="valid_code"
|
|
41
|
-
placeholder="请输入验证码"
|
|
42
|
-
type="text"
|
|
43
|
-
/>
|
|
44
|
-
<XdButton
|
|
45
|
-
:disabled="disabled"
|
|
46
|
-
class="jfb-base-con-phone__body-wrap-input-code-btn"
|
|
47
|
-
type="primary"
|
|
48
|
-
:bg-color="mainColor"
|
|
49
|
-
size="small"
|
|
50
|
-
@click="handleSendCode"
|
|
51
|
-
>{{ message }}</XdButton
|
|
17
|
+
<view v-if="has_times === 'Y'">
|
|
18
|
+
<view
|
|
19
|
+
class="jfb-base-con-phone__body-wrap"
|
|
20
|
+
:style="{
|
|
21
|
+
height: topHeight + 'rpx',
|
|
22
|
+
width: topWidth + 'rpx',
|
|
23
|
+
backgroundImage: `url(${background})`,
|
|
24
|
+
backgroundSize: '100% 100%',
|
|
25
|
+
}"
|
|
26
|
+
>
|
|
27
|
+
<view v-if="showCode" class="jfb-base-con-phone__body-wrap-input">
|
|
28
|
+
<view>
|
|
29
|
+
<input
|
|
30
|
+
@input="filterSpaces"
|
|
31
|
+
v-model="phoneNumber"
|
|
32
|
+
placeholder="请输入手机号"
|
|
33
|
+
type="text"
|
|
34
|
+
/>
|
|
35
|
+
</view>
|
|
36
|
+
<view
|
|
37
|
+
class="jfb-base-con-phone__body-wrap-input-code"
|
|
38
|
+
style="margin-bottom: 54rpx"
|
|
52
39
|
>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
radius="20rpx"
|
|
59
|
-
size="small"
|
|
60
|
-
:disabled="!phoneNumber || !valid_code"
|
|
61
|
-
@click="handleConfirm"
|
|
62
|
-
>确认领取</XdButton
|
|
63
|
-
>
|
|
64
|
-
</view>
|
|
65
|
-
<view v-else class="jfb-base-con-phone__body-wrap-input">
|
|
66
|
-
<view class="jfb-base-con-phone__body-wrap-input-phone">
|
|
67
|
-
<view class="jfb-base-con-phone__body-wrap-input-phone-change">
|
|
68
|
-
<view>当前登录手机号</view>
|
|
40
|
+
<input
|
|
41
|
+
v-model="valid_code"
|
|
42
|
+
placeholder="请输入验证码"
|
|
43
|
+
type="text"
|
|
44
|
+
/>
|
|
69
45
|
<XdButton
|
|
70
|
-
|
|
46
|
+
:disabled="disabled"
|
|
47
|
+
class="jfb-base-con-phone__body-wrap-input-code-btn"
|
|
71
48
|
type="primary"
|
|
72
49
|
:bg-color="mainColor"
|
|
73
50
|
size="small"
|
|
74
|
-
@click="
|
|
75
|
-
|
|
51
|
+
@click="handleSendCode"
|
|
52
|
+
>{{ message }}</XdButton
|
|
76
53
|
>
|
|
77
54
|
</view>
|
|
78
|
-
<
|
|
55
|
+
<XdButton
|
|
56
|
+
type="primary"
|
|
57
|
+
:bg-color="mainColor"
|
|
58
|
+
width="360rpx"
|
|
59
|
+
radius="20rpx"
|
|
60
|
+
size="small"
|
|
61
|
+
:disabled="!phoneNumber || !valid_code"
|
|
62
|
+
@click="handleConfirm"
|
|
63
|
+
>确认领取</XdButton
|
|
64
|
+
>
|
|
65
|
+
</view>
|
|
66
|
+
<view v-else class="jfb-base-con-phone__body-wrap-input">
|
|
67
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone">
|
|
68
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone-change">
|
|
69
|
+
<view>当前登录手机号</view>
|
|
70
|
+
<XdButton
|
|
71
|
+
style="margin: 0"
|
|
72
|
+
type="primary"
|
|
73
|
+
:bg-color="mainColor"
|
|
74
|
+
size="small"
|
|
75
|
+
@click="showCode = true"
|
|
76
|
+
>切换手机号</XdButton
|
|
77
|
+
>
|
|
78
|
+
</view>
|
|
79
|
+
<view>{{ showOhoneNumber }}</view>
|
|
80
|
+
</view>
|
|
81
|
+
<XdButton
|
|
82
|
+
type="primary"
|
|
83
|
+
:bg-color="mainColor"
|
|
84
|
+
width="360rpx"
|
|
85
|
+
radius="20rpx"
|
|
86
|
+
size="small"
|
|
87
|
+
@click="handleConfirm"
|
|
88
|
+
>直接领取</XdButton
|
|
89
|
+
>
|
|
79
90
|
</view>
|
|
80
|
-
<XdButton
|
|
81
|
-
type="primary"
|
|
82
|
-
:bg-color="mainColor"
|
|
83
|
-
width="360rpx"
|
|
84
|
-
radius="20rpx"
|
|
85
|
-
size="small"
|
|
86
|
-
@click="handleConfirm"
|
|
87
|
-
>直接领取</XdButton
|
|
88
|
-
>
|
|
89
91
|
</view>
|
|
90
|
-
<view
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
type="primary"
|
|
102
|
-
:bg-color="mainColor"
|
|
103
|
-
radius="20rpx"
|
|
104
|
-
@click="handleTo(btnTwoUrl)"
|
|
105
|
-
>{{ btnTwoName }}</XdButton
|
|
92
|
+
<view
|
|
93
|
+
:style="{
|
|
94
|
+
height: bottomHeight + 'rpx',
|
|
95
|
+
width: bottomWidth + 'rpx',
|
|
96
|
+
backgroundImage: `url(${used_background})`,
|
|
97
|
+
backgroundSize: '100% 100%',
|
|
98
|
+
}"
|
|
99
|
+
>
|
|
100
|
+
<view
|
|
101
|
+
v-if="showBtn === 'Y'"
|
|
102
|
+
class="jfb-base-con-phone__body-wrap-btn"
|
|
106
103
|
>
|
|
104
|
+
<XdButton
|
|
105
|
+
size="small"
|
|
106
|
+
type="primary"
|
|
107
|
+
:bg-color="mainColor"
|
|
108
|
+
radius="20rpx"
|
|
109
|
+
@click="handleTo(btnOneUrl)"
|
|
110
|
+
>{{ btnOneName }}</XdButton
|
|
111
|
+
>
|
|
112
|
+
<XdButton
|
|
113
|
+
size="small"
|
|
114
|
+
type="primary"
|
|
115
|
+
:bg-color="mainColor"
|
|
116
|
+
radius="20rpx"
|
|
117
|
+
@click="handleTo(btnTwoUrl)"
|
|
118
|
+
>{{ btnTwoName }}</XdButton
|
|
119
|
+
>
|
|
120
|
+
</view>
|
|
107
121
|
</view>
|
|
108
122
|
</view>
|
|
109
123
|
<view
|
|
@@ -125,7 +139,7 @@ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
|
125
139
|
import XdButton from "@/components/XdButton/XdButton";
|
|
126
140
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
127
141
|
import JfbBaseConPhoneMixin from "./JfbBaseConPhoneMixin";
|
|
128
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
142
|
+
import { getContainerPropsValue, getImageInfo } from "@/utils/xd.base";
|
|
129
143
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
130
144
|
import extsMixins from "@/mixins/extsMixins";
|
|
131
145
|
import { mapState } from "vuex";
|
|
@@ -171,6 +185,12 @@ export default {
|
|
|
171
185
|
date: 2, //时间底数
|
|
172
186
|
time: 0, //时间幂指数
|
|
173
187
|
timeer: null,
|
|
188
|
+
topHeight: "",
|
|
189
|
+
topWidth: "750",
|
|
190
|
+
used_background: "",
|
|
191
|
+
bottomHeight: "",
|
|
192
|
+
bottomWidth: "750",
|
|
193
|
+
showBtn: "N",
|
|
174
194
|
};
|
|
175
195
|
},
|
|
176
196
|
watch: {
|
|
@@ -234,7 +254,7 @@ export default {
|
|
|
234
254
|
activity_id: this.activity_id,
|
|
235
255
|
},
|
|
236
256
|
})
|
|
237
|
-
.then((res) => {
|
|
257
|
+
.then(async (res) => {
|
|
238
258
|
console.log(res, "res");
|
|
239
259
|
this.has_times = res.has_times;
|
|
240
260
|
this.showBtn = res.phone_button;
|
|
@@ -242,7 +262,15 @@ export default {
|
|
|
242
262
|
this.btnTwoName = res.button_name_two;
|
|
243
263
|
this.btnOneUrl = res.button_url_one;
|
|
244
264
|
this.btnTwoUrl = res.button_url_two;
|
|
265
|
+
let image = await getImageInfo(getServiceUrl(res.background));
|
|
266
|
+
let image1 = await getImageInfo(getServiceUrl(res.used_background));
|
|
267
|
+
console.log({ ...image }, "imageimage");
|
|
268
|
+
this.topHeight = image.imgHeight * 2;
|
|
269
|
+
this.topWidth = image.imgWidth * 2;
|
|
270
|
+
this.bottomHeight = image1.imgHeight * 2;
|
|
271
|
+
this.bottomWidth = image1.imgWidth * 2;
|
|
245
272
|
this.background = getServiceUrl(res.background);
|
|
273
|
+
this.used_background = getServiceUrl(res.used_background);
|
|
246
274
|
this.errmessage = res.message;
|
|
247
275
|
this.done = true;
|
|
248
276
|
})
|
|
@@ -504,8 +532,8 @@ export default {
|
|
|
504
532
|
display: flex;
|
|
505
533
|
justify-content: space-around;
|
|
506
534
|
align-items: center;
|
|
507
|
-
width:
|
|
508
|
-
|
|
535
|
+
width: 750rpx;
|
|
536
|
+
padding-top: 40rpx;
|
|
509
537
|
}
|
|
510
538
|
}
|
|
511
539
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
@change="bindDateChange"
|
|
80
80
|
>
|
|
81
81
|
<view class="jfb-base-wallet-index__body-filter-condition">
|
|
82
|
-
<text
|
|
82
|
+
<text>{{date?date:'全部月份'}}</text>
|
|
83
83
|
<XdFontIcon size="24" icon="iconxia_down"></XdFontIcon>
|
|
84
84
|
</view>
|
|
85
85
|
</picker>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
@change="bindOperateChange"
|
|
92
92
|
>
|
|
93
93
|
<view class="jfb-base-wallet-index__body-filter-condition">
|
|
94
|
-
<text
|
|
94
|
+
<text>{{operate_type?operate_type==='R'?"全部支出":"全部收入":'全部收支'}}</text>
|
|
95
95
|
<XdFontIcon size="24" icon="iconxia_down"></XdFontIcon>
|
|
96
96
|
</view>
|
|
97
97
|
</picker>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
item.operate_type === 'A' ? 'iconshouru' : 'iconzhichu'
|
|
111
111
|
"
|
|
112
112
|
></XdFontIcon>
|
|
113
|
-
<text style="margin-left:10rpx"
|
|
113
|
+
<text style="margin-left:10rpx">{{ item.trade_type_name }}</text>
|
|
114
114
|
</view>
|
|
115
115
|
<view>
|
|
116
116
|
<view
|
|
@@ -154,9 +154,9 @@
|
|
|
154
154
|
<view class="jfb-base-wallet-index__body-pay">
|
|
155
155
|
<view class="jfb-base-wallet-index__body-pay-type">
|
|
156
156
|
<view>付款方式</view>
|
|
157
|
-
<view>
|
|
157
|
+
<view @click="handleChangePayType">
|
|
158
158
|
<view> {{ qrcodeInfo.wallet_name }} </view>
|
|
159
|
-
<XdFontIcon size="20" icon="iconxia_down"></XdFontIcon>
|
|
159
|
+
<XdFontIcon v-if="typeList.length" size="20" icon="iconxia_down"></XdFontIcon>
|
|
160
160
|
</view>
|
|
161
161
|
</view>
|
|
162
162
|
<view class="jfb-base-wallet-index__body-pay-id"
|
|
@@ -318,6 +318,11 @@ export default {
|
|
|
318
318
|
await this.getList();
|
|
319
319
|
this.status = true;
|
|
320
320
|
},
|
|
321
|
+
handleChangePayType() {
|
|
322
|
+
this.showQrcode = false;
|
|
323
|
+
this.handleClose();
|
|
324
|
+
this.handleShowQrcode()
|
|
325
|
+
},
|
|
321
326
|
getList() {
|
|
322
327
|
console.log(this.data, this.operate_type, "operate_typeoperate_type");
|
|
323
328
|
jfbRootExec("getWalletRecordList", {
|
|
@@ -487,7 +492,6 @@ export default {
|
|
|
487
492
|
clearInterval(this.timeer);
|
|
488
493
|
this.timeer = null;
|
|
489
494
|
}
|
|
490
|
-
this.wallet_type = null;
|
|
491
495
|
this.timeStr = "00分00秒";
|
|
492
496
|
},
|
|
493
497
|
handleDrawerClose() {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
@change="bindDateChange"
|
|
71
71
|
>
|
|
72
72
|
<view class="jfb-base-wallet-item__body-filter-condition">
|
|
73
|
-
<text
|
|
73
|
+
<text>{{date?date:'全部月份'}}</text>
|
|
74
74
|
<XdFontIcon size="24" icon="iconxia_down"></XdFontIcon>
|
|
75
75
|
</view>
|
|
76
76
|
</picker>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
@change="bindOperateChange"
|
|
83
83
|
>
|
|
84
84
|
<view class="jfb-base-wallet-item__body-filter-condition">
|
|
85
|
-
<text
|
|
85
|
+
<text>{{operate_type?operate_type==='R'?"全部支出":"全部收入":'全部收支'}}</text>
|
|
86
86
|
<XdFontIcon size="24" icon="iconxia_down"></XdFontIcon>
|
|
87
87
|
</view>
|
|
88
88
|
</picker>
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"
|
|
103
103
|
></XdFontIcon>
|
|
104
104
|
<text style="margin-left: 10rpx"
|
|
105
|
-
|
|
105
|
+
>{{ item.trade_type_name }}</text
|
|
106
106
|
>
|
|
107
107
|
</view>
|
|
108
108
|
<view>
|
|
@@ -225,6 +225,7 @@ export default {
|
|
|
225
225
|
page_size: this.page_size,
|
|
226
226
|
page_token: this.page_token,
|
|
227
227
|
operate_type: this.operate_type,
|
|
228
|
+
wallet_type: this.wallet_type,
|
|
228
229
|
},
|
|
229
230
|
})
|
|
230
231
|
.then((res) => {
|