Browse Source

no message

feature/v2.3
xpz2018 4 years ago
parent
commit
92b202caa8
3 changed files with 5 additions and 4 deletions
  1. 5
      app.js
  2. 2
      pages/home/qrcode-info/index.wxml
  3. 2
      project.config.json

5
app.js

@ -1,6 +1,6 @@
//app.js //app.js
App({ App({
evn: 1, // 0: 开发版本;1:测试版本;2:生产版本
evn: 0, // 0: 开发版本;1:测试版本;2:生产版本
tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'],
version: '2.4.0', version: '2.4.0',
xAppId: '503258978847953926', xAppId: '503258978847953926',
@ -42,6 +42,7 @@ App({
} }
wx.getSystemInfo({ wx.getSystemInfo({
success: e => { success: e => {
this.globalData.window = e
this.globalData.isIos = this.checkIos(e) this.globalData.isIos = this.checkIos(e)
this.globalData.dev = e.platform == 'devtools' this.globalData.dev = e.platform == 'devtools'
@ -50,7 +51,7 @@ App({
// 顶部操作栏高度 // 顶部操作栏高度
this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight + (this.globalData.isIos ? 4 : 0) this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight + (this.globalData.isIos ? 4 : 0)
let windowHeight = e.windowHeight * (750 / e.windowWidth) let windowHeight = e.windowHeight * (750 / e.windowWidth)
let safeBottom = e.windowHeight - e.safeArea.bottom let safeBottom = e.windowHeight - e.safeArea.bottom
if(safeBottom > e.windowHeight){ if(safeBottom > e.windowHeight){
safeBottom = 34 safeBottom = 34

2
pages/home/qrcode-info/index.wxml

@ -2,7 +2,7 @@
<view slot="content">{{type == 0 ? '客户' : '员工'}}电子卡</view> <view slot="content">{{type == 0 ? '客户' : '员工'}}电子卡</view>
</cu-custom> </cu-custom>
<van-notice-bar color="#1989fa" background="#008AFF" scrollable="{{false}}" left-icon="info-o" text="注意:该二维码只在{{factoryName}}扫码使用" wx:if="{{form}}"/>
<van-notice-bar color="#1989fa" background="#008AFF" scrollable="{{false}}" left-icon="info-o" text="注意:该二维码只在{{factoryName}}扫码使用" wx:if="{{form}}"/>
<view style="padding:32rpx;margin-top:36rpx;border-radius: 20rpx" wx:if="{{form}}"> <view style="padding:32rpx;margin-top:36rpx;border-radius: 20rpx" wx:if="{{form}}">
<van-cell clickable is-link custom-class="group-top"> <van-cell clickable is-link custom-class="group-top">
<view slot="title" class="flex flex-justify" style="width:100%" bindtap="lookDetail"> <view slot="title" class="flex flex-justify" style="width:100%" bindtap="lookDetail">

2
project.config.json

@ -38,7 +38,7 @@
"showES6CompileOption": false "showES6CompileOption": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.19.0",
"libVersion": "2.19.2",
"appid": "wx8214a7f3614a3340", "appid": "wx8214a7f3614a3340",
"projectname": "ztb-saas-mini", "projectname": "ztb-saas-mini",
"debugOptions": { "debugOptions": {

Loading…
Cancel
Save