Commit 262c733affd2af5f7140273c2641003f3d971f0e

Authored by vking
1 parent dbba52c4

pay

... ... @@ -23,6 +23,13 @@ App({
shareTicket:"",
isAdmin:false,//是否运营人员
onLaunch: async function (opt) {
if(wx.getLogManager){
const logger =wx.getLogManager()
console.log.prototype=function(){
console.log(...arguments)
logger.debug(...arguments)
};
}
console.log('onLaunch',opt,wx.env);
wx.removeStorage({key: 'formids'});//清理历史formids
mta.App.init({
... ...
... ... @@ -163,8 +163,7 @@
}
},
"usingComponents": {
"layout": "/components/layout",
"fb": "/components/common/feedback"
"layout": "/components/layout"
},
"debug": true,
"sitemapLocation": "sitemap.json"
... ...
// components/common/feedback.js
const mans=[
'oB-xJ5KJCIasaEdgMRckqoL1cwg8', //vking.wang
//'oB-xJ5BjnTvdgQGLHsjioNHH0eE8',
'oB-xJ5MEi2mTMrBTiYImD9cpGH6o', //xiao qin qin
'oB-xJ5OE1pM_17vNyWSMGqLH1vOg', //驴肉火烧多少钱一斤 MI 8
'oB-xJ5DIWrC6MECaXfql2GvTmQTU', //红旗 Redmi Note 7 Pro
'oB-xJ5I39RVWOWq-IGoBDxcFY-3s', //曹可 iPhone 6s Plus<iPhone8,2>
];
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
hasDispaly:false,
top:(Math.random()*70+10)
},
ready: function() {
if(!getApp().consoleHasRewrite && wx.getLogManager){
const logger =wx.getLogManager()
getApp().consoleHasRewrite=true
console.log.prototype=function(){
console.log(...arguments)
logger.debug(...arguments)
};
}
let openid=wx.getStorageSync('customer_openid');
if(!openid) return;
if(mans.includes(openid)){
this.setData({
hasDispaly:true,
top:(Math.random()*70+10)
})
}
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--components/common/feedback.wxml-->
<cover-view class="button-none feedback" wx:if="{{hasDispaly}}" style="top:{{top}}%">
<button class="button-none" open-type="feedback">反馈</button>
</cover-view>
/* components/common/feedback.wxss */
.feedback{
position: fixed;
right: 20rpx;
box-sizing: border-box;
width: 80rpx;
height: 80rpx;
top:50%;
background-color: rgba(200,0,0,0.2);
z-index: 9999;
padding: 0;
line-height: 80rpx;
border-radius: 50%;
}
.button-none{
box-sizing: border-box;
width: 80rpx;
height: 80rpx;
background-color: rgba(200,0,0,0.2);
color: #fefefe;
font-size: 24rpx;
font-weight: bold;
border-radius: 50%;
line-height: 80rpx;
padding: 0;
}
\ No newline at end of file
... ... @@ -23,5 +23,4 @@
</view>
</view>
</view>
<fb></fb>
\ No newline at end of file
</view>
\ No newline at end of file
... ...
... ... @@ -139,5 +139,4 @@
<caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
bindactive="caixiActive" id="caixi"
></caixi>
<fb></fb>
<activity-enter hasInHome></activity-enter>
\ No newline at end of file
... ...