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.
- package/package.json +3 -4
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +25 -7
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -72
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -352
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -27
- package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -309
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -26
- package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -201
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -40
- package/src/components/JfbBaseSaasHome/Api.js +0 -48
- package/src/components/JfbBaseSaasHome/Attr.js +0 -35
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -402
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
- package/src/components/JfbBaseSaasHome/Mock.js +0 -32
- package/src/components/JfbBaseSaasLogin/Api.js +0 -98
- package/src/components/JfbBaseSaasLogin/Attr.js +0 -59
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -724
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
- package/src/components/JfbBaseSaasLogin/Mock.js +0 -22
- package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +0 -410
- package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -27
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -14
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -149
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -9
- package/src/components/JfbBaseSaasNewsList/Api.js +0 -26
- package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -184
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsList/Mock.js +0 -24
- package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -66
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -349
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jufubao-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.120",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "聚福宝业务组件基础插件包",
|
|
6
6
|
"main": "index.js",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"@vue/shared": "^3.0.0",
|
|
49
49
|
"color": "^3.1.3",
|
|
50
50
|
"core-js": "^2.6.5",
|
|
51
|
-
"dingtalk-jsapi": "^3.0.31",
|
|
52
51
|
"flyio": "^0.6.2",
|
|
53
52
|
"gxd-commands-bussiness": "^1.0.12",
|
|
54
53
|
"gxd-uni-library-editx": "1.0.17-beta2",
|
|
@@ -57,10 +56,10 @@
|
|
|
57
56
|
"path-to-regexp": "^6.2.1",
|
|
58
57
|
"qs": "^6.9.6",
|
|
59
58
|
"regenerator-runtime": "^0.12.1",
|
|
60
|
-
"vconsole": "^3.15.0",
|
|
61
59
|
"vue": "^2.6.10",
|
|
62
60
|
"vue-clipboard2": "^0.3.1",
|
|
63
|
-
"vuex": "^3.2.0"
|
|
61
|
+
"vuex": "^3.2.0",
|
|
62
|
+
"vconsole": "^3.15.0"
|
|
64
63
|
},
|
|
65
64
|
"repository": {
|
|
66
65
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-con-phone__body" v-if="done">
|
|
17
17
|
<view
|
|
18
|
-
v-if="has_times==='Y'"
|
|
18
|
+
v-if="has_times === 'Y'"
|
|
19
19
|
class="jfb-base-con-phone__body-wrap"
|
|
20
20
|
:style="{
|
|
21
21
|
height: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
@@ -156,14 +156,14 @@ export default {
|
|
|
156
156
|
btnTwoUrl: "",
|
|
157
157
|
message: "发送验证码",
|
|
158
158
|
countdownTimer: null,
|
|
159
|
-
timeRemaining:
|
|
159
|
+
timeRemaining: 120,
|
|
160
160
|
disabled: false,
|
|
161
|
-
background:"",
|
|
161
|
+
background: "",
|
|
162
162
|
method: "entry",
|
|
163
163
|
options: {},
|
|
164
164
|
activity_id: "",
|
|
165
165
|
done: false,
|
|
166
|
-
has_times:
|
|
166
|
+
has_times: "N",
|
|
167
167
|
errmessage: "",
|
|
168
168
|
showOhoneNumber: "", //仅用于展示
|
|
169
169
|
order_num: null,
|
|
@@ -207,12 +207,23 @@ export default {
|
|
|
207
207
|
},
|
|
208
208
|
filterSpaces(event) {
|
|
209
209
|
// 使用replace方法去除用户输入的空格
|
|
210
|
-
let value = event.target.value.replace(/\s+/g,
|
|
210
|
+
let value = event.target.value.replace(/\s+/g, "");
|
|
211
211
|
// 更新数据以移除空格
|
|
212
212
|
this.phoneNumber = value;
|
|
213
213
|
// 将处理后的值反映到视图
|
|
214
214
|
event.target.value = value;
|
|
215
215
|
},
|
|
216
|
+
validatePhoneNumber(phoneNumber) {
|
|
217
|
+
// 定义手机号正则表达式
|
|
218
|
+
const regex = /^1[3-9]\d{9}$/;
|
|
219
|
+
|
|
220
|
+
// 检查输入的手机号是否符合格式
|
|
221
|
+
if (phoneNumber.match(regex)) {
|
|
222
|
+
return true;
|
|
223
|
+
} else {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
},
|
|
216
227
|
getList() {
|
|
217
228
|
jfbRootExec("getCouponPhoneList", {
|
|
218
229
|
vm: this,
|
|
@@ -257,6 +268,13 @@ export default {
|
|
|
257
268
|
});
|
|
258
269
|
return;
|
|
259
270
|
}
|
|
271
|
+
if (!this.validatePhoneNumber(this.phoneNumber)) {
|
|
272
|
+
uni.showToast({
|
|
273
|
+
title: "手机号格式不正确",
|
|
274
|
+
icon: "none",
|
|
275
|
+
});
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
260
278
|
// 发送验证码的异步操作
|
|
261
279
|
uni.showToast({
|
|
262
280
|
title: "发送中",
|
|
@@ -274,7 +292,7 @@ export default {
|
|
|
274
292
|
},
|
|
275
293
|
startCountdown() {
|
|
276
294
|
// 设置剩余时间
|
|
277
|
-
this.timeRemaining =
|
|
295
|
+
this.timeRemaining = 120;
|
|
278
296
|
// 设置定时器,每秒执行一次
|
|
279
297
|
this.countdownTimer = setInterval(() => {
|
|
280
298
|
// 每秒减少1
|
|
@@ -290,7 +308,7 @@ export default {
|
|
|
290
308
|
// 清除定时器
|
|
291
309
|
clearInterval(this.countdownTimer);
|
|
292
310
|
// 重新设置时间
|
|
293
|
-
this.timeRemaining =
|
|
311
|
+
this.timeRemaining = 120;
|
|
294
312
|
}
|
|
295
313
|
}, 1000);
|
|
296
314
|
},
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
<script>
|
|
94
94
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
95
95
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
96
|
+
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
96
97
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
97
98
|
import extsMixins from "@/mixins/extsMixins";
|
|
98
99
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -101,7 +102,6 @@ import XdForm from "@/components/XdForm/XdForm";
|
|
|
101
102
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
102
103
|
import XdButton from "@/components/XdButton/XdButton";
|
|
103
104
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
|
|
104
|
-
import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
|
|
105
105
|
|
|
106
106
|
export default {
|
|
107
107
|
name: "JfbBasePhoneCollect",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description API模型
|
|
5
|
-
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
-
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
-
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
-
* 添加列表记录(addFfffXxxxx)
|
|
9
|
-
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
-
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
-
* @type {*[]}
|
|
12
|
-
*/
|
|
13
|
-
module.exports = [
|
|
14
|
-
{
|
|
15
|
-
mapFnName: 'getBlessDetail',
|
|
16
|
-
title: '祝福 - 详情',
|
|
17
|
-
path: '/saas/v1/bless/item/:bless_id',
|
|
18
|
-
isRule: false,
|
|
19
|
-
params: {
|
|
20
|
-
bless_id: ['bless_id', 'Number', '必选'],
|
|
21
|
-
},
|
|
22
|
-
isConsole: true,
|
|
23
|
-
disabled: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
mapFnName: 'doSignBless',
|
|
27
|
-
title: '祝福 - 签收',
|
|
28
|
-
path: '/saas/v1/bless/confirm-sign/:bless_id',
|
|
29
|
-
isRule: false,
|
|
30
|
-
data: {
|
|
31
|
-
bless_id: ['bless_id', 'Number', '必选'],
|
|
32
|
-
sign_image_url: ['签名图片url', 'String', '必选']
|
|
33
|
-
},
|
|
34
|
-
isConsole: true,
|
|
35
|
-
disabled: true,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
mapFnName: "noSignBless",
|
|
39
|
-
title: "祝福 - 签收 - 免签名",
|
|
40
|
-
path: "/saas/v1/bless/sign/:bless_id",
|
|
41
|
-
isRule: false,
|
|
42
|
-
data: {
|
|
43
|
-
bless_id: ['bless_id', 'Number', '必选'],
|
|
44
|
-
sign_image_url: ['签名图片url', 'String', '必选']
|
|
45
|
-
},
|
|
46
|
-
isConsole: true,
|
|
47
|
-
disabled: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
mapFnName: "getOssSign",
|
|
51
|
-
title: "获取上传参数",
|
|
52
|
-
path: "/common-user/v1/h5-oss/sign",
|
|
53
|
-
isRule: false,
|
|
54
|
-
data: {
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
isConsole: true,
|
|
58
|
-
disabled: true,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
mapFnName: "doOssUpload",
|
|
62
|
-
title: "开启oss上传",
|
|
63
|
-
path: "/common-user/v1/h5-oss/upload",
|
|
64
|
-
isRule: false,
|
|
65
|
-
data: {
|
|
66
|
-
file_name: ['file_name', 'String', true],
|
|
67
|
-
file: ['file', 'file', true]
|
|
68
|
-
},
|
|
69
|
-
isConsole: true,
|
|
70
|
-
disabled: true,
|
|
71
|
-
}
|
|
72
|
-
];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
style: [],
|
|
8
|
-
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '使用祝福券跳转地址:', //label
|
|
12
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
-
valueKey: 'useTicketUrl', //form[valueKey]
|
|
14
|
-
placeholder: '请选择使用祝福券跳转地址',
|
|
15
|
-
value: data.useTicketUrl || null,
|
|
16
|
-
setting: {
|
|
17
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
18
|
-
},
|
|
19
|
-
inline: false,
|
|
20
|
-
},
|
|
21
|
-
].filter(i=>i)
|
|
22
|
-
},
|
|
23
|
-
advanced: [],
|
|
24
|
-
};
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-saas-bless-detail"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-saas-bless-detail__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-saas-bless-detail__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-saas-bless-detail__body" :style="{
|
|
17
|
-
minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
18
|
-
backgroundImage: `url(${blessConfig && blessConfig.material_image.path})`
|
|
19
|
-
}">
|
|
20
|
-
<view class="bless_detail">
|
|
21
|
-
<view class="bless_box" v-if="blessConfig" :style="{
|
|
22
|
-
paddingTop: blessConfig.material_margin.top + 'rpx',
|
|
23
|
-
paddingLeft: blessConfig.material_margin.left + 'rpx',
|
|
24
|
-
paddingRight: blessConfig.material_margin.right + 'rpx',
|
|
25
|
-
paddingBottom: blessConfig.material_margin.bottom + 'rpx',
|
|
26
|
-
color: blessConfig.material_color
|
|
27
|
-
}">
|
|
28
|
-
<view class="dear">{{ blessConfig.material_nickname }}</view>
|
|
29
|
-
<view class="desc">{{ blessConfig.material_content }}</view>
|
|
30
|
-
<view class="salute">{{ blessConfig.material_end }}</view>
|
|
31
|
-
<xd-button class="sign_btn"
|
|
32
|
-
v-if="blessData.receive_status === 'N'"
|
|
33
|
-
style="width: 250rpx;" type="primary"
|
|
34
|
-
@click="showSign"
|
|
35
|
-
>去签收</xd-button>
|
|
36
|
-
</view>
|
|
37
|
-
</view>
|
|
38
|
-
<xd-dailog :show.sync="dialogShow" title="" class="my_dialog">
|
|
39
|
-
<view class="dialog_head">
|
|
40
|
-
<view class="h_main">请签名</view>
|
|
41
|
-
<view class="h_sub">请务必由本人签收,字迹工整</view>
|
|
42
|
-
</view>
|
|
43
|
-
<view class="sign_box">
|
|
44
|
-
<xd-signature ref="signatureRef"></xd-signature>
|
|
45
|
-
</view>
|
|
46
|
-
<view slot="btn" class="btn_wrap">
|
|
47
|
-
<xd-button style="width: 220rpx;" @click="clearSign">重写</xd-button>
|
|
48
|
-
<xd-button style="width: 220rpx;margin-left: 60rpx;" type="primary" @click="submitSign">确定</xd-button>
|
|
49
|
-
</view>
|
|
50
|
-
</xd-dailog>
|
|
51
|
-
<xd-dailog :show.sync="dialogSuccess" title="" class="success_dialog">
|
|
52
|
-
<view class="dialog_main">
|
|
53
|
-
<xd-font-icon icon="iconchenggong" :size="90" :color="mainColor"></xd-font-icon>
|
|
54
|
-
<view class="sign_tit">签收成功</view>
|
|
55
|
-
<view class="sign_cont">{{blessData.bless_type_name}}已经放入您的账户</view>
|
|
56
|
-
<view class="sign_ticket">{{blessData.bless_name}} X{{blessData.bless_card_number}}张</view>
|
|
57
|
-
</view>
|
|
58
|
-
<view slot="btn">
|
|
59
|
-
<xd-button style="width: 280rpx;" type="primary" @click="toUseTicket">去使用</xd-button>
|
|
60
|
-
</view>
|
|
61
|
-
</xd-dailog>
|
|
62
|
-
</view>
|
|
63
|
-
</view>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
68
|
-
import XdButton from "@/components/XdButton/XdButton";
|
|
69
|
-
import XdDailog from "@/components/XdDailog/XdDailog"
|
|
70
|
-
import XdSignature from "@/components/XdSignature/XdSignature"
|
|
71
|
-
import XdUpload from "@/components/XdUpload/XdUpload"
|
|
72
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
73
|
-
import JfbBaseSaasBlessDetailMixin from "./JfbBaseSaasBlessDetailMixin";
|
|
74
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
75
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
76
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
77
|
-
export default {
|
|
78
|
-
name: "JfbBaseSaasBlessDetail",
|
|
79
|
-
components: {
|
|
80
|
-
XdFontIcon,
|
|
81
|
-
XdButton,
|
|
82
|
-
XdDailog,
|
|
83
|
-
XdSignature,
|
|
84
|
-
XdUpload
|
|
85
|
-
},
|
|
86
|
-
mixins: [
|
|
87
|
-
componentsMixins, extsMixins, JfbBaseSaasBlessDetailMixin
|
|
88
|
-
],
|
|
89
|
-
data() {
|
|
90
|
-
return {
|
|
91
|
-
dialogShow: false,
|
|
92
|
-
dialogSuccess: false,
|
|
93
|
-
sign_image_url: "",
|
|
94
|
-
bless_id: "",
|
|
95
|
-
blessData: {},
|
|
96
|
-
blessConfig: null,
|
|
97
|
-
|
|
98
|
-
//面板
|
|
99
|
-
useTicketUrl: "", //使用券跳转地址
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
watch: {
|
|
103
|
-
container(value) {
|
|
104
|
-
this.init(value)
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
created() {
|
|
108
|
-
this.init(this.container);
|
|
109
|
-
|
|
110
|
-
//todo
|
|
111
|
-
},
|
|
112
|
-
methods: {
|
|
113
|
-
onJfbLoad(options) {
|
|
114
|
-
this.bless_id = options.bless_id;
|
|
115
|
-
|
|
116
|
-
jfbRootExec("getBlessDetail", {
|
|
117
|
-
vm: this,
|
|
118
|
-
data: {
|
|
119
|
-
bless_id: this.bless_id
|
|
120
|
-
}
|
|
121
|
-
}).then(res => {
|
|
122
|
-
try{
|
|
123
|
-
this.blessData = res;
|
|
124
|
-
this.blessConfig = JSON.parse(res.bless_detail_config)
|
|
125
|
-
}catch(err){}
|
|
126
|
-
})
|
|
127
|
-
},
|
|
128
|
-
/**
|
|
129
|
-
* @description 监听事件变化
|
|
130
|
-
* @param container {object} 业务组件对象自己
|
|
131
|
-
*/
|
|
132
|
-
init(container) {
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
showSign(){
|
|
137
|
-
if(this.blessData.signature_method === 'N'){
|
|
138
|
-
jfbRootExec("noSignBless", {
|
|
139
|
-
vm: this,
|
|
140
|
-
data: {
|
|
141
|
-
bless_id: this.bless_id,
|
|
142
|
-
}
|
|
143
|
-
}).then(res => {
|
|
144
|
-
this.dialogSuccess = true;
|
|
145
|
-
})
|
|
146
|
-
}else{
|
|
147
|
-
this.dialogShow = true;
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
clearSign(){
|
|
151
|
-
this.$refs.signatureRef.clear()
|
|
152
|
-
},
|
|
153
|
-
toUseTicket(){
|
|
154
|
-
this.$xdUniHelper.navigateTo({
|
|
155
|
-
url: `${this.useTicketUrl}`,
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
|
-
submitSign(){
|
|
159
|
-
this.$refs.signatureRef.canvasToTempFilePath({
|
|
160
|
-
success: async (res) => {
|
|
161
|
-
console.log(res);
|
|
162
|
-
let url = res.tempFilePath
|
|
163
|
-
if(!res.isEmpty){
|
|
164
|
-
//上传签名图片
|
|
165
|
-
await this.doSubmitSign(url);
|
|
166
|
-
//提交签名
|
|
167
|
-
await this.p_doSignBless();
|
|
168
|
-
this.dialogShow = false;
|
|
169
|
-
this.dialogSuccess = true;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
})
|
|
173
|
-
},
|
|
174
|
-
p_doSignBless(){
|
|
175
|
-
return new Promise((resolve, reject) => {
|
|
176
|
-
jfbRootExec("doSignBless", {
|
|
177
|
-
vm: this,
|
|
178
|
-
data: {
|
|
179
|
-
bless_id: this.bless_id,
|
|
180
|
-
sign_image_url: this.sign_image_url
|
|
181
|
-
}
|
|
182
|
-
}).then(res => {
|
|
183
|
-
resolve(res);
|
|
184
|
-
}).catch(err => {
|
|
185
|
-
reject(err);
|
|
186
|
-
})
|
|
187
|
-
})
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
doSubmitSign(url){
|
|
191
|
-
let fileName = "sign.png";
|
|
192
|
-
let file = this.base64ToFile(url,fileName);
|
|
193
|
-
|
|
194
|
-
return new Promise((resolve,reject) => {
|
|
195
|
-
jfbRootExec("getOssSign", {
|
|
196
|
-
vm: this,
|
|
197
|
-
data: { name: fileName }
|
|
198
|
-
}).then(res => {
|
|
199
|
-
console.log(res);
|
|
200
|
-
let OSSAccessKeyId = res['id']
|
|
201
|
-
let cdnUrl = res['cdn_url']
|
|
202
|
-
delete res['id']
|
|
203
|
-
delete res['cdn_url']
|
|
204
|
-
|
|
205
|
-
uni.uploadFile({
|
|
206
|
-
url: res.action,
|
|
207
|
-
file: file,
|
|
208
|
-
name: 'file',
|
|
209
|
-
formData: {
|
|
210
|
-
...res,
|
|
211
|
-
OSSAccessKeyId: OSSAccessKeyId,
|
|
212
|
-
name: fileName,
|
|
213
|
-
cdnUrl: cdnUrl,
|
|
214
|
-
success_action_status: 200
|
|
215
|
-
},
|
|
216
|
-
success: (res) => {
|
|
217
|
-
this.sign_image_url = cdnUrl;
|
|
218
|
-
resolve(cdnUrl);
|
|
219
|
-
}
|
|
220
|
-
})
|
|
221
|
-
}).catch(err => {
|
|
222
|
-
reject();
|
|
223
|
-
})
|
|
224
|
-
})
|
|
225
|
-
|
|
226
|
-
// this.dialogSuccess = true;
|
|
227
|
-
},
|
|
228
|
-
base64ToFile(base64String, filename){
|
|
229
|
-
var arr = base64String.split(',');
|
|
230
|
-
var mime = arr[0].match(/:(.*?);/)[1];
|
|
231
|
-
var bstr = atob(arr[1]);
|
|
232
|
-
var n = bstr.length;
|
|
233
|
-
var u8arr = new Uint8Array(n);
|
|
234
|
-
while(n--) {
|
|
235
|
-
u8arr[n] = bstr.charCodeAt(n);
|
|
236
|
-
}
|
|
237
|
-
return new File([u8arr], filename, {type:mime});
|
|
238
|
-
},
|
|
239
|
-
onJfbScroll(options) {
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
onJfbReachBottom(options) {
|
|
243
|
-
console.log('event.onJfbReachBottom', options)
|
|
244
|
-
},
|
|
245
|
-
onJfbShow(options) {
|
|
246
|
-
console.log('event.onJfbShow', options)
|
|
247
|
-
},
|
|
248
|
-
onJfbHide(options) {
|
|
249
|
-
console.log('event.onJfbHide', options)
|
|
250
|
-
},
|
|
251
|
-
onJfbBack(options) {
|
|
252
|
-
console.log('event.onJfbBack', options)
|
|
253
|
-
this.$xdUniHelper.navigateBack();
|
|
254
|
-
},
|
|
255
|
-
onJfbUpdate(...data) {
|
|
256
|
-
console.log('event.onJfbUpdate', data)
|
|
257
|
-
},
|
|
258
|
-
onJfbCustomEvent(options) {
|
|
259
|
-
console.log('event.onJfbReachBottom', options)
|
|
260
|
-
},
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
</script>
|
|
265
|
-
|
|
266
|
-
<style scoped lang="less">
|
|
267
|
-
@import "./JfbBaseSaasBlessDetailLess.less";
|
|
268
|
-
|
|
269
|
-
.jfb-base-saas-bless-detail {
|
|
270
|
-
&__body{
|
|
271
|
-
box-sizing: border-box;
|
|
272
|
-
background-size: 100% auto;
|
|
273
|
-
position: relative;
|
|
274
|
-
.bless_detail{
|
|
275
|
-
|
|
276
|
-
.bless_box{
|
|
277
|
-
margin: 0 auto;
|
|
278
|
-
box-sizing: border-box;
|
|
279
|
-
padding: 100rpx 80rpx;
|
|
280
|
-
color: #FA2300;
|
|
281
|
-
font-size: 32rpx;
|
|
282
|
-
font-weight: 400;
|
|
283
|
-
position: absolute;
|
|
284
|
-
top: 0;
|
|
285
|
-
left: 0;
|
|
286
|
-
width: 100%;
|
|
287
|
-
.dear{
|
|
288
|
-
font-weight: 500;
|
|
289
|
-
}
|
|
290
|
-
.desc{
|
|
291
|
-
margin: 50rpx 0;
|
|
292
|
-
}
|
|
293
|
-
.salute{
|
|
294
|
-
text-align: right;
|
|
295
|
-
}
|
|
296
|
-
.sign_btn{
|
|
297
|
-
margin-top: 32rpx;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
.my_dialog{
|
|
302
|
-
/deep/ .xd-dailog__body-content-box{
|
|
303
|
-
padding: 0;
|
|
304
|
-
}
|
|
305
|
-
.dialog_head{
|
|
306
|
-
display: flex;
|
|
307
|
-
align-items: center;
|
|
308
|
-
justify-content: space-between;
|
|
309
|
-
padding: 48rpx 0;
|
|
310
|
-
|
|
311
|
-
.h_main{
|
|
312
|
-
font-size: 36rpx;
|
|
313
|
-
color: #333333;
|
|
314
|
-
font-weight: 500;
|
|
315
|
-
}
|
|
316
|
-
.h_sub{
|
|
317
|
-
font-size: 24rpx;
|
|
318
|
-
color: #808080;
|
|
319
|
-
font-weight: 400;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
.sign_box{
|
|
323
|
-
width: 600rpx;
|
|
324
|
-
height: 460rpx;
|
|
325
|
-
background-color: #F2F2F2;
|
|
326
|
-
}
|
|
327
|
-
.btn_wrap{
|
|
328
|
-
display: flex;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
.success_dialog{
|
|
332
|
-
.dialog_main{
|
|
333
|
-
padding: 140rpx 0 100rpx;
|
|
334
|
-
.sign_tit{
|
|
335
|
-
color: #FE7A63;
|
|
336
|
-
margin-top: 28rpx;
|
|
337
|
-
font-size: 40rpx;
|
|
338
|
-
}
|
|
339
|
-
.sign_cont{
|
|
340
|
-
font-size: 32rpx;
|
|
341
|
-
color: #333333;
|
|
342
|
-
margin-top: 40rpx;
|
|
343
|
-
}
|
|
344
|
-
.sign_ticket{
|
|
345
|
-
font-size: 32rpx;
|
|
346
|
-
color: #FE7A63;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
</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-saas-bless-detail {
|
|
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-saas-bless-detail {
|
|
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-saas-bless-detail'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|