y595705120 2 anni fa
parent
commit
d6045e5e2c
3 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 1 1
      component/iView/card/index.wxss
  2. 9 0
      pages/rili/index.js
  3. 1 1
      pages/rili/index.wxml

+ 1 - 1
component/iView/card/index.wxss

@@ -1,5 +1,5 @@
 .i-card {
-  margin: 0 16px;
+  margin: 0 36rpx;
   font-size: 14px;
   overflow: hidden;
   position: relative;

+ 9 - 0
pages/rili/index.js

@@ -23,6 +23,7 @@ const conf = {
     curDate: '',
     fromDate:'',
     toDate:'',
+    userInfo:{},
     calendarConfig: {
       theme: 'elegant',
       showHolidays: false,
@@ -125,6 +126,7 @@ const conf = {
           url: '/pages/index/index',
         })
       }else{
+        this.setData({userInfo: res})
         this.loadData()
       }
     })
@@ -257,6 +259,13 @@ const conf = {
       duration: 1500
     })
   },
+  onShareAppMessage: function () {
+    let {nickname} = this.data.userInfo
+    return {
+      title: `【${nickname}】向您推荐莅临外出小程序`,
+      path: `/pages/rili/index`
+    }
+  },
   generateRandomDate(type) {
     let random = ~~(Math.random() * 10)
     switch (type) {

+ 1 - 1
pages/rili/index.wxml

@@ -1,4 +1,4 @@
-<view style="overflow:hidden;margin: 12px 16px;">
+<view style="overflow:hidden;margin: 12px 36rpx;">
   <calendar
     id="calendar"
     config="{{calendarConfig}}"