zhjx 7 年 前
コミット
432e844a0a

+ 2 - 0
Furniture/app.json

xqd
@@ -71,6 +71,8 @@
     "zan-toptips": "bower_components/zanui-weapp/dist/toptips/index"
   },
   "navigateToMiniProgramAppIdList": [
+    "wxeb58f03a8553df9a",
+    "wx85709316b80a83be",
     "wx75bace3bfac6a8ee"
   ]
 }

+ 30 - 2
Furniture/page/homePage/homePage.js

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

+ 3 - 3
Furniture/page/homePage/homePage.wxml

xqd
@@ -43,9 +43,9 @@
     </view> -->
     <view style='width:100%;border-bottom: 2rpx #D3D3D3 solid;height:230rpx;margin-top:8rpx'>
       <view style='float:left;width:342rpx;'>
-      <navigator target="miniProgram" open-type="navigate" app-id="wx605448628d21d682" path="/pages/index/index" extra-data="" version="release">
-          <image src='../../images/jiajuhuace.png' style='height:210rpx;width:304rpx;margin-left:30rpx;margin-top:0;'></image>
-       </navigator>
+      <navigator target="miniProgram" open-type="navigate" app-id="{{tappid}}" path="{{tpath}}" extra-data="" version="release">
+          <image src='../../images/jiajuhuace.png' style='height:215rpx;width:100%;margin:20rpx;margin-top:0;'></image>
+         </navigator>
       </view>
       <view style='float:left;width:408rpx;'>
        <image src='/images/jiajushouhou.png' style='height:100rpx;width:378rpx;' bindtap='goShouhou'></image>

+ 1 - 1
Furniture/project.config.json

xqd
@@ -4,7 +4,7 @@
 		"ignore": []
 	},
 	"setting": {
-		"urlCheck": true,
+		"urlCheck": false,
 		"es6": true,
 		"postcss": true,
 		"minified": true,