jufubao-base 1.0.118 → 1.0.119-beta2
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 +380 -287
- package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
- package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
- package/src/components/JfbBaseConFlashList/Api.js +60 -0
- package/src/components/JfbBaseConFlashList/Attr.js +117 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
- package/src/components/JfbBaseConFlashList/Mock.js +5 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +48 -0
- package/src/components/JfbBaseSaasHome/Attr.js +35 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +39 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-con-phone"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-con-phone__edit"
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-con-phone__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-con-phone__body" v-if="done">
|
|
17
|
+
<view
|
|
18
|
+
v-if="has_times==='Y'"
|
|
19
|
+
class="jfb-base-con-phone__body-wrap"
|
|
20
|
+
:style="{
|
|
21
|
+
height: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
22
|
+
backgroundImage: `url(${background})`,
|
|
23
|
+
backgroundSize: '100% 100%',
|
|
24
|
+
}"
|
|
25
|
+
>
|
|
26
|
+
<view v-if="showCode" class="jfb-base-con-phone__body-wrap-input">
|
|
27
|
+
<view>
|
|
28
|
+
<input
|
|
29
|
+
v-model="phoneNumber"
|
|
30
|
+
placeholder="请输入手机号"
|
|
31
|
+
type="text"
|
|
32
|
+
/>
|
|
33
|
+
</view>
|
|
34
|
+
<view
|
|
35
|
+
class="jfb-base-con-phone__body-wrap-input-code"
|
|
36
|
+
style="margin-bottom: 54rpx"
|
|
37
|
+
>
|
|
38
|
+
<input
|
|
39
|
+
v-model="valid_code"
|
|
40
|
+
placeholder="请输入验证码"
|
|
41
|
+
type="text"
|
|
42
|
+
/>
|
|
43
|
+
<XdButton
|
|
44
|
+
:disabled="disabled"
|
|
45
|
+
class="jfb-base-con-phone__body-wrap-input-code-btn"
|
|
46
|
+
type="primary"
|
|
47
|
+
:bg-color="mainColor"
|
|
48
|
+
size="small"
|
|
49
|
+
@click="handleSendCode"
|
|
50
|
+
>{{ message }}</XdButton
|
|
51
|
+
>
|
|
52
|
+
</view>
|
|
53
|
+
<XdButton
|
|
54
|
+
type="primary"
|
|
55
|
+
:bg-color="mainColor"
|
|
56
|
+
width="360rpx"
|
|
57
|
+
radius="20rpx"
|
|
58
|
+
size="small"
|
|
59
|
+
:disabled="!phoneNumber || !valid_code"
|
|
60
|
+
@click="handleConfirm"
|
|
61
|
+
>确认领取</XdButton
|
|
62
|
+
>
|
|
63
|
+
</view>
|
|
64
|
+
<view v-else class="jfb-base-con-phone__body-wrap-input">
|
|
65
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone">
|
|
66
|
+
<view class="jfb-base-con-phone__body-wrap-input-phone-change">
|
|
67
|
+
<view>当前登录手机号</view>
|
|
68
|
+
<XdButton
|
|
69
|
+
style="margin: 0"
|
|
70
|
+
type="primary"
|
|
71
|
+
:bg-color="mainColor"
|
|
72
|
+
size="small"
|
|
73
|
+
@click="showCode = true"
|
|
74
|
+
>切换手机号</XdButton
|
|
75
|
+
>
|
|
76
|
+
</view>
|
|
77
|
+
<view>{{ showOhoneNumber }}</view>
|
|
78
|
+
</view>
|
|
79
|
+
<XdButton
|
|
80
|
+
type="primary"
|
|
81
|
+
:bg-color="mainColor"
|
|
82
|
+
width="360rpx"
|
|
83
|
+
radius="20rpx"
|
|
84
|
+
size="small"
|
|
85
|
+
@click="handleConfirm"
|
|
86
|
+
>直接领取</XdButton
|
|
87
|
+
>
|
|
88
|
+
</view>
|
|
89
|
+
<view v-if="showBtn === 'Y'" class="jfb-base-con-phone__body-wrap-btn">
|
|
90
|
+
<XdButton
|
|
91
|
+
size="small"
|
|
92
|
+
type="primary"
|
|
93
|
+
:bg-color="mainColor"
|
|
94
|
+
radius="20rpx"
|
|
95
|
+
@click="handleTo(btnOneUrl)"
|
|
96
|
+
>{{ btnOneName }}</XdButton
|
|
97
|
+
>
|
|
98
|
+
<XdButton
|
|
99
|
+
size="small"
|
|
100
|
+
type="primary"
|
|
101
|
+
:bg-color="mainColor"
|
|
102
|
+
radius="20rpx"
|
|
103
|
+
@click="handleTo(btnTwoUrl)"
|
|
104
|
+
>{{ btnTwoName }}</XdButton
|
|
105
|
+
>
|
|
106
|
+
</view>
|
|
107
|
+
</view>
|
|
108
|
+
<view
|
|
109
|
+
:style="{
|
|
110
|
+
height: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
111
|
+
}"
|
|
112
|
+
v-else
|
|
113
|
+
class="empty_data"
|
|
114
|
+
>
|
|
115
|
+
<image :src="emptyBg"></image>
|
|
116
|
+
{{ errmessage }}
|
|
117
|
+
</view>
|
|
118
|
+
</view>
|
|
119
|
+
</view>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<script>
|
|
123
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
124
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
125
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
126
|
+
import JfbBaseConPhoneMixin from "./JfbBaseConPhoneMixin";
|
|
127
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
128
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
129
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
130
|
+
import { mapState } from "vuex";
|
|
131
|
+
import colorCardMixins from "@/mixins/colorCardMixins";
|
|
132
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
133
|
+
|
|
134
|
+
export default {
|
|
135
|
+
name: "JfbBaseConPhone",
|
|
136
|
+
components: {
|
|
137
|
+
XdFontIcon,
|
|
138
|
+
XdButton,
|
|
139
|
+
},
|
|
140
|
+
computed: {
|
|
141
|
+
...mapState(["pageBusinessCode"]),
|
|
142
|
+
emptyBg() {
|
|
143
|
+
return this.getNoData();
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
mixins: [componentsMixins, extsMixins, JfbBaseConPhoneMixin, colorCardMixins],
|
|
147
|
+
data() {
|
|
148
|
+
return {
|
|
149
|
+
showCode: true,
|
|
150
|
+
phoneNumber: "", //手机号
|
|
151
|
+
valid_code: "", //验证码
|
|
152
|
+
btnOneName: "",
|
|
153
|
+
btnOneUrl: "",
|
|
154
|
+
btnTwoName: "",
|
|
155
|
+
btnTwoUrl: "",
|
|
156
|
+
message: "发送验证码",
|
|
157
|
+
countdownTimer: null,
|
|
158
|
+
timeRemaining: 60,
|
|
159
|
+
disabled: false,
|
|
160
|
+
background:"",
|
|
161
|
+
method: "entry",
|
|
162
|
+
options: {},
|
|
163
|
+
activity_id: "",
|
|
164
|
+
done: false,
|
|
165
|
+
has_times: 'N',
|
|
166
|
+
errmessage: "",
|
|
167
|
+
showOhoneNumber: "", //仅用于展示
|
|
168
|
+
order_num: null,
|
|
169
|
+
maxTime: 5, //最长轮询2的N次方(秒)
|
|
170
|
+
date: 2, //时间底数
|
|
171
|
+
time: 0, //时间幂指数
|
|
172
|
+
timeer: null,
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
watch: {
|
|
176
|
+
container(value) {
|
|
177
|
+
this.init(value);
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
created() {
|
|
181
|
+
console.log(this.layoutInfo, "layoutInfo");
|
|
182
|
+
this.init(this.container);
|
|
183
|
+
},
|
|
184
|
+
destroyed() {
|
|
185
|
+
if (this.timeer) {
|
|
186
|
+
clearTimeout(this.timeer);
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
async onJfbLoad(options) {
|
|
191
|
+
await jfbRootExec("getUserPhone", {
|
|
192
|
+
vm: this,
|
|
193
|
+
data: {},
|
|
194
|
+
}).then((res) => {
|
|
195
|
+
this.showOhoneNumber = res.phone_number;
|
|
196
|
+
if (this.showOhoneNumber) {
|
|
197
|
+
this.showCode = false;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
this.options = options;
|
|
201
|
+
this.activity_id = options.activity_id;
|
|
202
|
+
this.method = options.distribution_method
|
|
203
|
+
? options.distribution_method
|
|
204
|
+
: "phone";
|
|
205
|
+
await this.getList();
|
|
206
|
+
},
|
|
207
|
+
getList() {
|
|
208
|
+
jfbRootExec("getCouponPhoneList", {
|
|
209
|
+
vm: this,
|
|
210
|
+
data: {
|
|
211
|
+
...this.options,
|
|
212
|
+
distribution_method: this.method,
|
|
213
|
+
namespace: this.pageBusinessCode,
|
|
214
|
+
activity_id: this.activity_id,
|
|
215
|
+
},
|
|
216
|
+
})
|
|
217
|
+
.then((res) => {
|
|
218
|
+
console.log(res, "res");
|
|
219
|
+
this.has_times = res.has_times;
|
|
220
|
+
this.showBtn = res.phone_button;
|
|
221
|
+
this.btnOneName = res.button_name_one;
|
|
222
|
+
this.btnTwoName = res.button_name_two;
|
|
223
|
+
this.btnOneUrl = res.button_url_one;
|
|
224
|
+
this.btnTwoUrl = res.button_url_two;
|
|
225
|
+
this.background = getServiceUrl(res.background);
|
|
226
|
+
this.errmessage = res.message;
|
|
227
|
+
this.done = true;
|
|
228
|
+
})
|
|
229
|
+
.catch((err) => {
|
|
230
|
+
console.log(err, "err");
|
|
231
|
+
});
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* @description 监听事件变化
|
|
235
|
+
* @param container {object} 业务组件对象自己
|
|
236
|
+
*/
|
|
237
|
+
init(container) {},
|
|
238
|
+
handleTo(url) {
|
|
239
|
+
this.$xdUniHelper.navigateTo({
|
|
240
|
+
url: url,
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
handleSendCode() {
|
|
244
|
+
if (this.phoneNumber.length < 11) {
|
|
245
|
+
uni.showToast({
|
|
246
|
+
title: "请输入11位手机号",
|
|
247
|
+
icon: "none",
|
|
248
|
+
});
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
// 发送验证码的异步操作
|
|
252
|
+
uni.showToast({
|
|
253
|
+
title: "发送中",
|
|
254
|
+
icon: "loading",
|
|
255
|
+
});
|
|
256
|
+
jfbRootExec("sendMsgConPhone", {
|
|
257
|
+
vm: this,
|
|
258
|
+
data: {
|
|
259
|
+
phone_number: this.phoneNumber,
|
|
260
|
+
biz_name: "login",
|
|
261
|
+
},
|
|
262
|
+
}).then((res) => {
|
|
263
|
+
this.startCountdown();
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
startCountdown() {
|
|
267
|
+
// 设置剩余时间
|
|
268
|
+
this.timeRemaining = 60;
|
|
269
|
+
// 设置定时器,每秒执行一次
|
|
270
|
+
this.countdownTimer = setInterval(() => {
|
|
271
|
+
// 每秒减少1
|
|
272
|
+
this.timeRemaining--;
|
|
273
|
+
// 更新显示
|
|
274
|
+
this.message = `${this.timeRemaining}s`;
|
|
275
|
+
// 禁用按钮
|
|
276
|
+
this.disabled = true;
|
|
277
|
+
// 如果时间小于等于0,则重新开始
|
|
278
|
+
if (this.timeRemaining <= 0) {
|
|
279
|
+
this.message = "重新发送";
|
|
280
|
+
this.disabled = false;
|
|
281
|
+
// 清除定时器
|
|
282
|
+
clearInterval(this.countdownTimer);
|
|
283
|
+
// 重新设置时间
|
|
284
|
+
this.timeRemaining = 60;
|
|
285
|
+
}
|
|
286
|
+
}, 1000);
|
|
287
|
+
},
|
|
288
|
+
handleConfirm() {
|
|
289
|
+
this.$xdShowLoading({});
|
|
290
|
+
jfbRootExec("getAllCouponPhone", {
|
|
291
|
+
vm: this,
|
|
292
|
+
data: {
|
|
293
|
+
...this.options,
|
|
294
|
+
distribution_method: this.method,
|
|
295
|
+
namespace: this.pageBusinessCode,
|
|
296
|
+
activity_id: this.activity_id,
|
|
297
|
+
phone: this.showCode ? this.phoneNumber : null,
|
|
298
|
+
valid_code: this.showCode ? this.valid_code : null,
|
|
299
|
+
biz_name: "login",
|
|
300
|
+
},
|
|
301
|
+
})
|
|
302
|
+
.then((res) => {
|
|
303
|
+
if (res.code == 400) {
|
|
304
|
+
this.$xdHideLoading();
|
|
305
|
+
this.$xdAlert({
|
|
306
|
+
content: res.message,
|
|
307
|
+
zIndex: 3200,
|
|
308
|
+
time: 2000,
|
|
309
|
+
isClose: false,
|
|
310
|
+
});
|
|
311
|
+
this.getList();
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
this.order_num = res.tmp_order_number;
|
|
315
|
+
setTimeout(() => {
|
|
316
|
+
this.getResult();
|
|
317
|
+
}, 1000);
|
|
318
|
+
})
|
|
319
|
+
.catch((err) => {
|
|
320
|
+
console.log(err, "err");
|
|
321
|
+
});
|
|
322
|
+
},
|
|
323
|
+
getResult() {
|
|
324
|
+
jfbRootExec("getCouponPhoneResult", {
|
|
325
|
+
vm: this,
|
|
326
|
+
data: {
|
|
327
|
+
...this.options,
|
|
328
|
+
tmp_order_number: this.order_num,
|
|
329
|
+
},
|
|
330
|
+
})
|
|
331
|
+
.then((res) => {
|
|
332
|
+
if (res.status_type === "success") {
|
|
333
|
+
this.order_num = null;
|
|
334
|
+
this.$xdHideLoading();
|
|
335
|
+
this.$xdAlert({
|
|
336
|
+
content: "领取成功",
|
|
337
|
+
zIndex: 3200,
|
|
338
|
+
time: 2000,
|
|
339
|
+
isClose: false,
|
|
340
|
+
});
|
|
341
|
+
this.getList();
|
|
342
|
+
if (this.timeer) {
|
|
343
|
+
this.time = 0;
|
|
344
|
+
clearTimeout(this.timeer);
|
|
345
|
+
}
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if (res.status_type === "error") {
|
|
349
|
+
this.$xdHideLoading();
|
|
350
|
+
this.$xdAlert({
|
|
351
|
+
content: res.message,
|
|
352
|
+
zIndex: 3200,
|
|
353
|
+
time: 2000,
|
|
354
|
+
isClose: false,
|
|
355
|
+
});
|
|
356
|
+
if (res.code == 400) {
|
|
357
|
+
this.getList();
|
|
358
|
+
}
|
|
359
|
+
if (this.timeer) {
|
|
360
|
+
this.time = 0;
|
|
361
|
+
clearTimeout(this.timeer);
|
|
362
|
+
}
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
this.timeer = setTimeout(() => {
|
|
367
|
+
this.getResult();
|
|
368
|
+
if (this.time > 5) {
|
|
369
|
+
this.$xdLog.setARMSInfo(
|
|
370
|
+
{ message: "领取中" },
|
|
371
|
+
`pay_${res.status_type}`
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
this.time++;
|
|
375
|
+
}, Math.pow(this.date, this.time > this.maxTime ? this.maxTime : this.time) * 1000);
|
|
376
|
+
})
|
|
377
|
+
.catch((err) => {
|
|
378
|
+
this.$xdHideLoading();
|
|
379
|
+
console.log(err, "err");
|
|
380
|
+
});
|
|
381
|
+
},
|
|
382
|
+
onJfbShow() {
|
|
383
|
+
if (this.timeer) {
|
|
384
|
+
clearTimeout(this.timeer);
|
|
385
|
+
}
|
|
386
|
+
this.time = 0;
|
|
387
|
+
if (this.order_num) this.getResult();
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
onJfbUnload() {
|
|
391
|
+
if (this.timeer) {
|
|
392
|
+
clearTimeout(this.timeer);
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
|
|
396
|
+
onJfbBack(options) {
|
|
397
|
+
if (this.timeer) {
|
|
398
|
+
clearTimeout(this.timeer);
|
|
399
|
+
}
|
|
400
|
+
if (this.$configProject.isPreview) return;
|
|
401
|
+
this.$xdUniHelper.navigateBack();
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
};
|
|
405
|
+
</script>
|
|
406
|
+
|
|
407
|
+
<style scoped lang="less">
|
|
408
|
+
@import "./JfbBaseConPhoneLess.less";
|
|
409
|
+
|
|
410
|
+
.jfb-base-con-phone {
|
|
411
|
+
&__body {
|
|
412
|
+
.empty_data {
|
|
413
|
+
text-align: center;
|
|
414
|
+
color: #999999;
|
|
415
|
+
font-size: 28rpx;
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: column;
|
|
418
|
+
align-items: center;
|
|
419
|
+
justify-content: center;
|
|
420
|
+
& > image {
|
|
421
|
+
width: unit(400, rpx);
|
|
422
|
+
height: unit(400, rpx);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
&-wrap {
|
|
426
|
+
display: flex;
|
|
427
|
+
justify-content: center;
|
|
428
|
+
align-items: center;
|
|
429
|
+
flex-direction: column;
|
|
430
|
+
&-input {
|
|
431
|
+
border-radius: 40rpx;
|
|
432
|
+
background: rgba(255, 255, 255, 0.5);
|
|
433
|
+
padding: 70rpx 60rpx;
|
|
434
|
+
input {
|
|
435
|
+
margin-bottom: 26rpx;
|
|
436
|
+
font-size: 28rpx;
|
|
437
|
+
background: #fff;
|
|
438
|
+
border-radius: 16rpx;
|
|
439
|
+
padding: 30rpx;
|
|
440
|
+
width: 540rpx;
|
|
441
|
+
}
|
|
442
|
+
&-code {
|
|
443
|
+
position: relative;
|
|
444
|
+
&-btn {
|
|
445
|
+
position: absolute;
|
|
446
|
+
right: 10rpx;
|
|
447
|
+
top: 20rpx;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
&-phone {
|
|
451
|
+
padding: 30rpx;
|
|
452
|
+
width: 540rpx;
|
|
453
|
+
background: #fff;
|
|
454
|
+
border-radius: 16rpx;
|
|
455
|
+
margin-bottom: 32rpx;
|
|
456
|
+
& > view:nth-child(2) {
|
|
457
|
+
border-radius: 40rpx;
|
|
458
|
+
background: #f2f2f2;
|
|
459
|
+
display: flex;
|
|
460
|
+
justify-content: center;
|
|
461
|
+
align-items: center;
|
|
462
|
+
padding: 16rpx 120rpx 16rpx 120rpx;
|
|
463
|
+
margin-top: 30rpx;
|
|
464
|
+
}
|
|
465
|
+
&-change {
|
|
466
|
+
display: flex;
|
|
467
|
+
justify-content: space-between;
|
|
468
|
+
align-items: center;
|
|
469
|
+
& > view:first-child {
|
|
470
|
+
color: #999999;
|
|
471
|
+
font-size: 28rpx;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
&-btn {
|
|
477
|
+
display: flex;
|
|
478
|
+
justify-content: space-around;
|
|
479
|
+
align-items: center;
|
|
480
|
+
width: 100%;
|
|
481
|
+
margin-top: 64rpx;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
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-con-phone {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(50, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-con-phone {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
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-con-phone'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
getCouponPhoneList: {
|
|
5
|
+
"list":[
|
|
6
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
7
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
8
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
|
|
9
|
+
],
|
|
10
|
+
"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
|
|
11
|
+
"used_up_url": "",
|
|
12
|
+
"has_times": "Y",
|
|
13
|
+
"can_take":"Y",
|
|
14
|
+
"message":"",
|
|
15
|
+
"app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
|
|
16
|
+
"app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
|
|
17
|
+
"app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
18
|
+
"app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
19
|
+
"app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
|
|
20
|
+
"rule":"<p>打发·</p>",
|
|
21
|
+
"request_id":"a2603f2a480485f4"
|
|
22
|
+
},
|
|
23
|
+
getAllCouponPhone: {
|
|
24
|
+
"request_id": "5987aa28c709d4ef"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
minHeight: layoutInfo.bodyMinHeightRpx + 'rpx'
|
|
18
18
|
}">
|
|
19
19
|
<view class="setting_list">
|
|
20
|
-
<xd-list-item label="
|
|
20
|
+
<xd-list-item label="已绑实体票券是否失效" :showRight="!showSwitch"
|
|
21
21
|
paddingLR="50rpx" paddingTB="32rpx"
|
|
22
22
|
style="margin-bottom: 8rpx;"
|
|
23
23
|
@click="handleToShowSwitch"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</xd-list-item>
|
|
33
33
|
<view class="switch_tip">
|
|
34
34
|
<xd-font-icon size="24" icon="iconmingchengtubiao" style="margin-right: 8rpx;"></xd-font-icon>
|
|
35
|
-
<view
|
|
35
|
+
<view>当票券被绑定后,实体票券的密码与二维码都失效</view>
|
|
36
36
|
</view>
|
|
37
37
|
<xd-list-item :showRight="!phone_number" label="绑定手机号"
|
|
38
38
|
paddingLR="50rpx" paddingTB="32rpx"
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
<script>
|
|
94
94
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
95
95
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
96
|
-
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
97
96
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
98
97
|
import extsMixins from "@/mixins/extsMixins";
|
|
99
98
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -102,6 +101,7 @@ import XdForm from "@/components/XdForm/XdForm";
|
|
|
102
101
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
103
102
|
import XdButton from "@/components/XdButton/XdButton";
|
|
104
103
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
104
|
+
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
105
105
|
|
|
106
106
|
export default {
|
|
107
107
|
name: "JfbBasePhoneCollect",
|