update
This commit is contained in:
parent
4f01850d7a
commit
2b45e72eb1
@ -319,7 +319,8 @@
|
||||
<image src="/static/images/revenue/product-ranking.png" mode="aspectFit"></image>
|
||||
<text class="strong-text">商品销售排行</text>
|
||||
</view>
|
||||
<RankContent :wechatPushSalesList="wechatPushSalesList" :provinceCode="currentProvinceCode" v-if="!isLoading"></RankContent>
|
||||
<RankContent :wechatPushSalesList="wechatPushSalesList" :provinceCode="currentProvinceCode" v-if="!isLoading">
|
||||
</RankContent>
|
||||
</template>
|
||||
</view>
|
||||
<view v-if="!showPage && !isLoading">
|
||||
@ -709,25 +710,35 @@ export default {
|
||||
const ctx = uni.createCanvasContext(obj.id, this);
|
||||
data.series = data.series.concat(obj.data)
|
||||
|
||||
// 针对不同图表使用不同配置
|
||||
const isAreaChart = obj.id === 'areaCont'; // nowTab为3的图表
|
||||
const legendConfig = isAreaChart ? {
|
||||
show: true, // areaCont显示图例
|
||||
padding: 5,
|
||||
lineHeight: 11,
|
||||
margin: 10,
|
||||
position: 'right' // 图例显示在右侧
|
||||
} : {
|
||||
show: false, // 其他图表不显示图例
|
||||
padding: 5,
|
||||
lineHeight: 11,
|
||||
margin: 0,
|
||||
};
|
||||
|
||||
// 微信小程序专用优化配置 - 完全去除动画和过渡效果
|
||||
rincanvas[obj.id] = new uCharts({
|
||||
context: ctx,
|
||||
color: obj.colors,
|
||||
type: 'ring',
|
||||
fontSize: 12,
|
||||
padding: [15, 15, 25, 15],
|
||||
legend: {
|
||||
show: false,
|
||||
padding: 5,
|
||||
lineHeight: 11,
|
||||
margin: 0,
|
||||
},
|
||||
padding: [15, 25, 25, 15],
|
||||
legend: legendConfig,
|
||||
background: '#FFFFFF',
|
||||
pixelRatio: 1, // 使用较低的像素比率减少渲染负担
|
||||
series: data.series,
|
||||
width: uni.upx2px(686),
|
||||
height: uni.upx2px(510),
|
||||
dataLabel: true,
|
||||
dataLabel: !isAreaChart,
|
||||
|
||||
// 核心性能优化 - 完全禁用所有动画和交互
|
||||
animation: false, // 禁用所有动画
|
||||
@ -997,6 +1008,7 @@ export default {
|
||||
|
||||
_data1.push({
|
||||
...n,
|
||||
name: n.name.split('管理单元')[0],
|
||||
textColor: '#999',
|
||||
formatter: function (arg) {
|
||||
|
||||
@ -2505,7 +2517,7 @@ canvas.operation-content {
|
||||
}
|
||||
|
||||
.category-name {
|
||||
font-size: 26rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
@ -7,7 +7,9 @@
|
||||
<span class="serverpart-name">{{ showData.SHOPNAME }}</span>
|
||||
<span class="area-title">{{ showData.CREATE_DATE }}</span>
|
||||
</p>
|
||||
<span class="status-tag" :class="{'shouldDo':showData.PROCESSMODE!==0&&showData.PROCESSMODE!==4}">{{showData.status}}</span>
|
||||
<span class="status-tag"
|
||||
:class="{ 'shouldDo': showData.PROCESSMODE !== 0 && showData.PROCESSMODE !== 4 }">{{
|
||||
showData.status }}</span>
|
||||
</div>
|
||||
|
||||
<p class='massage-content'>
|
||||
@ -17,10 +19,12 @@
|
||||
|
||||
<div class="img-box" v-if="imgList.length > 2">
|
||||
|
||||
<image mode="aspectFill" class="image220" lazy-load :src="item" alt="" v-for="(item,i) in imgList" :key="i" @tap="showImg(imgList,i)" />
|
||||
<image mode="aspectFill" class="image220" lazy-load :src="item" alt="" v-for="(item, i) in imgList"
|
||||
:key="i" @tap="showImg(imgList, i)" />
|
||||
</div>
|
||||
<div class="img-box2" v-else-if="imgList.length == 2">
|
||||
<image mode="aspectFill" class="image328" lazy-load :src="item" alt="" v-for="(item,i) in imgList" :key="i" @tap="showImg(imgList,i)" />
|
||||
<image mode="aspectFill" class="image328" lazy-load :src="item" alt="" v-for="(item, i) in imgList"
|
||||
:key="i" @tap="showImg(imgList, i)" />
|
||||
</div>
|
||||
<div class="img-box" v-else-if="imgList.length == 1">
|
||||
<image mode="aspectFill" class="image683" lazy-load :src="imgList[0]" @tap="showImg(imgList, i)" />
|
||||
@ -38,7 +42,8 @@
|
||||
|
||||
<div class="page-resolve no-border">
|
||||
<span class="resove-title">问题处理人</span>
|
||||
<picker mode="selector" @change="pickerChange" :value="pickerIndex" range-key="MEMBERSHIP_NAME" :range="dealerList" class="resolve-person">
|
||||
<picker mode="selector" @change="pickerChange" :value="pickerIndex" range-key="MEMBERSHIP_NAME"
|
||||
:range="dealerList" class="resolve-person">
|
||||
<view>{{ pickerIndex == -1 ? '请选择' : dealerList[pickerIndex].MEMBERSHIP_NAME }}</view>
|
||||
</picker>
|
||||
<!-- <span class="resolve-person" @tap="cheose">请选择</span> -->
|
||||
@ -61,7 +66,8 @@
|
||||
<p class="resove-title">照 片</p>
|
||||
|
||||
<div class="img-box text-detail">
|
||||
<image :src="item" class="image220" lazy-load v-for="(item,i) in handelImgList" :key="i" @tap="showImg(handelImgList,i)" />
|
||||
<image :src="item" class="image220" lazy-load v-for="(item, i) in handelImgList" :key="i"
|
||||
@tap="showImg(handelImgList, i)" />
|
||||
</div>
|
||||
</div>
|
||||
<block v-if="isManager === 2">
|
||||
@ -177,67 +183,118 @@
|
||||
success(res) {
|
||||
console.log(res)
|
||||
// imageSrc = res.tempFilePath.replace('undefined','.jpg')
|
||||
|
||||
uni.uploadFile({
|
||||
url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
filePath: res.tempFilePath,
|
||||
fileType: 'image',
|
||||
name: 'data',
|
||||
success: (res) => {
|
||||
let _data = JSON.parse(res.data)
|
||||
_this.uploadImgList.push(_data.Data.IMAGE_URL)
|
||||
_this.uploadImgPath.push(_data.Data.IMAGE_PATH)
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: res.tempFilePath[0],
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
success(uploadRes) {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
_this.uploadImgList.push(url)
|
||||
_this.uploadImgPath.push(url)
|
||||
uni.showToast({
|
||||
title: '上传成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
|
||||
},
|
||||
fail: (err) => {
|
||||
|
||||
// console.log('uploadImage fail', err);
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
},
|
||||
complete:() =>{
|
||||
uni.hideLoading()
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
// uni.uploadFile({
|
||||
// url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
// filePath: res.tempFilePath,
|
||||
// fileType: 'image',
|
||||
// name: 'data',
|
||||
// success: (res) => {
|
||||
// let _data = JSON.parse(res.data)
|
||||
// _this.uploadImgList.push(_data.Data.IMAGE_URL)
|
||||
// _this.uploadImgPath.push(_data.Data.IMAGE_PATH)
|
||||
// uni.showToast({
|
||||
// title: '上传成功',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
|
||||
// },
|
||||
// fail: (err) => {
|
||||
|
||||
// // console.log('uploadImage fail', err);
|
||||
// uni.showModal({
|
||||
// content: err.errMsg,
|
||||
// showCancel: false
|
||||
// });
|
||||
// },
|
||||
// complete: () => {
|
||||
// uni.hideLoading()
|
||||
// }
|
||||
// });
|
||||
},
|
||||
fail(error) {
|
||||
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
uni.uploadFile({
|
||||
url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
filePath: rs.tempFilePaths[0],
|
||||
fileType: 'image',
|
||||
name: 'data',
|
||||
success: (res) => {
|
||||
uni.hideLoading()
|
||||
let _data = JSON.parse(res.data)
|
||||
_this.uploadImgList.push(_data.Data.IMAGE_URL)
|
||||
_this.uploadImgPath.push(_data.Data.IMAGE_PATH)
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: res.tempFilePath[0],
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
success(uploadRes) {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
_this.uploadImgList.push(url)
|
||||
_this.uploadImgPath.push(url)
|
||||
uni.showToast({
|
||||
title: '上传成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
|
||||
},
|
||||
fail: (err) => {
|
||||
// console.log('uploadImage fail', err);
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
|
||||
// uni.uploadFile({
|
||||
// url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
// filePath: rs.tempFilePaths[0],
|
||||
// fileType: 'image',
|
||||
// name: 'data',
|
||||
// success: (res) => {
|
||||
// uni.hideLoading()
|
||||
// let _data = JSON.parse(res.data)
|
||||
// _this.uploadImgList.push(_data.Data.IMAGE_URL)
|
||||
// _this.uploadImgPath.push(_data.Data.IMAGE_PATH)
|
||||
// uni.showToast({
|
||||
// title: '上传成功',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// // console.log('uploadImage fail', err);
|
||||
// uni.showModal({
|
||||
// content: err.errMsg,
|
||||
// showCancel: false
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -453,10 +510,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
i {
|
||||
width: 24upx;
|
||||
height: 24upx;
|
||||
@ -465,6 +522,7 @@
|
||||
vertical-align: middle;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
textarea {
|
||||
height: 40upx;
|
||||
line-height: 32upx;
|
||||
@ -472,21 +530,26 @@
|
||||
width: 500upx;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.page-top-cont {
|
||||
background-color: #fff;
|
||||
padding: 32upx;
|
||||
}
|
||||
|
||||
.msg-resolve-box {
|
||||
margin: 30upx;
|
||||
border-radius: 16upx;
|
||||
border: 1upx solid #eee;
|
||||
background-color: #fff;
|
||||
}
|
||||
.page-resolve,.page-advice {
|
||||
|
||||
.page-resolve,
|
||||
.page-advice {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 16upx;
|
||||
}
|
||||
|
||||
.page-resolve .resove-title {
|
||||
width: 160upx;
|
||||
color: #242424;
|
||||
@ -499,12 +562,14 @@
|
||||
padding: 22upx 0;
|
||||
line-height: 50upx;
|
||||
}
|
||||
|
||||
.page-resolve .resolve-person {
|
||||
padding-right: 16upx;
|
||||
text-align: right;
|
||||
padding-right: 72upx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.page-resolve .resolve-person:after {
|
||||
font-family: uniicons;
|
||||
content: '\E583';
|
||||
@ -515,25 +580,31 @@
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.textarea-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 52upx;
|
||||
}
|
||||
|
||||
.no-border .text-detail {
|
||||
|
||||
border-bottom: 0;
|
||||
}
|
||||
.pt-top,.page-resolve {
|
||||
|
||||
.pt-top,
|
||||
.page-resolve {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
.pt-top>p {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.area-title {
|
||||
position: relative;
|
||||
margin-right: 8upx;
|
||||
@ -549,6 +620,7 @@
|
||||
.massage-content {
|
||||
margin: 8upx 0;
|
||||
}
|
||||
|
||||
.serverpart-name {
|
||||
font-size: 24upx;
|
||||
padding: 0 12upx;
|
||||
@ -561,6 +633,7 @@
|
||||
justify-content: center;
|
||||
margin-right: 32upx;
|
||||
}
|
||||
|
||||
/* .span-color {
|
||||
color: #808080;
|
||||
min-width: 130upx;
|
||||
@ -580,6 +653,7 @@
|
||||
font-size: 24upx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.status-tag.shouldDo {
|
||||
border: 1upx solid #df7f42;
|
||||
border-radius: 8upx;
|
||||
@ -602,18 +676,21 @@
|
||||
align-items: flex-end;
|
||||
/* margin-top: 16upx; */
|
||||
}
|
||||
|
||||
.img-box2 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.img-box .image683 {
|
||||
width: 683upx;
|
||||
height: 357upx;
|
||||
border-radius: 8upx;
|
||||
/* margin-right: 16upx; */
|
||||
}
|
||||
|
||||
.img-box .image220 {
|
||||
width: 218upx;
|
||||
height: 212upx;
|
||||
@ -621,19 +698,23 @@
|
||||
margin-right: 16upx;
|
||||
margin-bottom: 10upx;
|
||||
}
|
||||
|
||||
.img-box .image220:nth-child(3n) {
|
||||
margin-right: 0;
|
||||
|
||||
}
|
||||
|
||||
.img-box2 .image328 {
|
||||
width: 328upx;
|
||||
height: 212upx;
|
||||
border-radius: 8upx;
|
||||
|
||||
}
|
||||
|
||||
.img-box .image328+.image328 {
|
||||
margin-left: 24upx;
|
||||
}
|
||||
|
||||
.img-box.text-detail image {
|
||||
width: 130upx;
|
||||
height: 126upx;
|
||||
@ -679,6 +760,7 @@
|
||||
margin-right: 16rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.walk-manage-plus {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
@ -689,11 +771,13 @@
|
||||
font-size: 48rpx;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.upload-file-add-img {
|
||||
margin-top: 10upx;
|
||||
font-size: 24upx;
|
||||
color: #919191;
|
||||
}
|
||||
|
||||
.upload-file-list {
|
||||
position: relative;
|
||||
width: 130upx;
|
||||
@ -717,6 +801,7 @@
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* .ul-list{
|
||||
background-color: #fff;
|
||||
height: 500upx;
|
||||
@ -737,5 +822,4 @@
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
font-size: 26upx;
|
||||
} */
|
||||
|
||||
</style>
|
||||
|
||||
@ -28,15 +28,19 @@
|
||||
<div class="li_right_top">
|
||||
<div class="li_title">
|
||||
<i class="img-zds"></i>
|
||||
<div class="xuncha" style="display: flex;"><i style="color: red;margin-right: 5px;">*</i>巡查内容</div>
|
||||
<div class="xuncha" style="display: flex;"><i
|
||||
style="color: red;margin-right: 5px;">*</i>巡查内容</div>
|
||||
</div>
|
||||
<div class="list-content">
|
||||
<textarea auto-height v-model="uploadResult" placeholder="请输入巡查内容" focus="true" @focus="inputfocus=true" @blur="inputfocus = false"></textarea>
|
||||
<textarea auto-height v-model="uploadResult" placeholder="请输入巡查内容" focus="true"
|
||||
@focus="inputfocus = true" @blur="inputfocus = false"></textarea>
|
||||
</div>
|
||||
<div class="tag-list" v-for="(tags, i) in tagList" :key="i">
|
||||
<div class="tag-name">{{ tags.FIELDENUM_NAME }}</div>
|
||||
<div class="tags-box">
|
||||
<div class="tag-unit" v-for="(tag,s) in tags.fieldenumList" :key="s" @tap="selectTag(tag)" :class="{'active':tag.ischecked}">{{tag.FIELDENUM_NAME}}</div>
|
||||
<div class="tag-unit" v-for="(tag, s) in tags.fieldenumList" :key="s"
|
||||
@tap="selectTag(tag)" :class="{ 'active': tag.ischecked }">{{ tag.FIELDENUM_NAME }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -47,7 +51,8 @@
|
||||
<div class="li_right_top">
|
||||
<div class="li_title">
|
||||
<i class="img-upload"></i>
|
||||
<div style="display: flex;" class="xuncha"><i style="color: red;margin-right: 5px;">*</i>请上传现场图片</div>
|
||||
<div style="display: flex;" class="xuncha"><i
|
||||
style="color: red;margin-right: 5px;">*</i>请上传现场图片</div>
|
||||
</div>
|
||||
<div class="upload-file-container">
|
||||
<div class="upload-file-list" v-for="(item, index) in imgsList" :key="index">
|
||||
@ -66,10 +71,12 @@
|
||||
<li :class="{ 'active': radiofocus }">
|
||||
<span class="circle circle-last"></span>
|
||||
<div class="li_right_top">
|
||||
<radio-group @change="radioChange" style="display: flex;" @click="radioFocus" @blur="radiofocus=false">
|
||||
<radio-group @change="radioChange" style="display: flex;" @click="radioFocus"
|
||||
@blur="radiofocus = false">
|
||||
<label class="uni-list-cell " v-for="(item, index) in options" :key="item.value">
|
||||
<view>
|
||||
<radio :value="item.value" color='#409eff' :checked="index === current" style="transform:scale(0.8);"/>
|
||||
<radio :value="item.value" color='#409eff' :checked="index === current"
|
||||
style="transform:scale(0.8);" />
|
||||
</view>
|
||||
<view>{{ item.name }}</view>
|
||||
</label>
|
||||
@ -83,7 +90,8 @@
|
||||
<div v-show="current == 1">
|
||||
<div class="resolve-box">
|
||||
<div class="uni-flex">处理人<i style="color: red;margin-right: 5px;">*</i></div>
|
||||
<picker mode="selector" @change="pickerChange" :value="pickerIndex" range-key="Membership_Name" :range="dealerList" class="resolve-person">
|
||||
<picker mode="selector" @change="pickerChange" :value="pickerIndex" range-key="Membership_Name"
|
||||
:range="dealerList" class="resolve-person">
|
||||
<view>{{ pickerIndex == -1 ? '请选择' : dealerList[pickerIndex].Membership_Name }}</view>
|
||||
</picker>
|
||||
</div>
|
||||
@ -187,7 +195,8 @@
|
||||
}
|
||||
if (this.current == 1 && index !== -1) {
|
||||
|
||||
postMsg = {...postMsg,
|
||||
postMsg = {
|
||||
...postMsg,
|
||||
DEALER_ID: this.dealerList[index].Membership_Id,
|
||||
DEALER_NAME: this.dealerList[index].Membership_Name,
|
||||
DEALER_STAFFID: this.dealerList[index].Staff_Id
|
||||
@ -226,27 +235,50 @@
|
||||
|
||||
let imageSrc = res.tempFilePaths[0]
|
||||
uni.showLoading()
|
||||
|
||||
uni.uploadFile({
|
||||
url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: imageSrc,
|
||||
fileType: 'image',
|
||||
name: 'data',
|
||||
success: (res) => {
|
||||
let _data = JSON.parse(res.data)
|
||||
|
||||
uni.hideLoading()
|
||||
_this.imgsList.push(imageSrc)
|
||||
_this.imgData.push(_data.Data.IMAGE_PATH)
|
||||
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
fail: (err) => {
|
||||
// console.log('uploadImage fail', err);
|
||||
uni.showModal({
|
||||
content: err.errMsg,
|
||||
showCancel: false
|
||||
});
|
||||
success(uploadRes) {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
_this.imgsList.push(url)
|
||||
_this.imgData.push(url)
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
|
||||
// uni.uploadFile({
|
||||
// url: 'https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA',
|
||||
// filePath: imageSrc,
|
||||
// fileType: 'image',
|
||||
// name: 'data',
|
||||
// success: (res) => {
|
||||
// let _data = JSON.parse(res.data)
|
||||
|
||||
// uni.hideLoading()
|
||||
// _this.imgsList.push(imageSrc)
|
||||
// _this.imgData.push(_data.Data.IMAGE_PATH)
|
||||
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// // console.log('uploadImage fail', err);
|
||||
// uni.showModal({
|
||||
// content: err.errMsg,
|
||||
// showCancel: false
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -334,9 +366,11 @@
|
||||
background-color: #fff;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.fs12 {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.upload-wrap-header {
|
||||
height: 120rpx;
|
||||
width: 100%;
|
||||
@ -366,9 +400,11 @@
|
||||
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.upload-h2 span {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.form_box_bg:before {
|
||||
position: absolute;
|
||||
left: 9rpx;
|
||||
@ -380,11 +416,13 @@
|
||||
width: 1rpx;
|
||||
|
||||
}
|
||||
|
||||
.form_box_bg {
|
||||
position: relative;
|
||||
margin-left: 24rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form_box_bg li {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
@ -400,9 +438,11 @@
|
||||
top: 16rpx;
|
||||
left: 1rpx;
|
||||
}
|
||||
|
||||
.circle-first {
|
||||
top: 14rpx;
|
||||
}
|
||||
|
||||
.circle-last {
|
||||
top: 46rpx;
|
||||
}
|
||||
@ -438,34 +478,42 @@
|
||||
.li_right_top {
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
|
||||
.li_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.li_right_bottom , .list-content{
|
||||
|
||||
.li_right_bottom,
|
||||
.list-content {
|
||||
color: #939393;
|
||||
font-size: 24rpx;
|
||||
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.list-content textarea {
|
||||
min-height: 50rpx;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
font-size: 24rpx;
|
||||
color: #606266;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tag-list+.tag-list {
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
|
||||
.tag-list .tag-name {
|
||||
margin-right: 16rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 2.9;
|
||||
}
|
||||
|
||||
.tag-list .tags-box {
|
||||
width: 546rpx;
|
||||
padding: 0 24rpx 0 12rpx;
|
||||
@ -473,6 +521,7 @@
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch; */
|
||||
}
|
||||
|
||||
.tag-list .tags-box .tag-unit {
|
||||
padding: 4rpx 16rpx;
|
||||
background-color: #F4F4F4;
|
||||
@ -483,10 +532,12 @@
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.tag-list .tags-box .tag-unit.active {
|
||||
color: #ED7043;
|
||||
background-color: #FDF1EC;
|
||||
}
|
||||
|
||||
.list-content textarea {
|
||||
border-bottom: 1rpx solid #eee;
|
||||
margin-top: 20rpx;
|
||||
@ -494,6 +545,7 @@
|
||||
font-size: 24rpx;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.upload-file-container {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
@ -555,16 +607,19 @@
|
||||
border-radius: 6rpx;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.upload-file-list:nth-child(3n-1) {
|
||||
margin-left: 16rpx;
|
||||
margin-right: 16rpx;
|
||||
|
||||
}
|
||||
|
||||
.upload-file-list image {
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.upload-file-remove {
|
||||
position: absolute;
|
||||
top: -14rpx;
|
||||
@ -584,6 +639,7 @@
|
||||
uni-radio-group {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.uni-list-cell {
|
||||
justify-content: unset;
|
||||
margin-top: 28rpx;
|
||||
@ -604,25 +660,32 @@
|
||||
line-height: 2.8;
|
||||
margin-top: 96rpx;
|
||||
}
|
||||
|
||||
.active .circle {
|
||||
background-color: #409eff;
|
||||
}
|
||||
|
||||
.active .img-zds {
|
||||
background-image: url("../../static/images/mbwa/zdsgl_sm_nr.png");
|
||||
}
|
||||
|
||||
.active .img-upload {
|
||||
background-image: url("../../static/images/mbwa/zdsgl_sm_pic.png");
|
||||
}
|
||||
|
||||
.xuncha {
|
||||
font-size: 26rpx;
|
||||
color: #7A7A7A;
|
||||
}
|
||||
|
||||
.address {
|
||||
color: #1B1C20;
|
||||
}
|
||||
|
||||
.active .xuncha {
|
||||
color: #409eff;
|
||||
}
|
||||
|
||||
.resolve-box {
|
||||
width: 656rpx;
|
||||
height: 82rpx;
|
||||
@ -637,12 +700,14 @@
|
||||
margin-left: 72rpx;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.resolve-box .resolve-person {
|
||||
padding-right: 16upx;
|
||||
text-align: right;
|
||||
padding-right: 72upx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.resolve-box .resolve-person:after {
|
||||
font-family: uniicons;
|
||||
content: '\E583';
|
||||
|
||||
@ -1474,36 +1474,56 @@ export default {
|
||||
uni.showLoading({
|
||||
title: "图片上传中...",
|
||||
});
|
||||
|
||||
uni.uploadFile({
|
||||
// url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// url: "https://es.robot-z.cn/oss/upload",
|
||||
url: "https://es.eshangtech.com/oss/upload",
|
||||
filePath: res.tempFilePath,
|
||||
header: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: rs.tempFilePaths[0],
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
formData: {},
|
||||
fileType: "image",
|
||||
name: "file",
|
||||
success(res) {
|
||||
console.log("res", res);
|
||||
let data = {};
|
||||
if (res.data) {
|
||||
data = JSON.parse(res.data);
|
||||
}
|
||||
console.log("data", data);
|
||||
success(uploadRes) {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
if (type === "feedback") {
|
||||
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
obj.feedbackImg.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
obj.feedbackImg.push(url);
|
||||
} else {
|
||||
obj.feedbackImg = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
obj.feedbackImg = [url];
|
||||
}
|
||||
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.feedbackImgList.push(url);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
// uni.uploadFile({
|
||||
// // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// // url: "https://es.robot-z.cn/oss/upload",
|
||||
// url: "https://es.eshangtech.com/oss/upload",
|
||||
// filePath: res.tempFilePath,
|
||||
// header: {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// },
|
||||
// formData: {},
|
||||
// fileType: "image",
|
||||
// name: "file",
|
||||
// success(res) {
|
||||
// console.log("res", res);
|
||||
// let data = {};
|
||||
// if (res.data) {
|
||||
// data = JSON.parse(res.data);
|
||||
// }
|
||||
// console.log("data", data);
|
||||
// uni.hideLoading();
|
||||
// if (type === "feedback") {
|
||||
// if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
// obj.feedbackImg.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
@ -1513,19 +1533,29 @@ export default {
|
||||
// `https://es.eshangtech.com/${data.data.path}`,
|
||||
// ];
|
||||
// }
|
||||
_this.$forceUpdate();
|
||||
console.log("objobjobjobj21321", obj);
|
||||
} else {
|
||||
_this.feedbackImgList.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
|
||||
// // if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
// // obj.feedbackImg.push(
|
||||
// // `https://es.eshangtech.com/${data.data.path}`
|
||||
// // );
|
||||
// // } else {
|
||||
// // obj.feedbackImg = [
|
||||
// // `https://es.eshangtech.com/${data.data.path}`,
|
||||
// // ];
|
||||
// // }
|
||||
// _this.$forceUpdate();
|
||||
// console.log("objobjobjobj21321", obj);
|
||||
// } else {
|
||||
// _this.feedbackImgList.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// }
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.log("error", error);
|
||||
// _this.noPost = true;
|
||||
// },
|
||||
// });
|
||||
},
|
||||
fail(error) {
|
||||
_this.noPost = true;
|
||||
@ -1537,33 +1567,53 @@ export default {
|
||||
// mask: true
|
||||
});
|
||||
uni.uploadFile({
|
||||
// url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// url: "https://es.robot-z.cn/oss/upload",
|
||||
url: "https://es.eshangtech.com/oss/upload",
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: rs.tempFilePaths[0],
|
||||
fileType: "image",
|
||||
header: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
name: "file",
|
||||
success(res) {
|
||||
console.log("res", res);
|
||||
let data = {};
|
||||
if (res.data) {
|
||||
data = JSON.parse(res.data);
|
||||
}
|
||||
console.log("data", data);
|
||||
success(uploadRes) {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
if (type === "feedback") {
|
||||
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
obj.feedbackImg.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
obj.feedbackImg.push(url);
|
||||
} else {
|
||||
obj.feedbackImg = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
obj.feedbackImg = [url];
|
||||
}
|
||||
} else {
|
||||
_this.feedbackImgList.push(url);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
|
||||
// uni.uploadFile({
|
||||
// // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// // url: "https://es.robot-z.cn/oss/upload",
|
||||
// url: "https://es.eshangtech.com/oss/upload",
|
||||
// filePath: rs.tempFilePaths[0],
|
||||
// fileType: "image",
|
||||
// header: {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// },
|
||||
// name: "file",
|
||||
// success(res) {
|
||||
// console.log("res", res);
|
||||
// let data = {};
|
||||
// if (res.data) {
|
||||
// data = JSON.parse(res.data);
|
||||
// }
|
||||
// console.log("data", data);
|
||||
// uni.hideLoading();
|
||||
// if (type === "feedback") {
|
||||
// if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
// obj.feedbackImg.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
@ -1573,20 +1623,29 @@ export default {
|
||||
// `https://es.eshangtech.com/${data.data.path}`,
|
||||
// ];
|
||||
// }
|
||||
console.log("objobjobjobj21321", obj);
|
||||
} else {
|
||||
_this.feedbackImgList.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
}
|
||||
_this.$forceUpdate();
|
||||
// path;
|
||||
},
|
||||
fail(error) {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
});
|
||||
// // if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
// // obj.feedbackImg.push(
|
||||
// // `https://es.eshangtech.com/${data.data.path}`
|
||||
// // );
|
||||
// // } else {
|
||||
// // obj.feedbackImg = [
|
||||
// // `https://es.eshangtech.com/${data.data.path}`,
|
||||
// // ];
|
||||
// // }
|
||||
// console.log("objobjobjobj21321", obj);
|
||||
// } else {
|
||||
// _this.feedbackImgList.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// }
|
||||
// _this.$forceUpdate();
|
||||
// // path;
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.log("error", error);
|
||||
// _this.noPost = true;
|
||||
// },
|
||||
// });
|
||||
}
|
||||
},
|
||||
fail: function (err) { },
|
||||
|
||||
@ -977,52 +977,88 @@ export default {
|
||||
uni.showLoading({
|
||||
title: "图片上传中...",
|
||||
});
|
||||
|
||||
uni.uploadFile({
|
||||
// url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// url: "https://es.robot-z.cn/oss/upload",
|
||||
url: "https://es.eshangtech.com/oss/upload",
|
||||
filePath: res.tempFilePath,
|
||||
header: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL
|
||||
filePath: rs.tempFilePaths[0],
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
formData: {},
|
||||
fileType: "image",
|
||||
name: "file",
|
||||
success(res) {
|
||||
console.log("res", res);
|
||||
let data = {};
|
||||
if (res.data) {
|
||||
data = JSON.parse(res.data);
|
||||
}
|
||||
console.log("data", data);
|
||||
success: async (uploadRes) => {
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
console.log('resresresresres', res);
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
|
||||
if (type === "response") {
|
||||
if (obj.imageResponse && obj.imageResponse.length > 0) {
|
||||
obj.imageResponse.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
obj.imageResponse.push(url);
|
||||
} else {
|
||||
obj.imageResponse = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
obj.imageResponse = [url];
|
||||
}
|
||||
console.log(
|
||||
"objobjobjobjobjobjobjobj",
|
||||
_this.requestionRadioList
|
||||
);
|
||||
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.imgsList.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
_this.imgsList.push(url);
|
||||
}
|
||||
_this.noPost = true;
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
fail: (error) => {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
// uni.uploadFile({
|
||||
// // url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// // url: "https://es.robot-z.cn/oss/upload",
|
||||
// url: "https://es.eshangtech.com/oss/upload",
|
||||
// filePath: res.tempFilePath,
|
||||
// header: {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// },
|
||||
// formData: {},
|
||||
// fileType: "image",
|
||||
// name: "file",
|
||||
// success(res) {
|
||||
// console.log("res", res);
|
||||
// let data = {};
|
||||
// if (res.data) {
|
||||
// data = JSON.parse(res.data);
|
||||
// }
|
||||
// console.log("data", data);
|
||||
// uni.hideLoading();
|
||||
|
||||
// if (type === "response") {
|
||||
// if (obj.imageResponse && obj.imageResponse.length > 0) {
|
||||
// obj.imageResponse.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// } else {
|
||||
// obj.imageResponse = [
|
||||
// `https://es.eshangtech.com/${data.data.path}`,
|
||||
// ];
|
||||
// }
|
||||
// console.log(
|
||||
// "objobjobjobjobjobjobjobj",
|
||||
// _this.requestionRadioList
|
||||
// );
|
||||
// _this.$forceUpdate();
|
||||
// } else {
|
||||
// _this.imgsList.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// }
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.log("error", error);
|
||||
// _this.noPost = true;
|
||||
// },
|
||||
// });
|
||||
|
||||
},
|
||||
fail(error) {
|
||||
_this.noPost = true;
|
||||
@ -1034,53 +1070,38 @@ export default {
|
||||
// mask: true
|
||||
});
|
||||
uni.uploadFile({
|
||||
// url: "https://eshangtech.com:18999/Coop.Merchant/Handler/handler_ajax.ashx?action_type=UploadFile&folder=MBWA",
|
||||
// url: "https://es.robot-z.cn/oss/upload",
|
||||
url: "https://es.eshangtech.com/oss/upload",
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL
|
||||
filePath: rs.tempFilePaths[0],
|
||||
fileType: "image",
|
||||
header: {
|
||||
"Content-Type": "multipart/form-data",
|
||||
name: "file", // 表单中的文件字段名
|
||||
formData: {
|
||||
Tabletype: "1133", // 表单中其他数据
|
||||
},
|
||||
name: "file",
|
||||
success(res) {
|
||||
console.log("res", res);
|
||||
let data = {};
|
||||
if (res.data) {
|
||||
data = JSON.parse(res.data);
|
||||
}
|
||||
console.log("data", data);
|
||||
success: async (uploadRes) => {
|
||||
console.log('uploadResuploadRes', uploadRes);
|
||||
if (uploadRes.data) {
|
||||
let res = JSON.parse(uploadRes.data)
|
||||
console.log('resresresresres', res);
|
||||
let url = res.Result_Data.ImageUrl
|
||||
uni.hideLoading();
|
||||
|
||||
if (type === "response") {
|
||||
if (obj.imageResponse && obj.imageResponse.length > 0) {
|
||||
obj.imageResponse.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
obj.imageResponse.push(url);
|
||||
} else {
|
||||
obj.imageResponse = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
}
|
||||
console.log(
|
||||
"objobjobjobjobjobjobjobj",
|
||||
_this.requestionRadioList
|
||||
);
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.imgsList.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
obj.imageResponse = [url];
|
||||
}
|
||||
|
||||
// _this.imgsList.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// path;
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.imgsList.push(url);
|
||||
}
|
||||
_this.noPost = true;
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
fail: (error) => {
|
||||
console.log("error", error);
|
||||
_this.noPost = true;
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
// uni.uploadFile({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user