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 f5a85a2a
authored
Apr 08, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹框
1 parent
01a8718b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
83 deletions
App.vue
mixin/click.js
pages/detail/detail.vue
pages/home/home.vue
App.vue
View file @
f5a85a2
<
script
>
<
script
>
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
},
uni
.
setKeepScreenOn
({
onShow
:
function
()
{},
keepScreenOn
:
true
,
onHide
:
function
()
{}
});
}
},
onShow
:
function
()
{},
onHide
:
function
()
{},
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
"uview-ui/index.scss"
;
@import
"uview-ui/index.scss"
;
page
{
page
{
background
:
$
u-bg-color
;
background
:
$
u-bg-color
;
color
:
$
u-main-color
;
color
:
$
u-main-color
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
height
:
100%
;
height
:
100%
;
min-height
:
100%
;
min-height
:
100%
;
}
}
view
,
view
,
navigator
,
navigator
,
image
,
image
,
text
,
text
,
scroll-view
,
scroll-view
,
swiper
,
swiper
,
swiper-item
,
swiper-item
,
input
,
input
,
textarea
,
textarea
,
button
{
button
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
/* 文字避头尾法则 */
/* 文字避头尾法则 */
.btw
{
.btw
{
table-layout
:
fixed
;
table-layout
:
fixed
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
normal
;
word-break
:
normal
;
text-align
:
justify
;
text-align
:
justify
;
text-justify
:
inter-ideograph
;
text-justify
:
inter-ideograph
;
}
}
.bg-white
{
.bg-white
{
background
:
#fff
;
background
:
#fff
;
}
}
.font-weight
{
.font-weight
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.u-flex-center
{
.u-flex-center
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
button
{
button
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
line-height
:
1.5
;
line-height
:
1.5
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
background-color
:
transparent
;
background-color
:
transparent
;
border-radius
:
0
;
border-radius
:
0
;
position
:
relative
;
position
:
relative
;
}
}
button
::after
{
button
::after
{
border
:
none
;
border
:
none
;
}
}
//
指定按钮按下去的样式类
.button-hover
{
transform
:
translate
(
1
rpx
,
1
rpx
);
}
</
style
>
\ No newline at end of file
\ No newline at end of file
//
指定按钮按下去的样式类
.button-hover
{
transform
:
translate
(
1
rpx
,
1
rpx
);
}
</
style
>
mixin/click.js
View file @
f5a85a2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 1
8:23:05
* @LastEditTime: 2024-04-08 1
9:00:44
* @FilePath: \gl_tape\mixin\click.js
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -15,6 +15,7 @@ import utils from "@/utils/utils";
...
@@ -15,6 +15,7 @@ import utils from "@/utils/utils";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isStart
:
false
,
voicePath
:
""
,
voicePath
:
""
,
timer
:
null
,
timer
:
null
,
times
:
0
,
times
:
0
,
...
@@ -42,6 +43,7 @@ export default {
...
@@ -42,6 +43,7 @@ export default {
recording
=
true
;
recording
=
true
;
receptionStartTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
"/"
);
receptionStartTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
"/"
);
});
});
if
(
recording
)
this
.
isStart
=
true
;
},
},
methods
:
{
methods
:
{
checkVoice
()
{
checkVoice
()
{
...
...
pages/detail/detail.vue
View file @
f5a85a2
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description:
* @Description:
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors:
huyue
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 18:
30:16
* @LastEditTime: 2024-04-08 18:
54:27
-->
-->
<
template
>
<
template
>
<view>
<view>
...
@@ -66,7 +66,9 @@
...
@@ -66,7 +66,9 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"payment-done"
@
click=
"done()"
>
已完成支付,去采集凭证
</view>
<view
class=
"payment-done"
@
click=
"done()"
>
已完成支付,去采集凭证
</view
>
</view>
</view>
</view>
</view>
</uni-popup>
</uni-popup>
...
@@ -147,8 +149,11 @@ export default {
...
@@ -147,8 +149,11 @@ export default {
this
.
$refs
.
popup
.
close
();
this
.
$refs
.
popup
.
close
();
},
},
done
()
{
done
()
{
uni
.
navigateBack
({
delta
:
1
,
});
this
.
stopAudio
();
this
.
stopAudio
();
}
}
,
},
},
};
};
</
script
>
</
script
>
...
...
pages/home/home.vue
View file @
f5a85a2
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description: 首页
* @Description: 首页
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @Date: 2024-04-07 14:39:40
* @LastEditors:
huyue
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 1
8:48:34
* @LastEditTime: 2024-04-08 1
9:01:49
-->
-->
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
...
@@ -40,13 +40,13 @@
...
@@ -40,13 +40,13 @@
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<!-- 右侧内容 -->
<!-- 右侧内容 -->
<view
class=
"home-title"
>
客户接待
</view>
<view
class=
"home-title"
>
客户接待
</view>
<view
class=
"start"
>
<view
class=
"start"
@
click=
"start"
>
<glsx-image
<glsx-image
class=
"icon-start"
class=
"icon-start"
src=
"home/icon-handshake.png"
src=
"home/icon-handshake.png"
mode=
"scaleToFill"
mode=
"scaleToFill"
/>
/>
<view
class=
"start-text"
@
click=
"startAudio()"
>
开始接待
</view>
<view
class=
"start-text"
>
开始接待
</view>
</view>
</view>
<!-- 各模块入口list -->
<!-- 各模块入口list -->
<view
class=
"module-list"
>
<view
class=
"module-list"
>
...
@@ -61,7 +61,13 @@
...
@@ -61,7 +61,13 @@
</view>
</view>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<uni-popup
ref=
"tips"
type=
"center"
:animation=
"false"
>
<uni-popup
ref=
"tips"
type=
"center"
mask-background-color=
"transparent"
:is-mask-click=
"false"
:animation=
"false"
>
<view
class=
"tips-wrapper"
>
<view
class=
"tips-wrapper"
>
<view
class=
"tips-content"
>
<view
class=
"tips-content"
>
<view
class=
"tips-title"
<view
class=
"tips-title"
...
@@ -73,8 +79,8 @@
...
@@ -73,8 +79,8 @@
>
>
</view>
</view>
<view
class=
"tips-footer"
>
<view
class=
"tips-footer"
>
<view
class=
"tips-btn close"
>
取消
</view>
<view
class=
"tips-btn close"
@
click=
"close()"
>
取消
</view>
<view
class=
"tips-btn preview"
@
click=
"preview"
>
预览素材
</view>
<view
class=
"tips-btn preview"
@
click=
"preview
()
"
>
预览素材
</view>
</view>
</view>
</view>
</view>
</uni-popup>
</uni-popup>
...
@@ -103,15 +109,22 @@ export default {
...
@@ -103,15 +109,22 @@ export default {
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
getSoure
();
this
.
getSoure
();
this
.
close
();
},
},
methods
:
{
methods
:
{
// 查询素材
// 查询素材
async
getSoure
()
{
async
getSoure
()
{
this
.
moduleList
=
await
uni
.
$api
.
commonApi
.
findSoureList
();
this
.
moduleList
=
await
uni
.
$api
.
commonApi
.
findSoureList
();
},
},
start
()
{
this
.
startAudio
();
uni
.
navigateTo
({
url
:
`../detail/detail?id=
${
this
.
moduleList
[
0
].
id
}
&type=edit`
,
});
},
// 退出
// 退出
logout
()
{
logout
()
{
console
.
log
(
1111111
);
this
.
stopAudio
(
);
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
"/pages/common/login"
,
url
:
"/pages/common/login"
,
});
});
...
@@ -122,19 +135,17 @@ export default {
...
@@ -122,19 +135,17 @@ export default {
url
:
`../detail/detail?id=
${
item
.
id
}
&type=edit`
,
url
:
`../detail/detail?id=
${
item
.
id
}
&type=edit`
,
});
});
}
else
{
}
else
{
this
.
preview
(
item
)
this
.
$refs
.
tips
.
open
(
"center"
);
}
}
this
.
$refs
.
tips
.
open
(
"center"
);
},
},
close
()
{
close
()
{
this
.
$refs
.
tips
.
close
();
this
.
$refs
.
tips
.
close
();
},
},
preview
(
item
)
{
preview
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`../detail/detail?
id=
${
item
.
id
}
&
type=preview`
,
url
:
`../detail/detail?type=preview`
,
});
});
}
}
,
},
},
};
};
</
script
>
</
script
>
...
...
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