Commit 5c4be0b7 authored by 李超鹏's avatar 李超鹏

Merge branch 'dev-photo-v2'

# Conflicts:
#	take-order/pages/photo/list.vue
#	take-order/pages/photo/preview.vue
#	take-order/pages/photo/setting.vue
parents 2ebfe4e1 7766596c
<template> <template>
<view class="backView"> <view class="backView">
<u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading> <u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading>
<view class="topView"> <view class="topView">
<view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)" <view :class="['topItemView', {'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
v-for="(item,ikey) in dataList" :key="ikey"> v-for="(item,ikey) in dataList" :key="ikey">
<text :class="['ph-lst-top-index', {'active':activeTop===ikey}]">{{ ikey + 1 }}</text> <text :class="['ph-lst-top-index', {'active':activeTop===ikey}]">{{ ikey + 1 }}</text>
<text class="topItemTitle">{{item.type}}</text> <text class="topItemTitle">{{item.type}}</text>
</view> </view>
</view> </view>
<view class="rightView"> <view class="rightView">
<view class="right-view-title">拍照项有:</view> <view class="right-view-title">拍照项有:</view>
<template v-for="(item,ikey) in rightList"> <template v-for="(item,ikey) in rightList">
<view class="rightItemView" @click="rightItemClick(item,ikey)" :key="ikey"> <view class="rightItemView" @click="rightItemClick(item,ikey)" :key="ikey">
<view :class="['rightContentView', {'active':item.imageList[0]}]"> <view :class="['rightContentView', {'active':item.imageList[0]}]">
<text class="ph-lst-item-index">{{ ikey + 1 }}</text> <text class="ph-lst-item-index">{{ ikey + 1 }}</text>
<text class="">{{item.name}}</text> <text class="">{{item.name}}</text>
<image class="ph-list-item-arrow" src="/static/photo/arrow.png"></image> <image class="ph-list-item-arrow" src="/static/photo/arrow.png"></image>
<!-- <text class="rightContent u-m-t-14 u-m-l-30 u-p-b-30">{{item.describe}}</text> --> <!-- <text class="rightContent u-m-t-14 u-m-l-30 u-p-b-30">{{item.describe}}</text> -->
</view> </view>
<view class="rightImageView" v-if="item.imageList.length > 0"> <view class="rightImageView" v-if="item.imageList.length > 0">
<image class="rightImage" v-for="(image, index) in item.imageList.slice(0 , 10)" :src="image" <image class="rightImage" v-for="(image, index) in item.imageList.slice(0 , 10)" :src="image"
:key="index" @click.stop="handleClickImage(item, index)" mode="aspectFill"></image> :key="index" @click.stop="handleClickImage(item, index)" mode="aspectFill"></image>
</view> </view>
</view> </view>
</template> </template>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
topList: [], topList: [],
activeTop: 0, activeTop: 0,
leftList: [], leftList: [],
rightList: [], rightList: [],
classifyId: '', classifyId: '',
systemId: '', systemId: '',
brand: '', brand: '',
brandId: '', brandId: '',
dataList: [], dataList: [],
loading: true loading: true
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('照片规范列表页') getApp().trackPage('照片规范列表页')
if (e && e.brandId) { if (e && e.brandId) {
this.brandId = e.brandId this.brandId = e.brandId
} }
if (e && e.brand) { if (e && e.brand) {
this.brand = e.brand this.brand = e.brand
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.brand title: this.brand
}); });
} }
if (e && e.systemId) { if (e && e.systemId) {
this.systemId = e.systemId this.systemId = e.systemId
} }
if (e && e.classifyId) { if (e && e.classifyId) {
this.classifyId = e.classifyId this.classifyId = e.classifyId
} }
this.getListData() this.getListData()
}, },
methods: { methods: {
getListData: function() { getListData: function() {
this.loading = true this.loading = true
let that = this let that = this
this.$u.cloudApi.getGroupStandardV2({ this.$u.cloudApi.getGroupStandardV2({
'token': getApp().globalData.token, 'token': getApp().globalData.token,
'classify_id': this.classifyId, 'classify_id': this.classifyId,
'system_id': this.systemId, 'system_id': this.systemId,
'brand_id': this.brandId 'brand_id': this.brandId
}).then(res => { }).then(res => {
this.loading = false this.loading = false
if (res && res.result) { if (res && res.result) {
that.handleData(res.result) if(res.result.error_code){
} uni.showToast({title: res.result.error_msg})
}) }else{
that.handleData(res.result)
}, }
}
handleData: function(result) { })
const globalData = getApp().globalData
globalData.photo.productList = result },
this.dataList = result
if (result.length > 0) { handleData: function(result) {
var item = result[0] const globalData = getApp().globalData
globalData.photo.waterSetting = item.userWatermark globalData.photo.productList = result
this.rightList = item.list this.dataList = result
} if (result.length > 0) {
}, var item = result[0]
globalData.photo.waterSetting = item.userWatermark
//顶部点击 this.rightList = item.list
handleTopItemChange: function(ikey, item) { }
this.activeTop = ikey },
this.rightList = item.list
const photo = getApp().globalData.photo //顶部点击
photo.topIndex = ikey handleTopItemChange: function(ikey, item) {
photo.waterSetting = item.userWatermark this.activeTop = ikey
uni.pageScrollTo({ this.rightList = item.list
scrollTop: 0, const photo = getApp().globalData.photo
duration: 0 photo.topIndex = ikey
}); photo.waterSetting = item.userWatermark
}, uni.pageScrollTo({
scrollTop: 0,
// 点击图片 duration: 0
handleClickImage(item, index) { });
uni.previewImage({ },
urls: item.imageList,
current: index // 点击图片
}) handleClickImage(item, index) {
}, uni.previewImage({
urls: item.imageList,
//右侧点击 current: index
rightItemClick: function(item, ikey) { })
const photo = getApp().globalData.photo },
photo.currentItem = item
photo.itemIndex = ikey //右侧点击
const len = item.imageList.length rightItemClick: function(item, ikey) {
photo.currentItemLength = len>9 ? 10 : len const photo = getApp().globalData.photo
uni.navigateTo({ photo.currentItem = item
url: '/pages/photo/take' photo.itemIndex = ikey
}) const len = item.imageList.length
}, photo.currentItemLength = len>9 ? 10 : len
uni.navigateTo({
url: '/pages/photo/take'
} })
} },
</script>
<style> }
.backView { }
background-color: #F4F5F7; </script>
position: absolute;
top: 0; <style>
left: 0; .backView {
width: 100%; background-color: #F4F5F7;
display: flex; position: absolute;
flex-direction: column; top: 0;
align-items: center; left: 0;
height: 100%; width: 100%;
} display: flex;
flex-direction: column;
.centerBackView { align-items: center;
display: flex; height: 100%;
flex-direction: row; }
margin-top: 80rpx;
width: 100%; .centerBackView {
} display: flex;
flex-direction: row;
.ph-lst-top-index { margin-top: 80rpx;
font-size: 26rpx; width: 100%;
font-weight: bold; }
color: #FFFFFF;
border-radius: 8rpx; .ph-lst-top-index {
background-color: #999999; font-size: 26rpx;
width: 36rpx; font-weight: bold;
height: 36rpx; color: #FFFFFF;
line-height: 36rpx; border-radius: 8rpx;
text-align: center; background-color: #999999;
} width: 36rpx;
height: 36rpx;
.ph-lst-top-index.active { line-height: 36rpx;
background-color: #2272FF; text-align: center;
} }
.ph-lst-top-index.active {
.rightView { background-color: #2272FF;
background-color: #F4F5F7; }
width: 100%;
display: flex;
flex-direction: column; .rightView {
padding-top: 100rpx; background-color: #F4F5F7;
padding-bottom: 50rpx; width: 100%;
} display: flex;
flex-direction: column;
.right-view-title { padding-top: 100rpx;
font-size: 36rpx; padding-bottom: 50rpx;
font-weight: bold; }
height: 104rpx;
line-height: 104rpx; .right-view-title {
margin-left: 30rpx; font-size: 36rpx;
} font-weight: bold;
height: 104rpx;
.rightItemView { line-height: 104rpx;
/* width: 100%; */ margin-left: 30rpx;
/* display: flex; */ }
/* flex-direction: row; */
/* justify-content: space-between; */ .rightItemView {
/* border-bottom: 20rpx solid #F3F3F3; */ /* width: 100%; */
margin: 0rpx 30rpx 20rpx 30rpx; /* display: flex; */
padding: 36rpx 30rpx 30rpx 30rpx; /* flex-direction: row; */
border-radius: 12rpx; /* justify-content: space-between; */
background-color: #FFFFFF; /* border-bottom: 20rpx solid #F3F3F3; */
/* min-height: 108rpx; */ margin: 0rpx 30rpx 20rpx 30rpx;
} padding: 36rpx 30rpx 30rpx 30rpx;
border-radius: 12rpx;
.ph-lst-item-index { background-color: #FFFFFF;
font-size: 24rpx; /* min-height: 108rpx; */
font-weight: bold; }
border-radius: 4rpx;
width: 34rpx; .ph-lst-item-index {
height: 34rpx; font-size: 24rpx;
line-height: 32rpx; font-weight: bold;
text-align: center; border-radius: 4rpx;
border-width: 1px; width: 34rpx;
border-style: solid; height: 34rpx;
margin-right: 10rpx; line-height: 32rpx;
margin-top: 4rpx; text-align: center;
} border-width: 1px;
border-style: solid;
.rightContentView { margin-right: 10rpx;
display: flex; margin-top: 4rpx;
align-items: flex-start; }
width: 100%;
font-size: 30rpx; .rightContentView {
color: #2272FF; display: flex;
/* flex-direction: column; */ align-items: flex-start;
/* border-left: 2rpx solid #F3F3F3; */ width: 100%;
} font-size: 30rpx;
color: #2272FF;
.rightContentView.active { /* flex-direction: column; */
color: #666666; /* border-left: 2rpx solid #F3F3F3; */
border-color: #666666; }
}
.rightContentView.active {
.ph-list-item-arrow { color: #666666;
position: absolute; border-color: #666666;
width: 40rpx; }
height: 40rpx;
right: 38rpx; .ph-list-item-arrow {
} position: absolute;
width: 40rpx;
.rightContent { height: 40rpx;
font-size: 30rpx; right: 38rpx;
color: #333333; }
line-height: 40rpx;
} .rightContent {
font-size: 30rpx;
.rightImageView { color: #333333;
/* width: 300rpx; */ line-height: 40rpx;
/* height: 320rpx; */ }
display: flex;
align-items: center; .rightImageView {
justify-content: flex-start; /* width: 300rpx; */
flex-wrap: wrap; /* height: 320rpx; */
margin-top: 26rpx; display: flex;
} align-items: center;
justify-content: flex-start;
.rightImage { flex-wrap: wrap;
background-color: #F3F3F3; margin-top: 26rpx;
width: 116rpx; }
height: 116rpx;
margin: 0rpx 12rpx 12rpx 0rpx; .rightImage {
background-color: #F3F3F3;
} width: 116rpx;
.rightImage:nth-child(5n){ height: 116rpx;
margin-right:0; margin: 0rpx 12rpx 12rpx 0rpx;
}
}
.rightImage:nth-child(5n){
.topView { margin-right:0;
background-color: #FAFAFA; }
width: 100%;
height: 100rpx;
position: fixed; .topView {
display: flex; background-color: #FAFAFA;
flex-direction: row; width: 100%;
z-index: 1; height: 100rpx;
} position: fixed;
display: flex;
.topItemView { flex-direction: row;
/* width: 210rpx; */ z-index: 1;
height: 100rpx; }
display: flex;
align-items: center; .topItemView {
justify-content: center; /* width: 210rpx; */
-webkit-flex: 1; height: 100rpx;
flex: 1; display: flex;
background-color: #FFFFFF; align-items: center;
color: #999999; justify-content: center;
} -webkit-flex: 1;
flex: 1;
.topItemView.active { background-color: #FFFFFF;
color: #2272FF; color: #999999;
} }
.topItemTitle { .topItemView.active {
font-size: 36rpx; color: #2272FF;
font-weight: bold; }
padding-left: 30rpx;
} .topItemTitle {
font-size: 36rpx;
.greenBackColor { font-weight: bold;
background-color: #4CD964; padding-left: 30rpx;
} }
.greenBackColor {
background-color: #4CD964;
}
</style> </style>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
// 获取规格Id // 获取规格Id
this.standardId = app.globalData.photo.currentItem._id this.standardId = app.globalData.photo.currentItem._id
} }
getApp().trackPage('照片预览页') getApp().trackPage('照片预览页')
const globalTempPath = getApp().globalData.photo.tempPath const globalTempPath = getApp().globalData.photo.tempPath
if(globalTempPath && globalTempPath.mixWater){ if(globalTempPath && globalTempPath.mixWater){
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
if(e.standardId) { if(e.standardId) {
this.standardId = e.standardId this.standardId = e.standardId
} }
this.token = getApp().globalData.token this.token = getApp().globalData.token
}, },
methods: { methods: {
...@@ -135,11 +135,12 @@ ...@@ -135,11 +135,12 @@
uni.showLoading({ uni.showLoading({
title:'图片保存中…' title:'图片保存中…'
}) })
self.saveTempToLocal()
self.confirmUpload(true) self.confirmUpload(true)
}, },
submitFile() { submitFile() {
let self = this let self = this
if(self.keys.length) { if(self.keys.length) {
for (let s of self.keys) { for (let s of self.keys) {
self.$u.cloudApi.saveImage({ self.$u.cloudApi.saveImage({
...@@ -148,9 +149,8 @@ ...@@ -148,9 +149,8 @@
"url": s, "url": s,
}).then(async res =>{ }).then(async res =>{
console.log(res, "云服务保存图片"); console.log(res, "云服务保存图片");
if(res.result) { if(res.result.code) {
// TODO 参数是否要来回传递 // TODO 参数是否要来回传递
await self.saveTempToLocal()
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
photo.currentItemLength = photo.currentItemLength + 1 photo.currentItemLength = photo.currentItemLength + 1
uni.hideLoading() uni.hideLoading()
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
// },2000) // },2000)
} else { } else {
uni.showToast({ uni.showToast({
title:'图片上传失败' title:'图片上传失败 '+ res.result.msg
}) })
} }
}) })
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
.pic { .pic {
flex:1; flex:1;
width: 100%; width: 100%;
/* height:auto */ /* height:auto */
/* height: 760rpx; */ /* height: 760rpx; */
} }
......
<template> <template>
<view class="backView"> <view class="backView">
<view class="shadowBackView" style="background-color: transparent;z-index: 1" v-if="loading"> <view class="shadowBackView" style="background-color: transparent;z-index: 1" v-if="loading">
<u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading> <u-loading style="position: fixed;top: 50%;" :show="loading" size="36" mode="flower"></u-loading>
</view> </view>
<view class="itemView firstItem"> <view class="itemView firstItem">
<view class="itemTitleView"> <view class="itemTitleView">
<text class="itemTitle">保存原图</text> <text class="itemTitle">保存原图</text>
<text class="itemNotice">拍照后另保存一张无水印的图片</text> <text class="itemNotice">拍照后另保存一张无水印的图片</text>
</view> </view>
<switch class="itemSwitch" :checked="result['has_origin']" @change="handleOrigineChange" color="#007AFF" /> <switch class="itemSwitch" :checked="result['has_origin']" @change="handleOrigineChange" color="#007AFF" />
</view> </view>
<view class="itemView" v-if="showTitleSwitch"> <view class="itemView" v-if="showTitleSwitch">
<view class="itemTitleView" @click="itemClick({},-1)"> <view class="itemTitleView" @click="itemClick({},-1)">
<text class="itemTitle">水印标题</text> <text class="itemTitle">水印标题</text>
<text class="itemNotice">{{result['lower_right']['title_text'] || '点击可编辑更改'}}</text> <text class="itemNotice">{{result['lower_right']['title_text'] || '点击可编辑更改'}}</text>
</view> </view>
<switch class="itemSwitch" disabled :checked="result['lower_right']['title_text'] != ''" <switch class="itemSwitch" disabled :checked="result['lower_right']['title_text'] != ''"
@click="handleClickTitleSwitch" color="#007AFF" /> @click="handleClickTitleSwitch" color="#007AFF" />
</view> </view>
<view class="itemView" v-for="(item,ikey) in itemList" :key="ikey"> <view class="itemView" v-for="(item,ikey) in itemList" :key="ikey">
<view class="itemTitleView" @click="itemClick(item,ikey)"> <view class="itemTitleView" @click="itemClick(item,ikey)">
<text class="itemTitle">{{item['watemark_text'] || '自定义' + (ikey + 1)}}</text> <text class="itemTitle">{{item['watemark_text'] || '自定义' + (ikey + 1)}}</text>
<text class="itemNotice">{{item['watemark_value'] || '点击可编辑更改'}}</text> <text class="itemNotice">{{item['watemark_value'] || '点击可编辑更改'}}</text>
</view> </view>
<switch class="itemSwitch" :checked="item['enable']" @change="itemChange(item, ikey)" color="#007AFF" /> <switch class="itemSwitch" :checked="item['enable']" @change="itemChange(item, ikey)" color="#007AFF" />
</view> </view>
<u-popup border-radius="10" v-model="isPopShow" safe-area-inset-bottom :mask-close-able="false" mode="center" <u-popup border-radius="10" v-model="isPopShow" safe-area-inset-bottom :mask-close-able="false" mode="center"
width="690rpx" height="600rpx" @close="handlePopClose"> width="690rpx" height="600rpx" @close="handlePopClose">
<view class="popCenterView"> <view class="popCenterView">
<text class="popTitle">设置自定义项</text> <text class="popTitle">设置自定义项</text>
<view class="inputBackView"> <view class="inputBackView">
<view class="ph-pop-left-view"> <view class="ph-pop-left-view">
<view class="leftInputView"> <view class="leftInputView">
<input class="leftInput" type="text" v-model="currenItem['watemark_text']" <input class="leftInput" type="text" v-model="currenItem['watemark_text']"
@input="leftInput()" :disabled="currenItem.type === 'title_text'" placeholder="请输入" @input="leftInput()" :disabled="currenItem.type === 'title_text'" placeholder="请输入"
maxlength="10" /> maxlength="10" />
</view> </view>
<view class="ph-pop-tip-view" v-if="showTipLeft">*必填项</view> <view class="ph-pop-tip-view" v-if="showTipLeft">*必填项</view>
</view> </view>
<view class="ph-pop-mid-view">:</view> <view class="ph-pop-mid-view">:</view>
<view> <view>
<view class="rightInputView"> <view class="rightInputView">
<input class="rightInput" type="text" v-model="currenItem['watemark_value']" <input class="rightInput" type="text" v-model="currenItem['watemark_value']"
@input="rightInput()" placeholder="请输入内容" maxlength="30" /> @input="rightInput()" placeholder="请输入内容" maxlength="30" />
</view> </view>
<view class="ph-pop-tip-view" v-if="showTipRight">*必填项</view> <view class="ph-pop-tip-view" v-if="showTipRight">*必填项</view>
</view> </view>
</view> </view>
<text class="popNoticeText u-m-t-20">示例:</text> <text class="popNoticeText u-m-t-20">示例:</text>
<text class="popNoticeText">工程队名称:蓝天工程队</text> <text class="popNoticeText">工程队名称:蓝天工程队</text>
<view class="popBtnView"> <view class="popBtnView">
<u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary" @click="popCancelClick()"> <u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary" @click="popCancelClick()">
取消 取消
</u-button> </u-button>
<u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="popSaveClick()"> <u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="popSaveClick()">
保存 保存
</u-button> </u-button>
</view> </view>
</view> </view>
</u-popup> </u-popup>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
systemId: '', systemId: '',
isSaveOrigine: true, isSaveOrigine: true,
isPopShow: false, isPopShow: false,
icon_close_new: '', icon_close_new: '',
result: { result: {
has_origin: true, has_origin: true,
lower_right: { lower_right: {
body: [] body: []
} }
}, },
currenItem: { currenItem: {
'watemark_text': '', 'watemark_text': '',
'watemark_value': '' 'watemark_value': ''
}, },
editingItem: {}, editingItem: {},
showTipLeft: false, showTipLeft: false,
showTipRight: false, showTipRight: false,
loading: true loading: true
} }
}, },
computed: { computed: {
itemList() { itemList() {
if (this.result['lower_right']) { if (this.result['lower_right']) {
var arr = this.result['lower_right']['body'] var arr = this.result['lower_right']['body']
return arr.filter((item) => { return arr.filter((item) => {
return item.watemark_type === '备注' return item.watemark_type === '备注'
}) })
} else { } else {
return [] return []
} }
}, },
showTitleSwitch() { showTitleSwitch() {
return this.result['lower_right'].hasOwnProperty('title_text') return this.result['lower_right'].hasOwnProperty('title_text')
}, },
customStyleCancel() { customStyleCancel() {
return { return {
...@@ -115,336 +115,343 @@ ...@@ -115,336 +115,343 @@
'height': '96rpx', 'height': '96rpx',
'margin-left': '50rpx' 'margin-left': '50rpx'
} }
} }
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('水印设置页') getApp().trackPage('水印设置页')
const globalData = getApp().globalData const globalData = getApp().globalData
this.icon_close_new = globalData.icon_close_new this.icon_close_new = globalData.icon_close_new
this.systemId = globalData.photo.product.systemId this.systemId = globalData.photo.product.systemId
this.getItemList() this.getItemList()
}, },
methods: { methods: {
getItemList: function() { getItemList: function() {
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据 // this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this.loading = true this.loading = true
this.$u.cloudApi.getUserWatermark({ this.$u.cloudApi.getUserWatermark({
'token': getApp().globalData.token, 'token': getApp().globalData.token,
'system_id': this.systemId 'system_id': this.systemId
}).then(res => { }).then(res => {
if (res && res.result) {
if (res && res.result) { if(res.result.error_code){
this.result = res.result uni.showToast({title: res.result.error_msg})
} }else{
this.loading = false this.result = res.result
}) }
}, }else{
saveUserWatermark: function() { uni.showToast({title: '网络异常'})
this.loading = true }
this.$u.cloudApi.saveUserWatermark({ this.loading = false
'token': getApp().globalData.token, })
'watermark': this.result },
}).then(res => { saveUserWatermark: function() {
if (res.result == true) { this.loading = true
const photo = getApp().globalData.photo this.$u.cloudApi.saveUserWatermark({
photo.waterSetting = this.result 'token': getApp().globalData.token,
} 'watermark': this.result
}).then(res => {
this.loading = false if (res.result.code == true) {
}) const photo = getApp().globalData.photo
}, photo.waterSetting = this.result
}else{
//保存原图 开关 uni.showToast({title: res.result.msg})
handleOrigineChange: function(e) { }
this.result['has_origin'] = !this.result['has_origin']
this.saveUserWatermark() this.loading = false
}, })
},
handleClickTitleSwitch: function(e) {
var string = this.result['lower_right']['title_text'] ? '水印标题不可关闭' : '请先编辑该自定义项' //保存原图 开关
uni.showToast({ handleOrigineChange: function(e) {
icon: 'none', this.result['has_origin'] = !this.result['has_origin']
title: string this.saveUserWatermark()
}) },
},
handleClickTitleSwitch: function(e) {
//自定义 开关 var string = this.result['lower_right']['title_text'] ? '水印标题不可关闭' : '请先编辑该自定义项'
itemChange: function(item, ikey) { uni.showToast({
if (item['watemark_value']) { icon: 'none',
// 修改 title: string
item['enable'] = !item['enable'] })
this.saveUserWatermark() },
} else {
uni.showToast({ //自定义 开关
icon: 'none', itemChange: function(item, ikey) {
title: '请先编辑该自定义项' if (item['watemark_value']) {
}) // 修改
} item['enable'] = !item['enable']
}, this.saveUserWatermark()
} else {
//自定义 点击 uni.showToast({
itemClick: function(item, ikey) { icon: 'none',
if (ikey === -1) { title: '请先编辑该自定义项'
this.currenItem = { })
'watemark_text': '水印标题', }
'watemark_value': this.result['lower_right']['title_text'], },
'type': 'title_text'
} //自定义 点击
} else { itemClick: function(item, ikey) {
this.editingItem = item if (ikey === -1) {
this.currenItem = { this.currenItem = {
...item 'watemark_text': '水印标题',
} 'watemark_value': this.result['lower_right']['title_text'],
} 'type': 'title_text'
}
this.isPopShow = true } else {
}, this.editingItem = item
this.currenItem = {
//左侧输入框 ...item
leftInput: function(e) { }
if (this.currenItem['watemark_text']) { }
this.showTipLeft = false
} this.isPopShow = true
},
},
//左侧输入框
//右侧输入框 leftInput: function(e) {
rightInput: function(e) { if (this.currenItem['watemark_text']) {
if (this.currenItem['watemark_value']) { this.showTipLeft = false
this.showTipRight = false }
}
}, },
//自定义弹窗 关闭 //右侧输入框
popCancelClick: function() { rightInput: function(e) {
if (this.currenItem['watemark_value']) {
this.showTipRight = false
}
},
//自定义弹窗 关闭
popCancelClick: function() {
this.isPopShow = false this.isPopShow = false
this.currenItem = { this.currenItem = {
'watemark_text': '', 'watemark_text': '',
'watemark_value': '' 'watemark_value': ''
} }
}, },
handlePopClose() { handlePopClose() {
this.showTipLeft = false, this.showTipLeft = false,
this.showTipRight = false this.showTipRight = false
}, },
//自定义弹窗 保存 //自定义弹窗 保存
popSaveClick: function() { popSaveClick: function() {
if (this.currenItem['watemark_text'] && this.currenItem['watemark_value']) { if (this.currenItem['watemark_text'] && this.currenItem['watemark_value']) {
this.isPopShow = false this.isPopShow = false
if (this.currenItem.type === 'title_text') { if (this.currenItem.type === 'title_text') {
this.result['lower_right']['title_text'] = this.currenItem['watemark_value'] this.result['lower_right']['title_text'] = this.currenItem['watemark_value']
} else { } else {
this.editingItem['watemark_text'] = this.currenItem['watemark_text'] this.editingItem['watemark_text'] = this.currenItem['watemark_text']
this.editingItem['watemark_value'] = this.currenItem['watemark_value'] this.editingItem['watemark_value'] = this.currenItem['watemark_value']
this.editingItem['enable'] = true this.editingItem['enable'] = true
} }
this.saveUserWatermark() this.saveUserWatermark()
} else { } else {
// 提示 // 提示
if (!this.currenItem['watemark_text']) { if (!this.currenItem['watemark_text']) {
this.showTipLeft = true this.showTipLeft = true
} }
if (!this.currenItem['watemark_value']) { if (!this.currenItem['watemark_value']) {
this.showTipRight = true this.showTipRight = true
} }
} }
} }
} }
} }
</script> </script>
<style> <style>
.backView { .backView {
background-color: #FAFAFA; background-color: #FAFAFA;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
/* /*
.firstItemView{ .firstItemView{
background-color: #FFFFFF; background-color: #FFFFFF;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding-top: 80rpx; padding-top: 80rpx;
padding-bottom: 80rpx; padding-bottom: 80rpx;
border-bottom: 2rpx solid #F4F5F7; border-bottom: 2rpx solid #F4F5F7;
} */ } */
.itemView { .itemView {
background-color: #FFFFFF; background-color: #FFFFFF;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding-top: 54rpx; padding-top: 54rpx;
padding-bottom: 54rpx; padding-bottom: 54rpx;
} }
.itemView.firstItem { .itemView.firstItem {
border-bottom: 2rpx solid #F4F5F7; border-bottom: 2rpx solid #F4F5F7;
} }
.itemTitleView { .itemTitleView {
background-color: #FFFFFF; background-color: #FFFFFF;
width: 80%; width: 80%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-left: 30rpx; padding-left: 30rpx;
} }
.itemTitle { .itemTitle {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
.itemNotice { .itemNotice {
font-size: 26rpx; font-size: 26rpx;
color: #666666; color: #666666;
margin-top: 4rpx; margin-top: 4rpx;
} }
.itemSwitch { .itemSwitch {
margin-right: 30rpx; margin-right: 30rpx;
transform: scale(0.78, 0.75); transform: scale(0.78, 0.75);
} }
.shadowBackView { .shadowBackView {
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.popCenterView { .popCenterView {
background-color: #FFFFFF; background-color: #FFFFFF;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.popTitle { .popTitle {
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
margin-top: 50rpx; margin-top: 50rpx;
padding-left: 30rpx; padding-left: 30rpx;
} }
.inputBackView { .inputBackView {
margin-top: 52rpx; margin-top: 52rpx;
width: 100%; width: 100%;
height: 90rpx; height: 90rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
} }
.leftInputView { .leftInputView {
width: 220rpx; width: 220rpx;
height: 72rpx; height: 72rpx;
border: 2rpx solid #666666; border: 2rpx solid #666666;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.leftInput { .leftInput {
width: 180rpx; width: 180rpx;
height: 32rpx; height: 32rpx;
} }
.ph-pop-left-view { .ph-pop-left-view {
margin-left: 30rpx; margin-left: 30rpx;
} }
.ph-pop-tip-view { .ph-pop-tip-view {
color: #F56C6C; color: #F56C6C;
} }
.ph-pop-mid-view { .ph-pop-mid-view {
margin-top: 20rpx; margin-top: 20rpx;
} }
.rightInputView { .rightInputView {
width: 360rpx; width: 360rpx;
height: 72rpx; height: 72rpx;
border: 2rpx solid #666666; border: 2rpx solid #666666;
margin-right: 30rpx; margin-right: 30rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.rightInput { .rightInput {
width: 320rpx; width: 320rpx;
height: 32rpx; height: 32rpx;
} }
.popNoticeText { .popNoticeText {
font-size: 26rpx; font-size: 26rpx;
color: #666666; color: #666666;
padding-left: 30rpx; padding-left: 30rpx;
} }
.popBtnView { .popBtnView {
margin-top: 110rpx; margin-top: 110rpx;
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
/* .popCancelBtn { /* .popCancelBtn {
background-color: #D1D4D4; background-color: #D1D4D4;
width: 280rpx; width: 280rpx;
height: 96rpx; height: 96rpx;
border-radius: 48rpx; border-radius: 48rpx;
margin-left: 40rpx; margin-left: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} */ } */
/* .popSaveBtn { /* .popSaveBtn {
background-color: #2272FF; background-color: #2272FF;
width: 280rpx; width: 280rpx;
height: 96rpx; height: 96rpx;
border-radius: 48rpx; border-radius: 48rpx;
margin-right: 40rpx; margin-right: 40rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} */ } */
/* .popBtnText { /* .popBtnText {
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
font-weight: 600; font-weight: 600;
} */ } */
</style> </style>
// 本文件中的json内容将在云函数【运行】时作为参数传给云函数。
// 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{"token":""
}
\ No newline at end of file
'use strict';
const {
getUserId
} = require('user-common')
exports.main = async (event, context) => {
let userId = getUserId(event.token)
let result = {code: false, msg: "用户没有权限"}
if (userId) {
let res = await uniCloud.database().collection("user_upload_file").where({
'user_id': userId
}).remove()
result = {code: true, msg: ""}
}
//返回数据给客户端
return result
};
async function getUserId(token) { async function getUserId(token) {
const res = await uniCloud.httpclient.request("https://system.dev.banshouhui.com/wxh-worker-rest/rest/" + const res = await uniCloud.httpclient.request("https://system.banshouhui.com/wxh-worker-rest/rest/" +
token + token +
"/myinfo/id", { "/myinfo/id", {
method: 'GET', method: 'GET',
dataType: 'text' dataType: 'text'
}) })
return res && res.status === 200 ? res.data : token return res && res.status === 200 ? res.data : ""
} }
module.exports = { module.exports = {
......
...@@ -7,6 +7,10 @@ exports.main = async (event, context) => { ...@@ -7,6 +7,10 @@ exports.main = async (event, context) => {
const _ = db.command const _ = db.command
const $ = db.command.aggregate const $ = db.command.aggregate
const user_id = await getUserId(event.token) const user_id = await getUserId(event.token)
if(!user_id){
return {error_code:'user_auth',error_msg:"用户没有权限"}
}
let res = await db.collection("standardV2").aggregate().lookup({ let res = await db.collection("standardV2").aggregate().lookup({
from: 'user_upload_file', from: 'user_upload_file',
let: { let: {
......
...@@ -5,6 +5,9 @@ const { ...@@ -5,6 +5,9 @@ const {
exports.main = async (event, context) => { exports.main = async (event, context) => {
//event为客户端上传的参数 //event为客户端上传的参数
const user_id = await getUserId(event.token) const user_id = await getUserId(event.token)
if(!user_id){
return {error_code:'user_auth',error_msg:"用户没有权限"}
}
const collection = uniCloud.database().collection("user_watermark").field({ const collection = uniCloud.database().collection("user_watermark").field({
'_id': false '_id': false
}) })
......
...@@ -12,8 +12,8 @@ exports.main = async (event, context) => { ...@@ -12,8 +12,8 @@ exports.main = async (event, context) => {
url: "https://img2.banshouhui.com/" + event.url, url: "https://img2.banshouhui.com/" + event.url,
create_date: new Date() create_date: new Date()
}) })
return true return {code:true}
}else{
return {code:false,msg:"用户没有权限"}
} }
return false
}; };
...@@ -5,7 +5,6 @@ const { ...@@ -5,7 +5,6 @@ const {
exports.main = async (event, context) => { exports.main = async (event, context) => {
let user_id = await getUserId(event.token) let user_id = await getUserId(event.token)
console.log(user_id);
const watermark = event.watermark const watermark = event.watermark
if (user_id) { if (user_id) {
watermark.user_id = user_id watermark.user_id = user_id
...@@ -19,7 +18,8 @@ exports.main = async (event, context) => { ...@@ -19,7 +18,8 @@ exports.main = async (event, context) => {
} else { } else {
await collection.add(watermark) await collection.add(watermark)
} }
return {code:true}
}else{
return {code:false,msg:"用户没有权限"}
} }
//返回数据给客户端
return true
}; };
{ {
"dictionary": { "standardV2": {
"data": [{ "data": [{
"type": "classify", "classify_id": "79550af260555cc20afb34146966a2c4",
"name": "充电桩" "system_id": "79550af260555cc20afb3416784b17cb",
}, { "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "system", "type": "安装",
"name": "挚达系统" "name": "工具摆放和安装人员合影",
}, { "main_point": ["安装人员穿戴反光马甲、绝缘鞋和安全帽、手套及护目镜;", "摆放常用工具和主辅料", "安装现场拉警戒线"],
"type": "system", "note": "正面拍摄整体照片",
"name": "空灵系统" "image_count": "1",
}, { "images": "https://cloud-bak.banshouhui.com/1-工具摆放和安装人员合影.jpg"
"type": "brand",
"name": "广汽丰田"
}, {
"type": "brand",
"name": "广汽新能源"
}, {
"type": "brand",
"name": "东风本田"
}, {
"type": "brand",
"name": "沃尔沃"
}, {
"type": "brand",
"name": "北汽"
}, {
"type": "brand",
"name": "吉利"
}, {
"type": "brand",
"name": "保时捷"
}, {
"type": "brand",
"name": "广汽蔚来"
}, {
"type": "brand",
"name": "一汽奥迪"
}, {
"type": "brand",
"name": "一汽大众"
}, {
"type": "brand",
"name": "米家"
}],
"index": [],
"schema": {
"bsonType": "object",
"required": [
"type",
"name"
],
"permission": {
"read": true,
"create": true,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"type": {
"bsonType": "string",
"description": "数据类型"
},
"name": {
"bsonType": "string",
"description": "数据名称"
}
}
}
},
"standardV5": {
"data": [{
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分",
"name": "电源点照片",
"main_point": ["电源点照片必须清晰,电表参数及空开参数,参数字体需看的清楚", "体现上端断路器容量情况,负载要求达不到,需要与用户沟通整改后才能安装"],
"note": "",
"image_count": 2,
"images": "https://cloud-bak.banshouhui.com/勘测1-1 电源点照片1.jpg,https://cloud-bak.banshouhui.com/勘测1-2 电源点照片2.jpg"
}, {
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分",
"name": "车位照片",
"main_point": ["车位号必须体现", "无车位号周围环境拍摄清楚"],
"note": "",
"image_count": 1,
"images": "https://cloud-bak.banshouhui.com/勘测2 车位照片.jpg"
}, {
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分",
"name": "走线示意照片",
"main_point": ["能体现整体走线环境", "图上标注具体走线路径 3、需要电源点到充电桩位置(多张相片体现)"],
"note": "",
"image_count": 2,
"images": "https://cloud-bak.banshouhui.com/勘测3-1 走线示意照片1.jpg,https://cloud-bak.banshouhui.com/勘测3-2 走线示意照片2.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分", "type": "安装",
"name": "施工方案照片", "name": "勘测单",
"main_point": ["从电源点到充电桩整个电缆安装线路的敷设方式、使用的材料及长度需标识清楚"], "main_point": ["表格清晰,文字可辨", "表格居中,不倾斜", "全部填写完整,不能填写的部分划横杠。", "涉及到用户签字部分,不允许我方人员代签,由用户或用户指定人进行签字确认。", "涉及到物业的由现场物业人员签字确认。"],
"note": "", "note": "正面拍摄,完整看到单据 4 条边",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/勘测4-1 施工方案照片1.jpg,https://cloud-bak.banshouhui.com/勘测4-2 施工方案照片2.jpg,https://cloud-bak.banshouhui.com/勘测4-3 施工方案照片3.jpg" "images": "https://cloud-bak.banshouhui.com/2-勘测单.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分", "type": "安装",
"name": "安装收费标准照片", "name": "增项报价单",
"main_point": ["若车企无专用版本,全部使用挚达版本 ", "填写完整,书写工整", "未收费的填写 0 ,收费则如实填写", "用户签字需由用户本人或指定代理人签字 ", "表格拍照要清晰,文字可辨,表格居中,不倾斜 "], "main_point": ["表格清晰,文字可辨", "表格居中,不倾斜", "填写完整,书写工整", "涉及增项部分内容填写完整,金额准确无误。", "涉及到用户签字部分,不允许我方人员代签,由用户或用户指定人进行签字确认。"],
"note": "", "note": "正面拍摄,完整看到单据 4 条边",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/勘测5 安装收费标准照片.jpg" "images": "https://cloud-bak.banshouhui.com/3-增项报价单.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分", "type": "安装",
"name": "纸质勘察单照片", "name": "竣工单",
"main_point": ["若车企无专用版本,全部使用挚达版本 ", "填写完整,书写工整 ", "用户签字需由用户本人或指定代理人签字 ", "表格拍照要清晰,文字可辨,表格居中,不倾斜 "], "main_point": ["表格清晰,文字可辨", "表格居中,不倾斜", "全部填写完整,不能填写的部分划横杠。", "涉及增项部分内容填写完整,金额准确无误。", "涉及到用户签字部分,不允许我方人员代签,由用户或用户指定人进行签字确认"],
"note": "", "note": "正面拍摄,完整看到单据 4 条边",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/勘测6 纸质勘察单照片.jpg" "images": "https://cloud-bak.banshouhui.com/4-竣工单.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "勘测部分", "type": "安装",
"name": "放弃电力报装声明/报装材料/供电方案", "name": "点检表",
"main_point": ["未报装新能源电表,必填", "已经报装新能源专用电表,不用签此放弃声明,且不用上传。", "表格拍照要清晰,文字可辨,表格居中,不倾斜 "], "main_point": ["表格清晰, 文字可辨;", "表格居中, 不倾斜;", "填写完整, 书写工整."],
"note": "", "note": "正面拍摄,完整看到单据 4 条边",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/勘测7 放弃电力报装声明.jpg" "images": "https://cloud-bak.banshouhui.com/5-点检表.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "行驶证相片或车主身份证相片", "name": "电源点参数照片",
"main_point": ["安装前需要车主出示行驶证或车主身份证(个别车企可不用)", "车主为企业的,必须要求用户拿营业执照原件拍照", "吉利与本田如没有行驶证或车主身份证、营业执照不能安装(三者选一项)(不用水印)"], "main_point": ["火、零、地线清晰可辨;", "取电点开关、电表参数须清晰可辨。"],
"note": "", "note": "正面拍摄",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装1-1 行驶证相片或车主身份证相片1.jpg,https://cloud-bak.banshouhui.com/安装1-2 行驶证相片或车主身份证相片2.jpg,https://cloud-bak.banshouhui.com/安装1-3 行驶证相片或车主身份证相片3.jpg" "images": "https://cloud-bak.banshouhui.com/6-电源点参数照片.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "安全施工标识照片", "name": "电源点整体照片",
"main_point": ["安全警戒如:安全施工围栏、安全警示牌、警示带等 ", "消方设备如:灭火器、灭火毯等"], "main_point": ["整体的防护等级及安装电源点情况"],
"note": "", "note": "正面拍摄",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装2-1 安全施工标识照片1.jpg,https://cloud-bak.banshouhui.com/安装2-2 安全施工标识照片2.jpg,https://cloud-bak.banshouhui.com/安装2-3 安全施工标识照片4.jpg" "images": "https://cloud-bak.banshouhui.com/7-电源点整体照片.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩配件照片", "name": "空开盒电缆回弯",
"main_point": ["包装箱内全部资料及配件,包含合格证、说明书、检验报告、充电卡、遥控器、漏保开关、挂板、螺丝配件及立柱等 ", "充电卡编号(编号清晰可辨) "], "main_point": ["6 平方电缆做回弯处理, 10 平方以上规格电缆需要压接线鼻子。"],
"note": "", "note": "正面拍摄",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装3-1 充电桩配件照片1.jpg,https://cloud-bak.banshouhui.com/安装3-2 充电桩配件照片2.jpg,https://cloud-bak.banshouhui.com/安装3-3 充电桩配件照片3.jpg" "images": "https://cloud-bak.banshouhui.com/8-空开盒电缆回弯.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩编号照片", "name": "空开盒",
"main_point": ["拍摄清晰完整,充电桩编号清晰可辨"], "main_point": ["线缆标签", "有杯梳", "地线需要用接地端子连接(黄绿端子排)", "贴安全标示", "空开两边的固定。", "空开盒挡板", "空开盒外有电标识及能看清右上角 IP 等级。"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装4 充电桩编号照片.jpg" "images": "https://cloud-bak.banshouhui.com/9-1-空开盒1.jpg,https://cloud-bak.banshouhui.com/9-2-空开盒2.jpg,https://cloud-bak.banshouhui.com/9-3-空开盒3.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "电缆照片", "name": "电缆标识",
"main_point": ["套管前,需在安装现场拍摄电缆完整标识,含制造商名称、型号规格及额定电压的连续标志"], "main_point": ["拍摄清晰完整,可识别线缆规格型号及线缆品牌"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装5 电缆照片.jpg" "images": "https://cloud-bak.banshouhui.com/10-电缆标识.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "管材照片", "name": "电缆米标",
"main_point": ["安装前,需在现场拍摄敷设管材完整标识,可识别阻燃标记和制造厂标、注册商标、厂家名称、型号、执行标准 ", "需根据车企管材要求进行施工"], "main_point": ["拍摄清晰, 可识别线缆米数标识"],
"note": "", "note": "两张,可单独拍摄也可把电缆首/末位米数照片合成为一张照片",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装6 管材照片.jpg" "images": "https://cloud-bak.banshouhui.com/11-1-电缆米标1.jpg,https://cloud-bak.banshouhui.com/11-2-电缆米标2.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "取电点照片", "name": "路面开挖",
"main_point": ["整个取电点电柜布线尽收眼底含电柜出线口,开关参数需清晰可辨,开关出线端火、零、地线接线及线缆标识清晰可辨。 ", "防触电警示标识可见", "吊牌需填写、固定"], "main_point": ["回填前 1 张,并用量尺进行测量的照片。", "回填后 1 张。"],
"note": "", "note": "正面拍摄(两张)",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装7 取电点照片3.jpg" "images": "https://cloud-bak.banshouhui.com/12-1-路面开挖1.jpg,https://cloud-bak.banshouhui.com/12-2-路面开挖2.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "取电点测电压照片", "name": "穿墙孔",
"main_point": ["测试电压3张照片L-N,L-PE,N-PE,是否正常", "需清晰可见测试数值与测试位置"], "main_point": ["穿墙前穿管的照片,保证保护管有穿过过墙孔 ", "穿墙后的防火泥封堵照片"],
"note": "", "note": "正面拍摄(两张)",
"image_count": 4, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装8-1 取电点测电压照片.jpg,https://cloud-bak.banshouhui.com/安装8-2 取电点测电压照片(L-N).jpg,https://cloud-bak.banshouhui.com/安装8-3 取电点测电压照片(L-PE).jpg,https://cloud-bak.banshouhui.com/安装8-4 取电点测电压照片(N-PE).jpg" "images": "https://cloud-bak.banshouhui.com/13-1-穿墙孔1.jpg,https://cloud-bak.banshouhui.com/13-2-穿墙孔2.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "线缆米标图(起电点)", "name": "接地引出点",
"main_point": ["拍摄清晰, 可识别线缆米数标识"], "main_point": ["如使用电力系统接地点,则对原有接地点拍照,并进行标记。", "使用接地钎,要求 1.5米长带锌,安装前拍照。"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装9 线缆米标图(起电点).jpg" "images": "https://cloud-bak.banshouhui.com/14-1-接地引出点1.jpg,https://cloud-bak.banshouhui.com/14-2-接地引出点2.jpg,https://cloud-bak.banshouhui.com/14-3-接地引出点3.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "线缆米标图(终点)", "name": "绝缘电阻测试",
"main_point": ["拍摄清晰, 可识别线缆米数标识"], "main_point": ["断电情况下,进行绝缘电阻测试,分别测试 火零线之间以及火地 之间的绝缘电阻,阻值 应 大 于10MΩ。"],
"note": "", "note": "正面拍摄(2 张)",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装10 线缆米标图(终点).jpg" "images": "https://cloud-bak.banshouhui.com/15-绝缘电阻测试.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩上端电源接线照片(空开漏保)", "name": "电压测试",
"main_point": [" 线缆标签", " 有杯梳或防护泥", " 地线需要用接地端子连接 ", " 贴安全标示 ", " 清晰体现漏保进线处回型弯"], "main_point": ["拍 摄 清晰,测量值可见", "零地电压应 小 于 10V 3、火零电压", "火地电压", "L-N 的电压 应 在209V-235V范围内, L-N 与 L-PE 电压偏差不超 5V(注意档位)"],
"note": "", "note": "正面拍摄(3 张)",
"image_count": 2, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装11-1 充电桩上端电源接线照片(空开漏保)1.jpg,https://cloud-bak.banshouhui.com/安装11-2 充电桩上端电源接线照片(空开漏保)2.jpg" "images": "https://cloud-bak.banshouhui.com/16-1-电压测试1.jpg,https://cloud-bak.banshouhui.com/16-2-电压测试2.jpg,https://cloud-bak.banshouhui.com/16-3-电压测试3.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "内部接线照片", "name": "接地电阻测试",
"main_point": ["接线完整清晰 ", "火、零、地清晰可辨", "禁止外露铜丝"], "main_point": ["阻值应小于或等于4 欧姆。(注意档位)"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装12 内部接线照片.jpg" "images": "https://cloud-bak.banshouhui.com/17-接地电阻测试.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩上端电源(测电压)照片(空开漏保)", "name": "试充",
"main_point": ["测试电压3张照片L-N,L-PE,N-PE,是否正常", "需清晰可见测试数值与测试位置 ", "火对地测电压图、零对地测电压图)"], "main_point": ["模拟器显示工作正常2、如现场有车辆,优先使用客户车辆充电试充照片"],
"note": "", "note": "",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装13-1 充电桩上端电源(测电压)空开漏保-L-N.jpg,https://cloud-bak.banshouhui.com/安装13-2 充电桩上端电源(测电压)空开漏保-L-PE.jpg,https://cloud-bak.banshouhui.com/安装13-3 充电桩上端电源(测电压)空开漏保-N-PE.jpg" "images": "https://cloud-bak.banshouhui.com/18-1-试充1.jpg,https://cloud-bak.banshouhui.com/18-2-试充2.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "接地照片(地线)", "name": "桩前5米路由",
"main_point": ["地钎照片,1.5 米长带锌", "接地位置 清晰可辨"], "main_point": ["一平面二对齐三预留免交叉充电桩指示灯亮2、看到 5 米以 上 线 路3、需要表明充电桩及配电箱安装的位置,以及周围各种特殊的情况。"],
"note": "", "note": "看到 5 米以上路由",
"image_count": 2, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装14-1 接地照片(地线)1.jpg,https://cloud-bak.banshouhui.com/安装14-2 接地照片(地线)2.jpg" "images": "https://cloud-bak.banshouhui.com/19-桩前5米路由.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩上端电源(绝缘测试)照片(空开漏保)", "name": "人桩合影(客户)",
"main_point": ["测试电阻,是否正常", "需清晰可见测试数值与测试位置"], "main_point": ["清晰看到充电桩 logo ", "完整看到整个充电桩, 不可遮挡。", "充电桩至少要亮电源灯"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装15 充电桩上端电源(绝缘测试)空开漏保.jpg" "images": "https://cloud-bak.banshouhui.com/20-人桩合影(客户).jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩上电照片", "name": "人桩合影 ( 安装 人员)",
"main_point": ["充电桩必须通电,可看到电源指示灯亮(正常状态)"], "main_point": ["安装人员的着装。"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装16 充电桩上电照片.jpg" "images": "https://cloud-bak.banshouhui.com/21-人桩合影 ( 安装 人员).jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "充电桩测试照片", "name": "二维码(无二维码的照充电桩 铭牌)",
"main_point": ["汽车充电照 ", "使用诊断盒测试电压输入是否正常"], "main_point": ["拍摄清晰完整,数字清晰可辨。并有 1 张可以显示现场信号的图片(如图 2)"],
"note": "", "note": "正面拍摄",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装17 充电桩测试照片.jpg" "images": "https://cloud-bak.banshouhui.com/22-1-二维码.jpg,https://cloud-bak.banshouhui.com/22-2-二维码.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "人桩合影", "name": "充电桩包装箱密封标签照片",
"main_point": ["充电桩必须通电,可看到电源指示灯亮 (正常状态) ", "施工人员穿戴整齐规范,身穿工作服佩戴安全帽 ", "开关盒/配电箱外部防触电安全标识清晰可见 ", "一张清晰可见的单独电工证照片 "], "main_point": ["密封完好。"],
"note": "人桩合影必须上传至少3张相片,一张师傅手持电工证的相片,一张电工证信息清晰可见的单独照片;一张用户的相片(上海区域必须多拍几张,要能体现停车位,近照及远照)", "note": "正面拍摄",
"image_count": 3, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装18-1 人桩合影1.jpg,https://cloud-bak.banshouhui.com/安装18-2 人桩合影2.jpg,https://cloud-bak.banshouhui.com/安装18-3 人桩合影3.jpg" "images": "https://cloud-bak.banshouhui.com/23-充电桩包装箱密封标签照片.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "车架号", "name": "走线路径及方法",
"main_point": ["如果没有行驶证,可以拍车上显示的车架号", "车架号拍摄完整,清晰可辨 需要核对系统派单的车架号(VIN)"], "main_point": ["需要清楚表明整体走线路径, 距离危险管路的距离,以及穿墙位置等情况。", "如有多条电缆,应注明哪条为新安装的。"],
"note": "", "note": "可以表明整体走线路径(多张)",
"image_count": 2, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装19-1 车架号1.jpg,https://cloud-bak.banshouhui.com/安装19-2 车架号2.jpg" "images": "https://cloud-bak.banshouhui.com/24-1-走线路径及方法.jpg,https://cloud-bak.banshouhui.com/24-2-走线路径及方法.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "电缆敷设路径", "name": "防盗箱",
"main_point": ["取电点往后 5 米以上安装敷设路径(可多张) ", "充电桩往前 5 米以上安装敷设路径(可多张)"], "main_point": ["如安装防盗箱,需标明其出线位置是否有防划伤装置。", "箱体内的跨接地线", "箱体内空开盒及线缆是否套管"],
"note": "", "note": "正面拍摄",
"image_count": 2, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装20-1 电缆敷设路径1.jpg,https://cloud-bak.banshouhui.com/安装20-2 电缆敷设路径2.jpg" "images": "https://cloud-bak.banshouhui.com/25-防盗箱.jpg"
}, { }, {
"classify_id": "79550af260555cc20afb34146966a2c4", "classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c", "system_id": "79550af260555cc20afb3416784b17cb",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f", "brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分", "type": "安装",
"name": "安装确认单照片(竣工单)", "name": "立柱",
"main_point": ["若车企无专用版本,全部使用挚达版本", "填写完整,书写工整 ", "用户签字需由用户本人或指定代理人签字 ", "表格扫描清晰,文字可辨,表格居中,不倾斜 "], "main_point": ["需表明立柱安装的位置, 螺 丝 安 装 情况,以及背板加盖前后的照片。"],
"note": "", "note": "拍摄 2 张",
"image_count": 1, "image_count": "1",
"images": "https://cloud-bak.banshouhui.com/安装21 安装确认单照片(竣工单).jpg" "images": "https://cloud-bak.banshouhui.com/26-1-立柱.jpg,https://cloud-bak.banshouhui.com/26-2-立柱.jpg"
}, {
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分",
"name": "安装承诺书(免责协议)",
"main_point": ["若车企无专用版本,全部使用挚达版本 ", "客户提供全部/部分材料,客户有自行布线 3、客户执意违反要求及标准安装施工的; 以上情况需经车企/经销商同意后,与客户需签署免责协议。 ", "注: ", "部分车企如长城不允许只挂桩的,需按车企要求操作; ", "如用户无其他特殊要求时,请在“其他情况”的空白处写上“无”或“不适用”或“/”。 "],
"note": "",
"image_count": 1,
"images": "https://cloud-bak.banshouhui.com/安装22 安装承诺书(免责协议).jpg"
}, {
"classify_id": "79550af260555cc20afb34146966a2c4",
"system_id": "79550af260555cc20afb34156c94b32c",
"brand_id": "28ee4e3e6063f2880d8956a013293a7f",
"type": "安装部分",
"name": "开挖尺寸测量照片(如有)",
"main_point": ["开挖宽度及深度测量全景照片 ", "测量仪器刻度清晰可辨 "],
"note": "",
"image_count": 1,
"images": "https://cloud-bak.banshouhui.com/安装23 开挖尺寸测量照片.jpg"
}], }],
"index": [], "index": [],
"schema": { "schema": {
...@@ -429,264 +317,5 @@ ...@@ -429,264 +317,5 @@
} }
} }
} }
},
"user_upload_file": {
"data": [],
"index": [],
"schema": {
"bsonType": "object",
"required": [
"user_id",
"standard_id",
"url"
],
"permission": {
"read": true,
"create": true,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户ID"
},
"standard_id": {
"bsonType": "string",
"description": "规范ID"
},
"url": {
"bsonType": "string",
"description": "url"
},
"create_date": {
"bsonType": "Date",
"description": "创建时间"
}
}
}
},
"user_watermark": {
"data": [{
"user_id": "",
"system_id": "79550af260555cc20afb34156c94b32c",
"has_origin": true,
"mid_text": "现场拍照",
"lower_right": {
"body": [{
"watemark_type": "时间",
"watemark_text": "时间",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "地址",
"watemark_text": "地址",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "经度",
"watemark_text": "经度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "纬度",
"watemark_text": "纬度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}]
}
}, {
"user_id": "",
"system_id": "79550af260555cc20afb3416784b17cb",
"has_origin": true,
"mid_text": "现场拍照",
"lower_right": {
"body": [{
"watemark_type": "时间",
"watemark_text": "时间",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "地址",
"watemark_text": "地址",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "经度",
"watemark_text": "经度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "纬度",
"watemark_text": "纬度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}]
}
}, {
"user_id": "",
"system_id": "28ee4e3e60580c1d0be5c37a0910022f",
"has_origin": true,
"mid_text": "",
"lower_right": {
"title_text": "",
"body": [{
"watemark_type": "时间",
"watemark_text": "时间",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "地址",
"watemark_text": "地址",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "经度",
"watemark_text": "经度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "纬度",
"watemark_text": "纬度",
"watemark_value": "",
"enable": true
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}, {
"watemark_type": "备注",
"watemark_text": "",
"watemark_value": "",
"enable": false
}]
}
}
],
"index": [],
"schema": {
"bsonType": "object",
"required": [
"user_id",
"system_id",
"has_origin",
"mid_text",
"lower_right"
],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户ID"
},
"system_id": {
"bsonType": "string",
"description": "字典表 系统ID"
},
"has_origin": {
"bsonType": "string",
"description": "是否保存原图"
},
"mid_text": {
"bsonType": "string",
"description": "中间文字"
},
"lower_right": {
"bsonType": "object",
"description": "右下角水印",
"required": [
"title_text"
],
"properties": {
"title_text": {
"bsonType": "string",
"description": "水印块标题"
},
"body": {
"bsonType": "array",
"description": "水印块体"
}
}
}
}
}
} }
} }
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