Browse Source

upload

master
HolyKnightIX 1 year ago
parent
commit
1c4e509b7e
4 changed files with 9 additions and 4 deletions
  1. +1
    -1
      miniprogram/pages/checkImg/checkImg.json
  2. +6
    -1
      miniprogram/pages/index/index.js
  3. +1
    -1
      miniprogram/pages/index/index.wxml
  4. +1
    -1
      miniprogram/pages/upload/upload.js

+ 1
- 1
miniprogram/pages/checkImg/checkImg.json View File

@@ -1,5 +1,5 @@
{
"navigationBarTitleText": "我的写真",
"navigationBarTitleText": "我的照片",
"navigationBarBackgroundColor": "#333333",
"navigationBarTextStyle": "white",
"usingComponents": {}

+ 6
- 1
miniprogram/pages/index/index.js View File

@@ -11,7 +11,8 @@ Page({
showPrivacy: false,
currentIndex: 1,
avatarUrl: "../../asset/icon/logo-5.png",
timer: null
timer: null,
scrollTop: 0.01
},

onLoad(option) {
@@ -120,6 +121,10 @@ Page({
icon: "success"
})
that.getImageList(10, 1)
that.setData({
scrollTop: 0.01,
currentIndex: 1
})
}).catch(err => {
console.log(err, 'err');
wx.showToast({


+ 1
- 1
miniprogram/pages/index/index.wxml View File

@@ -15,7 +15,7 @@

<block wx:if="{{ isLogin }}">
<view class="tab">我的写真</view>
<scroll-view class="scrollView" type="list" scroll-y scroll-with-animatio bindscrolltolower="loadMoreData">
<scroll-view class="scrollView" type="list" scroll-y scroll-with-animatio scroll-top="{{ scrollTop }}" bindscrolltolower="loadMoreData">
<view wx:for="{{itemList}}" class="item" wx:key="index">
<view class="top">
<view class="modelName">{{ item.title }}</view>


+ 1
- 1
miniprogram/pages/upload/upload.js View File

@@ -57,7 +57,7 @@ Page({

wx.chooseMedia({
mediaType: ['image'],
sourceType: ['camera'],
sourceType: ['camera', 'album'],
camera: 'back',
success: res => {
that.setData({


Loading…
Cancel
Save