Commit e8d2cb22 authored by youjie's avatar youjie

no message

parent a2bbbd8a
...@@ -634,19 +634,19 @@ export default { ...@@ -634,19 +634,19 @@ export default {
} }
.ActInProBox.activeLv2 .ActInProCenTimeAll.active, .ActInProBox.activeLv2 .ActInProCenTimeAll.active,
.ActInProBox.activeLv2 .ActInProCenTime .active{ .ActInProBox.activeLv2 .ActInProCenTime .active{
color: #FF3166; color: #E8AA4B;
} }
.ActInProBox.activeLv3 .ActInProCenTimeAll.active, .ActInProBox.activeLv3 .ActInProCenTimeAll.active,
.ActInProBox.activeLv3 .ActInProCenTime .active{ .ActInProBox.activeLv3 .ActInProCenTime .active{
color: #1BCB8B; color: #7D49EA;
} }
.ActInProBox.activeLv4 .ActInProCenTimeAll.active, .ActInProBox.activeLv4 .ActInProCenTimeAll.active,
.ActInProBox.activeLv4 .ActInProCenTime .active{ .ActInProBox.activeLv4 .ActInProCenTime .active{
color: #FF9731; color: #44667C;
} }
.ActInProBox.activeLv5 .ActInProCenTimeAll.active, .ActInProBox.activeLv5 .ActInProCenTimeAll.active,
.ActInProBox.activeLv5 .ActInProCenTime .active{ .ActInProBox.activeLv5 .ActInProCenTime .active{
color: #9B2020; color: #000;
} }
.ActInProCenSSE{ .ActInProCenSSE{
font-weight: bold; font-weight: bold;
......
...@@ -540,19 +540,19 @@ export default { ...@@ -540,19 +540,19 @@ export default {
} }
.SetListBox.activeLv2 .SetListCenTimeAll.active, .SetListBox.activeLv2 .SetListCenTimeAll.active,
.SetListBox.activeLv2 .SetListCenTime .active{ .SetListBox.activeLv2 .SetListCenTime .active{
color: #FF3166; color: #E8AA4B;
} }
.SetListBox.activeLv3 .SetListCenTimeAll.active, .SetListBox.activeLv3 .SetListCenTimeAll.active,
.SetListBox.activeLv3 .SetListCenTime .active{ .SetListBox.activeLv3 .SetListCenTime .active{
color: #1BCB8B; color: #7D49EA;
} }
.SetListBox.activeLv4 .SetListCenTimeAll.active, .SetListBox.activeLv4 .SetListCenTimeAll.active,
.SetListBox.activeLv4 .SetListCenTime .active{ .SetListBox.activeLv4 .SetListCenTime .active{
color: #FF9731; color: #44667C;
} }
.SetListBox.activeLv5 .SetListCenTimeAll.active, .SetListBox.activeLv5 .SetListCenTimeAll.active,
.SetListBox.activeLv5 .SetListCenTime .active{ .SetListBox.activeLv5 .SetListCenTime .active{
color: #9B2020; color: #000;
} }
.SetListCenSSE{ .SetListCenSSE{
font-weight: bold; font-weight: bold;
......
<template> <template>
<view class="upImg row justify-center items-center" @click="chooseImg"> <view class="upImg row justify-center items-center" @click="chooseImg">
<template v-if="img"> <view v-if="img" style="width: 100%;height: 100%;">
<image @click.stop="previewImage" :src="img" mode="aspectFit"/> <image @click.stop="previewImage" :src="img" mode="aspectFit"/>
<view class="row justify-center items-center"> <view class="row justify-center items-center">
<view>重新上传</view> <view>重新上传</view>
</view> </view>
</template> </view>
<view v-else style="width: 100%;height: 100%;opacity: 0;">
<text>1</text>
</view>
</view> </view>
</template> </template>
<script> <script>
...@@ -72,6 +75,7 @@ export default { ...@@ -72,6 +75,7 @@ export default {
filePath: res.tempFilePaths[0], filePath: res.tempFilePaths[0],
encoding: "base64", //编码格式 encoding: "base64", //编码格式
success: (ans) => { success: (ans) => {
if(that.type){
that.getImgInfo(ans.data, that.access_token, (_res) => { that.getImgInfo(ans.data, that.access_token, (_res) => {
if (_res.data.direction == 1) { if (_res.data.direction == 1) {
//未定义,图片类型错误 //未定义,图片类型错误
...@@ -106,34 +110,52 @@ export default { ...@@ -106,34 +110,52 @@ export default {
}); });
} }
}); });
}else{
that.upFile(res.tempFilePaths[0])
console.log("res.tempFilePaths[0]",res.tempFilePaths[0]);
}
}, },
}); });
}, },
}); });
}, },
//图片上传 //图片上传
upFile(img, resCall) { upFile(filePath) {
uni.showLoading({ uni.showLoading({
title: "上传中", title: "上传中",
}); });
let that = this;
uni.uploadFile({ uni.uploadFile({
url: this.action, url: that.action,
filePath: img, filePath: filePath,
name: "field", name: 'file',
formData: { formData: {
user: "test", user: 'tesdt'
}, },
success: (uploadFileRes) => { success: (uploadFileRes) => {
uni.hideLoading(); if (uploadFileRes.statusCode == 200) {
resCall(uploadFileRes); let data = JSON.parse(uploadFileRes.data)
}, let infor = {}
fail: function (res) { infor.BusinessLicense = data.data
that.$emit('onSuccess', infor);
uni.hideLoading()
}else{
wx.showToast({ wx.showToast({
title: "上传失败!", title: uploadFileRes.message,
icon: "none", icon: 'none',
duration: 1000, duration: 1000
}); })
}
}, },
fail: function(res) {
console.log(res)
wx.showToast({
title: '上传失败!',
icon: 'none',
duration: 1000
})
}
}); });
}, },
//提取营业执照信息 //提取营业执照信息
......
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
} }
}, },
goDetails(item,type){ goDetails(item,type){
if(item.IsSee!=1) return uni.showToast({title:'暂无查看此合同权限',icon:'none'})
let path = ''; let path = '';
if(type==1){ if(type==1){
path = 'signAcontract?' path = 'signAcontract?'
......
...@@ -167,7 +167,6 @@ ...@@ -167,7 +167,6 @@
this.searchObj = JSON.parse(decodeURIComponent(options.msg)) this.searchObj = JSON.parse(decodeURIComponent(options.msg))
this.pageTitle = this.searchObj.CityName this.pageTitle = this.searchObj.CityName
} }
console.log(options,'----111111111111')
if(options && options.dayObj){ if(options && options.dayObj){
this.dayObj = JSON.parse(decodeURIComponent(options.dayObj)) this.dayObj = JSON.parse(decodeURIComponent(options.dayObj))
this.searchObj.QStartDate = this.dayObj.start; this.searchObj.QStartDate = this.dayObj.start;
......
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