Showing
8 changed files
with
9 additions
and
88 deletions
| @@ -23,6 +23,13 @@ App({ | @@ -23,6 +23,13 @@ App({ | ||
| 23 | shareTicket:"", | 23 | shareTicket:"", |
| 24 | isAdmin:false,//是否运营人员 | 24 | isAdmin:false,//是否运营人员 |
| 25 | onLaunch: async function (opt) { | 25 | onLaunch: async function (opt) { |
| 26 | + if(wx.getLogManager){ | ||
| 27 | + const logger =wx.getLogManager() | ||
| 28 | + console.log.prototype=function(){ | ||
| 29 | + console.log(...arguments) | ||
| 30 | + logger.debug(...arguments) | ||
| 31 | + }; | ||
| 32 | + } | ||
| 26 | console.log('onLaunch',opt,wx.env); | 33 | console.log('onLaunch',opt,wx.env); |
| 27 | wx.removeStorage({key: 'formids'});//清理历史formids | 34 | wx.removeStorage({key: 'formids'});//清理历史formids |
| 28 | mta.App.init({ | 35 | mta.App.init({ |
| @@ -163,8 +163,7 @@ | @@ -163,8 +163,7 @@ | ||
| 163 | } | 163 | } |
| 164 | }, | 164 | }, |
| 165 | "usingComponents": { | 165 | "usingComponents": { |
| 166 | - "layout": "/components/layout", | ||
| 167 | - "fb": "/components/common/feedback" | 166 | + "layout": "/components/layout" |
| 168 | }, | 167 | }, |
| 169 | "debug": true, | 168 | "debug": true, |
| 170 | "sitemapLocation": "sitemap.json" | 169 | "sitemapLocation": "sitemap.json" |
components/common/feedback.js
deleted
100644 → 0
| 1 | -// components/common/feedback.js | ||
| 2 | -const mans=[ | ||
| 3 | - 'oB-xJ5KJCIasaEdgMRckqoL1cwg8', //vking.wang | ||
| 4 | - //'oB-xJ5BjnTvdgQGLHsjioNHH0eE8', | ||
| 5 | - 'oB-xJ5MEi2mTMrBTiYImD9cpGH6o', //xiao qin qin | ||
| 6 | - 'oB-xJ5OE1pM_17vNyWSMGqLH1vOg', //驴肉火烧多少钱一斤 MI 8 | ||
| 7 | - 'oB-xJ5DIWrC6MECaXfql2GvTmQTU', //红旗 Redmi Note 7 Pro | ||
| 8 | - 'oB-xJ5I39RVWOWq-IGoBDxcFY-3s', //曹可 iPhone 6s Plus<iPhone8,2> | ||
| 9 | -]; | ||
| 10 | -Component({ | ||
| 11 | - /** | ||
| 12 | - * 组件的属性列表 | ||
| 13 | - */ | ||
| 14 | - properties: { | ||
| 15 | - | ||
| 16 | - }, | ||
| 17 | - | ||
| 18 | - /** | ||
| 19 | - * 组件的初始数据 | ||
| 20 | - */ | ||
| 21 | - data: { | ||
| 22 | - hasDispaly:false, | ||
| 23 | - top:(Math.random()*70+10) | ||
| 24 | - }, | ||
| 25 | - ready: function() { | ||
| 26 | - if(!getApp().consoleHasRewrite && wx.getLogManager){ | ||
| 27 | - const logger =wx.getLogManager() | ||
| 28 | - getApp().consoleHasRewrite=true | ||
| 29 | - console.log.prototype=function(){ | ||
| 30 | - console.log(...arguments) | ||
| 31 | - logger.debug(...arguments) | ||
| 32 | - }; | ||
| 33 | - } | ||
| 34 | - let openid=wx.getStorageSync('customer_openid'); | ||
| 35 | - if(!openid) return; | ||
| 36 | - if(mans.includes(openid)){ | ||
| 37 | - this.setData({ | ||
| 38 | - hasDispaly:true, | ||
| 39 | - top:(Math.random()*70+10) | ||
| 40 | - }) | ||
| 41 | - } | ||
| 42 | - }, | ||
| 43 | - /** | ||
| 44 | - * 组件的方法列表 | ||
| 45 | - */ | ||
| 46 | - methods: { | ||
| 47 | - | ||
| 48 | - } | ||
| 49 | -}) |
components/common/feedback.json
deleted
100644 → 0
components/common/feedback.wxml
deleted
100644 → 0
components/common/feedback.wxss
deleted
100644 → 0
| 1 | -/* components/common/feedback.wxss */ | ||
| 2 | -.feedback{ | ||
| 3 | - position: fixed; | ||
| 4 | - right: 20rpx; | ||
| 5 | - box-sizing: border-box; | ||
| 6 | - width: 80rpx; | ||
| 7 | - height: 80rpx; | ||
| 8 | - top:50%; | ||
| 9 | - background-color: rgba(200,0,0,0.2); | ||
| 10 | - z-index: 9999; | ||
| 11 | - padding: 0; | ||
| 12 | - line-height: 80rpx; | ||
| 13 | - border-radius: 50%; | ||
| 14 | -} | ||
| 15 | -.button-none{ | ||
| 16 | - box-sizing: border-box; | ||
| 17 | - width: 80rpx; | ||
| 18 | - height: 80rpx; | ||
| 19 | - background-color: rgba(200,0,0,0.2); | ||
| 20 | - color: #fefefe; | ||
| 21 | - font-size: 24rpx; | ||
| 22 | - font-weight: bold; | ||
| 23 | - border-radius: 50%; | ||
| 24 | - line-height: 80rpx; | ||
| 25 | - padding: 0; | ||
| 26 | -} |
| @@ -139,5 +139,4 @@ | @@ -139,5 +139,4 @@ | ||
| 139 | <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" | 139 | <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" |
| 140 | bindactive="caixiActive" id="caixi" | 140 | bindactive="caixiActive" id="caixi" |
| 141 | ></caixi> | 141 | ></caixi> |
| 142 | -<fb></fb> | ||
| 143 | <activity-enter hasInHome></activity-enter> | 142 | <activity-enter hasInHome></activity-enter> |
-
Please register or login to post a comment