Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dad42445
authored
Jun 05, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
e6fba62e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
16 deletions
mixin/click.js
pages/boutique/history.vue
pages/boutique/preview.vue
utils/audio/record.js
mixin/click.js
View file @
dad4244
...
@@ -167,9 +167,8 @@ export default {
...
@@ -167,9 +167,8 @@ export default {
uni
.
$storage
.
set
(
"storageFile"
,
storageFile
);
uni
.
$storage
.
set
(
"storageFile"
,
storageFile
);
this
.
setAudioList
(
storageFile
);
this
.
setAudioList
(
storageFile
);
console
.
log
(
storageFile
,
this
.
isEnd
,
"this.isEnd"
);
console
.
log
(
storageFile
,
this
.
isEnd
,
"this.isEnd"
);
if
(
!
this
.
isEnd
)
return
true
;
if
(
!
this
.
isEnd
)
return
;
if
(
this
.
isEnd
)
this
.
uploadVoice
(
storageFile
);
this
.
uploadVoice
(
storageFile
);
return
true
;
});
});
},
},
async
checkUploadFile
(
tempFilePath
)
{
async
checkUploadFile
(
tempFilePath
)
{
...
...
pages/boutique/history.vue
View file @
dad4244
...
@@ -33,16 +33,19 @@
...
@@ -33,16 +33,19 @@
/>
/>
<image
<image
v-else
v-else
class=
"image-box"
class=
"image-box
photo
"
src=
"../../assets/images/boutique/photos.png"
src=
"../../assets/images/boutique/photos.png"
/>
/>
<div
class=
"gradient-overlay"
></div>
<view
class=
"gradient-overlay"
></view>
<view
class=
"box-desc"
>
<view
class=
"name"
>
<view
class=
"name"
>
{{
item
.
customerName
.
substring
(
0
,
1
)
+
"*"
||
"-"
}}
{{
item
.
customerName
.
substring
(
0
,
1
)
+
"*"
||
"-"
}}
</view>
</view>
<view
class=
"goods-name flex"
>
<view
class=
"goods-name flex"
>
{{
{{
item
.
goodsList
.
length
?
item
.
goodsList
[
0
].
goodsName
:
"-"
item
.
goodsList
.
length
?
item
.
goodsList
[
0
].
goodsName
:
"-"
}}
}}
<image
<image
v-if=
"item.goodsList.length > 1"
v-if=
"item.goodsList.length > 1"
...
@@ -67,6 +70,7 @@
...
@@ -67,6 +70,7 @@
>
>
</view>
</view>
</view>
</view>
</view>
</template>
</template>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
...
@@ -92,12 +96,14 @@
...
@@ -92,12 +96,14 @@
:isFooter=
"false"
:isFooter=
"false"
>
>
<view
class=
"popup-body"
>
<view
class=
"popup-body"
>
<view
class=
"tabel-box-header"
>
<view
class=
"tr"
>
<view
class=
"th"
>
商品名称
</view>
<view
class=
"th"
>
部位
</view>
<view
class=
"th"
>
件数
</view>
</view>
</view>
<table
class=
"tabel-box"
cellspacing=
"0"
border=
"0"
cellpadding=
"0"
>
<table
class=
"tabel-box"
cellspacing=
"0"
border=
"0"
cellpadding=
"0"
>
<tr>
<th>
商品名称
</th>
<th>
部位
</th>
<th>
件数
</th>
</tr>
<tr
v-for=
"i in goodsList"
>
<tr
v-for=
"i in goodsList"
>
<td>
{{ i.goodsName }}
</td>
<td>
{{ i.goodsName }}
</td>
<td>
{{ i.goodsPositionName || "-" }}
</td>
<td>
{{ i.goodsPositionName || "-" }}
</td>
...
@@ -302,8 +308,8 @@ export default {
...
@@ -302,8 +308,8 @@ export default {
.item
{
.item
{
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
32
rpx
;
border-radius
:
32
rpx
;
height
:
320
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
24
rpx
32
rpx
;
position
:
relative
;
position
:
relative
;
box-shadow
:
inset
0
0
16
rpx
0
#ffffff
;
box-shadow
:
inset
0
0
16
rpx
0
#ffffff
;
z-index
:
11
;
z-index
:
11
;
...
@@ -348,7 +354,7 @@ export default {
...
@@ -348,7 +354,7 @@ export default {
}
}
}
}
.image-box
{
.image-box
{
width
:
2
50
rpx
;
width
:
3
50
rpx
;
height
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
top
:
0
rpx
;
top
:
0
rpx
;
...
@@ -356,12 +362,26 @@ export default {
...
@@ -356,12 +362,26 @@ export default {
right
:
0
rpx
;
right
:
0
rpx
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
border-radius
:
32
rpx
;
border-radius
:
32
rpx
;
z-index
:
-1
;
&.photo
{
width
:
250
rpx
;
}
}
.box-desc
{
padding
:
24
rpx
32
rpx
;
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
11
;
}
}
.gradient-overlay
{
.gradient-overlay
{
z-index
:
-1
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
width
:
2
50
rpx
;
width
:
3
50
rpx
;
height
:
100%
;
height
:
100%
;
background
:
linear-gradient
(
background
:
linear-gradient
(
to
left
,
to
left
,
...
@@ -392,16 +412,45 @@ export default {
...
@@ -392,16 +412,45 @@ export default {
}
}
}
}
.popup-body
{
.popup-body
{
.tabel-box
{
.tabel-box-header
{
width
:
100%
;
margin-top
:
50
rpx
;
margin-top
:
50
rpx
;
.tr
{
display
:
flex
;
align-items
:
center
;
.th
{
border
:
1
rpx
solid
#fff
;
color
:
#333333
;
font-weight
:
500
;
height
:
96
rpx
;
line-height
:
96
rpx
;
background
:
#edf2ff
;
text-align
:
left
;
padding-left
:
30
rpx
;
&:first-child
{
width
:
60%
;
}
&
:nth-child
(
2
)
{
width
:
20%
;
}
&
:nth-child
(
3
)
{
width
:
20%
;
}
}
}
}
.tabel-box
{
margin-top
:
20
rpx
;
width
:
100%
;
width
:
100%
;
tr
{
tr
{
border
:
1
rpx
solid
#fff
;
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
&:first-child
{
&:first-child
{
margin-bottom
:
10
rpx
;
margin-bottom
:
10
rpx
;
}
}
td
,
td
,
th
{
th
{
border
:
1
rpx
solid
#fff
;
color
:
#333333
;
color
:
#333333
;
font-weight
:
500
;
font-weight
:
500
;
height
:
96
rpx
;
height
:
96
rpx
;
...
...
pages/boutique/preview.vue
View file @
dad4244
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
v-if=
"sourceType == 2"
v-if=
"sourceType == 2"
></video>
></video>
<view
class=
"img-detail"
v-else
<view
class=
"img-detail"
v-else
><image
:src=
"detailUrl"
:style=
"
{ width: width + 'px' }"
><image
@
click=
"back"
:src=
"detailUrl"
:style=
"
{ width: width + 'px' }"
/>
</view>
/>
</view>
</view>
</view>
</view>
</view>
...
...
utils/audio/record.js
0 → 100644
View file @
dad4244
class
RecorderManager
{
constructor
(
options
)
{
const
{
duration
,
callback
}
=
options
||
{};
this
.
recorderManager
=
uni
.
getRecorderManager
();
this
.
start
(
duration
);
this
.
recorderManager
.
onStop
((
res
)
=>
{
callback
(
res
.
tempFilePath
);
});
}
start
(
duration
=
60000
)
{
this
.
recorderManager
.
start
({
duration
,
sampleRate
:
16000
,
numberOfChannels
:
1
,
});
}
stop
()
{
this
.
recorderManager
.
stop
();
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment