Commit d691d89a by 胡悦

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents 01c015e1 1c5a0825
......@@ -50,4 +50,9 @@
.icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
\ No newline at end of file
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -734rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
......@@ -489,6 +489,7 @@ export default {
border-radius: 100%;
}
.user-name {
max-width: 80%;
font-weight: 500;
font-size: 28rpx;
color: #292d33;
......
......@@ -30,10 +30,10 @@
</template>
{{ title }}
</view>
<view
<text
class="tips-text"
v-if="content"
>{{ content }}</view>
>{{ content }}</text>
<slot></slot>
</view>
<view
......@@ -167,6 +167,7 @@ export default {
}
}
.tips-text {
display: block;
font-size: 30rpx;
color: #5a5e66;
letter-spacing: 1rpx;
......
......@@ -93,6 +93,13 @@
}
},
{
"path": "pages/boutique/preview",
"style": {
"navigationStyle": "custom",
"disableSwipeBack": true
}
},
{
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
"style": {
"disableScroll": true,
......
<template>
<view class="container">
<view class="bg"></view>
<view class="box">
<view class="input-box">
<input
type="text"
class="input"
:value="name"
placeholder="搜索图片/视频名称"
maxlength="50"
@blur="input($event)"
@focus="focus"
/>
<view class="input-tips" v-if="!isSearch"
>搜索图片/视频名称<uni-icons
type="search"
class="icon"
color="#999"
size="20"
></uni-icons
></view>
</view>
<scroll-view
......@@ -22,9 +31,10 @@
<template v-if="list.length">
<template v-for="item in list">
<view class="item" :key="item.id">
<view class="item-autio">
<image :src="item.detailUrl" class="cover-box"></image>
<view class="item-autio" @click="playVideo(item)">
<image :src="item.coverUrl" class="cover-box"></image>
<image
v-if="item.sourceType == 2"
src="../../assets/images/boutique/play.png"
class="play-box"
></image>
......@@ -42,6 +52,17 @@
</view>
</scroll-view>
</view>
<view class="popup-box" v-if="popupShow">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="24" color="#fff"></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view class="popup-body">
<video ref="videoPlayer" :src="videoSrc" controls></video>
</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
......@@ -50,8 +71,11 @@ export default {
name: '',
data () {
return {
name:'',
name:'',
list: [],
popupShow:false,
isSearch:false,
videoSrc: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4',
}
},
props: {
......@@ -60,14 +84,29 @@ export default {
default: () => []
}
},
beforeDestroy() {
this.popupShow = false
},
mounted() {
// this.list = utils.deepClone(this.views)
console.log(this.views)
this.list = this.views
},
methods: {
playVideo(item) {
const {tabName,sourceType,detailUrl} = item
uni.navigateTo({
url: `/pages/boutique/preview?tabName=${tabName}&sourceType=${sourceType}&detailUrl=${detailUrl}`
})
},
focus() {
this.isSearch = true
},
input(e) {
this.name = e.detail.value
if(this.name == '')
this.isSearch = false
this.list = this.views.filter(i=>i.tabName.includes(this.name))
},
},
......@@ -82,18 +121,46 @@ export default {
height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
overflow: hidden;
.bg {
width: 100%;
height: 800rpx;
position: absolute;
left: 0;
background-image: url("../../assets/images/boutique/record-bg.png");
background-size: 100% 100%;
top: 0;
}
.box {
padding: 64rpx;
margin-top: 120rpx;
.input-box {
position: relative;
.input {
padding-left: 30rpx;
text-align: center;
height: 80rpx;
background: #ffffff;
border: 3rpx solid #a8c1ff;
border-radius: 16rpx;
width: 100%;
line-height: 80rpx;
z-index: 1;
}
.input-tips {
color: #999999;
position: absolute;
left: 0;
top: 0;
height: 80rpx;
width: 100%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
.icon {
margin-left: 12rpx;
}
}
}
.list {
......@@ -132,6 +199,44 @@ export default {
}
}
}
.popup-box {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000;
padding: 100rpx 0rpx;
z-index: 100;
.nav-bar {
width: 100%;
height: 96rpx;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
}
.popup-body {
width: 100%;
height: 100%;
video {
width: 100%;
height: 100%;
}
}
}
.nothing {
width: 100vw;
flex-direction: column;
......
<template>
<view class="container">
<view class="bg"></view>
<view class="box">
<view class="data-tabs-box">
<view class="data-tabs">
......@@ -178,9 +179,18 @@ export default {
top: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
background-image: linear-gradient(180deg, #f1f5ff 0%, #f3f6ff 100%);
overflow: hidden;
.bg {
width: 100%;
height: 800rpx;
position: absolute;
left: 0;
background-image: url("../../assets/images/boutique/record-bg.png");
background-size: 100% 100%;
top: 0;
}
.nav-bar {
position: fixed;
width: 100%;
......
......@@ -169,16 +169,16 @@ export default {
this.init();
},
async start () {
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return;
// }
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
if (result !== 1) {
uni.showToast({
title: "为了记录语音通话,请打开录音权限",
icon: "none",
});
return;
}
this.clearHistory();
this.$refs.customerTypeRef.open()
this.startAudio();
......@@ -198,7 +198,10 @@ export default {
chooseCustomerType (index) {
const { moduleList } = this
this.customerType = index
if (index == 0) this.jumpPage(moduleList.at(-1).id) //跳转处理
if (index == 0) {
const { id } = moduleList[moduleList.length - 1]
this.jumpPage(id)
}
else this.jumpPage()
},
done (e) {
......
<template>
<view class="container">
<view class="bg"></view>
<view class="box">
<view class="input-box">
<input
type="text"
class="input"
:value="customerNameOrPhone"
placeholder="搜索客户姓名/电话"
maxlength="11"
@blur="input($event)"
@focus="focus"
/>
<view class="input-tips" v-if="!isSearch"
>搜索客户姓名/电话<uni-icons
type="search"
class="icon"
color="#999"
size="20"
></uni-icons
></view>
</view>
<scroll-view
......@@ -60,10 +69,11 @@
<script type="text/ecmascript-6">
import Record from "@/mixin/record";
export default {
mixins:[Record],
mixins:[Record],
data () {
return {
customerNameOrPhone:'',
customerNameOrPhone:'',
isSearch:false,
list: [{
id:1,
carModel:1,
......@@ -96,9 +106,15 @@ export default {
},
input(e) {
this.customerNameOrPhone = e.detail.value
if(this.customerNameOrPhone == '')
this.isSearch = false
this.pageNum = 1
this.getRecordList()
},
focus() {
this.isSearch = true
},
getRecordList() {
const { pageNum, pageSize,customerNameOrPhone } = this,
userInfo = uni.$storage.get("userInfo"),
......@@ -125,6 +141,15 @@ export default {
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
overflow: hidden;
.bg {
width: 100%;
height: 800rpx;
position: absolute;
left: 0;
background-image: url("../../assets/images/boutique/record-bg.png");
background-size: 100% 100%;
top: 0;
}
.nav-bar {
position: fixed;
width: 100%;
......@@ -154,6 +179,7 @@ export default {
padding: 64rpx;
margin-top: 120rpx;
.input-box {
position: relative;
.input {
padding-left: 30rpx;
height: 80rpx;
......@@ -164,6 +190,22 @@ export default {
line-height: 80rpx;
text-align: center;
}
.input-tips {
color: #999999;
position: absolute;
left: 0;
top: 0;
height: 80rpx;
width: 100%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
.icon {
margin-left: 12rpx;
}
}
}
.record-box {
height: calc(100vh - 300rpx);
......
<template>
<view class="popup-box">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="24" color="#fff"></uni-icons>
</view>
<view class="title">{{ title }}</view>
</view>
<view class="popup-body">
<video
ref="videoPlayer"
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view class="img-detail" v-else
><image :src="detailUrl" :style="{ width: width + 'px' }"
/></view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
data () {
return {
width:0,
title: '11',
sourceType: '',
detailUrl: ''
}
},
onLoad (options) {
const {tabName,sourceType,detailUrl} = options
this.title = tabName
this.sourceType = sourceType
this.detailUrl = detailUrl
const img = new Image()
img.onload = ()=> {
this.width = document.querySelector('.img-detail').offsetHeight*img.height/img.width
console.log(this.width)
}
img.src = detailUrl
},
methods: {
back() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.popup-box {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000;
padding: 100rpx 0rpx;
z-index: 100;
.nav-bar {
width: 100%;
height: 96rpx;
margin-bottom: 50rpx;
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
.title {
color: #fff;
flex: 1;
font-size: 32rpx;
text-align: center;
}
}
.popup-body {
width: 100%;
height: calc(100% - 200rpx);
video {
width: 100%;
height: 100%;
}
.img-detail {
height: 100%;
text-align: center;
image {
height: 100%;
width: auto;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!