分享文案修改

feasure-livedata
lld 2026-03-21 22:06:53 +08:00
parent 5d427dc272
commit 049cdaa10a
5 changed files with 20 additions and 20 deletions

View File

@ -208,9 +208,7 @@ export default {
this.getServerData(); this.getServerData();
} }
}) })
}, 300) }, 500)
} }
} }
}; };

View File

@ -527,7 +527,7 @@ export default {
if (response.code === 200) { if (response.code === 200) {
this.$modal.msgSuccess("大棚重命名成功!"); this.$modal.msgSuccess("大棚重命名成功!");
this.getListData(); // this.getListData(); //
this.$refs.renameAgri.close(); // this.closeWindow() //
} else { } else {
this.$modal.msgError("大棚重命名失败!"); this.$modal.msgError("大棚重命名失败!");
} }

View File

@ -297,7 +297,7 @@ const cfu = {
show: true, show: true,
position: "bottom", position: "bottom",
float: "center", float: "center",
padding: 20, padding: 10,
margin: 10, margin: 10,
backgroundColor: "rgb(248,241,241)", backgroundColor: "rgb(248,241,241)",
borderColor: "#2d56d8", borderColor: "#2d56d8",
@ -306,11 +306,11 @@ const cfu = {
fontColor: "#666666", fontColor: "#666666",
lineHeight: 32, lineHeight: 32,
hiddenColor: "#CECECE", hiddenColor: "#CECECE",
itemGap: 40, itemGap: 20,
// 关键开启自动换行uCharts 2.x+ 支持) // 关键开启自动换行uCharts 2.x+ 支持)
wrap: true, wrap: true,
// 控制每行显示数量比如每行4个8个系列分两行 // 控制每行显示数量比如每行4个8个系列分两行
itemWidth: 80, itemWidth: 2,
}, },
extra: { extra: {
line: { line: {

View File

@ -489,15 +489,7 @@ function dataCombineStack(series, len) {
function getTouches(touches, opts, e) { function getTouches(touches, opts, e) {
let x, y; let x, y;
if (touches.clientX) { if (touches.x) {
if (opts.rotate) {
y = opts.height - touches.clientX * opts.pix;
x = (touches.pageY - e.currentTarget.offsetTop - (opts.height / opts.pix / 2) * (opts.pix - 1)) * opts.pix;
} else {
x = touches.clientX * opts.pix;
y = (touches.pageY - e.currentTarget.offsetTop - (opts.height / opts.pix / 2) * (opts.pix - 1)) * opts.pix;
}
} else {
if (opts.rotate) { if (opts.rotate) {
y = opts.height - touches.x * opts.pix; y = opts.height - touches.x * opts.pix;
x = touches.y * opts.pix; x = touches.y * opts.pix;
@ -505,6 +497,14 @@ function getTouches(touches, opts, e) {
x = touches.x * opts.pix; x = touches.x * opts.pix;
y = touches.y * opts.pix; y = touches.y * opts.pix;
} }
} else {
if (opts.rotate) {
y = opts.height - touches.clientX * opts.pix;
x = (touches.pageY - e.currentTarget.offsetTop - (opts.height / opts.pix / 2) * (opts.pix - 1)) * opts.pix;
} else {
x = touches.clientX * opts.pix;
y = (touches.pageY - e.currentTarget.offsetTop - (opts.height / opts.pix / 2) * (opts.pix - 1)) * opts.pix;
}
} }
return { return {
x: x, x: x,

View File

@ -5,15 +5,17 @@ export default {
//分享到微信好友 //分享到微信好友
onShareAppMessage(res) { onShareAppMessage(res) {
return { return {
title: '小策技术,为您的农业提供智能服务,欢迎咨询!', title: '小策技术,为您的农业提供智能服务,欢迎前来咨询!',
path: `/pages/index` path: `/pages/login`,
imageUrl: 'https://img.xiaoces.com/photos/logo200.png'
} }
}, },
//分享到朋友圈 //分享到朋友圈
onShareTimeline() { onShareTimeline() {
return { return {
title: '小策技术,为您的农业提供智能服务,欢迎咨询!', title: '小策技术,为您的农业提供智能服务,欢迎前来咨询!',
path: `/pages/index` path: `/pages/login`,
imageUrl: 'https://img.xiaoces.com/photos/logo200.png'
} }
}, },
} }