|
@@ -13,85 +13,93 @@
|
|
|
<swiper class="tab-content" :current="currentTab" duration="80" @animationfinish="onChange" :style="{height:winHeight+'px'}" >
|
|
|
<swiper-item v-for="(tabItem,index) in orderTabBar" :key="index">
|
|
|
<tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="false" :loadingType="5"></tui-skeleton>
|
|
|
- <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower">
|
|
|
+ <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower" >
|
|
|
<view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
|
|
|
<!-- 空白页 -->
|
|
|
<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0" :typeIndex="currentTab" :navbarHeight="navbarHeight"></empty>
|
|
|
<!-- 列表 -->
|
|
|
- <view v-else class="tui-order-content">
|
|
|
- <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" >
|
|
|
- <view class="order-title">
|
|
|
- <view class="order-title-name">{{order.clubName}}</view>
|
|
|
- <view class="order-title-t">
|
|
|
- <text class="bage-text tui-skeleton-fillet"><text class="text">订单编号:</text>{{order.orderNo}}</text>
|
|
|
- </view>
|
|
|
- <view class="order-title-b">
|
|
|
- <view class="order-title-btxt tui-skeleton-fillet"><text class="text">下单时间:</text>{{order.orderTime}}</view>
|
|
|
- <view class="order-title-tip tui-skeleton-fillet">{{ StateExpFormat(order.status) }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <block v-for="(shop,sindex) in order.shopOrderList" :key="sindex">
|
|
|
- <view class="goods-title">
|
|
|
- <view class="title-logo"><image :src="shop.shopLogo" mode=""></image></view>
|
|
|
- <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
|
|
|
+ <template v-else >
|
|
|
+ <view class="tui-order-content" v-if="isRequest && isEmpty">
|
|
|
+ <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" >
|
|
|
+ <view class="order-title">
|
|
|
+ <view class="order-title-name">{{order.clubName}}</view>
|
|
|
+ <view class="order-title-t">
|
|
|
+ <text class="bage-text tui-skeleton-fillet"><text class="text">订单编号:</text>{{order.orderNo}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="order-title-b">
|
|
|
+ <view class="order-title-btxt tui-skeleton-fillet"><text class="text">下单时间:</text>{{order.orderTime}}</view>
|
|
|
+ <view class="order-title-tip tui-skeleton-fillet">{{ StateExpFormat(order.status) }}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex" @click.stop="detail(order.orderId)">
|
|
|
- <view class="goods-pros-t">
|
|
|
- <view class="pros-img tui-skeleton-fillet">
|
|
|
- <image :src="pros.productImage" alt="" />
|
|
|
- <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
|
|
|
- </view>
|
|
|
- <view class="pros-product clearfix">
|
|
|
- <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
|
|
|
- <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
|
|
|
- <view class="productprice">
|
|
|
- <view class="price " v-if="pros.productType ==2 || pros.productType ==1">
|
|
|
- <text>¥0.00</text>
|
|
|
- </view>
|
|
|
- <view class="price tui-skeleton-fillet" v-else :class="PromotionsFormat(pros.productPromotion) ? 'disabled' : ''">
|
|
|
- <text>¥{{pros.price | NumFormat}}</text>
|
|
|
- </view>
|
|
|
- <view class="count tui-skeleton-fillet">
|
|
|
- <text class="small">x</text>{{pros.num}}
|
|
|
- </view>
|
|
|
+ <block v-for="(shop,sindex) in order.shopOrderList" :key="sindex">
|
|
|
+ <view class="goods-title">
|
|
|
+ <view class="title-logo"><image :src="shop.shopLogo" mode=""></image></view>
|
|
|
+ <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex" @click.stop="detail(order.orderId)">
|
|
|
+ <view class="goods-pros-t">
|
|
|
+ <view class="pros-img tui-skeleton-fillet">
|
|
|
+ <image :src="pros.productImage" alt="" />
|
|
|
+ <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
|
|
|
</view>
|
|
|
- <view class="floor-item-act" v-if=" pros.productPromotion!=null ">
|
|
|
- <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
|
|
|
- {{pros.productPromotion.name}}
|
|
|
- <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3">
|
|
|
- :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat}}
|
|
|
- </text>
|
|
|
+ <view class="pros-product clearfix">
|
|
|
+ <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
|
|
|
+ <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
|
|
|
+ <view class="productprice">
|
|
|
+ <view class="price " v-if="pros.productType ==2 || pros.productType ==1">
|
|
|
+ <text>¥0.00</text>
|
|
|
+ </view>
|
|
|
+ <view class="price tui-skeleton-fillet" v-else :class="PromotionsFormat(pros.productPromotion) ? 'disabled' : ''">
|
|
|
+ <text>¥{{pros.price | NumFormat}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="count tui-skeleton-fillet">
|
|
|
+ <text class="small">x</text>{{pros.num}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="floor-item-act" v-if=" pros.productPromotion!=null ">
|
|
|
+ <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
|
|
|
+ {{pros.productPromotion.name}}
|
|
|
+ <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3">
|
|
|
+ :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <view class="order-footer">
|
|
|
+ <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{order.discountFee | NumFormat}}</view>
|
|
|
+ <view class="order-footer-bot">
|
|
|
+ <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
|
|
|
+ <view class="money tui-skeleton-fillet" v-if="order.status==31||order.status==32||order.status==33">已支付:<label style="color:#f94b4b ;">¥{{ order.receiptAmount | NumFormat }}</label></view>
|
|
|
+ <view class="money tui-skeleton-fillet" v-else>待付总额:<label style="color:#f94b4b ;">¥{{ order.pendingPayments | NumFormat }}</label></view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </block>
|
|
|
- <view class="order-footer">
|
|
|
- <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{order.discountFee | NumFormat}}</view>
|
|
|
- <view class="order-footer-bot">
|
|
|
- <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
|
|
|
- <view class="money tui-skeleton-fillet" v-if="order.status==31||order.status==32||order.status==33">已支付:<label style="color:#f94b4b ;">¥{{ order.receiptAmount | NumFormat }}</label></view>
|
|
|
- <view class="money tui-skeleton-fillet" v-else>待付总额:<label style="color:#f94b4b ;">¥{{ order.pendingPayments | NumFormat }}</label></view>
|
|
|
</view>
|
|
|
+ <!-- 底部button -->
|
|
|
+ <order-button ref="orderButton"
|
|
|
+ :status="order.status"
|
|
|
+ :order="order"
|
|
|
+ @buttonConfirm="handButtonConfirm">
|
|
|
+ </order-button>
|
|
|
</view>
|
|
|
- <!-- 底部button -->
|
|
|
- <order-button ref="orderButton"
|
|
|
- :status="order.status"
|
|
|
- :order="order"
|
|
|
- @buttonConfirm="handButtonConfirm">
|
|
|
- </order-button>
|
|
|
+ <tui-loadmore :visible="true" text="加载更多..." v-if="loadding"></tui-loadmore>
|
|
|
+ <tui-nomore :visible="true" :text="nomoreText" v-else></tui-nomore>
|
|
|
</view>
|
|
|
- <!--加载loadding-->
|
|
|
- <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
|
|
|
- <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text='nomoreText'></tui-nomore>
|
|
|
- <!--加载loadding-->
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
+ <!-- 付款弹窗 -->
|
|
|
+ <order-model v-if="isPayModel"
|
|
|
+ :payModelData="payModelData"
|
|
|
+ :modelType='modelType'
|
|
|
+ @cancelConfirm = "hanldCancelConfirm"
|
|
|
+ @paymentConfirm ='hanldPaymentConfirm'/>
|
|
|
+
|
|
|
+ <!-- 分享弹窗 -->
|
|
|
<!-- 操作弹窗 -->
|
|
|
<tui-modal :show="modal" @click="handleClick" @cancel="hideMobel" :content="contentModalText" color="#333" :size="32" shape="circle" :maskClosable="false"></tui-modal>
|
|
|
<!-- 分享弹窗 -->
|
|
@@ -105,22 +113,16 @@
|
|
|
import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
|
|
|
import btSearch from '@/components/uni-search/bt-search.vue' //搜索
|
|
|
import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
|
|
|
- import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
|
|
|
- import tuiNomore from "@/components/tui-components/nomore/nomore"
|
|
|
import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
|
|
|
import modalLayer from "@/components/modal-layer"
|
|
|
import empty from "@/components/empty";
|
|
|
import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
|
|
|
import orderModel from '@/components/cm-module/modelAlert/order-alert' //付款弹窗
|
|
|
-
|
|
|
-
|
|
|
export default {
|
|
|
components: {
|
|
|
headerBack,
|
|
|
empty,
|
|
|
btSearch,
|
|
|
- tuiLoadmore,
|
|
|
- tuiNomore,
|
|
|
orderButton,
|
|
|
tuiSkeleton,
|
|
|
modalLayer,
|
|
@@ -130,11 +132,11 @@
|
|
|
data() {
|
|
|
return {
|
|
|
CustomBar:this.CustomBar,// 顶部导航栏高度
|
|
|
- orderTabBar: [{state: 0,text: '全部',orderList: []},
|
|
|
- {state: 1,text: '待付款',orderList: []},
|
|
|
- {state: 2,text: '待发货',orderList: []},
|
|
|
- {state: 3,text: '已发货',orderList: []},
|
|
|
- {state: 4,text: '退货/款',orderList: []}
|
|
|
+ orderTabBar: [{state: 0, text: '全部', orderList: []},
|
|
|
+ {state: 1, text: '待付款', orderList: []},
|
|
|
+ {state: 2, text: '待发货', orderList: []},
|
|
|
+ {state: 3, text: '已发货', orderList: []},
|
|
|
+ {state: 4, text: '退货/款', orderList: []}
|
|
|
],
|
|
|
headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
|
|
|
systeminfo: this.setSysteminfo(), //获取设备信息
|
|
@@ -153,13 +155,14 @@
|
|
|
pageSize: 10, //条数
|
|
|
scrollTop: 0,
|
|
|
skeletonShow: true,
|
|
|
+ isRequest:false,
|
|
|
isDelete:false,
|
|
|
isClickChange: false,
|
|
|
isShareModal: false,//控制分享弹窗
|
|
|
isModalLayer: false,
|
|
|
isPayModel:false,
|
|
|
loadding: false,
|
|
|
- pullUpOn: true,
|
|
|
+ pullDownOn: true,
|
|
|
hasNextPage: false,
|
|
|
pullFlag: true,
|
|
|
navbarHeight:'',
|
|
@@ -170,12 +173,20 @@
|
|
|
isOnloadFlag:false,
|
|
|
modal:false,
|
|
|
OperationType:'',
|
|
|
- contentModalText:''
|
|
|
+ contentModalText:'',
|
|
|
+ listType:''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+ isEmpty(){
|
|
|
+ return this.orderTabBar[this.currentTab].orderList.length > 0
|
|
|
}
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
let self = this;
|
|
|
+ this.listType = e.listType || ''
|
|
|
if(e.type ==='detele'){self.isDelete = true}
|
|
|
+ this.storeId = uni.getStorageSync('clubInfo').storeId
|
|
|
self.currentTab = e.state
|
|
|
self.isOnloadFlag = true
|
|
|
self.getHeaderTopHeight()//设置自定义导航高度
|
|
@@ -186,6 +197,9 @@
|
|
|
self.winHeight = calc - self.CustomBar;
|
|
|
}
|
|
|
});
|
|
|
+ if(this.listType === 'store'){
|
|
|
+ this.nvabarData.title = '门店订单列表'
|
|
|
+ }
|
|
|
},
|
|
|
filters:{
|
|
|
NumFormat(value) {//处理金额
|
|
@@ -208,7 +222,6 @@
|
|
|
this.currentTab = index;
|
|
|
this.checkCor();
|
|
|
this.pageNum = 1
|
|
|
- this.pullUpOn = true //切换时隐藏
|
|
|
this.loadding = false //切换时隐藏
|
|
|
this.nomoreText = ''
|
|
|
if(!this.isOnloadFlag){
|
|
@@ -224,7 +237,6 @@
|
|
|
this.isClickChange = true;
|
|
|
this.currentTab = tabIndex
|
|
|
this.pageNum = 1
|
|
|
- this.pullUpOn = true //切换时隐藏
|
|
|
this.loadding = false //切换时隐藏
|
|
|
this.GetOrderDatainit(this.currentTab)
|
|
|
}
|
|
@@ -258,17 +270,18 @@
|
|
|
return;
|
|
|
}
|
|
|
setTimeout(()=>{
|
|
|
- this.$api.getStorage().then((resolve) =>{
|
|
|
- this.userId = resolve.userId
|
|
|
- this.organizeId = resolve.organizeId
|
|
|
- this.OrderService.QueryOrderList(
|
|
|
- {
|
|
|
- orderState:index,
|
|
|
- organizeId:resolve.organizeId,
|
|
|
- pageNum:1,
|
|
|
- pageSize:this.pageSize,
|
|
|
- }
|
|
|
- )
|
|
|
+ this.$api.getStorage().then((result) =>{
|
|
|
+ this.organizeId = result.organizeId
|
|
|
+ const params = {
|
|
|
+ orderState:index,
|
|
|
+ organizeId:this.organizeId,
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:this.pageSize,
|
|
|
+ }
|
|
|
+ if(this.listType === 'store'){
|
|
|
+ params.storeId = this.storeId
|
|
|
+ }
|
|
|
+ this.OrderService.QueryOrderList(params)
|
|
|
.then(response =>{
|
|
|
//loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
|
|
|
let orderList = response.data.list.filter(item=>{
|
|
@@ -283,45 +296,44 @@
|
|
|
this.$set(orderItem, 'loaded', true);
|
|
|
this.hasNextPage = response.data.hasNextPage;
|
|
|
if(this.hasNextPage){
|
|
|
- this.pullUpOn = false
|
|
|
- this.nomoreText = '上拉显示更多'
|
|
|
+ this.loaddingText = '上拉加载更多'
|
|
|
}else{
|
|
|
- if(orderItem.orderList.length < 2){
|
|
|
- this.pullUpOn = true
|
|
|
- }else{
|
|
|
- this.pullUpOn = false
|
|
|
- this.nomoreText = '已至底部'
|
|
|
- }
|
|
|
+ this.loaddingText = '已至底部'
|
|
|
}
|
|
|
+ this.isRequest = true
|
|
|
}).catch(error =>{
|
|
|
this.$util.msg(error.msg,2000);
|
|
|
})
|
|
|
})
|
|
|
}, 600);
|
|
|
},
|
|
|
- getOnReachBottomData(index){//上拉加载
|
|
|
- this.pageNum+=1
|
|
|
- this.OrderService.QueryOrderList(
|
|
|
- {
|
|
|
+ //上拉加载
|
|
|
+ getOnReachBottomData(index){
|
|
|
+ this.loadding = true
|
|
|
+ this.pageNum += 1
|
|
|
+ this.OrderService.QueryOrderList({
|
|
|
orderState:index,
|
|
|
organizeId:this.organizeId,
|
|
|
pageNum:this.pageNum,
|
|
|
pageSize:this.pageSize
|
|
|
- }
|
|
|
- )
|
|
|
+ })
|
|
|
.then(response =>{
|
|
|
+ //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
|
|
|
+ // let orderList = response.data.list.filter(item=>{
|
|
|
+ // //添加不同状态下订单的表现形式
|
|
|
+ // item = Object.assign(item, this.StateExpFormat(item.state));
|
|
|
+ // return item;
|
|
|
+ // });
|
|
|
let orderItem = this.orderTabBar[index];
|
|
|
- let resData = response.data.results
|
|
|
+ let resData = response.data.list
|
|
|
this.hasNextPage = response.data.hasNextPage;
|
|
|
orderItem.orderList = orderItem.orderList.concat(resData)
|
|
|
this.pullFlag = false;// 防上拉暴滑
|
|
|
- setTimeout(()=>{this.pullFlag = true;},500)
|
|
|
+ setTimeout(()=>{this.pullFlag = true},500)
|
|
|
+ this.loadding = false
|
|
|
if(this.hasNextPage){
|
|
|
- this.pullUpOn = false
|
|
|
this.nomoreText = '上拉显示更多'
|
|
|
}else{
|
|
|
- this.loadding = false
|
|
|
- this.pullUpOn = false
|
|
|
this.nomoreText = '已至底部'
|
|
|
}
|
|
|
}).catch(error =>{
|
|
@@ -329,9 +341,7 @@
|
|
|
})
|
|
|
},
|
|
|
scrolltolower() {
|
|
|
- if(this.hasNextPage){
|
|
|
- this.loadding = true
|
|
|
- this.pullUpOn = true
|
|
|
+ if(this.hasNextPage && this.pullFlag){
|
|
|
this.getOnReachBottomData(this.currentTab);
|
|
|
}
|
|
|
},
|
|
@@ -365,15 +375,72 @@
|
|
|
this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
|
|
|
break;
|
|
|
case 'pay':
|
|
|
- if(data.order.onlinePayFlag == '0'){
|
|
|
- this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
|
|
|
+ this.hanldOrderData = data.order;
|
|
|
+ this.getOrderPaymentValidation(data)
|
|
|
+ // if(data.order.onlinePayFlag == '0'){
|
|
|
+ // this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
|
|
|
+ // }else{
|
|
|
+ // this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.orderId}`)
|
|
|
+ // }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //监听根据付款状态做操作
|
|
|
+ getOrderPaymentValidation(data){
|
|
|
+ this.OrderService.OrderPaymentValidation({orderId:data.orderId}).then(response =>{
|
|
|
+ let dataCode = response.data.code
|
|
|
+ this.payModelData = response.data
|
|
|
+ console.log(response);
|
|
|
+ switch(dataCode){
|
|
|
+ case 1:
|
|
|
+ this.isPayModel = true;
|
|
|
+ this.modelType = 1
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ this.isPayModel = true;
|
|
|
+ this.modelType = 2
|
|
|
+ break;
|
|
|
+ case -1:
|
|
|
+ this.$util.modal('','订单已申请全部退款,无需再付款!','确定','',false,() =>{})
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ if(response.data.onlinePayFlag == '1'){
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${response.data.pendingPayments}&orderId=${data.orderId}`)
|
|
|
+ }else{
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //余额抵扣跳转
|
|
|
+ hanldPaymentConfirm(data){
|
|
|
+ this.OrderService.OrderBalanceDeduction({orderId:data.order.orderId}).then(response =>{
|
|
|
+ if(data.type === 2){
|
|
|
+ this.$api.navigateTo(`/pages/user/order/success?type=success&orderId=${data.order.orderId}`)
|
|
|
+ }else{
|
|
|
+ if(data.order.onlinePayFlag === '1'){
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.order.orderId}`)
|
|
|
}else{
|
|
|
- this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.orderId}`)
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.order.orderId}`)
|
|
|
}
|
|
|
- break;
|
|
|
+ }
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //不使用余额抵扣直接跳转收银台
|
|
|
+ hanldCancelConfirm(data){
|
|
|
+ if(data.onlinePayFlag == '1'){
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${this.hanldOrderData.pendingPayments}&orderId=${data.orderId}`)
|
|
|
+ }else{
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
|
|
|
}
|
|
|
},
|
|
|
- handleClick(e) {//用户操作订单
|
|
|
+ //用户操作订单
|
|
|
+ handleClick(e) {
|
|
|
let index = e.index;
|
|
|
if(index == 1){
|
|
|
switch(this.OperationType){
|
|
@@ -390,7 +457,8 @@
|
|
|
}
|
|
|
this.modal = false;
|
|
|
},
|
|
|
- handOrderConfirm (id){//确认收货
|
|
|
+ //确认收货
|
|
|
+ handOrderConfirm (id){
|
|
|
this.OrderService.ConfirmReceipt({orderId:id}).then(response =>{
|
|
|
this.$util.msg(response.msg,2000,true,'success');
|
|
|
setTimeout(() => {
|
|
@@ -400,7 +468,8 @@
|
|
|
this.$util.msg(error.msg,2000)
|
|
|
})
|
|
|
},
|
|
|
- handOrderDetele(id){//删除订单
|
|
|
+ //删除订单
|
|
|
+ handOrderDetele(id){
|
|
|
this.OrderService.DeleteOrder({orderId:id}).then(response =>{
|
|
|
this.$util.msg(response.msg,2000,true,'success');
|
|
|
setTimeout(() => {
|
|
@@ -410,7 +479,8 @@
|
|
|
this.$util.msg(error.msg,2000)
|
|
|
})
|
|
|
},
|
|
|
- handCenceConfirm(id){//取消订单
|
|
|
+ //取消订单
|
|
|
+ handCenceConfirm(id){
|
|
|
this.OrderService.CancelOrder({orderId:id}).then(response =>{
|
|
|
this.$util.msg(response.msg,2000,true,'success');
|
|
|
setTimeout(() => {
|
|
@@ -423,7 +493,8 @@
|
|
|
handlSearchPath(){
|
|
|
this.$api.navigateTo('/pages/user/order/search-order')
|
|
|
},
|
|
|
- onShareAppMessage (res){//分享转发
|
|
|
+ //分享转发
|
|
|
+ onShareAppMessage (res){
|
|
|
this.isShareModal = false
|
|
|
if (res.from === 'button') {// 来自页面内转发按钮
|
|
|
}
|
|
@@ -580,8 +651,10 @@
|
|
|
background: #F7F7F7;
|
|
|
}
|
|
|
.container {
|
|
|
- padding-bottom: env(safe-area-inset-bottom);
|
|
|
- height: auto;
|
|
|
+ height: 100vh;
|
|
|
+ box-sizing: border-box;
|
|
|
+ // padding-bottom: env(safe-area-inset-bottom);
|
|
|
+ // height: auto;
|
|
|
position: relative;
|
|
|
}
|
|
|
.tui-order-content{
|