Commit f4dc3c60 authored by Damon's avatar Damon

拍照项异步图片

parent 87964c54
......@@ -29,7 +29,7 @@
</view>
</template>
</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"
:disabled="buttonDisabled" :custom-style="buttonStyle" @click="isPopShow = true">一键清空展示图片</u-button> -->
</view>
......@@ -57,6 +57,7 @@
<script>
import takePhoto from '@/components/take/index.vue'
import baseFile from '@/components/upload/index';
export default {
components: {
'take-photo': takePhoto
......@@ -81,6 +82,7 @@
title: '全部'
}
},
mixins: [baseFile],
onLoad(e) {
getApp().trackPage('照片规范列表页')
if (e && e.brandId) {
......@@ -242,7 +244,10 @@
uni.hideTabBar()
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 (!this.currentItemDate.orderImages) this.currentItemDate.orderImages = []
// 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