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;
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
:key="item.id"
|
||||
:item ="item"
|
||||
:doCout="toDoMsg[item.id]"
|
||||
:active="menus[item.id]==1"
|
||||
:active="menus[item.id]==1"
|
||||
@tap="toPage(item)"
|
||||
></menuItem>
|
||||
<view class="model-c-menu" hover-class="navigator-hover" v-for="item in modelMenu.zhbg" :key="item.id" @tap="toPage(item)">
|
||||
|
||||
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="itemTop">
|
||||
<text class="name">{{ detailObj.template.serverPartName || "" }}{{ detailObj.userName || "-"
|
||||
}}</text>
|
||||
}}</text>
|
||||
<text class="time">{{
|
||||
detailObj.createdAt
|
||||
? $moment(detailObj.createdAt).format(
|
||||
@ -1474,51 +1474,29 @@ 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",
|
||||
},
|
||||
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}`
|
||||
);
|
||||
uni.uploadFile({
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture",
|
||||
filePath: rs.tempFilePaths[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();
|
||||
if (type === "feedback") {
|
||||
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
obj.feedbackImg.push(url);
|
||||
} else {
|
||||
obj.feedbackImg = [url];
|
||||
}
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.feedbackImgList.push(url);
|
||||
}
|
||||
}
|
||||
},
|
||||
fail(error) {
|
||||
@ -1526,6 +1504,58 @@ export default {
|
||||
_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) {
|
||||
_this.noPost = true;
|
||||
@ -1537,56 +1567,85 @@ 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);
|
||||
uni.hideLoading();
|
||||
if (type === "feedback") {
|
||||
if (obj.feedbackImg && obj.feedbackImg.length > 0) {
|
||||
obj.feedbackImg.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
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(url);
|
||||
} else {
|
||||
obj.feedbackImg = [url];
|
||||
}
|
||||
} else {
|
||||
obj.feedbackImg = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
_this.feedbackImgList.push(url);
|
||||
}
|
||||
// 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;
|
||||
},
|
||||
});
|
||||
|
||||
// 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) { },
|
||||
|
||||
@ -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",
|
||||
},
|
||||
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}`
|
||||
);
|
||||
uni.uploadFile({
|
||||
url: "https://eshangtech.com:18900/EShangApiMain/Picture/UploadPicture", // 你的接口 URL
|
||||
filePath: rs.tempFilePaths[0],
|
||||
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 {
|
||||
obj.imageResponse = [
|
||||
`https://es.eshangtech.com/${data.data.path}`,
|
||||
];
|
||||
_this.imgsList.push(url);
|
||||
}
|
||||
console.log(
|
||||
"objobjobjobjobjobjobjobj",
|
||||
_this.requestionRadioList
|
||||
);
|
||||
_this.$forceUpdate();
|
||||
} else {
|
||||
_this.imgsList.push(
|
||||
`https://es.eshangtech.com/${data.data.path}`
|
||||
);
|
||||
_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);
|
||||
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}`
|
||||
);
|
||||
}
|
||||
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();
|
||||
|
||||
// _this.imgsList.push(
|
||||
// `https://es.eshangtech.com/${data.data.path}`
|
||||
// );
|
||||
// path;
|
||||
if (type === "response") {
|
||||
if (obj.imageResponse && obj.imageResponse.length > 0) {
|
||||
obj.imageResponse.push(url);
|
||||
} else {
|
||||
obj.imageResponse = [url];
|
||||
}
|
||||
|
||||
_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