Browse Source

启动页改版

master tagv1.1.1
lihenian 5 years ago
parent
commit
21781977b6
  1. 4
      app.js
  2. 3
      pages/indexNew/indexNew.js
  3. 2
      pages/toRegister/toRegister.js
  4. 5
      project.config.json

4
app.js

@ -1,5 +1,3 @@
import checkoutVersion from './utils/checkVersion'
App({ App({
onLaunch: function (options) { onLaunch: function (options) {
// 判断是否由分享进入小程序 // 判断是否由分享进入小程序
@ -20,8 +18,6 @@ App({
this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2 this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2
} }
}) })
// 检查版本更新
checkoutVersion()
}, },
globalData: { globalData: {
flag: false, flag: false,

3
pages/indexNew/indexNew.js

@ -4,6 +4,7 @@ var global = require('../../utils/config.js')
import { import {
getTimestamp getTimestamp
} from '../../utils/common' } from '../../utils/common'
import checkoutVersion from '../../utils/checkVersion'
Page({ Page({
data: { data: {
@ -109,6 +110,8 @@ Page({
setTimeout(function() { setTimeout(function() {
that.getUserState() that.getUserState()
}, 700) }, 700)
// 检查版本更新
checkoutVersion()
}, },
getBannerList: function() { getBannerList: function() {
let that = this let that = this

2
pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
} }
}) })
let that = this let that = this
const versionNum = '1.1.0' const versionNum = '1.1.1'
api.getScanSwitch(versionNum).then(function (res) { api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data) console.log(res.data)
let state = res.data.scanFlag let state = res.data.scanFlag

5
project.config.json

@ -54,8 +54,8 @@
}, },
{ {
"id": 1, "id": 1,
"name": "ceshi", "name": "pages/indexNew/indexNew",
"pathName": "pages/formid/formid", "pathName": "pages/indexNew/indexNew",
"query": "gid=1175270967490244609", "query": "gid=1175270967490244609",
"scene": 1011 "scene": 1011
}, },
@ -84,6 +84,7 @@
"id": -1, "id": -1,
"name": "完善信息", "name": "完善信息",
"pathName": "pages/complete/complete", "pathName": "pages/complete/complete",
"query": "",
"scene": null "scene": null
} }
] ]

Loading…
Cancel
Save