chore: 归档当前现有代码,准备新建分支开发插件验证
This commit is contained in:
parent
7921d22b7d
commit
ec72d30cca
@ -186,6 +186,9 @@ export default {
|
|||||||
url: `${route}?name=${encodeURIComponent(card.name)}`
|
url: `${route}?name=${encodeURIComponent(card.name)}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/castlove/create?name=${encodeURIComponent(card.name)}`
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -751,12 +751,10 @@ const startCraftStudioPipeline = (studioKind) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nftInfo.value.trim()) {
|
if (!nftInfo.value.trim()) {
|
||||||
uni.showToast({ title: '请输入藏品信息', icon: 'none' });
|
uni.showToast({ title: '请输入藏品信息', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const formData = buildCraftFormData();
|
const formData = buildCraftFormData();
|
||||||
startCraftGenerationFlow({ formData, studioKind });
|
startCraftGenerationFlow({ formData, studioKind });
|
||||||
@ -764,6 +762,49 @@ const startCraftStudioPipeline = (studioKind) => {
|
|||||||
console.error('[CreatePage] craft studio pipeline', e);
|
console.error('[CreatePage] craft studio pipeline', e);
|
||||||
uni.showToast({ title: '启动失败,请重试', icon: 'none' });
|
uni.showToast({ title: '启动失败,请重试', icon: 'none' });
|
||||||
}
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/castlove/lenticular-studio',
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/** 单图工艺:进入镭射工坊(Laser-Card 配置页),保存后再上传并创建订单 */
|
||||||
|
const handleSingleCraftLaserEntry = () => {
|
||||||
|
if (isLenticularCraft.value) {
|
||||||
|
uni.showToast({ title: '光栅卡请使用「生成」进入工作室', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!uploadedImage.value) {
|
||||||
|
uni.showToast({ title: '请上传藏品图片', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!uploadedImageBase64.value) {
|
||||||
|
uni.showToast({ title: '图片尚未处理完成', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!nftInfo.value.trim()) {
|
||||||
|
uni.showToast({ title: '请输入藏品信息', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
uni.setStorageSync(
|
||||||
|
CASTLOVE_LASER_ENTRY_KEY,
|
||||||
|
JSON.stringify({
|
||||||
|
nftInfo: nftInfo.value,
|
||||||
|
materialTypes: [...materialTypes],
|
||||||
|
materialTypeIndex: materialTypeIndex.value,
|
||||||
|
pageName: pageName.value,
|
||||||
|
uploadedImage: uploadedImage.value,
|
||||||
|
uploadedImageBase64: uploadedImageBase64.value,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[CreatePage] laser entry payload', e);
|
||||||
|
uni.showToast({ title: '保存失败,请重试', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/castlove/laser-card-studio',
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleLenticularGenerate = () => {
|
const handleLenticularGenerate = () => {
|
||||||
|
|||||||
@ -10,12 +10,12 @@ const baseURL = 'http://192.168.110.60:8080' // H5 开发用本机
|
|||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// 开发调试:手机和电脑同一WiFi时用这个(改成你电脑IP)
|
// 开发调试:手机和电脑同一WiFi时用这个(改成你电脑IP)
|
||||||
// 上线后:改成实际服务器地址
|
// 上线后:改成实际服务器地址
|
||||||
const baseURL = 'http://192.168.110.60:8080'
|
// const baseURL = 'http://192.168.110.60:8080'
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// 服务器地址(正式上线用)
|
// 服务器地址(正式上线用)
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// const baseURL = 'http://101.132.250.62:8080'
|
const baseURL = 'http://101.132.250.62:8080'
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// 是否使用模拟数据(开发调试时设为 true,后端API准备好后改为 false)
|
// 是否使用模拟数据(开发调试时设为 true,后端API准备好后改为 false)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user