| @@ -1,5 +1,5 @@ | |||||
| { | { | ||||
| "navigationBarTitleText": "我的写真", | |||||
| "navigationBarTitleText": "我的照片", | |||||
| "navigationBarBackgroundColor": "#333333", | "navigationBarBackgroundColor": "#333333", | ||||
| "navigationBarTextStyle": "white", | "navigationBarTextStyle": "white", | ||||
| "usingComponents": {} | "usingComponents": {} | ||||
| @@ -11,7 +11,8 @@ Page({ | |||||
| showPrivacy: false, | showPrivacy: false, | ||||
| currentIndex: 1, | currentIndex: 1, | ||||
| avatarUrl: "../../asset/icon/logo-5.png", | avatarUrl: "../../asset/icon/logo-5.png", | ||||
| timer: null | |||||
| timer: null, | |||||
| scrollTop: 0.01 | |||||
| }, | }, | ||||
| onLoad(option) { | onLoad(option) { | ||||
| @@ -120,6 +121,10 @@ Page({ | |||||
| icon: "success" | icon: "success" | ||||
| }) | }) | ||||
| that.getImageList(10, 1) | that.getImageList(10, 1) | ||||
| that.setData({ | |||||
| scrollTop: 0.01, | |||||
| currentIndex: 1 | |||||
| }) | |||||
| }).catch(err => { | }).catch(err => { | ||||
| console.log(err, 'err'); | console.log(err, 'err'); | ||||
| wx.showToast({ | wx.showToast({ | ||||
| @@ -15,7 +15,7 @@ | |||||
| <block wx:if="{{ isLogin }}"> | <block wx:if="{{ isLogin }}"> | ||||
| <view class="tab">我的写真</view> | <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 wx:for="{{itemList}}" class="item" wx:key="index"> | ||||
| <view class="top"> | <view class="top"> | ||||
| <view class="modelName">{{ item.title }}</view> | <view class="modelName">{{ item.title }}</view> | ||||
| @@ -57,7 +57,7 @@ Page({ | |||||
| wx.chooseMedia({ | wx.chooseMedia({ | ||||
| mediaType: ['image'], | mediaType: ['image'], | ||||
| sourceType: ['camera'], | |||||
| sourceType: ['camera', 'album'], | |||||
| camera: 'back', | camera: 'back', | ||||
| success: res => { | success: res => { | ||||
| that.setData({ | that.setData({ | ||||