@@ -111,6 +111,7 @@
</view>
+ <u-back-top :scroll-top="scrollTop" mode="circle" icon="arrow-upward"></u-back-top>
</template>
@@ -394,20 +395,6 @@
this.pages = 1
this.loadData()
},
- //回到顶部
- goTop(e) { // 一键回到顶部
- console.log(e)
- if (wx.pageScrollTo) {
- wx.pageScrollTo({
- scrollTop: 0
- })
- } else {
- wx.showModal({
- title: '提示',
- content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
- }
- },
async loadData() {
console.log("sale loadData pages " + this.pages)
const that = this
@@ -663,21 +650,6 @@
.cu-tag.radius[class*="line"]::after {
border-radius: 66rpx;
}
-
- .goTop {
- height: 32px;
- width: 32px;
- position: fixed;
- bottom: 200rpx;
- right: 30rpx;
- border-radius: 50%;
- .goTop image {
.flex {
display: flex;