Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
b1b7212c
Commit
b1b7212c
authored
Jul 15, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-20250710wyz-修复验证码倒计时' into 'dev'
修改签名最长时间到1分钟 See merge request
!46
parents
4a76ed1b
11536b9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
94 deletions
+26
-94
components/eSignature/eSignature.vue
+5
-89
myPackageA/setting/logOff.vue
+1
-1
pages/saleCourseLists/saleCourseLists.vue
+20
-4
No files found.
components/eSignature/eSignature.vue
View file @
b1b7212c
...
...
@@ -31,11 +31,11 @@
validationError
:
''
,
// 新增验证错误信息
strokeCount
:
0
,
// 新增笔画计数
lastStrokeTime
:
null
,
// 新增最后笔画时间
minSignDuration
:
1000
,
// 最小签名持续时间(毫秒)
//
minSignDuration: 1000, // 最小签名持续时间(毫秒)
signStartTime
:
null
,
// 签名开始时间
minStrokes
:
5
,
// 最小笔画数增加到5
minSignDuration
:
2000
,
// 最小签名持续时间增加到2秒
maxSignDuration
:
1
0000
,
// 最大签名持续时间
maxSignDuration
:
6
0000
,
// 最大签名持续时间
minDirectionChanges
:
4
,
// 最小方向变化次数
minSignatureWidth
:
100
,
// 最小签名宽度
minSignatureHeight
:
50
,
// 最小签名高度
...
...
@@ -86,29 +86,7 @@
this
.
ctx
.
lineCap
=
'round'
;
this
.
ctx
.
lineJoin
=
'round'
;
},
// touchstart(e) {
// this.isDrawing = true;
// // 记录签名开始时间
// if (!this.signStartTime) {
// this.signStartTime = Date.now();
// }
// let startX = e.changedTouches[0].x;
// let startY = e.changedTouches[0].y;
// let startPoint = {
// X: startX,
// Y: startY
// };
// this.points.push(startPoint);
// this.ctx.beginPath();
// // 笔画计数
// this.strokeCount++;
// this.lastStrokeTime = Date.now();
// e.stopPropagation();
// return false;
// },
// 修改touchstart方法
touchstart
(
e
)
{
this
.
isDrawing
=
true
;
...
...
@@ -138,24 +116,7 @@
e
.
stopPropagation
();
return
false
;
},
// touchmove(e) {
// if (!this.isDrawing) return;
// let moveX = e.changedTouches[0].x;
// let moveY = e.changedTouches[0].y;
// let movePoint = {
// X: moveX,
// Y: moveY
// };
// this.points.push(movePoint);
// let len = this.points.length;
// if (len >= 2) {
// this.draw();
// }
// e.stopPropagation();
// return false;
// },
// 修改touchmove方法
touchmove
(
e
)
{
if
(
!
this
.
isDrawing
)
return
;
...
...
@@ -246,21 +207,6 @@
this
.
showValidationError
=
false
;
// 有绘制动作时隐藏错误提示
},
//清空画布
// clear() {
// this.hasSign = false;
// this.strokeCount = 0;
// this.signStartTime = null;
// this.showValidationError = false;
// let that = this;
// uni.getSystemInfo({
// success: function(res) {
// let canvasw = res.windowWidth;
// let canvash = res.windowHeight;
// that.ctx.clearRect(0, 0, canvasw, canvash);
// that.ctx.draw(true);
// }
// });
// },
// 修改clear方法
clear
()
{
this
.
hasSign
=
false
;
...
...
@@ -288,37 +234,7 @@
});
},
// 验证签名是否符合要求
// validateSignature() {
// // 1. 检查是否有签名
// if (!this.hasSign) {
// this.showValidationError = true;
// this.validationError = this.emptyTxt;
// this.$emit('validationError', this.emptyTxt);
// return false;
// }
// // 2. 检查笔画数是否足够
// if (this.strokeCount
<
this
.
minStrokes
)
{
// this.showValidationError = true;
// this.validationError = this.validationTxt;
// this.$emit('validationError', this.validationTxt);
// return false;
// }
// // 3. 检查签名时间是否足够
// const signDuration = Date.now() - this.signStartTime;
// if (signDuration
<
this
.
minSignDuration
)
{
// this.showValidationError = true;
// this.validationError = this.validationTxt;
// this.$emit('validationError', this.validationTxt);
// return false;
// }
// // 验证通过
// this.showValidationError = false;
// this.$emit('validationError', '');
// return true;
// },
// 修改validateSignature方法
validateSignature
()
{
// 1. 检查是否有签名
...
...
myPackageA/setting/logOff.vue
View file @
b1b7212c
...
...
@@ -220,7 +220,7 @@
if
(
!
signatureValid
)
{
return
;
}
return
// 如果验证通过,再执行完成签名
this
.
$refs
.
signatureComponent
.
finish
();
});
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
b1b7212c
...
...
@@ -80,10 +80,19 @@
</view>
</
template
>
<
template
v-if=
"userCourses && tabType===2"
>
<view
class=
"orderItemDetailBox"
v-for=
"item in userShareCourseOrders"
:key=
"index"
>
<view><text>
订单编号
</text><text>
{{
item
.
orderNo
}}
</text></view>
<view><text>
产品名称
</text><text>
{{
item
.
fileTitle
}}
</text></view>
<view><text>
购买人
</text><text>
{{
item
.
userName
}}
</text></view>
<view
class=
"orderItemDetailBox"
v-for=
"(item,index) in userShareCourseOrders"
:key=
"index"
>
<view
>
<text>
订单编号
</text>
<text
class=
"orderNum"
>
{{
item
.
orderNo
}}
</text>
</view>
<view>
<text>
产品名称
</text>
<text>
{{
item
.
fileTitle
}}
</text>
</view>
<view>
<text>
购买人
</text>
<text>
{{
item
.
userName
}}
</text>
</view>
<view
class=
"orderDetailLine"
>
<text
class=
"infoBtn"
@
click=
"viewDetail(item)"
>
订单详情
</text>
</view>
...
...
@@ -463,6 +472,13 @@
background-color
:
#20269B
;
}
}
.orderNum
{
/* 新增以下样式 */
white-space
:
nowrap
;
/* 不换行 */
overflow
:
hidden
;
/* 超出部分隐藏 */
text-overflow
:
ellipsis
;
/* 显示省略号 */
flex
:
1
;
/* 占据剩余空间 */
}
}
}
.orderItemDetailBox
:last-child
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment