Ver Fonte

fix: height auto

wangyuan há 2 anos atrás
pai
commit
278d50556c

+ 0 - 1
app.json

@@ -18,7 +18,6 @@
     "pages/reportDetail/reportDetail",
     "pages/myRecord/myRecord",
     "pages/exchange/exchange",
-    "pages/aatest/test",
     "pages/aboutUs/aboutUs",
     "pages/userAgreement/userAgreement"
   ],

+ 0 - 125
pages/aatest/test.js

@@ -1,125 +0,0 @@
-// pages/aatest/test.js
-import { userUploadHeadImg } from '../../api/upload'
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-    headImg: '',
-    nickname: ''
-  },
-  handleToast () {
-    wx.showToast({
-      title: '测试Toast',
-      icon: 'success'
-    }).then(res => {
-      console.log('success t', res);
-    })
-  },
-
-  submit () {
-    console.log(this.data.headImg, this.data.nickname);
-  },
-
-  bindinputNickName (e) {
-    console.log(e);
-  },
-
-  onChooseAvatar(e) {
-    const { avatarUrl } = e.detail
-    console.log(e);
-    this.setData({
-      headImg: avatarUrl
-    })
-    var data = {
-      filePath: avatarUrl
-    }
-    wx.showLoading({
-      title: '上传中...',
-      mask: true
-    })
-    userUploadHeadImg(data).then(res => {
-      wx.hideLoading()
-      console.log(JSON.parse(res), 'userUploadHeadImg');
-    }).catch(e => {
-      wx.hideLoading()
-      wx.showModal({
-        content: e,
-        confirmColor: '#333',
-        showCancel: false
-      })
-    })
-
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad(options) {
-    this.getSystemInfoSync()
-  },
-  getSystemInfoSync () {
-    wx.getSystemInfo({
-      success (res) {
-        console.log(res.model)
-        console.log(res.pixelRatio)
-        console.log(res.windowWidth)
-        console.log(res.windowHeight)
-        console.log(res.language)
-        console.log(res.version)
-        console.log(res.platform)
-      }
-    })
-  },
-
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide() {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload() {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh() {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom() {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage() {
-
-  }
-})

+ 0 - 3
pages/aatest/test.json

@@ -1,3 +0,0 @@
-{
-  "usingComponents": {}
-}

+ 0 - 11
pages/aatest/test.wxml

@@ -1,11 +0,0 @@
-<!--pages/aatest/test.wxml-->
-<view>
-  <view>
-    <view>测试头像地址</view>
-    <button open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">选择头像</button>
-    <image src="{{headImg}}"></image>
-    <input type="nickname" model:value="{{nickname}}" class="weui-input" placeholder="请输入昵称"/>
-    <button bindtap="submit">提交</button>
-    <button bindtap="handleToast">Toast Promise</button>
-  </view>
-</view>

+ 0 - 1
pages/aatest/test.wxss

@@ -1 +0,0 @@
-/* pages/aatest/test.wxss */

+ 1 - 2
pages/report/report.wxss

@@ -30,7 +30,7 @@
   margin: 20rpx auto 0;
 }
 .padding-bottom {
-  padding-bottom: 100rpx;
+  padding-bottom: 200rpx;
 }
 .report-name {
   font-size: 30rpx;
@@ -40,7 +40,6 @@
 }
 .report-this {
   width: 640rpx;
-  height: 336rpx;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;

+ 7 - 0
project.private.config.json

@@ -33,6 +33,13 @@
           "query": "",
           "launchMode": "default",
           "scene": null
+        },
+        {
+          "name": "vTabs",
+          "pathName": "pages/index/index",
+          "query": "reportid=15",
+          "launchMode": "default",
+          "scene": null
         }
       ]
     }