|
| xqd
@@ -20,13 +20,41 @@ Page({
|
|
|
color:'#666',
|
|
|
route:'',
|
|
|
color1: 'RGB(233,59,61)',
|
|
|
- color2: '#666'
|
|
|
+ color2: '#666',
|
|
|
+ tappid: "",
|
|
|
+ tpath: '',
|
|
|
+ },
|
|
|
+ huace: function () {
|
|
|
+ var that = this;
|
|
|
+ wx.getSystemInfo({
|
|
|
+ success: function (res) {
|
|
|
+ if (res.platform == "devtools") {
|
|
|
+ console.log('PC')
|
|
|
+ that.setData({
|
|
|
+ tappid: 'wxeb58f03a8553df9a',
|
|
|
+ tpath: 'page/index/loading'
|
|
|
+ })
|
|
|
+ } else if (res.platform == "ios") {
|
|
|
+ console.log('IOS')
|
|
|
+ that.setData({
|
|
|
+ tappid: 'wx85709316b80a83be',
|
|
|
+ tpath: 'page/index/index'
|
|
|
+ })
|
|
|
+ } else if (res.platform == "android") {
|
|
|
+ console.log('android')
|
|
|
+ that.setData({
|
|
|
+ tappid: 'wxeb58f03a8553df9a',
|
|
|
+ tpayh: 'page/index/loading'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function(options) {
|
|
|
+ this.huace()
|
|
|
var that = this
|
|
|
that.setData({
|
|
|
route: that.route
|