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>
|
<image src="/static/images/revenue/product-ranking.png" mode="aspectFit"></image>
|
||||||
<text class="strong-text">商品销售排行</text>
|
<text class="strong-text">商品销售排行</text>
|
||||||
</view>
|
</view>
|
||||||
<RankContent :wechatPushSalesList="wechatPushSalesList" :provinceCode="currentProvinceCode" v-if="!isLoading"></RankContent>
|
<RankContent :wechatPushSalesList="wechatPushSalesList" :provinceCode="currentProvinceCode" v-if="!isLoading">
|
||||||
|
</RankContent>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="!showPage && !isLoading">
|
<view v-if="!showPage && !isLoading">
|
||||||
@ -709,25 +710,35 @@ export default {
|
|||||||
const ctx = uni.createCanvasContext(obj.id, this);
|
const ctx = uni.createCanvasContext(obj.id, this);
|
||||||
data.series = data.series.concat(obj.data)
|
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({
|
rincanvas[obj.id] = new uCharts({
|
||||||
context: ctx,
|
context: ctx,
|
||||||
color: obj.colors,
|
color: obj.colors,
|
||||||
type: 'ring',
|
type: 'ring',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
padding: [15, 15, 25, 15],
|
padding: [15, 25, 25, 15],
|
||||||
legend: {
|
legend: legendConfig,
|
||||||
show: false,
|
|
||||||
padding: 5,
|
|
||||||
lineHeight: 11,
|
|
||||||
margin: 0,
|
|
||||||
},
|
|
||||||
background: '#FFFFFF',
|
background: '#FFFFFF',
|
||||||
pixelRatio: 1, // 使用较低的像素比率减少渲染负担
|
pixelRatio: 1, // 使用较低的像素比率减少渲染负担
|
||||||
series: data.series,
|
series: data.series,
|
||||||
width: uni.upx2px(686),
|
width: uni.upx2px(686),
|
||||||
height: uni.upx2px(510),
|
height: uni.upx2px(510),
|
||||||
dataLabel: true,
|
dataLabel: !isAreaChart,
|
||||||
|
|
||||||
// 核心性能优化 - 完全禁用所有动画和交互
|
// 核心性能优化 - 完全禁用所有动画和交互
|
||||||
animation: false, // 禁用所有动画
|
animation: false, // 禁用所有动画
|
||||||
@ -997,6 +1008,7 @@ export default {
|
|||||||
|
|
||||||
_data1.push({
|
_data1.push({
|
||||||
...n,
|
...n,
|
||||||
|
name: n.name.split('管理单元')[0],
|
||||||
textColor: '#999',
|
textColor: '#999',
|
||||||
formatter: function (arg) {
|
formatter: function (arg) {
|
||||||
|
|
||||||
@ -2505,7 +2517,7 @@ canvas.operation-content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.category-name {
|
.category-name {
|
||||||
font-size: 26rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -50,7 +50,7 @@
|
|||||||
<view class="itemRight">
|
<view class="itemRight">
|
||||||
<view class="itemTop">
|
<view class="itemTop">
|
||||||
<text class="name">{{ detailObj.template.serverPartName || "" }}{{ detailObj.userName || "-"
|
<text class="name">{{ detailObj.template.serverPartName || "" }}{{ detailObj.userName || "-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="time">{{
|
<text class="time">{{
|
||||||
detailObj.createdAt
|
detailObj.createdAt
|
||||||
? $moment(detailObj.createdAt).format(
|
? $moment(detailObj.createdAt).format(
|
||||||
@ -1474,51 +1474,29 @@ export default {
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "图片上传中...",
|
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",
|
|
||||||
},
|
|
||||||
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}`
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
obj.feedbackImg = [
|
|
||||||
`https://es.eshangtech.com/${data.data.path}`,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
// if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
uni.uploadFile({
|
||||||
// obj.feedbackImg.push(
|
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||||
// `https://es.eshangtech.com/${data.data.path}`
|
filePath: rs.tempFilePaths[0],
|
||||||
// );
|
name: "file", // 表单中的文件字段名
|
||||||
// } else {
|
formData: {
|
||||||
// obj.feedbackImg = [
|
Tabletype: "1133", // 表单中其他数据
|
||||||
// `https://es.eshangtech.com/${data.data.path}`,
|
},
|
||||||
// ];
|
success(uploadRes) {
|
||||||
// }
|
if (uploadRes.data) {
|
||||||
_this.$forceUpdate();
|
let res = JSON.parse(uploadRes.data)
|
||||||
console.log("objobjobjobj21321", obj);
|
let url = res.Result_Data.ImageUrl
|
||||||
} else {
|
uni.hideLoading();
|
||||||
_this.feedbackImgList.push(
|
if (type === "feedback") {
|
||||||
`https://es.eshangtech.com/${data.data.path}`
|
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||||
);
|
obj.feedbackImg.push(url);
|
||||||
|
} else {
|
||||||
|
obj.feedbackImg = [url];
|
||||||
|
}
|
||||||
|
_this.$forceUpdate();
|
||||||
|
} else {
|
||||||
|
_this.feedbackImgList.push(url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail(error) {
|
fail(error) {
|
||||||
@ -1526,6 +1504,58 @@ export default {
|
|||||||
_this.noPost = true;
|
_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}`
|
||||||
|
// );
|
||||||
|
// } else {
|
||||||
|
// obj.feedbackImg = [
|
||||||
|
// `https://es.eshangtech.com/${data.data.path}`,
|
||||||
|
// ];
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // 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) {
|
fail(error) {
|
||||||
_this.noPost = true;
|
_this.noPost = true;
|
||||||
@ -1537,56 +1567,85 @@ export default {
|
|||||||
// mask: true
|
// mask: true
|
||||||
});
|
});
|
||||||
uni.uploadFile({
|
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",
|
||||||
// url: "https://es.robot-z.cn/oss/upload",
|
|
||||||
url: "https://es.eshangtech.com/oss/upload",
|
|
||||||
filePath: rs.tempFilePaths[0],
|
filePath: rs.tempFilePaths[0],
|
||||||
fileType: "image",
|
name: "file", // 表单中的文件字段名
|
||||||
header: {
|
formData: {
|
||||||
"Content-Type": "multipart/form-data",
|
Tabletype: "1133", // 表单中其他数据
|
||||||
},
|
},
|
||||||
name: "file",
|
success(uploadRes) {
|
||||||
success(res) {
|
if (uploadRes.data) {
|
||||||
console.log("res", res);
|
let res = JSON.parse(uploadRes.data)
|
||||||
let data = {};
|
let url = res.Result_Data.ImageUrl
|
||||||
if (res.data) {
|
uni.hideLoading();
|
||||||
data = JSON.parse(res.data);
|
if (type === "feedback") {
|
||||||
}
|
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||||
console.log("data", data);
|
obj.feedbackImg.push(url);
|
||||||
uni.hideLoading();
|
} else {
|
||||||
if (type === "feedback") {
|
obj.feedbackImg = [url];
|
||||||
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
}
|
||||||
obj.feedbackImg.push(
|
|
||||||
`https://es.eshangtech.com/${data.data.path}`
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
obj.feedbackImg = [
|
_this.feedbackImgList.push(url);
|
||||||
`https://es.eshangtech.com/${data.data.path}`,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
// 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) {
|
fail(error) {
|
||||||
console.log("error", error);
|
console.log("error", error);
|
||||||
_this.noPost = true;
|
_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}`
|
||||||
|
// );
|
||||||
|
// } else {
|
||||||
|
// obj.feedbackImg = [
|
||||||
|
// `https://es.eshangtech.com/${data.data.path}`,
|
||||||
|
// ];
|
||||||
|
// }
|
||||||
|
// // 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) { },
|
fail: function (err) { },
|
||||||
|
|||||||
@ -977,52 +977,88 @@ export default {
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "图片上传中...",
|
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",
|
|
||||||
},
|
|
||||||
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") {
|
uni.uploadFile({
|
||||||
if (obj.imageResponse && obj.imageResponse.length > 0) {
|
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL
|
||||||
obj.imageResponse.push(
|
filePath: rs.tempFilePaths[0],
|
||||||
`https://es.eshangtech.com/${data.data.path}`
|
name: "file", // 表单中的文件字段名
|
||||||
);
|
formData: {
|
||||||
|
Tabletype: "1133", // 表单中其他数据
|
||||||
|
},
|
||||||
|
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(url);
|
||||||
|
} else {
|
||||||
|
obj.imageResponse = [url];
|
||||||
|
}
|
||||||
|
|
||||||
|
_this.$forceUpdate();
|
||||||
} else {
|
} else {
|
||||||
obj.imageResponse = [
|
_this.imgsList.push(url);
|
||||||
`https://es.eshangtech.com/${data.data.path}`,
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
console.log(
|
_this.noPost = true;
|
||||||
"objobjobjobjobjobjobjobj",
|
|
||||||
_this.requestionRadioList
|
|
||||||
);
|
|
||||||
_this.$forceUpdate();
|
|
||||||
} else {
|
|
||||||
_this.imgsList.push(
|
|
||||||
`https://es.eshangtech.com/${data.data.path}`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail(error) {
|
fail: (error) => {
|
||||||
console.log("error", error);
|
console.log("error", error);
|
||||||
_this.noPost = true;
|
_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) {
|
fail(error) {
|
||||||
_this.noPost = true;
|
_this.noPost = true;
|
||||||
@ -1034,53 +1070,38 @@ export default {
|
|||||||
// mask: true
|
// mask: true
|
||||||
});
|
});
|
||||||
uni.uploadFile({
|
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", // 你的接口 URL
|
||||||
// url: "https://es.robot-z.cn/oss/upload",
|
|
||||||
url: "https://es.eshangtech.com/oss/upload",
|
|
||||||
filePath: rs.tempFilePaths[0],
|
filePath: rs.tempFilePaths[0],
|
||||||
fileType: "image",
|
name: "file", // 表单中的文件字段名
|
||||||
header: {
|
formData: {
|
||||||
"Content-Type": "multipart/form-data",
|
Tabletype: "1133", // 表单中其他数据
|
||||||
},
|
},
|
||||||
name: "file",
|
success: async (uploadRes) => {
|
||||||
success(res) {
|
console.log('uploadResuploadRes', uploadRes);
|
||||||
console.log("res", res);
|
if (uploadRes.data) {
|
||||||
let data = {};
|
let res = JSON.parse(uploadRes.data)
|
||||||
if (res.data) {
|
console.log('resresresresres', res);
|
||||||
data = JSON.parse(res.data);
|
let url = res.Result_Data.ImageUrl
|
||||||
}
|
uni.hideLoading();
|
||||||
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}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// _this.imgsList.push(
|
if (type === "response") {
|
||||||
// `https://es.eshangtech.com/${data.data.path}`
|
if (obj.imageResponse && obj.imageResponse.length > 0) {
|
||||||
// );
|
obj.imageResponse.push(url);
|
||||||
// path;
|
} else {
|
||||||
|
obj.imageResponse = [url];
|
||||||
|
}
|
||||||
|
|
||||||
|
_this.$forceUpdate();
|
||||||
|
} else {
|
||||||
|
_this.imgsList.push(url);
|
||||||
|
}
|
||||||
|
_this.noPost = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fail(error) {
|
fail: (error) => {
|
||||||
console.log("error", error);
|
console.log("error", error);
|
||||||
_this.noPost = true;
|
_this.noPost = true;
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// uni.uploadFile({
|
// uni.uploadFile({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user