浏览代码

chore[renard-wx]: 稍微微调一下

Junling Bu 7 年之前
父节点
当前提交
f239ffb0ea
共有 3 个文件被更改,包括 6 次插入4 次删除
  1. 3 1
      renard-wx/config/api.js
  2. 2 2
      renard-wx/pages/topicDetail/topicDetail.js
  3. 1 1
      renard-wx/project.config.json

+ 3 - 1
renard-wx/config/api.js

@@ -1,6 +1,8 @@
 // 以下是业务服务器API地址
 // 本机开发时使用
-var WxApiRoot = 'http://192.168.1.105:8082/wx/';
+ var WxApiRoot = 'http://localhost:8080/wx/';
+// 局域网测试使用
+// var WxApiRoot = 'http://192.168.0.101:8080/wx/';
 // 云平台上线时使用
 // var WxApiRoot = 'https://litemall.menethil.com.cn/wx/';
 // var WxApiRoot = 'https://www.menethil.com.cn/wx/';

+ 2 - 2
renard-wx/pages/topicDetail/topicDetail.js

@@ -33,10 +33,10 @@ Page({
       if (res.errno === 0) {
 
         that.setData({
-          topic: res.data,
+          topic: res.data.topic
         });
 
-        WxParse.wxParse('topicDetail', 'html', res.data.content, that);
+        WxParse.wxParse('topicDetail', 'html', res.data.topic.content, that);
       }
     });
 

+ 1 - 1
renard-wx/project.config.json

@@ -9,7 +9,7 @@
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.2.0",
-	"appid": "wx52ddd0f2221f9355",
+	"appid": "wxa5b486c6b918ecfb",
 	"projectname": "Renard",
 	"condition": {
 		"search": {