Commit dad42445 by 前端

样式调整

1 parent e6fba62e
...@@ -167,9 +167,8 @@ export default { ...@@ -167,9 +167,8 @@ export default {
uni.$storage.set("storageFile", storageFile); uni.$storage.set("storageFile", storageFile);
this.setAudioList(storageFile); this.setAudioList(storageFile);
console.log(storageFile, this.isEnd, "this.isEnd"); console.log(storageFile, this.isEnd, "this.isEnd");
if (!this.isEnd) return true; if (!this.isEnd) return;
if (this.isEnd) this.uploadVoice(storageFile); this.uploadVoice(storageFile);
return true;
}); });
}, },
async checkUploadFile(tempFilePath) { async checkUploadFile(tempFilePath) {
......
...@@ -33,16 +33,19 @@ ...@@ -33,16 +33,19 @@
/> />
<image <image
v-else v-else
class="image-box" class="image-box photo"
src="../../assets/images/boutique/photos.png" src="../../assets/images/boutique/photos.png"
/> />
<div class="gradient-overlay"></div> <view class="gradient-overlay"></view>
<view class="box-desc">
<view class="name"> <view class="name">
{{ item.customerName.substring(0, 1) + "*" || "-" }} {{ item.customerName.substring(0, 1) + "*" || "-" }}
</view> </view>
<view class="goods-name flex"> <view class="goods-name flex">
{{ {{
item.goodsList.length ? item.goodsList[0].goodsName : "-" item.goodsList.length
? item.goodsList[0].goodsName
: "-"
}} }}
<image <image
v-if="item.goodsList.length > 1" v-if="item.goodsList.length > 1"
...@@ -67,6 +70,7 @@ ...@@ -67,6 +70,7 @@
> >
</view> </view>
</view> </view>
</view>
</template> </template>
</template> </template>
<template v-else> <template v-else>
...@@ -92,12 +96,14 @@ ...@@ -92,12 +96,14 @@
:isFooter="false" :isFooter="false"
> >
<view class="popup-body"> <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"> <table class="tabel-box" cellspacing="0" border="0" cellpadding="0">
<tr>
<th>商品名称</th>
<th>部位</th>
<th>件数</th>
</tr>
<tr v-for="i in goodsList"> <tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td> <td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td> <td>{{ i.goodsPositionName || "-" }}</td>
...@@ -302,8 +308,8 @@ export default { ...@@ -302,8 +308,8 @@ export default {
.item { .item {
background: #ffffff; background: #ffffff;
border-radius: 32rpx; border-radius: 32rpx;
height: 320rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative; position: relative;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 16rpx 0 #ffffff;
z-index: 11; z-index: 11;
...@@ -348,7 +354,7 @@ export default { ...@@ -348,7 +354,7 @@ export default {
} }
} }
.image-box { .image-box {
width: 250rpx; width: 350rpx;
height: 100%; height: 100%;
position: absolute; position: absolute;
top: 0rpx; top: 0rpx;
...@@ -356,12 +362,26 @@ export default { ...@@ -356,12 +362,26 @@ export default {
right: 0rpx; right: 0rpx;
background-size: 100% 100%; background-size: 100% 100%;
border-radius: 32rpx; 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 { .gradient-overlay {
z-index: -1;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
width: 250rpx; width: 350rpx;
height: 100%; height: 100%;
background: linear-gradient( background: linear-gradient(
to left, to left,
...@@ -392,16 +412,45 @@ export default { ...@@ -392,16 +412,45 @@ export default {
} }
} }
.popup-body { .popup-body {
.tabel-box { .tabel-box-header {
width: 100%;
margin-top: 50rpx; 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%; width: 100%;
tr { tr {
border: 1rpx solid #fff;
border-radius: 16rpx; border-radius: 16rpx;
&:first-child { &:first-child {
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
td, td,
th { th {
border: 1rpx solid #fff;
color: #333333; color: #333333;
font-weight: 500; font-weight: 500;
height: 96rpx; height: 96rpx;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
v-if="sourceType == 2" v-if="sourceType == 2"
></video> ></video>
<view class="img-detail" v-else <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> </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!