Jelajahi Sumber

小程序名称

guhongwei 3 tahun lalu
induk
melakukan
cc2528a2c6
3 mengubah file dengan 4 tambahan dan 23 penghapusan
  1. 1 1
      commpents/newsList/detail.wxml
  2. 2 21
      pages/home/index.js
  3. 1 1
      pages/login/index.wxml

+ 1 - 1
commpents/newsList/detail.wxml

@@ -9,6 +9,6 @@
     信息来源:{{detail.origin}}
   </view>
   <view class="content">
-    {{detail.content}}
+    <rich-text nodes="{{detail.content}}"></rich-text>
   </view>
 </view>

+ 2 - 21
pages/home/index.js

@@ -8,7 +8,7 @@ Page({
   data: {
     height: app.globalData.height * 2 + 25,
     navbarData: {
-      name: '智慧食堂'
+      name: '节俭会'
     },
     heat: 80,
     heatColor: {
@@ -46,26 +46,7 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-    // const test = `${app.globalData.publicUrl}/api/st/dining/arrange`;
-    // console.log(test);
-    wx.request({
-      url: `${app.globalData.publicUrl}/api/st/dining/arrange`,
-      method: "get",
-      header: {
-        'x-tenant': 'test'
-      },
-      data: {},
-
-      success: res => {
-        console.log(res);
-      },
-      error: err => {
-        wx.showToast({
-          title: err.msg,
-          icon: 'error'
-        })
-      }
-    })
+    console.log(app.globalData.usserInfo);
   },
 
   /**

+ 1 - 1
pages/login/index.wxml

@@ -1,6 +1,6 @@
 <view class="main" style="background:url('{{background}}');padding-top:{{height}}px">
   <view class="one">
-    智慧食堂
+    节俭会
   </view>
   <view class="two">
     <form bindsubmit="formSubmit">