guhongwei324 9 月之前
父節點
當前提交
30fc444223
共有 3 個文件被更改,包括 4 次插入4 次删除
  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);
     },