订单页面返回添加
This commit is contained in:
parent
30449aaf6d
commit
adbc8d2e9c
@ -73,7 +73,7 @@
|
|||||||
<view class="right-btn-box">
|
<view class="right-btn-box">
|
||||||
<view class="btn-item err" v-if="item.is_refund ==1">退款中 x {{item.product_num - item.refund_num}}</view>
|
<view class="btn-item err" v-if="item.is_refund ==1">退款中 x {{item.product_num - item.refund_num}}</view>
|
||||||
<view class='btn-item err' v-if="item.is_refund >1">已退款 x {{item.product_num - item.refund_num}}</view>
|
<view class='btn-item err' v-if="item.is_refund >1">已退款 x {{item.product_num - item.refund_num}}</view>
|
||||||
<view class="btn-item" v-if="item.is_refund ==0 && evaluate!=9 && orderData.refund_status || item.refund_num > 0" @click.stop="refund(item)">申请退款</view>
|
<view class="btn-item" v-if="(item.is_refund ==0 && evaluate!=9 && orderData.refund_status || item.refund_num > 0)&& evaluate!=3" @click.stop="refund(item)">申请退款</view>
|
||||||
<view class='btn-item' v-if='item.is_reply==0 && evaluate==2 && item.refund_num > 0' @click.stop="evaluateTap(item.order_product_id,orderId)">去评价</view>
|
<view class='btn-item' v-if='item.is_reply==0 && evaluate==2 && item.refund_num > 0' @click.stop="evaluateTap(item.order_product_id,orderId)">去评价</view>
|
||||||
<view class='btn-item on' v-else-if="item.is_reply==1 && evaluate==2">已评价</view>
|
<view class='btn-item on' v-else-if="item.is_reply==1 && evaluate==2">已评价</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -158,9 +158,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$set(this, 'searchValue', event);
|
this.$set(this, 'searchValue', event);
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
this.focus = true
|
// this.focus = true
|
||||||
})
|
// })
|
||||||
this.searchBut()
|
this.searchBut()
|
||||||
},
|
},
|
||||||
setValue: function(event) {
|
setValue: function(event) {
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :style="viewColor">
|
<view :style="viewColor">
|
||||||
|
<view class="head-menu">
|
||||||
|
<view class='iconfont icon-xiangzuo' @click="returns"></view>
|
||||||
|
</view>
|
||||||
<view v-if="followDetail != null && followDetail" class="main" @click.stop="showManage = false">
|
<view v-if="followDetail != null && followDetail" class="main" @click.stop="showManage = false">
|
||||||
<view v-if="followDetail.status != 1" class="approval_status">
|
<view v-if="followDetail.status != 1" class="approval_status">
|
||||||
<view class="status_count" :class="followDetail.status == 0 ? 'status1' : 'status0'">
|
<view class="status_count" :class="followDetail.status == 0 ? 'status1' : 'status0'">
|
||||||
@ -255,6 +258,16 @@
|
|||||||
},
|
},
|
||||||
mounted: function() {},
|
mounted: function() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 后退
|
||||||
|
returns() {
|
||||||
|
uni.navigateBack()
|
||||||
|
},
|
||||||
|
// 首页
|
||||||
|
goHome() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
},
|
||||||
//分享
|
//分享
|
||||||
//#ifdef MP
|
//#ifdef MP
|
||||||
plantShare(){
|
plantShare(){
|
||||||
@ -354,6 +367,9 @@
|
|||||||
plantDetailApi(that.id).then(res => {
|
plantDetailApi(that.id).then(res => {
|
||||||
that.loadData = false
|
that.loadData = false
|
||||||
that.followDetail = res.data
|
that.followDetail = res.data
|
||||||
|
that.followDetail.relevance=that.followDetail.relevance.filter(item=>{
|
||||||
|
return item.spu
|
||||||
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
that.plantShare();
|
that.plantShare();
|
||||||
@ -558,6 +574,12 @@
|
|||||||
page{
|
page{
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
|
.head-menu{
|
||||||
|
height:50rpx;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
line-height: 50rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
.tab-cont{
|
.tab-cont{
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 16rpx 16rpx 0 0;
|
border-radius: 16rpx 16rpx 0 0;
|
||||||
|
@ -720,7 +720,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
z-index: 0;
|
z-index: 999;
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
@ -199,8 +199,10 @@
|
|||||||
video_link: this.addGoodsSecoundData.video_link
|
video_link: this.addGoodsSecoundData.video_link
|
||||||
};
|
};
|
||||||
|
|
||||||
postData.attrValue = attrValue.filter(item => item != '');
|
if(attrValue){
|
||||||
postData.attrValue[0].bar_code
|
postData.attrValue = attrValue.filter(item => item != '');
|
||||||
|
postData.attrValue[0].bar_code
|
||||||
|
}
|
||||||
// console.log(postData);
|
// console.log(postData);
|
||||||
if (getStorage('addGoodsFormData').spec_type == 0) {
|
if (getStorage('addGoodsFormData').spec_type == 0) {
|
||||||
// postData.attr = [getStorage('singleSpecification')];
|
// postData.attr = [getStorage('singleSpecification')];
|
||||||
|
@ -443,6 +443,11 @@
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
Toast(err)
|
Toast(err)
|
||||||
|
setTimeout(()=>{
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})}, 1000)
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async postCreate(price) {
|
async postCreate(price) {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<h3>提现次数</h3>
|
<h3>提现次数</h3>
|
||||||
</view>
|
</view>
|
||||||
<view class="sum">
|
<view class="sum">
|
||||||
<u-count-to :startVal="0" :endVal="sum"></u-count-to>
|
<u-count-to :startVal="0" :endVal="sumTofixed" :decimals="2"></u-count-to>
|
||||||
<h3>提现总额</h3>
|
<h3>提现总额</h3>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -66,7 +66,11 @@
|
|||||||
UserApplylist:[]
|
UserApplylist:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {
|
||||||
|
sumTofixed(){
|
||||||
|
return this.returnFloat(this.sum)
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -79,6 +83,21 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**数字强制转为两位小数*/
|
||||||
|
returnFloat(value){
|
||||||
|
var value=Math.round(parseFloat(value)*100)/100;
|
||||||
|
var xsd=value.toString().split(".");
|
||||||
|
if(xsd.length==1){
|
||||||
|
value=value.toString()+".00";
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
if(xsd.length>1){
|
||||||
|
if(xsd[1].length<2){
|
||||||
|
value=value.toString()+"0";
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
tixian() {
|
tixian() {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :style="viewColor">
|
<view :style="viewColor">
|
||||||
|
<view class="head-menu">
|
||||||
|
<view class='iconfont icon-xiangzuo' @click="returns"></view>
|
||||||
|
</view>
|
||||||
<view class='my-order'>
|
<view class='my-order'>
|
||||||
<view class='header'>
|
<view class='header'>
|
||||||
|
|
||||||
<view class='picTxt acea-row row-between-wrapper'>
|
<view class='picTxt acea-row row-between-wrapper'>
|
||||||
<view class='text'>
|
<view class='text'>
|
||||||
<view class='name'>订单信息</view>
|
<view class='name'>订单信息</view>
|
||||||
@ -217,18 +221,18 @@
|
|||||||
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
|
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="item.status == 2">
|
<block v-if="item.status == 2">
|
||||||
<navigator v-if="community_status == 1 && !item.community_id" :url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt' hover-class="none">
|
<!-- <navigator v-if="community_status == 1 && !item.community_id" :url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt' hover-class="none">
|
||||||
<text class="iconfont icon-fabu"></text>
|
<text class="iconfont icon-fabu"></text>
|
||||||
发布种草
|
发布种草
|
||||||
</navigator>
|
</navigator> -->
|
||||||
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>去评价</view>
|
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>去评价</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="item.status == 3">
|
<block v-if="item.status == 3">
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-if="item.activity_type == 2 || item.activity_type == 3 || item.activity_type == 10">查看详情</view>
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-if="item.activity_type == 2 || item.activity_type == 3 || item.activity_type == 10">查看详情</view>
|
||||||
<navigator v-if="community_status == 1 && !item.community_id" :url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt' hover-class="none">
|
<!-- <navigator v-if="community_status == 1 && !item.community_id" :url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt' hover-class="none">
|
||||||
<text class="iconfont icon-fabu"></text>
|
<text class="iconfont icon-fabu"></text>
|
||||||
发布种草
|
发布种草
|
||||||
</navigator>
|
</navigator> -->
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-else>再次购买</view>
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-else>再次购买</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@ -371,6 +375,16 @@
|
|||||||
mounted: function() {
|
mounted: function() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 后退
|
||||||
|
returns() {
|
||||||
|
uni.navigateBack()
|
||||||
|
},
|
||||||
|
// 首页
|
||||||
|
goHome() {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
},
|
||||||
// 去商铺
|
// 去商铺
|
||||||
goMall(item){
|
goMall(item){
|
||||||
if(this.hide_mer_status == 0){
|
if(this.hide_mer_status == 0){
|
||||||
@ -733,6 +747,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.head-menu{
|
||||||
|
height:50rpx;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
line-height: 50rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
.my-order .header {
|
.my-order .header {
|
||||||
height: 260rpx;
|
height: 260rpx;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user