This commit is contained in:
曹辉 2023-04-04 15:27:03 +08:00
parent a9b5ce7943
commit 64adc6dc61
6 changed files with 249 additions and 208 deletions

View File

@ -9,6 +9,13 @@
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},{
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
"style": {
"navigationBarTitleText": "护理机构服务订单",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, { }, {
"path": "pages/appointmenttime/appointmenttime", "path": "pages/appointmenttime/appointmenttime",
"style": { "style": {
@ -106,8 +113,7 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, }, {
{
"path": "pages/ratesuccess/ratesuccess", "path": "pages/ratesuccess/ratesuccess",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -128,87 +134,68 @@
"onReachBottomDistance": 40, // px "onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
}, }, {
{
"path": "pages/orderDetails/orderDetails", "path": "pages/orderDetails/orderDetails",
"style": { "style": {
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/payorderDetails/payorderDetails", "path": "pages/payorderDetails/payorderDetails",
"style": { "style": {
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/cancelorder/cancelorder", "path": "pages/cancelorder/cancelorder",
"style": { "style": {
"navigationBarTitleText": "取消订单", "navigationBarTitleText": "取消订单",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
"style": {
"navigationBarTitleText": "护理机构服务订单",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
"path": "pages/logistics/logistics", "path": "pages/logistics/logistics",
"style": { "style": {
"navigationBarTitleText": "查看物流", "navigationBarTitleText": "查看物流",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/Aftersalesdetails/Aftersalesdetails", "path": "pages/Aftersalesdetails/Aftersalesdetails",
"style": { "style": {
"navigationBarTitleText": "售后详情", "navigationBarTitleText": "售后详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/Applforrefund/Applforrefund", "path": "pages/Applforrefund/Applforrefund",
"style": { "style": {
"navigationBarTitleText": "申请退款", "navigationBarTitleText": "申请退款",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/refundType/refundType", "path": "pages/refundType/refundType",
"style": { "style": {
"navigationBarTitleText": "选择退款类型", "navigationBarTitleText": "选择退款类型",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/menttimeorder/menttimeorder", "path": "pages/menttimeorder/menttimeorder",
"style": { "style": {
"navigationBarTitleText": "预约详情", "navigationBarTitleText": "预约详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/homepage/homepage", "path": "pages/homepage/homepage",
"style": { "style": {
"navigationBarTitleText": "泉医到家", "navigationBarTitleText": "泉医到家",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/confirmOrder/confirmOrder", "path": "pages/confirmOrder/confirmOrder",
"style": { "style": {
"navigationBarTitleText": "确认订单", "navigationBarTitleText": "确认订单",
@ -216,38 +203,33 @@
"navigationBarBackgroundColor": "#4C7BC9", // "navigationBarBackgroundColor": "#4C7BC9", //
"navigationBarTextStyle": "white" "navigationBarTextStyle": "white"
} }
}, }, {
{
"path": "pages/disease/disease", "path": "pages/disease/disease",
"style": { "style": {
"navigationBarTitleText": "疾病类型选择", "navigationBarTitleText": "疾病类型选择",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/doctorslist/doctorslist", "path": "pages/doctorslist/doctorslist",
"style": { "style": {
"navigationBarTitleText": "预约医生", "navigationBarTitleText": "预约医生",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/ProductList/ProductList", // "path": "pages/ProductList/ProductList", //
"style": { "style": {
"navigationBarTitleText": "医路优品", "navigationBarTitleText": "医路优品",
"onReachBottomDistance": 40, // px "onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
}, }, {
{
"path": "pages/nursestation/nursestation", "path": "pages/nursestation/nursestation",
"style": { "style": {
"navigationBarTitleText": "护理机构详情", "navigationBarTitleText": "护理机构详情",
"onReachBottomDistance": 100, // px "onReachBottomDistance": 100, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
}, }, {
{
"path": "pages/site/site", "path": "pages/site/site",
"style": { "style": {
"navigationBarTitleText": "护理机构", "navigationBarTitleText": "护理机构",
@ -255,22 +237,19 @@
"onReachBottomDistance": 100, // px "onReachBottomDistance": 100, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
}, }, {
{
"path": "pages/diseasemanagement/diseasemanagement", "path": "pages/diseasemanagement/diseasemanagement",
"style": { "style": {
"navigationBarTitleText": "专病管理", "navigationBarTitleText": "专病管理",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/utabs/u-tabs", "path": "pages/utabs/u-tabs",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/classification/classification", "path": "pages/classification/classification",
"style": { "style": {
"navigationBarTitleText": "分类", "navigationBarTitleText": "分类",
@ -291,8 +270,7 @@
"navigationBarTitleText": "健康常识", "navigationBarTitleText": "健康常识",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }, {
{
"path": "pages/customerservice/customerservice", "path": "pages/customerservice/customerservice",
"style": { "style": {
"navigationBarTitleText": "在线客服", "navigationBarTitleText": "在线客服",

View File

@ -3,7 +3,7 @@
.masks{ .masks{
image{ image{
position: absolute; position: absolute;
bottom:380rpx; top:50rpx;
left:50%; left:50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 999; z-index: 999;
@ -14,43 +14,43 @@
.ratetitle{ .ratetitle{
font-size: 34rpx; font-size: 34rpx;
position: absolute; position: absolute;
bottom:320rpx; top:320rpx;
left:50%; left:50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 999; z-index: 999;
} }
.title{
position: absolute;
top:40rpx;
left:50%;
transform: translateX(-50%);
font-size: 42rpx;
}
::v-deep .u-star-wrap{
padding-right:10rpx;
}
.mask{ .mask{
position: absolute; position: absolute;
bottom:0; top:200rpx;
width: 750rpx; left: 70rpx;
height: 703rpx; }
background: #FFFFFF; .btn{
border-radius: 30rpx 30rpx 0px 0px; width: 70%;
display: flex; height: 71rpx;
justify-content: space-around; background: #4C7BC9;
border-radius: 26rpx;
position: absolute;
top:530rpx;
left: 15%;
text-align: center;
line-height: 71rpx;
color: #fff;
}
.rateitem{ .rateitem{
margin-top:200rpx; position: absolute;
width: 217rpx; top:350rpx;
height: 222rpx; left: 80rpx;
line-height: 222rpx; font-size: 42rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
} }
} }

View File

@ -41,35 +41,38 @@
<u-empty mode="list" icon-size='220' text='暂无服务订单'></u-empty> <u-empty mode="list" icon-size='220' text='暂无服务订单'></u-empty>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<u-popup v-model="rateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'> <u-popup v-model="rateshow" mode="bottom" length="50%" border-radius="20" :closeable='true' class='masks'>
<view class="title">
综合评价
</view>
<view class="mask"> <view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')"> <u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
满意
</view> </view>
<view class="rateitem" @tap="taprate('COMMONLY')"> <view class="rateitem">
一般 {{rateval==5?'非常满意':''}}
</view> {{rateval==4?'满意':''}}
<view class="rateitem" @tap="taprate('DISSATISFIED')"> {{rateval==3?'一般':''}}
不满意 {{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view> </view>
<view class="btn" @tap='taprate'>
确认
</view> </view>
</u-popup> </u-popup>
<u-popup v-model="lookrateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'> <u-popup v-model="lookrateshow" mode="bottom" length="60%" border-radius="20" :closeable='true' class='masks'>
<image :src="baseurl+rateimgtitle.img" mode=""></image> <image :src="baseurl+rateimgtitle.img" mode=""></image>
<view class="ratetitle"> <view class="ratetitle">
{{rateimgtitle.title}} {{rateimgtitle.title}}
</view> </view>
<view class="mask"> <view class="mask" style="top: 450rpx;">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''"> <u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view> </view>
<view class="rateitem" style="top: 580rpx;">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view> </view>
</u-popup> </u-popup>
</view> </view>
@ -91,21 +94,24 @@
export default { export default {
data() { data() {
return { return {
rateimgtitle: { timer: null, //time
baseurl: null,
rateimgtitle: { //mask
img: null, img: null,
title: null, title: null,
}, },
ratelist: null, //list ratelist: null, //list
rateshow: false, // rateshow: false, //
lookrateshow: false, // lookrateshow: false, //
baseurl: '', openid: null, //opedn
openid: null, patientId: null, //patientId
patientId: null, rateval: 0, //
evaluateSatisfaction: null, //////
pageNum: 1, pageNum: 1,
total: 0, total: 0,
pageSize: 15, pageSize: 15,
list: [], list: [], //list
orderNo: null, orderNo: null, //
} }
}, },
onShow() { onShow() {
@ -133,40 +139,70 @@
}) })
} }
}, },
watch: { //
rateval() {
if (this.rateval == 5) {
this.evaluateSatisfaction = 'VERYSATISFIED'
} else if (this.rateval == 4) {
this.evaluateSatisfaction = 'SATISFIED'
} else if (this.rateval == 3) {
this.evaluateSatisfaction = 'COMMONLY'
} else if (this.rateval == 2) {
this.evaluateSatisfaction = 'DISSATISFIED'
} else if (this.rateval == 1) {
this.evaluateSatisfaction = 'VERYDISSATISFIED'
}
},
},
methods: { methods: {
// //
lookrate(item) { lookrate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateimgtitle.img = item.itemPictureUrl this.rateimgtitle.img = item.itemPictureUrl
this.rateimgtitle.title = item.nurseItemName this.rateimgtitle.title = item.nurseItemName
this.lookrateshow = true
lookrate(item.orderNo).then(res => { lookrate(item.orderNo).then(res => {
this.ratelist = res.data this.ratelist = res.data
this.rateval = res.data.compositeScore
this.lookrateshow = true
}) })
}, },
// //
gorate(item) { gorate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.orderNo = item.orderNo this.orderNo = item.orderNo
this.rateshow = true this.rateshow = true
}, },
// //
taprate(item) { taprate() {
var obj = { var obj = {
"patientId": this.patientId, "patientId": this.patientId,
"openid": this.openid, "openid": this.openid,
"orderNo": this.orderNo, "orderNo": this.orderNo,
"evaluateChannel": "WE_CHAT_APPLET", "evaluateChannel": "WE_CHAT_APPLET",
"evaluateSatisfaction": item, "evaluateSatisfaction": this.evaluateSatisfaction,
"compositeScore": this.rateval
} }
addAppointmentEvaluate(obj).then(res => { addAppointmentEvaluate(obj).then(res => {
if (res.code == 200) {
uni.setStorageSync("Refresh", 'Refresh') uni.setStorageSync("Refresh", 'Refresh')
if (res.code == 200) {
this.getinfo();
this.orderNo = null this.orderNo = null
this.rateshow = false
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '评价成功', title: '评价成功',
type: 'success', type: 'success',
duration: '1500', duration: '1500'
url: '/pages/ratesuccess/ratesuccess'
}) })
if (this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(e => {
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${1}`
})
}, 1500)
} }
}) })
}, },

View File

@ -7,7 +7,7 @@
.masks{ .masks{
image{ image{
position: absolute; position: absolute;
bottom:380rpx; top:50rpx;
left:50%; left:50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 999; z-index: 999;
@ -18,43 +18,43 @@
.ratetitle{ .ratetitle{
font-size: 34rpx; font-size: 34rpx;
position: absolute; position: absolute;
bottom:320rpx; top:320rpx;
left:50%; left:50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 999; z-index: 999;
} }
.title{
position: absolute;
top:40rpx;
left:50%;
transform: translateX(-50%);
font-size: 42rpx;
}
::v-deep .u-star-wrap{
padding-right:10rpx;
}
.mask{ .mask{
position: absolute; position: absolute;
bottom:0; top:200rpx;
width: 750rpx; left: 70rpx;
height: 703rpx; }
background: #FFFFFF; .btn{
border-radius: 30rpx 30rpx 0px 0px; width: 70%;
display: flex; height: 71rpx;
justify-content: space-around; background: #4C7BC9;
border-radius: 26rpx;
position: absolute;
top:530rpx;
left: 15%;
text-align: center;
line-height: 71rpx;
color: #fff;
}
.rateitem{ .rateitem{
margin-top:200rpx; position: absolute;
width: 217rpx; top:350rpx;
height: 222rpx; left: 80rpx;
line-height: 222rpx; font-size: 42rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
} }
} }
.time{ .time{
@ -66,26 +66,6 @@
margin: 20rpx auto 0rpx; margin: 20rpx auto 0rpx;
border-radius: 20rpx; border-radius: 20rpx;
} }
.mask{
position: absolute;
bottom:0;
width: 750rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 30rpx 30rpx 0px 0px;
display: flex;
justify-content: space-around;
.rateitem{
margin-top:200rpx;
width: 217rpx;
height: 222rpx;
line-height: 222rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
}
.OrderStatus{ .OrderStatus{
text-align: center; text-align: center;
width: 300rpx; width: 300rpx;

View File

@ -69,7 +69,7 @@
<view class="cancelorder" @tap="cancelorderment()" <view class="cancelorder" @tap="cancelorderment()"
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单 v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单
</view> </view>
<view class="cancelorder" style="background: #60c5f1;" @tap='rateshow= true' <view class="cancelorder" style="background: #60c5f1;" @tap='rateshowtrue'
v-if="list.orderStatus=='COMPLETE'">立即评价 v-if="list.orderStatus=='COMPLETE'">立即评价
</view> </view>
<view class="cancelorder" @tap='buy' style="background-color: darkorange;" <view class="cancelorder" @tap='buy' style="background-color: darkorange;"
@ -79,8 +79,24 @@
<view class="cancelorder" style="background: #4C7BC9;" v-if="list.orderStatus=='EVALUATED'" <view class="cancelorder" style="background: #4C7BC9;" v-if="list.orderStatus=='EVALUATED'"
@tap='lookrate(list)'>查看评价</view> @tap='lookrate(list)'>查看评价</view>
</view> </view>
<u-popup v-model="rateshow" mode="bottom" length="48%" border-radius="20" :closeable='true'> <u-popup v-model="rateshow" mode="bottom" length="50%" border-radius="20" :closeable='true' class='masks'>
<view class="title">
综合评价
</view>
<view class="mask"> <view class="mask">
<u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
</view>
<view class="rateitem">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view>
<view class="btn" @tap='taprate'>
确认
</view>
<!-- <view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')"> <view class="rateitem" @tap="taprate('SATISFIED')">
满意 满意
</view> </view>
@ -90,24 +106,22 @@
<view class="rateitem" @tap="taprate('DISSATISFIED')"> <view class="rateitem" @tap="taprate('DISSATISFIED')">
不满意 不满意
</view> </view>
</view> </view> -->
</u-popup> </u-popup>
<u-popup v-model="lookrateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'> <u-popup v-model="lookrateshow" mode="bottom" length="60%" border-radius="20" :closeable='true' class='masks'>
<image :src="baseurl+rateimgtitle.img" mode=""></image> <image :src="baseurl+rateimgtitle.img" mode=""></image>
<view class="ratetitle"> <view class="ratetitle">
{{rateimgtitle.title}} {{rateimgtitle.title}}
</view> </view>
<view class="mask"> <view class="mask" style="top: 450rpx;">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''"> <u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view> </view>
<view class="rateitem" style="top: 580rpx;">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view> </view>
</u-popup> </u-popup>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
@ -129,6 +143,8 @@
data() { data() {
return { return {
rateshow: false, // rateshow: false, //
rateval: 0, //
evaluateSatisfaction: null, //////
baseurl: '', baseurl: '',
patientId: '', //id patientId: '', //id
openid: '', //id openid: '', //id
@ -159,13 +175,37 @@
} }
this.getlist() this.getlist()
}, },
watch: { //
rateval() {
if (this.rateval == 5) {
this.evaluateSatisfaction = 'VERYSATISFIED'
} else if (this.rateval == 4) {
this.evaluateSatisfaction = 'SATISFIED'
} else if (this.rateval == 3) {
this.evaluateSatisfaction = 'COMMONLY'
} else if (this.rateval == 2) {
this.evaluateSatisfaction = 'DISSATISFIED'
} else if (this.rateval == 1) {
this.evaluateSatisfaction = 'VERYDISSATISFIED'
}
},
},
methods: { methods: {
//
rateshowtrue() {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateshow = true
},
// //
lookrate(item) { lookrate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateimgtitle.img = item.itemPictureUrl this.rateimgtitle.img = item.itemPictureUrl
this.rateimgtitle.title = item.nurseItemName this.rateimgtitle.title = item.nurseItemName
lookrate(item.orderNo).then(res => { lookrate(item.orderNo).then(res => {
this.ratelist = res.data this.ratelist = res.data
this.rateval = res.data.compositeScore
this.lookrateshow = true this.lookrateshow = true
}) })
}, },
@ -217,29 +257,31 @@
}) })
}, },
// //
taprate(item) { taprate() {
var obj = { var obj = {
"patientId": this.patientId, "patientId": this.patientId,
"openid": this.openid, "openid": this.openid,
"orderNo": this.orderNo, "orderNo": this.orderNo,
"evaluateChannel": "WE_CHAT_APPLET", "evaluateChannel": "WE_CHAT_APPLET",
"evaluateSatisfaction": item, "evaluateSatisfaction": this.evaluateSatisfaction,
"compositeScore": this.rateval
} }
addAppointmentEvaluate(obj).then(res => { addAppointmentEvaluate(obj).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.getlist();
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '评价成功', title: '评价成功',
type: 'success', type: 'success',
duration: '1500' duration: '1500'
}) })
this.rateshow = false
uni.setStorageSync("Refresh", 'Refresh') uni.setStorageSync("Refresh", 'Refresh')
this.getlist();
if (this.timer) { if (this.timer) {
clearTimeout(this.timer) clearTimeout(this.timer)
} }
this.timer = setTimeout(e => { this.timer = setTimeout(e => {
uni.navigateTo({ uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${3}` url: `/pages/ratesuccess/ratesuccess?delta=${1}`
}) })
}, 1500) }, 1500)
} else { } else {

View File

@ -27,6 +27,7 @@
gos() { gos() {
var that = this var that = this
this.delta = Number(this.delta) this.delta = Number(this.delta)
console.log(this.delta)
if (this.delta == 4) { if (this.delta == 4) {
uni.navigateBack({ uni.navigateBack({
delta: 4 delta: 4
@ -39,6 +40,10 @@
uni.navigateBack({ uni.navigateBack({
delta: 2 delta: 2
}); });
} else if (this.delta == 1) {
uni.navigateBack({
delta: 1
});
} else { } else {
uni.navigateBack({ uni.navigateBack({
delta: 2 delta: 2