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 baed7146
authored
Apr 08, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交未接待弹窗
1 parent
7a73cf7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
9 deletions
pages/detail/detail.vue
pages/home/home.vue
pages/detail/detail.vue
View file @
baed714
...
@@ -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:
前端 qianduan01@didihu.com.cn
* @LastEditors:
huyue
* @LastEditTime: 2024-04-08 18:
27:50
* @LastEditTime: 2024-04-08 18:
30:16
-->
-->
<
template
>
<
template
>
<view>
<view>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"payment-done"
>
已完成支付,去采集凭证
</view>
<view
class=
"payment-done"
@
click=
"done()"
>
已完成支付,去采集凭证
</view>
</view>
</view>
</view>
</view>
</uni-popup>
</uni-popup>
...
@@ -139,14 +139,16 @@ export default {
...
@@ -139,14 +139,16 @@ export default {
},
},
open
()
{
open
()
{
this
.
stopAudio
();
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
//
this.$refs.popup.open("bottom");
this
.
$refs
.
popup
.
open
(
"bottom"
);
this
.
findPayInfo
();
this
.
findPayInfo
();
},
},
close
()
{
close
()
{
this
.
$refs
.
popup
.
close
();
this
.
$refs
.
popup
.
close
();
},
},
done
()
{
this
.
stopAudio
();
}
},
},
};
};
</
script
>
</
script
>
...
...
pages/home/home.vue
View file @
baed714
...
@@ -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:
前端 qianduan01@didihu.com.cn
* @LastEditors:
huyue
* @LastEditTime: 2024-04-08 18:
26:32
* @LastEditTime: 2024-04-08 18:
48:34
-->
-->
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
...
@@ -60,6 +60,24 @@
...
@@ -60,6 +60,24 @@
<view
class=
"module-name"
>
{{
item
.
title
}}
</view>
<view
class=
"module-name"
>
{{
item
.
title
}}
</view>
</view>
</view>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<uni-popup
ref=
"tips"
type=
"center"
:animation=
"false"
>
<view
class=
"tips-wrapper"
>
<view
class=
"tips-content"
>
<view
class=
"tips-title"
>
提示
<view
class=
"icon-close"
@
click=
"close"
>
×
</view>
</view>
<view
class=
"tips-text"
>
直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」
</view
>
</view>
<view
class=
"tips-footer"
>
<view
class=
"tips-btn close"
>
取消
</view>
<view
class=
"tips-btn preview"
@
click=
"preview"
>
预览素材
</view>
</view>
</view>
</uni-popup>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -99,11 +117,24 @@ export default {
...
@@ -99,11 +117,24 @@ export default {
});
});
},
},
toDetail
(
item
)
{
toDetail
(
item
)
{
// this.$Router.push({name:'detail'})
if
(
this
.
isStart
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`../detail/detail?id=
${
item
.
id
}
`
,
url
:
`../detail/detail?id=
${
item
.
id
}
&type=edit
`
,
});
});
}
else
{
this
.
preview
(
item
)
}
this
.
$refs
.
tips
.
open
(
"center"
);
},
},
close
()
{
this
.
$refs
.
tips
.
close
();
},
preview
(
item
)
{
uni
.
navigateTo
({
url
:
`../detail/detail?id=
${
item
.
id
}
&type=preview`
,
});
}
},
},
};
};
</
script
>
</
script
>
...
@@ -228,4 +259,61 @@ export default {
...
@@ -228,4 +259,61 @@ export default {
}
}
}
}
}
}
//
未开始接待弹窗
.tips-wrapper
{
width
:
704
rpx
;
height
:
372
rpx
;
background
:
#ffffff
;
border-radius
:
20
rpx
;
.tips-content
{
padding
:
48
rpx
;
border-bottom
:
1px
solid
#e8e8e8
;
.tips-title
{
position
:
relative
;
width
:
100%
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#292d33
;
text-align
:
center
;
.icon-close
{
position
:
absolute
;
right
:
0
;
top
:
-24
rpx
;
width
:
160
rpx
;
font-size
:
50
rpx
;
text-align
:
right
;
padding-right
:
20
rpx
;
line-height
:
96
rpx
;
}
}
}
.tips-text
{
font-size
:
30
rpx
;
color
:
#5a5e66
;
letter-spacing
:
1
rpx
;
text-align
:
center
;
line-height
:
40
rpx
;
margin-top
:
48
rpx
;
}
.tips-footer
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
height
:
100
rpx
;
.close
{
color
:
#6c6c70
;
}
.preview
{
color
:
#2c66f7
;
}
}
.tips-btn
{
width
:
50%
;
text-align
:
center
;
font-size
:
32
rpx
;
text-align
:
center
;
line-height
:
44
rpx
;
}
}
</
style
>
</
style
>
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