Revert "feat: 新增商品详情搭配优惠组件和客服弹窗"

This reverts commit 95eed74b96.
This commit is contained in:
2026-01-03 16:39:19 +08:00
parent 95eed74b96
commit ad4e2228a6
68 changed files with 2037 additions and 1198 deletions

36
app.js
View File

@@ -3,15 +3,31 @@ var t = require("./utils/login.js");
// 引入
require("./utils/xstat.js");
function generateRandomCode(length) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
App({
xstatConfig: {
appKey: wx.getAccountInfoSync().miniProgram.appId, // 自动获取 小程序appid
debug: true, //是否打开调试模式
// 上报地址
LOG_URL: 'https://t-jm.v0750.com/send',
LOG_URL: 'https://t-jm.v0750.com/v2/stat/send',
},
onLaunch: function(e) {
onLaunch: function (e) {
// 40 位的随机码
if (!wx.getStorageSync("session")) {
wx.setStorageSync("session", generateRandomCode(40));
}
console.log("options", e), this.globalData.options = e, t.getLogin(this, !0);
try {
var o = wx.getSystemInfoSync();
@@ -25,16 +41,16 @@ App({
});
}
},
onShow: function(e) {
onShow: function (e) {
console.log("onshowwwwwwwoptions", e);
var o = e.scene;
[ 1011, 1012, 1013, 1024, 1047, 1048, 1049 ].indexOf(o) > -1 && (console.log("扫码进入的"),
t.getDevicecode(this, e));
[1011, 1012, 1013, 1024, 1047, 1048, 1049].indexOf(o) > -1 && (console.log("扫码进入的"),
t.getDevicecode(this, e));
},
computeNavigateBarHeight: function(t) {
computeNavigateBarHeight: function (t) {
var e = wx.getMenuButtonBoundingClientRect(), o = e.bottom + 6, i = t.windowHeight, n = e.top, a = e.height;
i < 10 && (i = t.windowHeight, a = o - (n = t.statusBarHeight)), o < 10 && (console.log("更新"),
o = 68, /iPhone X|MI 8|PAAM00|COR-AL00/.test(t.model) ? o = 88 : /iPhone/.test(t.model) && (o = 64));
o = 68, /iPhone X|MI 8|PAAM00|COR-AL00/.test(t.model) ? o = 88 : /iPhone/.test(t.model) && (o = 64));
var s = t.windowWidth;
this.globalData.screen_data = {
windowWidth: s,
@@ -58,6 +74,12 @@ App({
isneedUpload: !1,
needJumpUrl: !1,
devicecode: "",
deviceData: {
type: 'machine',
devicecode: '',
options: {},
title: '',
},
protocol: {},
tips: ""
}