Compare commits

...

2 Commits

Author SHA1 Message Date
Mr.jiang 6a51eb9a55 Merge branch 'master' of http://47.115.223.229:8888/yangjun/sadjv3_user 2024-07-04 16:25:30 +08:00
Mr.jiang 7fac5f7b7c 修改上啦 2024-07-04 16:25:22 +08:00
6 changed files with 46 additions and 39 deletions

View File

@ -2,9 +2,7 @@
<view style="width: 100%;" class="refresh-body" @touchmove.stop.prevent> <view style="width: 100%;" class="refresh-body" @touchmove.stop.prevent>
<scroll-view scroll-y @scroll="scroll" @touchstart="touchstart" @scrolltolower="loadMore" @touchmove="touchmove" @touchend="touchend" class="refresh-scroll"> <scroll-view scroll-y @scroll="scroll" @touchstart="touchstart" @scrolltolower="loadMore" @touchmove="touchmove" @touchend="touchend" class="refresh-scroll">
<view class="content"> <view class="content">
<!-- 内容 -->
<slot name="content"></slot> <slot name="content"></slot>
<!-- 上拉加载 -->
<view class="t-loading-box" v-if="loadingType!=3&&openLoadMore" @click="loadMore"> <view class="t-loading-box" v-if="loadingType!=3&&openLoadMore" @click="loadMore">
<view class="t-line"></view> <view class="t-line"></view>
<view class="t-loading-text"> <view class="t-loading-text">

View File

