Commit f5a85a2a by 前端

弹框

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