Commit f4dc3c60 authored by Damon's avatar Damon

拍照项异步图片

parent 87964c54
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
</template> </template>
</scroll-view> </scroll-view>
<take-photo type="test" v-if="takeStatus" :currentItem="currentItemDate" @close="closeTake"></take-photo> <take-photo type="test" v-if="takeStatus" :upload="false" :currentItem="currentItemDate" @close="closeTake"></take-photo>
<!-- <u-button v-if="activeTop + 1 === dataList.length" class="ph-list-button" type="error" shape="circle" <!-- <u-button v-if="activeTop + 1 === dataList.length" class="ph-list-button" type="error" shape="circle"
:disabled="buttonDisabled" :custom-style="buttonStyle" @click="isPopShow = true">一键清空展示图片</u-button> --> :disabled="buttonDisabled" :custom-style="buttonStyle" @click="isPopShow = true">一键清空展示图片</u-button> -->
</view> </view>
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
<script> <script>
import takePhoto from '@/components/take/index.vue' import takePhoto from '@/components/take/index.vue'
import baseFile from '@/components/upload/index';
export default { export default {
components: { components: {
'take-photo': takePhoto 'take-photo': takePhoto
...@@ -81,6 +82,7 @@ ...@@ -81,6 +82,7 @@
title: '全部' title: '全部'
} }
}, },
mixins: [baseFile],
onLoad(e) { onLoad(e) {
getApp().trackPage('照片规范列表页') getApp().trackPage('照片规范列表页')
if (e && e.brandId) { if (e && e.brandId) {
...@@ -242,7 +244,10 @@ ...@@ -242,7 +244,10 @@
uni.hideTabBar() uni.hideTabBar()
this.takeStatus = true this.takeStatus = true
}, },
closeTake(img) { async closeTake(img) {
const files = img.map(v => v.path)
const value = await this.saveToTask(files)
console.log("value", value)
if(img !==undefined ){ if(img !==undefined ){
if (!this.currentItemDate.orderImages) this.currentItemDate.orderImages = [] if (!this.currentItemDate.orderImages) this.currentItemDate.orderImages = []
// step1 添加图片 // step1 添加图片
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment