|
|
@@ -45,6 +45,13 @@ const WuBianConstKey = {
|
|
|
ConsignmentArtId: 'WubianConsignmentArtId',
|
|
|
ConsignmentArtPrice: 'WubianConsignmentArtPrice',
|
|
|
ConsignmentArtAmount: 'WubianConsignmentArtAmount',
|
|
|
+
|
|
|
+ FastBuyCaptureEnabled: 'WubianFastBuyCaptureEnabled',
|
|
|
+ FastBuyQuickModeEnabled: 'WubianFastBuyQuickModeEnabled',
|
|
|
+ FastBuyArtName: 'WubianFastBuyArtName',
|
|
|
+ FastBuyArtId: 'WubianFastBuyArtId',
|
|
|
+ FastBuyArtPrice: 'WubianFastBuyArtPrice',
|
|
|
+ FastBuyArtAmount: 'WubianFastBuyArtAmount',
|
|
|
};
|
|
|
|
|
|
const gUserAgent = `Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Html5Plus/1.0 (Immersed/20) uni-app`;
|
|
|
@@ -444,6 +451,11 @@ function isConsignmentCaptureEnabled() {
|
|
|
return isEnabled;
|
|
|
}
|
|
|
|
|
|
+function isFastBuyCaptureEnabled() {
|
|
|
+ let isEnabled = magicJS.data.read(WuBianConstKey.FastBuyCaptureEnabled, true);
|
|
|
+ return isEnabled;
|
|
|
+}
|
|
|
+
|
|
|
function handleCvtGoodsList() {
|
|
|
let rspData = getResponsePlainData();
|
|
|
if (!rspData) {
|
|
|
@@ -853,7 +865,10 @@ function handleFirstArtInfo() {
|
|
|
magicJS.notification.appendNotifyInfo(`🎉产品[${artInfo.title}]首发数据采集成功!`);
|
|
|
}
|
|
|
} else {
|
|
|
-
|
|
|
+ if (isFastBuyCaptureEnabled()) {
|
|
|
+ magicJS.data.write(WuBianConstKey.FastBuyArtId, artInfo.artId);
|
|
|
+ magicJS.notification.appendNotifyInfo(`🎉产品[${artInfo.title}]快捷购买数据采集成功!`);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
artInfo.title = `${artInfo.title}(流通:${artInfo.circulationNum})`;
|