This commit is contained in:
ylj20011123 2025-12-05 19:01:45 +08:00
parent 4f01850d7a
commit 2b45e72eb1
6 changed files with 1507 additions and 1266 deletions

View File

@ -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'; // nowTab3
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

View File

@ -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) { },

View File

@ -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({