guhongwei324 il y a 11 mois
Parent
commit
30fc444223
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      app.js
  2. 1 1
      pages/index/index.wxml
  3. 1 1
      pagesCommon/test/index.js

+ 2 - 2
app.js

@@ -18,8 +18,8 @@ App({
         })
     },
     globalData: {
-        serverUrl: "http://127.0.0.1:10102",
-        wechatUrl: 'https://broadcast.waityou24.cn',
+        serverUrl: "https://www.freeskyghw.cn",
+        wechatUrl: 'https://www.freeskyghw.cn',
         // 当前设备信息
         client: {},
         // 微信用户openid,sessionKey

+ 1 - 1
pages/index/index.wxml

@@ -3,6 +3,6 @@
         <button type="primary" size="mini" bindtap="toCommon" data-route="pagesCommon/test/index">组价页面</button>
         <button type="primary" size="mini" bindtap="toCommon" data-route="pages/login/index">登录页面</button>
         <button type="primary" size="mini" bindtap="toCommon" data-route="pages/register/index">注册页面</button>
-        <button type="primary" size="mini" bindtap="toCommon" data-route="pagesHome/home/index">系统首页</button>1
+        <button type="primary" size="mini" bindtap="toCommon" data-route="pagesHome/home/index">系统首页</button>
     </view>
 </view>

+ 1 - 1
pagesCommon/test/index.js

@@ -75,7 +75,7 @@ Page({
         that.search()
     },
     async search() {
-        const res = await app.$api('test', 'GET', {});
+        const res = await app.$api('news', 'GET', {});
         console.log(res);
     },