Commit dad42445 by 前端

样式调整

1 parent e6fba62e
......@@ -167,9 +167,8 @@ export default {
uni.$storage.set("storageFile", storageFile);
this.setAudioList(storageFile);
console.log(storageFile, this.isEnd, "this.isEnd");
if (!this.isEnd) return true;
if (this.isEnd) this.uploadVoice(storageFile);
return true;
if (!this.isEnd) return;
this.uploadVoice(storageFile);
});
},
async checkUploadFile(tempFilePath) {
......
......@@ -33,38 +33,42 @@
/>
<image
v-else
class="image-box"
class="image-box photo"
src="../../assets/images/boutique/photos.png"
/>
<div class="gradient-overlay"></div>
<view class="name">
{{ item.customerName.substring(0, 1) + "*" || "-" }}
</view>
<view class="goods-name flex">
{{
item.goodsList.length ? item.goodsList[0].goodsName : "-"
}}
<image
v-if="item.goodsList.length > 1"
@click="handleLook(item.goodsList)"
class="image-look"
src="../../assets/images/boutique/look.png"
/>
</view>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view>
<view :class="{ value: true, bold: k.isBold }">{{
item[k.key] || "-"
}}</view>
<view class="gradient-overlay"></view>
<view class="box-desc">
<view class="name">
{{ item.customerName.substring(0, 1) + "*" || "-" }}
</view>
</template>
<view class="goods-name flex">
{{
item.goodsList.length
? item.goodsList[0].goodsName
: "-"
}}
<image
v-if="item.goodsList.length > 1"
@click="handleLook(item.goodsList)"
class="image-look"
src="../../assets/images/boutique/look.png"
/>
</view>
<template v-for="(k, ind) in itemObject">
<view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view>
<view :class="{ value: true, bold: k.isBold }">{{
item[k.key] || "-"
}}</view>
</view>
</template>
<view class="info flex">
<view class="label">实收金额</view>
<view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view
>
<view class="info flex">
<view class="label">实收金额</view>
<view class="value bold"
>¥ <text>{{ item.totalPrice }}</text></view
>
</view>
</view>
</view>
</template>
......@@ -92,12 +96,14 @@
:isFooter="false"
>
<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">
<tr>
<th>商品名称</th>
<th>部位</th>
<th>件数</th>
</tr>
<tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td>
......@@ -302,8 +308,8 @@ export default {
.item {
background: #ffffff;
border-radius: 32rpx;
height: 320rpx;
box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative;
box-shadow: inset 0 0 16rpx 0 #ffffff;
z-index: 11;
......@@ -348,7 +354,7 @@ export default {
}
}
.image-box {
width: 250rpx;
width: 350rpx;
height: 100%;
position: absolute;
top: 0rpx;
......@@ -356,12 +362,26 @@ export default {
right: 0rpx;
background-size: 100% 100%;
border-radius: 32rpx;
z-index: -1;
&.photo {
width: 250rpx;
}
}
.box-desc {
padding: 24rpx 32rpx;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 11;
}
.gradient-overlay {
z-index: -1;
position: absolute;
top: 0;
right: 0;
width: 250rpx;
width: 350rpx;
height: 100%;
background: linear-gradient(
to left,
......@@ -392,16 +412,45 @@ export default {
}
}
.popup-body {
.tabel-box {
.tabel-box-header {
width: 100%;
margin-top: 50rpx;
.tr {
display: flex;
align-items: center;
.th {
border: 1rpx solid #fff;
color: #333333;
font-weight: 500;
height: 96rpx;
line-height: 96rpx;
background: #edf2ff;
text-align: left;
padding-left: 30rpx;
&:first-child {
width: 60%;
}
&:nth-child(2) {
width: 20%;
}
&:nth-child(3) {
width: 20%;
}
}
}
}
.tabel-box {
margin-top: 20rpx;
width: 100%;
tr {
border: 1rpx solid #fff;
border-radius: 16rpx;
&:first-child {
margin-bottom: 10rpx;
}
td,
th {
border: 1rpx solid #fff;
color: #333333;
font-weight: 500;
height: 96rpx;
......
......@@ -14,7 +14,7 @@
v-if="sourceType == 2"
></video>
<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>
......
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();
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!