diff --git a/app.js b/app.js index 2b48295..d276bc2 100644 --- a/app.js +++ b/app.js @@ -2,10 +2,6 @@ App({ onLaunch: function () { // 初始化应用 console.log('App Launch') - - // 加载并应用黑白测试设置 - this.loadAndApplyTestModeSettings() - // 初始化本地存储的标签和用户数据 if (!wx.getStorageSync('users')) { wx.setStorageSync('users', {}) @@ -104,89 +100,9 @@ App({ return await API.uploadPhoneNumberData(phoneData) }, - /** - * 加载并应用黑白测试设置 - */ - loadAndApplyTestModeSettings() { - // 从本地存储获取设置 - const isDarkMode = wx.getStorageSync('isDarkMode') || false - const isHighContrast = wx.getStorageSync('isHighContrast') || false - - // 应用设置 - this.applyDarkMode(isDarkMode) - this.applyHighContrastMode(isHighContrast) - - console.log('应用启动时加载黑白测试设置: 深色模式=' + isDarkMode + ', 高对比度=' + isHighContrast) - }, - - /** - * 应用深色模式设置 - */ - applyDarkMode(isDarkMode) { - // 更新窗口和导航栏样式 - wx.setNavigationBarColor({ - frontColor: isDarkMode ? '#ffffff' : '#000000', - backgroundColor: isDarkMode ? '#000000' : '#ffffff', - animation: { - duration: 400, - timingFunc: 'easeInOut' - } - }) - - wx.setBackgroundColor({ - backgroundColor: isDarkMode ? '#000000' : '#ffffff', - backgroundColorTop: isDarkMode ? '#000000' : '#ffffff', - backgroundColorBottom: isDarkMode ? '#000000' : '#ffffff' - }) - }, - - /** - * 应用高对比度模式设置 - */ - applyHighContrastMode(isHighContrast) { - // 移除旧的高对比度样式 - const oldStyle = wx.createSelectorQuery().select('#highContrastStyle') - oldStyle.context((res) => { - if (res.context) { - wx.removeStyleSheet('#highContrastStyle') - } - }) - - if (isHighContrast) { - // 创建高对比度样式 - const styleContent = ` - /* 高对比度样式 */ - * { - filter: grayscale(100%) contrast(120%) !important; - } - - /* 确保文字可读性 */ - text, span, div, p { - color: #000 !important; - background-color: #fff !important; - } - - /* 按钮和交互元素 */ - button, .btn { - border: 2px solid #000 !important; - color: #000 !important; - background-color: #fff !important; - } - ` - - // 动态添加样式 - const styleSheet = document.createElement('style') - styleSheet.id = 'highContrastStyle' - styleSheet.textContent = styleContent - document.head.appendChild(styleSheet) - } - }, - globalData: { userInfo: null, currentTab: 'index', // 当前选中的tab - showTabBar: true, // 控制底部tab-bar显示状态 - isDarkMode: false, // 是否处于深色模式 - isHighContrast: false // 是否处于高对比度模式 + showTabBar: true // 控制底部tab-bar显示状态 } }) diff --git a/pages/seller/index.js b/pages/seller/index.js index 2e90c56..66af0ba 100644 --- a/pages/seller/index.js +++ b/pages/seller/index.js @@ -3565,7 +3565,7 @@ Page({ contactCustomerService() { wx.showModal({ title: '客服电话', - content: '123456', + content: '18140203880', showCancel: true, cancelText: '取消', confirmText: '拨打', diff --git a/pages/test-tools/api-test.js b/pages/test-tools/api-test.js new file mode 100644 index 0000000..5ab8317 --- /dev/null +++ b/pages/test-tools/api-test.js @@ -0,0 +1,66 @@ +// pages/test-tools/api-test.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/api-test.wxml b/pages/test-tools/api-test.wxml new file mode 100644 index 0000000..52cc2b5 --- /dev/null +++ b/pages/test-tools/api-test.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/api-test.wxml \ No newline at end of file diff --git a/pages/test-tools/clear-storage.js b/pages/test-tools/clear-storage.js new file mode 100644 index 0000000..8106aaa --- /dev/null +++ b/pages/test-tools/clear-storage.js @@ -0,0 +1,66 @@ +// pages/test-tools/clear-storage.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/clear-storage.wxml b/pages/test-tools/clear-storage.wxml new file mode 100644 index 0000000..f03c1cd --- /dev/null +++ b/pages/test-tools/clear-storage.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/clear-storage.wxml \ No newline at end of file diff --git a/pages/test-tools/connection-test.js b/pages/test-tools/connection-test.js new file mode 100644 index 0000000..2d1276a --- /dev/null +++ b/pages/test-tools/connection-test.js @@ -0,0 +1,66 @@ +// pages/test-tools/connection-test.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/connection-test.wxml b/pages/test-tools/connection-test.wxml new file mode 100644 index 0000000..f6f0398 --- /dev/null +++ b/pages/test-tools/connection-test.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/connection-test.wxml \ No newline at end of file diff --git a/pages/test-tools/fix-connection.js b/pages/test-tools/fix-connection.js new file mode 100644 index 0000000..e00ffd0 --- /dev/null +++ b/pages/test-tools/fix-connection.js @@ -0,0 +1,66 @@ +// pages/test-tools/fix-connection.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/fix-connection.wxml b/pages/test-tools/fix-connection.wxml new file mode 100644 index 0000000..a9e8c39 --- /dev/null +++ b/pages/test-tools/fix-connection.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/fix-connection.wxml \ No newline at end of file diff --git a/pages/test-tools/gross-weight-tester.js b/pages/test-tools/gross-weight-tester.js new file mode 100644 index 0000000..34bee83 --- /dev/null +++ b/pages/test-tools/gross-weight-tester.js @@ -0,0 +1,66 @@ +// pages/test-tools/gross-weight-tester.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/gross-weight-tester.wxml b/pages/test-tools/gross-weight-tester.wxml new file mode 100644 index 0000000..be81f4b --- /dev/null +++ b/pages/test-tools/gross-weight-tester.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/gross-weight-tester.wxml \ No newline at end of file diff --git a/pages/test-tools/phone-test.js b/pages/test-tools/phone-test.js new file mode 100644 index 0000000..d7319c4 --- /dev/null +++ b/pages/test-tools/phone-test.js @@ -0,0 +1,66 @@ +// pages/test-tools/phone-test.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test-tools/phone-test.wxml b/pages/test-tools/phone-test.wxml new file mode 100644 index 0000000..1e321e5 --- /dev/null +++ b/pages/test-tools/phone-test.wxml @@ -0,0 +1,2 @@ + +pages/test-tools/phone-test.wxml \ No newline at end of file diff --git a/pages/test/undercarriage-test.js b/pages/test/undercarriage-test.js new file mode 100644 index 0000000..5eefd0a --- /dev/null +++ b/pages/test/undercarriage-test.js @@ -0,0 +1,66 @@ +// pages/test/undercarriage-test.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/test/undercarriage-test.wxml b/pages/test/undercarriage-test.wxml new file mode 100644 index 0000000..a207e69 --- /dev/null +++ b/pages/test/undercarriage-test.wxml @@ -0,0 +1,2 @@ + +pages/test/undercarriage-test.wxml \ No newline at end of file