Commit 262c733affd2af5f7140273c2641003f3d971f0e

Authored by vking
1 parent dbba52c4

pay

@@ -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"
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 -})  
1 -{  
2 - "component": true,  
3 - "usingComponents": {}  
4 -}  
1 -<!--components/common/feedback.wxml-->  
2 -<cover-view class="button-none feedback" wx:if="{{hasDispaly}}" style="top:{{top}}%">  
3 - <button class="button-none" open-type="feedback">反馈</button>  
4 -</cover-view>  
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 -}  
@@ -23,5 +23,4 @@ @@ -23,5 +23,4 @@
23 23
24 </view> 24 </view>
25 </view> 25 </view>
26 -</view>  
27 -<fb></fb>  
  26 +</view>
@@ -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>