@ -1,5 +1,5 @@
<template> <template>
<view style="height: 100vh;"> <view style="height: 100vh;width: 100%;overflow: scroll;">
<!-- <view class="flex align-center justify-between you-nav"> <!-- <view class="flex align-center justify-between you-nav">
<view v-for="(item,index) in tab" :key="index" class="text-center box" <view v-for="(item,index) in tab" :key="index" class="text-center box"
:class="tabIndex == index?'tanColor':''" @click="bindTab(item.state)"> :class="tabIndex == index?'tanColor':''" @click="bindTab(item.state)">
@ -7,7 +7,7 @@
<view class="" :class="tabIndex == index?'line':''"></view> <view class="" :class="tabIndex == index?'line':''"></view>
</view> </view>
</view> --> </view> -->
<t-refresh ref="refresh" style="margin-bottom: 150px;" v-if="hongbao.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0"> <t-refresh ref="refresh" v-if="hongbao.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0">
<template slot="content"> <template slot="content">
<checkbox-group @change="checkboxChange"> <checkbox-group @change="checkboxChange">
<view> <view>
@ -146,6 +146,9 @@
</script> </script>
<style scoped> <style scoped>
/deep/.refresh-body{
height: 870px !important;
}
.que-btn{ .que-btn{
display: inline-block; display: inline-block;
width: 90%; width: 90%;

View File

@ -290,16 +290,19 @@
</view> </view>
<view class="showBtn" v-if="order.status==6" :style="{'justify-content':order.status ==6||order.status ==1?'space-between':'flex-end'}"> <view class="showBtn" v-if="order.status==6" :style="{'justify-content':order.status ==6||order.status ==1?'space-between':'flex-end'}">
<view class="gengduo" @click.stop="gengBtn">更多</view> <view class="gengduo" @click.stop="gengBtn">更多</view>
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false"
>
取消订单
</u-button>
<u-button <u-button
shape="circle" :plain="true" shape="circle" :plain="true"
@click="goNav('/my/wallet/index?artificerId='+order.artificerId)" @click="toggle('center',order)"
class="btns"> class="btns">
充值 提前结束
</u-button> </u-button>
<u-button v-if="order.oldOrdersId==null && order.status == 6&&order.addNum==null"
shape="circle" :plain="true"
@tap="saveJZS(order.artificerId)"
class="btns">
服务升级
</u-button>
<u-button <u-button
v-if="order.addNum ==null" v-if="order.addNum ==null"
shape="circle" :plain="true" shape="circle" :plain="true"
@ -310,11 +313,15 @@
<view class="showBtn-view" v-if="gengBtnShow==true" :style="gengNum==index?{display:'inline-block'}:{display:'none'}"> <view class="showBtn-view" v-if="gengBtnShow==true" :style="gengNum==index?{display:'inline-block'}:{display:'none'}">
<u-button :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat" <u-button :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat"
class="dingshi">联系客服</u-button> class="dingshi">联系客服</u-button>
<u-button v-if="order.oldOrdersId==null && order.status == 6&&order.addNum==null" <u-button @click="cancelOrder(order)" shape="circle" class="btns" :hair-line="false"
>
取消订单
</u-button>
<u-button
shape="circle" :plain="true" shape="circle" :plain="true"
@tap="saveJZS(order.artificerId)" @click="goNav('/my/wallet/index?artificerId='+order.artificerId)"
class="btns"> class="btns">
服务升级 充值
</u-button> </u-button>
<u-button :custom-style="customStyle2" <u-button :custom-style="customStyle2"
shape="circle" :plain="true" shape="circle" :plain="true"
@ -322,12 +329,7 @@
class="dingshi"> class="dingshi">
去投诉 去投诉
</u-button> </u-button>
<u-button
shape="circle" :plain="true"
@click="toggle('center',order)"
class="btns">
提前结束
</u-button>
</view> </view>
</view> </view>
<view class="showBtn" v-if="order.status ==7"> <view class="showBtn" v-if="order.status ==7">
@ -363,7 +365,7 @@
class="dingshi">联系客服</u-button> class="dingshi">联系客服</u-button>
</view> </view>
<view class="showBtn" v-if="order.status ==9"> <view class="showBtn" v-if="order.status ==9">
<u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle" :hair-line="false" <u-button @click="cancelOrder(order)" shape="circle" :custom-style="customStyle2" :hair-line="false"
> >
取消订单 取消订单
</u-button> </u-button>
@ -1637,6 +1639,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.u-size-default{
width: 80px !important;
}
/deep/.padding-bottom{ /deep/.padding-bottom{
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
@ -1821,7 +1826,7 @@
color: #fff !important; color: #fff !important;
} }
/deep/.u-size-default{ /deep/.u-size-default{
margin: 5px 0px 0px 0px; // margin: 5px 0px 0px 0px;
} }
.showBtn-mian{ .showBtn-mian{

View File

@ -179,6 +179,7 @@
.content-view{ .content-view{
width: 100%; width: 100%;
height: 100vh; height: 100vh;
padding-bottom: 100px;
overflow: hidden; overflow: hidden;
background-color: #f7f7f7; background-color: #f7f7f7;
} }

View File

@ -1,20 +1,7 @@
<!-- 自定义下拉刷新与上拉加载演示(vue) --> <!-- 自定义下拉刷新与上拉加载演示(vue) -->
<template> <template>
<view class="content-view"> <view class="content-view">
<view class="service-head-top">
<view class="service-head-top-left">
<image @click="backImg" src="../../static/fanhui.png" mode="widthFix"></image>
<span>浏览历史</span>
</view>
<!-- <view>
<uni-search-bar @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue" @input="input"
@clear="clear">
</uni-search-bar>
<view class="search-btn" @click="searchBtn">
搜索
</view>
</view> -->
</view>
<t-refresh ref="refresh" v-if="dataList.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0"> <t-refresh ref="refresh" v-if="dataList.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0">
<template slot="content"> <template slot="content">
<view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)"> <view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)">

View File

@ -72,6 +72,7 @@
titleNmae:'', titleNmae:'',
classifyId:'', classifyId:'',
getName:'', getName:'',
scrollTop: false,
} }
}, },
onLoad(e){ onLoad(e){
@ -84,6 +85,17 @@
this.page = 1; this.page = 1;
this.getData() this.getData()
}, },
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
onReachBottom: function() {
this.page = this.page + 1;
this.getData('');
},
onPullDownRefresh: function() {
this.page = 1;
this.getData('Refresh');
},
methods: { methods: {
// //
loadMore: async function() { loadMore: async function() {
@ -162,14 +174,15 @@
background-color: #f7f7f7; background-color: #f7f7f7;
} }
/deep/.refresh-body{ /deep/.refresh-body{
height: 100% !important;
border-top: 2px solid #f7f7f7; border-top: 2px solid #f7f7f7;
margin: 50px 0px; margin-top: 50px;
height: 800px !important;
overflow: scroll;
} }
.content-view{ .content-view{
width: 100%; width: 100%;
height: 100vh; height: 100vh;
overflow: auto; overflow: scroll;
background-color: #f7f7f7; background-color: #f7f7f7;
position: relative; position: relative;
} }