1.新增取消订单接口

2.新增首页跳转详情
yj-dev
杨杰 2 years ago
parent 7d68b3f74c
commit afdda8d36e
  1. 16
      member-Recharge/rec-confirmation/rec-confirmation.vue
  2. 31
      pages/tabBar/home/home.vue

@ -174,7 +174,7 @@
wechatPay, wechatPay,
cardPay, cardPay,
getUserOrderPreList, getUserOrderPreList,
thirdCancelOrder, cancel,
getRebateIntegral getRebateIntegral
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
// #ifdef H5 // #ifdef H5
@ -575,14 +575,14 @@
title: '工会卡余额不足', title: '工会卡余额不足',
duration: 2000, duration: 2000,
}); });
that.thirdCancelOrder(); that.cancel();
return; return;
} }
if (!that.user.isSetPayPwd) { if (!that.user.isSetPayPwd) {
uni.navigateTo({ uni.navigateTo({
url: '../../pages/login/updatePas/updatePas' url: '../../pages/login/updatePas/updatePas'
}) })
that.thirdCancelOrder(); that.cancel();
return; return;
} }
if (!that.user.isSetHltCard) { if (!that.user.isSetHltCard) {
@ -598,7 +598,7 @@
}, 1000) }, 1000)
} }
}); });
that.thirdCancelOrder(); that.cancel();
return; return;
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
@ -611,11 +611,11 @@
} }
}, },
// //
thirdCancelOrder() { cancel() {
let params = { let params = {
orderId: this.orderId, orderNo: this.orderId,
} }
thirdCancelOrder(params).then(res => { cancel(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.orderId = ''; this.orderId = '';
} }
@ -672,7 +672,7 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
this.thirdCancelOrder(); this.cancel();
}) })
return; return;
} }

@ -31,7 +31,7 @@
<!-- #endif --> <!-- #endif -->
</view> </view>
</view> </view>
<view v-if="isdisplay"> <view v-if="isdisplay">
<image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image> <image :src="imagewxUrl+imgadres5" class="widthw30 mart110" mode="widthFix"></image>
</view> </view>
@ -65,11 +65,13 @@
<view class="height120 backcorfff" v-if="item.type == 3"> <view class="height120 backcorfff" v-if="item.type == 3">
<view class="height20 width100"></view> <view class="height20 width100"></view>
<view class="width92 message alijus"> <view class="width92 message alijus">
<view class="width100 alijus" style="margin-top: -20px;" @click="test(item.childDate)" v-if="item.childDate.length == 1"> <view class="width100 alijus" style="margin-top: -20px;" @click="test(item.childDate)"
v-if="item.childDate.length == 1">
<view class="width80p paddleft10 alijusstart"> <view class="width80p paddleft10 alijusstart">
<view class="stus"></view> <view class="stus"></view>
<view class="paddleft10 font14 fcor666 text1 width70"> <view class="paddleft10 font14 fcor666 text1 width70">
{{item.childDate[0].title}}</view> {{item.childDate[0].title}}
</view>
<view class="width25 font13 fcor999">{{swipers.timeData}}</view> <view class="width25 font13 fcor999">{{swipers.timeData}}</view>
</view> </view>
<view class="width20 alijus"> <view class="width20 alijus">
@ -82,7 +84,8 @@
<view class="width80p paddleft10 alijusstart"> <view class="width80p paddleft10 alijusstart">
<view class="stus"></view> <view class="stus"></view>
<view class="paddleft10 font14 fcor666 text1 width70"> <view class="paddleft10 font14 fcor666 text1 width70">
{{swipers.title}}</view> {{swipers.title}}
</view>
<view class="width25 font13 fcor999">{{swipers.timeData}}</view> <view class="width25 font13 fcor999">{{swipers.timeData}}</view>
</view> </view>
<view class="width20 alijus"> <view class="width20 alijus">
@ -112,8 +115,10 @@
<view class="width30 font14 fotrt fcor666">更多</view> <view class="width30 font14 fotrt fcor666">更多</view>
</view> </view>
<view class="width94 alijusnostart mart20" v-if="item.type == 6 "> <view class="width94 alijusnostart mart20" v-if="item.type == 6 ">
<view class="backcorfff spcarea border-r" v-for="(goods,index) in item.childDate" :key="index"> <view class="backcorfff spcarea border-r" v-for="(goods,index1) in item.childDate" :key="index1"
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0" :src="imageUrl+goods.couponImg"></image> @click="toGoods(item.detailJumpUrl,goods.id)">
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0"
:src="imageUrl+goods.couponImg"></image>
<view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view> <view class="width96 fcor333 font15 fontwig6">{{goods.couponName}}</view>
<!-- <view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} <!-- <view class="width96 fcor999 font11">{{goods.salesEndTime | timeFormat('yyyy-mm-dd hh:mm:ss')}}
</view> --> </view> -->
@ -121,8 +126,10 @@
</view> </view>
</view> </view>
<view class="width94 alijusnostart mart20" v-if="item.type == 9 "> <view class="width94 alijusnostart mart20" v-if="item.type == 9 ">
<view class="backcorfff spcarea border-r" v-for="(goods,index) in item.childDate" :key="index"> <view class="backcorfff spcarea border-r" v-for="(goods,index2) in item.childDate" :key="index2"
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0" :src="imageUrl+goods.listImg"></image> @click="toGoods(item.detailJumpUrl,goods.id)">
<image mode="widthFix" class="width100" style="border-radius: 5px; 5px 0 0"
:src="imageUrl+goods.listImg"></image>
<view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view> <view class="width96 fcor333 font15 fontwig6">{{goods.title}}</view>
<!-- <view class="width96 fcor999 font11" v-if="goods.effectiveTiem"> <!-- <view class="width96 fcor999 font11" v-if="goods.effectiveTiem">
{{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}} {{goods.effectiveTiem | timeFormat('yyyy-mm-dd hh:mm:ss')}}
@ -137,8 +144,8 @@
</view> </view>
</view> </view>
<image class="width90 mart10" mode="widthFix" v-if="item.type == 5" <image class="width90 mart10" mode="widthFix" v-if="item.type == 5"
:src="imageUrl+item.childCategory[0].imgData" :src="imageUrl+item.childCategory[0].imgData" @click="goGoodsList(item.childCategory[0].jumpUrl)">
@click="goGoodsList(item.childCategory[0].jumpUrl)"></image> </image>
<view class="width90 alijusstart mart10" v-if="item.type == 5"> <view class="width90 alijusstart mart10" v-if="item.type == 5">
<image :src="imageUrl+item.childCategory[1].imgData" mode="widthFix" class="width31" <image :src="imageUrl+item.childCategory[1].imgData" mode="widthFix" class="width31"
@click="goGoodsList(item.childCategory[1].jumpUrl)"></image> @click="goGoodsList(item.childCategory[1].jumpUrl)"></image>
@ -609,9 +616,9 @@
}) })
}, },
// //
toGoods(e) { toGoods(e, id) {
uni.navigateTo({ uni.navigateTo({
url: '../../goods/goods?id=' + e url: e + id
}); });
}, },

Loading…
Cancel
Save