xiaojincai 4 years ago
parent
commit
b28babc567
3 changed files with 17 additions and 2 deletions
  1. 1 1
      pages/intro/intro.wxml
  2. 6 1
      pages/intro/intro.wxss
  3. 10 0
      pages/message/message.js

+ 1 - 1
pages/intro/intro.wxml

@@ -1,5 +1,5 @@
 <block wx:if="{{!type}}">
-      <swiper indicator-dots="true"  autoplay="{{true}}" interval="3000" duration="500">
+      <swiper indicator-dots="true"  autoplay="{{true}}" interval="3000" duration="500" style="height:550rpx;width:100%;">
         <block wx:for="{{data.imgs}}" wx:key="*this">
           <swiper-item>
             <view class="swiper-item">

+ 6 - 1
pages/intro/intro.wxss

@@ -10,13 +10,18 @@
 .swiper-item{
   width: 100%;
 }
+.swiper-item image{
+  width: 100%;
+}
 
 .link view{
+  font-size: 34rpx;
   padding: 15px 0;
+  font-weight: bold;
   border-bottom: 1px solid #F2F3F4;
 
 }
 .link image{
   float: right;
   width: 40rpx;
-}
+}

+ 10 - 0
pages/message/message.js

@@ -14,12 +14,22 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
+    wx.showLoading({
+      title: '',
+    })
+    this.setData({
+      openid: app.globalData.openid
+    })
     this.getData()
   },  
   getData:function(){
     wx.request({
       url: host+'/api/wx/notice',
+      header: {
+        openid: this.data.openid
+      },
       success:res=>{
+        wx.hideLoading()
         if (res.statusCode == 403) {
           this.save()
         } else {