jufubao-base 1.0.119-beta9 → 1.0.120

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 (52) hide show
  1. package/package.json +3 -4
  2. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +25 -7
  3. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  4. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -72
  5. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
  6. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -352
  7. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  8. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  9. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -27
  10. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
  11. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  12. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -309
  13. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  14. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  15. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -26
  16. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
  17. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
  18. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -201
  19. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  20. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  21. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -40
  22. package/src/components/JfbBaseSaasHome/Api.js +0 -48
  23. package/src/components/JfbBaseSaasHome/Attr.js +0 -35
  24. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -402
  25. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
  26. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
  27. package/src/components/JfbBaseSaasHome/Mock.js +0 -32
  28. package/src/components/JfbBaseSaasLogin/Api.js +0 -98
  29. package/src/components/JfbBaseSaasLogin/Attr.js +0 -59
  30. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -724
  31. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
  32. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
  33. package/src/components/JfbBaseSaasLogin/Mock.js +0 -22
  34. package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +0 -410
  35. package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -27
  36. package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -14
  37. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -149
  38. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  39. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  40. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -9
  41. package/src/components/JfbBaseSaasNewsList/Api.js +0 -26
  42. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
  43. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -184
  44. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  45. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  46. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -24
  47. package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -66
  48. package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
  49. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -349
  50. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
  51. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
  52. package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
