Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
3ec2c0c4
Commit
3ec2c0c4
authored
Jul 25, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
36bdd9e9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
37 deletions
+32
-37
u-picker.vue
node_modules/uview-ui/components/u-picker/u-picker.vue
+2
-2
QRCode.vue
pages/teamLeader/components/QRCode.vue
+18
-29
otherInfor1.vue
pages/teamLeader/components/report/otherInfor1.vue
+3
-2
reimbursementInfor.vue
pages/teamLeader/reimbursementInfor.vue
+6
-2
userVip-center.vue
pages/user-center/userVip-center.vue
+3
-2
No files found.
node_modules/uview-ui/components/u-picker/u-picker.vue
View file @
3ec2c0c4
...
...
@@ -530,13 +530,13 @@
if
(
this
.
params
.
year
)
this
.
year
=
this
.
years
[
this
.
valueArr
[
i
++
]];
if
(
this
.
params
.
month
)
{
this
.
month
=
this
.
months
[
this
.
valueArr
[
i
++
]];
if
(
this
.
day
>
new
Date
(
this
.
year
,
this
.
month
,
0
).
getDate
()){
if
(
this
.
day
>
new
Date
(
this
.
year
,
this
.
month
,
0
).
getDate
()
&&
this
.
startDay
){
this
.
setDays
()
}
}
if
(
this
.
params
.
day
)
{
this
.
day
=
this
.
days
[
this
.
valueArr
[
i
++
]];
this
.
setHours
()
if
(
this
.
startHours
)
this
.
setHours
()
}
if
(
this
.
params
.
hour
)
{
this
.
hour
=
this
.
hours
[
this
.
valueArr
[
i
++
]];
...
...
pages/teamLeader/components/QRCode.vue
View file @
3ec2c0c4
...
...
@@ -203,17 +203,30 @@
data
:
arrayBuffer
,
// 直接写入 ArrayBuffer
encoding
:
'binary'
,
// 必须指定为 binary
success
:
()
=>
{
uni
.
showToast
({
title
:
'临时文件路径:
'
+
filePath
});
uni
.
showToast
({
title
:
'临时文件:
'
+
filePath
});
// 可选:保存到相册(需授权)
that
.
saveFileToPhone
(
filePath
);
},
fail
:
(
err
)
=>
{
uni
.
showToast
({
title
:
'写入失败'
,
icon
:
'none'
});
console
.
error
(
'写入错误'
,
err
);
uni
.
showToast
({
title
:
'写入失败'
,
icon
:
'none'
});
console
.
error
(
'写入错误'
,
err
);
}
});
return
},
saveFileToPhone
(
tempFilePath
)
{
uni
.
saveFile
({
tempFilePath
:
tempFilePath
,
success
:
(
saveRes
)
=>
{
uni
.
showToast
({
title
:
'文件已保存至:'
+
saveRes
.
savedFilePath
});
},
fail
:
(
err
)
=>
{
uni
.
showToast
({
title
:
'保存失败'
,
icon
:
'none'
});
console
.
error
(
'保存错误'
,
err
);
}
});
},
canvasToTempFilePath
(){
uni
.
canvasToTempFilePath
({
canvasId
:
`firstCanvas_
${
that
.
current
}
`
,
success
:
(
res
)
=>
{
...
...
@@ -290,31 +303,7 @@
this
);
},
base64ToBlob
(
base64Data
,
mimeType
)
{
// 解码 Base64 数据
const
byteString
=
atob
(
base64Data
);
// 计算字节长度
const
arrayBuffer
=
new
ArrayBuffer
(
byteString
.
length
);
const
uintArray
=
new
Uint8Array
(
arrayBuffer
);
// 填充字节数据
for
(
let
i
=
0
;
i
<
byteString
.
length
;
i
++
)
{
uintArray
[
i
]
=
byteString
.
charCodeAt
(
i
);
}
// 创建 Blob 对象(指定 MIME 类型)
return
new
Blob
([
arrayBuffer
],
{
type
:
mimeType
});
},
saveFileToPhone
(
tempFilePath
)
{
uni
.
saveFile
({
tempFilePath
:
tempFilePath
,
success
:
(
saveRes
)
=>
{
uni
.
showToast
({
title
:
'文件已保存至:'
+
saveRes
.
savedFilePath
});
},
fail
:
(
err
)
=>
{
uni
.
showToast
({
title
:
'保存失败'
,
icon
:
'none'
});
console
.
error
(
'保存错误'
,
err
);
}
});
},
canvasIdErrorCallback
:
function
(
e
,
index
)
{
console
.
error
(
e
.
detail
.
errMsg
,
'---index'
,
index
);
...
...
pages/teamLeader/components/report/otherInfor1.vue
View file @
3ec2c0c4
...
...
@@ -224,8 +224,9 @@
<view
class=
"PY50"
></view>
<singleChoice
v-if=
"optionVisible"
:current=
"optionObj.id"
:list=
"optionList"
@
close=
"close"
@
change=
"popupCurrent"
></singleChoice>
<u-picker
v-model=
"dateVisible"
mode=
"time"
:startMonth=
"$utils.GetDateFewFaysLater(-1).month"
:params=
"dateParams"
@
cancel=
"setDateHandler"
@
confirm=
"setDateHandler"
confirmColor=
"#257BF2"
<u-picker
v-model=
"dateVisible"
mode=
"time"
:params=
"dateParams"
@
cancel=
"setDateHandler"
@
confirm=
"setDateHandler"
confirmColor=
"#257BF2"
:defaultTime=
"time"
></u-picker>
</view>
</template>
...
...
pages/teamLeader/reimbursementInfor.vue
View file @
3ec2c0c4
...
...
@@ -43,14 +43,18 @@
font-size
:
32rpx
;
color
:
#FFFFFF
;
white-space
:
nowrap
;
margin
:
0
22rpx
20rpx
;
margin-bottom
:
20rpx
;
margin-left
:
22rpx
;
margin-right
:
22rpx
;
text-align
:
center
;
padding
:
5rpx
30rpx
;
}
.reimbursementInforText.active
{
color
:
#257BF1
;
background
:
#FFFFFF
;
border-radius
:
6rpx
;
padding
:
5rpx
2
0rpx
;
padding
:
5rpx
3
0rpx
;
}
.saveBox
{
...
...
pages/user-center/userVip-center.vue
View file @
3ec2c0c4
...
...
@@ -180,11 +180,12 @@
};
},
onLoad
()
{
},
onShow
()
{
this
.
b2b_user_info
=
uni
.
getStorageSync
(
'b2b_user'
);
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
showAuth
=
!
this
.
mall_UserInfo
||
!
this
.
b2b_user_info
;
},
onShow
()
{
const
that
=
this
uni
.
getSystemInfo
({
success
(
res
)
{
...
...
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