From 6bd4f39510c36b3f01c15e36e6f3acfc0d621829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=83=E8=82=89=E7=9A=84=E9=A5=BA=E5=AD=90?= <2659004835@qq.com> Date: Sun, 13 Feb 2022 21:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F=E7=9A=84=E9=AB=98=E5=BE=B7=E3=80=81=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AF=BC=E8=88=AA=E6=A0=8F=E7=9A=84=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E3=80=81=E8=B0=83=E6=95=B4=E5=85=AC=E5=85=B1=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E3=80=81=E6=96=B0=E5=A2=9E=E5=AF=BC=E8=88=AA=E6=A0=8F=E8=B7=9F?= =?UTF-8?q?=E9=9A=8Fswiper=E5=88=97=E8=A1=A8=E6=BB=91=E5=8A=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 71 +++--- commons/hengmei.css | 3 +- commons/icon-font.css | 23 ++ components/loading/loading.vue | 20 ++ components/status-nav.vue | 150 +++++++----- components/swiper-tab/swiper-tab.vue | 169 +++++++++++++ jsFile/publicAPI.js | 13 - jsFile/requst.js | 7 +- jsFile/tools.js | 17 +- main.js | 54 ++++- pages.json | 3 - pages/tabbar/my/my.vue | 350 --------------------------- pages/tabbar/pagehome/pagehome.vue | 57 ++++- 13 files changed, 460 insertions(+), 477 deletions(-) create mode 100644 commons/icon-font.css create mode 100644 components/loading/loading.vue create mode 100644 components/swiper-tab/swiper-tab.vue delete mode 100644 pages/tabbar/my/my.vue diff --git a/App.vue b/App.vue index 5baffbb..e7b691d 100644 --- a/App.vue +++ b/App.vue @@ -6,46 +6,47 @@ globalData:{ // domainName:'https://hengmei.scdxtc.cn/api/', domainName:'https://hm.hmzfyy.cn/api/', + appletName:'佩丽商城'//小程序名称 }, + // 优先于show方法 onLaunch: function() { - toolAll.tools.clearClog();//去除体验版和正式版的所有输出日志 + //去除体验版和正式版的所有输出日志 + toolAll.tools.clearClog(); + // 查询状态栏的高度、并设置导航栏的高度 + this.statusBarH(); + // 查询视频是否开启 + toolAll.tools.isVedio(); // 主题颜色 - // toolAll.tools.zhuColorT(); - uni.request({ - url: `${this.globalData.domainName}index/mini-program-setting`, - method: 'GET', - data: '', - header: { - 'Content-Type': 'application/json; charset=UTF-8', - 'Authorization': 'Bearer '+uni.getStorageSync('token') || '' - }, - success: res => { - // console.log('反的结果===>',res); - if (res.statusCode == 200) { - if (res.data.code == 0) { - uni.setStorageSync('publicColor', res.data.data.mainColor) //#3875F6 #2E8B57 - // uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57 - } - } - } - }) + // uni.request({ + // url: `${this.globalData.domainName}index/mini-program-setting`, + // method: 'GET', + // data: '', + // header: { + // 'Content-Type': 'application/json; charset=UTF-8', + // 'Authorization': 'Bearer '+uni.getStorageSync('token') || '' + // }, + // success: res => { + // // console.log('反的结果===>',res); + // if (res.statusCode == 200) { + // if (res.data.code == 0) { + // uni.setStorageSync('publicColor', res.data.data.mainColor) //#3875F6 #2E8B57 + // // uni.setStorageSync('publicColor', '#2E8B57') //#3875F6 #2E8B57 + // } + // } + // } + // }) }, onShow: function() { - - // uni.clearStorageSync() if(uni.getStorageSync('token')!='') { + // 开始埋点倒计时 toolAll.tools.daoTime(); - toolAll.tools.networkStatus();//检查当前网络状态 - toolAll.tools.updaX();//检测版本更新 } - setTimeout(()=>{ - toolAll.tools.overdue();//查询是否第一次授权 - },3000) - toolAll.tools.isVedio(); - toolAll.tools.checkQuan(); + //检查当前网络状态 + toolAll.tools.networkStatus(); }, onHide: function() { - toolAll.tools.closeTimer();//清空埋点倒计时 + //清空埋点倒计时 + toolAll.tools.closeTimer(); uni.removeStorageSync('isQuan'); uni.removeStorageSync('quanImg'); uni.removeStorageSync('quanId'); @@ -57,7 +58,17 @@ diff --git a/commons/hengmei.css b/commons/hengmei.css index dc468ce..338405d 100644 --- a/commons/hengmei.css +++ b/commons/hengmei.css @@ -1,6 +1,7 @@ /* 首页 */ .status-box{position: fixed;top: 0;left: 0;right: 0;z-index: 10;} -.status-nav{width: 100%;position: relative;padding: 30rpx 0;display: flex;align-items: center;} +.status-nav{width: 100%;position: relative;display: flex;align-items: center;} +/* .status-nav{width: 100%;position: relative;padding: 30rpx 0;display: flex;align-items: center;} */ .tab-title{font-size: 36rpx;font-weight: bold;color: #333333;width: 100%;} .tcenter{text-align: center;} .input-box{width: 100%;} diff --git a/commons/icon-font.css b/commons/icon-font.css new file mode 100644 index 0000000..b0e155b --- /dev/null +++ b/commons/icon-font.css @@ -0,0 +1,23 @@ +@font-face { + font-family: "iconfont"; /* Project id 3180711 */ + src: url('https://at.alicdn.com/t/font_3180711_ngoezww1u8.woff2?t=1644748713104') format('woff2'), + url('https://at.alicdn.com/t/font_3180711_ngoezww1u8.woff?t=1644748713104') format('woff'), + url('https://at.alicdn.com/t/font_3180711_ngoezww1u8.ttf?t=1644748713104') format('truetype'); +} + +.icon { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-return:before { + content: "\e600"; +} + +.icon-next:before { + content: "\e60e"; +} + diff --git a/components/loading/loading.vue b/components/loading/loading.vue new file mode 100644 index 0000000..790074f --- /dev/null +++ b/components/loading/loading.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/components/status-nav.vue b/components/status-nav.vue index c809564..887cb6b 100644 --- a/components/status-nav.vue +++ b/components/status-nav.vue @@ -1,19 +1,26 @@