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