@@ -1,349 +0,0 @@
1
- <template>
2
- <view
3
- class="jfb-base-sass-phone-collect"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
7
- <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-sass-phone-collect__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
13
- <view class="jfb-base-sass-phone-collect__edit-icon" @click="delEdit">删除</view>
14
- </view>
15
- <!-- #endif -->
16
- <view class="jfb-base-sass-phone-collect__body">
17
- <view class="panel-login-password">
18
- <xd-form
19
- label-width="128"
20
- style="margin-top: 40rpx"
21
- label-align="right"
22
- content-align="left"
23
- :border="true"
24
- >
25
- <xd-form-item label="手机号" content-align="left">
26
- <xd-form-input
27
- v-model="accountForm.phone_number"
28
- disabled
29
- placeholder="请输入11位手机号"
30
- />
31
- </xd-form-item>
32
- <xd-form-item label="验证码" content-align="left">
33
- <view class="flex align-center">
34
- <xd-form-input
35
- v-model="accountForm.verification_code"
36
- placeholder="请输入验证码"
37
- />
38
- <view
39
- class="get_code"
40
- @click="reGetCode"
41
- :style="{ color: mainColor }"
42
- >{{ jfbTimeer ? jfbTimeer + "秒后获取" : "获取验证码" }}</view
43
- >
44
- </view>
45
- </xd-form-item>
46
- </xd-form>
47
- <!-- <view class="form-group" style="padding-bottom: 0">
48
- <xd-form-checkbox
49
- class="xd-form-checkbox"
50
- v-model="panel_1_checked"
51
- mode="default"
52
- multiple
53
- :localdata="[{ value: 1, text: '登录即同意《隐私政策》《用户服务协议》' },]"
54
- >
55
- <template slot="a1">
56
- <view>
57
- <text>请阅读并同意</text>
58
- <text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
59
- <text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
60
- </view>
61
- </template>
62
- </xd-form-checkbox>
63
- </view> -->
64
- <!-- <view class="form-group">
65
- <xd-button
66
- style="flex: 1"
67
- type="primary"
68
- radius="10rpx"
69
- :disabled="!panelIsChecked"
70
- @click="doLoginForm"
71
- >登录</xd-button
72
- >
73
- </view> -->
74
- <view class="form-group">
75
- <xd-button
76
- style="flex: 1"
77
- type="primary"
78
- radius="10rpx"
79
- @click="doLoginForm"
80
- >确定</xd-button
81
- >
82
- </view>
83
- <!-- <view
84
- class="jump_collect"
85
- @click="jumpCollect"
86
- >跳过</view> -->
87
- </view>
88
- </view>
89
- </view>
90
- </template>
91
-
92
- <script>
93
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
94
- import { jfbRootExec } from "@/utils/xd.event";
95
- import componentsMixins from "@/mixins/componentsMixins";
96
- import extsMixins from "@/mixins/extsMixins";
97
- import { getContainerPropsValue } from "@/utils/xd.base";
98
- import XdFormItem from "@/components/XdFormItem/XdFormItem";
99
- import XdForm from "@/components/XdForm/XdForm";
100
- import XdFormInput from "@/components/XdFormInput/XdFormInput";
101
- import XdButton from "@/components/XdButton/XdButton";
102
- import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
103
- import JfbBaseSassPhoneCollectMixin from "./JfbBaseSassPhoneCollectMixin";
104
- export default {
105
- name: "JfbBaseSassPhoneCollect",
106
- components: {
107
- XdFontIcon,
108
- XdFormItem,
109
- XdForm,
110
- XdFormInput,
111
- XdButton,
112
- XdFormCheckbox,
113
- },
114
- mixins: [
115
- componentsMixins, extsMixins, JfbBaseSassPhoneCollectMixin
116
- ],
117
- data() {
118
- return {
119
- panel_1_checked: "",
120
- accountForm: {
121
- phone_number: "",
122
- verification_code: "",
123
- },
124
- access_code: "",
125
- phone_number: "",
126
- jfbTimeer: 0,
127
- interval: null,
128
- provider_id: "",
129
- callback_url: "",
130
- //todo
131
- }
132
- },
133
- computed: {
134
- panelIsChecked() {
135
- return this.panel_1_checked.includes(1);
136
- },
137
- "accountForm.verification_code"(value) {
138
- if (value && value.length >= 8 && value.length % 2 === 0) {
139
- let start = value.slice(0, value.length / 2);
140
- let end = value.slice(value.length / 2);
141
- if (start === end) {
142
- this.accountForm.verification_code = start;
143
- }
144
- }
145
- }
146
- },
147
- watch: {
148
- container(value) {
149
- this.init(value)
150
- }
151
- },
152
- created() {
153
- this.init(this.container);
154
-
155
- //todo
156
- },
157
- methods: {
158
- onJfbLoad(options) {
159
- this.provider_id = options.provider_id;
160
- this.callback_url = options.callback_url;
161
- this.access_code = options.access_code;
162
- this.phone_number = options.phone_number;
163
- this.$set(this.accountForm, 'phone_number', options.phone_number);
164
- },
165
- /**
166
- * @description 监听事件变化
167
- * @param container {object} 业务组件对象自己
168
- */
169
- init(container) {
170
-
171
- },
172
- handlePrivacy(code) {
173
- let params = `page_id=${this.pageAttr["page_id"]}`;
174
- params = `${params}&container_id=${this.containerId}${code}`;
175
- this.$xdUniHelper.navigateTo({
176
- url: `/pages/content/content?${params}`
177
- })
178
- },
179
- reGetCode() {
180
- this.$xdLog.setProject('get.code.handle', {
181
- time: this.time,
182
- jfbTimeer: this.jfbTimeer
183
- });
184
- if (this.jfbTimeer > 0) return;
185
- const { phone_number } = this.accountForm;
186
- if (!/^1[3-9]\d{9}$/.test(phone_number)) {
187
- uni.showToast({
188
- title: "请填写正确的手机号",
189
- icon: "none",
190
- });
191
- return false;
192
- }
193
- this.$xdShowLoading({})
194
- console.log("jfbRootExec: sendMsg");
195
- jfbRootExec("sendMsg", {
196
- vm: this,
197
- data: {
198
- phone_number,
199
- biz_name: "login",
200
- },
201
- }).then((res) => {
202
- this.$xdHideLoading()
203
- this.jfbTimeer = 120;
204
- this.interval = setInterval(() => {
205
- this.jfbTimeer--;
206
- if (this.jfbTimeer == 0) {
207
- clearTimeout(this.interval);
208
- }
209
- }, 1000);
210
- }).catch((err) => {
211
- this.$xdHideLoading();
212
- this.$xdLog.catch(err)
213
- });
214
- },
215
- jumpCollect(){
216
- let { callback_url } = this;
217
- if (callback_url) callback_url = decodeURIComponent(callback_url);
218
- this.$xdUniHelper.redirectTo({
219
- url: callback_url || this.settings.index,
220
- });
221
- },
222
- doLoginForm() {
223
- const { phone_number, verification_code } = this.accountForm;
224
- if (!phone_number || !verification_code) return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
225
-
226
- this.$xdShowLoading({})
227
- jfbRootExec("phoneAuth", {
228
- vm: this,
229
- data: {
230
- phone_number,
231
- valid_code: verification_code,
232
- access_code: this.access_code
233
- },
234
- }).then((res) => {
235
- this.$xdHideLoading()
236
- let { callback_url } = this;
237
- if (callback_url) callback_url = decodeURIComponent(callback_url);
238
- this.$xdUniHelper.redirectTo({
239
- url: callback_url || this.settings.index,
240
- });
241
- }).catch(error => {
242
- this.$xdHideLoading()
243
- this.$xdLog.catch(error)
244
- });
245
- },
246
- onJfbScroll(options) {
247
-
248
- },
249
- onJfbReachBottom(options) {
250
- console.log('event.onJfbReachBottom', options)
251
- },
252
- onJfbShow(options) {
253
- console.log('event.onJfbShow', options)
254
- },
255
- onJfbHide(options) {
256
- console.log('event.onJfbHide', options)
257
- },
258
- onJfbBack(options) {
259
- this.$xdUniHelper.navigateBack();
260
- },
261
- onJfbUpdate(...data) {
262
- console.log('event.onJfbUpdate', data)
263
- },
264
- onJfbCustomEvent(options) {
265
- console.log('event.onJfbReachBottom', options)
266
- },
267
- }
268
- }
269
-
270
- </script>
271
-
272
- <style scoped lang="less">
273
- @import "./JfbBaseSassPhoneCollectLess.less";
274
-
275
- .jfb-base-sass-phone-collect {
276
- &__body{
277
- .xd-form-checkbox {
278
- /deep/ .checklist-content .checklist-text {
279
- font-size: 26rpx !important;
280
- }
281
- }
282
-
283
- .xd-form-checkbox {
284
- /deep/ .checklist-box {
285
- margin: 0 !important;
286
- }
287
- }
288
- .xd-form-checkbox {
289
- /deep/ .checklist-group {
290
- justify-content: center;
291
- }
292
- }
293
-
294
- .xd-form-checkbox {
295
- /deep/ .checklist-text {
296
- margin-left: unit(20,rpx) !important;
297
- }
298
- }
299
-
300
- .form-group {
301
- padding: 40rpx 70rpx;
302
- }
303
-
304
- .get_code {
305
- color: @xd-base-color;
306
- font-size: 24rpx;
307
- }
308
- .panel-login-password {
309
- /deep/ .uni-forms-item__label {
310
- .label-text {
311
- font-size: 26rpx;
312
- color: #a6a6a6;
313
- }
314
- }
315
-
316
- /deep/ .uni-easyinput__placeholder-class {
317
- font-size: 26rpx;
318
- color: #d4d4d4;
319
- }
320
-
321
- .not_login {
322
- position: fixed;
323
- width: 100%;
324
- text-align: center;
325
- bottom: 100rpx;
326
- font-size: 24rpx;
327
- color: #fe7a63;
328
- }
329
- .jump_collect{
330
- font-size: 24rpx;
331
- color: #a6a6a6;
332
- text-align: right;
333
- margin: 20rpx 70rpx 0 0;
334
- }
335
- }
336
- }
337
- }
338
- .flex {
339
- display: flex;
340
- }
341
-
342
- .flex-sub {
343
- flex: 1;
344
- }
345
-
346
- .align-center {
347
- align-items: center;
348
- }
349
- </style>
@@ -1,80 +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-sass-phone-collect {
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-sass-phone-collect {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
79
- }
80
- /**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-sass-phone-collect'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- aaaa: {}
5
- }