|
|
@@ -61,7 +61,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { addPhotoBatch, addVisitsPosition, addPhotoToDB } from '@/api/index';
|
|
|
+import { addPhotoBatch, addVisitsPosition, addPhotoToDB, buryingPoint } from '@/api/index';
|
|
|
import imageAIVerifyErr from './imageAIVerifyErr';
|
|
|
import imageWhiteStore from './imageWhiteStore';
|
|
|
import H5Camera from '@/components/H5Camera';
|
|
|
@@ -145,6 +145,7 @@ export default {
|
|
|
d2running: false,
|
|
|
d2count: 0,
|
|
|
d2timer: null,
|
|
|
+ interfaceUsageTime: null,
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -259,6 +260,7 @@ export default {
|
|
|
success: function (res) {
|
|
|
that.toastLoading(0, '上传中...', true);
|
|
|
let localIds = res.localIds;
|
|
|
+ that.interfaceUsageTime = Date.now();
|
|
|
that.localIdsArr = [];
|
|
|
// that.$emit('newimgarr', {
|
|
|
// localIds: localIds,
|
|
|
@@ -330,6 +332,21 @@ export default {
|
|
|
}
|
|
|
addPhotoBatch(form, this.controller ? this.controller.signal : null)
|
|
|
.then((res) => {
|
|
|
+ if (this.userInfo.photoMethod == '0') {
|
|
|
+ if (this.interfaceUsageTime) {
|
|
|
+ this.interfaceUsageTime = Number(
|
|
|
+ ((Date.now() - this.interfaceUsageTime) / 1000).toFixed(0),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ buryingPoint({
|
|
|
+ systemModel: '门店拜访',
|
|
|
+ buryingPointType: 8,
|
|
|
+ buryingPointValue: form.mediaIds.length,
|
|
|
+ buryingPointName: '陈列奖励案图片上传',
|
|
|
+ buryingPointPosition: '门店拜访-陈列奖励案任务',
|
|
|
+ interfaceUsageTime: this.interfaceUsageTime,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.requestThen(res);
|
|
|
})
|
|
|
.catch((error) => {
|