打包测试2

master
游梦婷 2 years ago
parent bed3ee0cd8
commit 5470772a76
  1. 3
      pages.json
  2. 1
      pages/user/order_list/order_list.vue
  3. 11
      physical-merchants/classify/cart/cart.vue
  4. 35
      physical-merchants/classify/order/pay.vue
  5. 23
      physical-merchants/classify/order/paymentResult.vue
  6. 18
      physical-merchants/settleAccounts/settleAccounts.vue
  7. 0
      physical-merchants/static/img/bgimg.jpg

@ -1168,7 +1168,10 @@
}, },
{ {
"path": "classify/order/paymentResult", "path": "classify/order/paymentResult",
"style": { "style": {
"navigationBarBackgroundColor": "#3da7e7",
"backgroundColorTop": "#3da7e7",
"navigationBarTitleText": "支付结果", "navigationBarTitleText": "支付结果",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }

@ -297,7 +297,6 @@
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: this.pageSize pageSize: this.pageSize
} }
getUserOrderList(params).then(res => { getUserOrderList(params).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') { if (res.return_code == '000000' && res.return_data.list != '') {
uni.hideLoading(); uni.hideLoading();

@ -375,6 +375,7 @@
}, },
// //
settleAccount() { settleAccount() {
if (!this.isHaveGoods()) return; if (!this.isHaveGoods()) return;
if (this.priceAll > 0) { if (this.priceAll > 0) {
@ -471,11 +472,11 @@
goodsEditNum(params).then(res => { goodsEditNum(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ // uni.showToast({
title: res.return_data, // title: res.return_data,
icon: 'none', // icon: 'none',
duration: 2000 // duration: 2000
}) // })
} else { } else {
// //
// this.cartList.map(item=>{ // this.cartList.map(item=>{

@ -1,8 +1,8 @@
<template> <template>
<view class="backcor9 pay-syt pd-main"> <view class="backcor9 pay-syt pd-main">
<view class="fotct"> <view class="fotct ">
<view class=""> <view class="dis-flex flex-center">
¥<text class="font28 fontwig6">{{payPrice}}</text> ¥<text class=" font28 fontwig6">{{payPrice}}</text>
</view> </view>
<view class="fcor666 font14 paddtop10 paddbotm10"> <view class="fcor666 font14 paddtop10 paddbotm10">
支付剩余时间<text class="paddleft10">{{countdownm}}:{{countdowns}}</text> 支付剩余时间<text class="paddleft10">{{countdownm}}:{{countdowns}}</text>
@ -198,7 +198,7 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.paytypeList = res.return_data.productPayType.split(','); this.paytypeList = res.return_data.productPayType.split(',');
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1); this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1);
console.log(this.paytypeList, "this.paytypeList1111111111111111111") // console.log(this.paytypeList, "this.paytypeList1111111111111111111")
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -226,13 +226,13 @@
this.countdownm = leftm; // this.countdownm = leftm; //
this.countdowns = lefts; // this.countdowns = lefts; //
// 00:00:00 // 00:00:00
if (lefttime < 0) { if (lefttime <= 0) {
clearInterval(this.timers); clearInterval(this.timers);
// this.getDetailByOrderNo(); uni.redirectTo({
this.countdownh = this.countdownm = this.countdowns = "00"; url:'/pages/user/order_list/order_list?tbIndex='+'-1'
uni.reLaunch({
url:'/pages/user/order_list/order_list'
}) })
this.countdownh = this.countdownm = this.countdowns = "00";
} }
}, },
@ -244,13 +244,6 @@
// //
payMoney() { payMoney() {
// uni.reLaunch({
// url: "/pages/classify/order/paymentResult?id=202304201646301166509"
// // url: '../../user/order_details/order_details?id=' +that.orderNo
// });
// return
//
let that = this; let that = this;
if (that.paytype == '') { if (that.paytype == '') {
@ -295,7 +288,7 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
uni.reLaunch({ uni.redirectTo({
url: "/physical-merchants/classify/order/paymentResult?id=" + that url: "/physical-merchants/classify/order/paymentResult?id=" + that
.orderNo .orderNo
// url: '../../user/order_details/order_details?id=' +that.orderNo // url: '../../user/order_details/order_details?id=' +that.orderNo
@ -303,9 +296,7 @@
}, },
fail: function(err) { fail: function(err) {
uni.hideLoading(); uni.hideLoading();
uni.navigateBack({ uni.navigateBack({})
delta:2
})
}, },
}); });
// #endif // #endif
@ -390,7 +381,7 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
uni.reLaunch({ uni.redirectTo({
url: "/physical-merchants/classify/order/paymentResult?id=" + that url: "/physical-merchants/classify/order/paymentResult?id=" + that
.orderNo .orderNo
// url: '../../user/order_details/order_details?id=' +that.orderNo // url: '../../user/order_details/order_details?id=' +that.orderNo
@ -452,7 +443,7 @@
uni.showToast({ uni.showToast({
title: '支付成功' title: '支付成功'
}) })
uni.reLaunch({ uni.redirectTo({
url: "/physical-merchants/classify/order/paymentResult?id=" + that.orderNo url: "/physical-merchants/classify/order/paymentResult?id=" + that.orderNo
// url: '../../user/order_details/order_details?id=' +this.orderNo // url: '../../user/order_details/order_details?id=' +this.orderNo
}) })

@ -4,7 +4,7 @@
<view class="colorgr icon-ymt zhenque font22"></view> <view class="colorgr icon-ymt zhenque font22"></view>
<view class="mart5">支付成功</view> <view class="mart5">支付成功</view>
<view class="mart5">¥<text class="fontwig6 font24">{{recinfo.payablePrice}}</text></view> <view class="mart5">¥<text class="fontwig6 font24">{{recinfo.payablePrice}}</text></view>
<view class="mart5 font16 color999">{{ recinfo.payType | filtersType}}支付</view> <view class="mart5 font16 ">{{ recinfo.payType | filtersType}}支付</view>
</view> </view>
<!-- <view class="min-con color999 font18"> <!-- <view class="min-con color999 font18">
<view class=""> <view class="">
@ -39,7 +39,7 @@
onLoad(option){ onLoad(option){
this.orderId=option.id this.orderId=option.id
console.log(option)
}, },
onShow(){ onShow(){
this.getDetailByOrderNo() this.getDetailByOrderNo()
@ -83,12 +83,12 @@
}) })
}, },
orderDetail(){ orderDetail(){
uni.reLaunch({ uni.redirectTo({
url:"/pages/user/order_list/order_list" url:"/pages/user/order_list/order_list?tbIndex="+'-1'
}) })
}, },
yaoqin(){ yaoqin(){
uni.navigateTo({ uni.redirectTo({
url:"/pages/user/generatePoster/generatePoster" url:"/pages/user/generatePoster/generatePoster"
}) })
} }
@ -99,9 +99,10 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.pay-suc{ .pay-suc{
height: 100vh; height: 100vh;
// background: url('@/static/img/bgimg.jpg') no-repeat ; // background: url('@/physical-merchants/static/img/bgimg.jpg') no-repeat ;
background-color: rgba(40, 116, 204, 0.8); // background-color: rgba(40, 116, 204, 0.8);
background: linear-gradient(to bottom, #3da7e7, #FFFFFF) no-repeat;
background-size: 100%;
.top-con{ .top-con{
text-align: center; text-align: center;
height: 25vh; height: 25vh;
@ -110,7 +111,7 @@
justify-content: center; justify-content: center;
} }
.colorgr{ .colorgr{
color: #5C9D41 !important; color: green;
} }
.min-con{ .min-con{
@ -138,7 +139,9 @@
text-align: center; text-align: center;
} }
.btn1{ .btn1{
border:1px solid #666666; // border:1px solid #666666;
border: 1px solid #f6f6f6;
color: #f6f6f6;
} }
.btn2{ .btn2{
border:1px solid #CD2C3C; border:1px solid #CD2C3C;

@ -386,7 +386,7 @@
onLoad(options) { onLoad(options) {
this.goodsList = JSON.parse(options.goodsList); this.goodsList = JSON.parse(options.goodsList);
console.log(this.goodsList,"this.goodsList") // console.log(this.goodsList,"this.goodsList")
if (this.goodsList.length > 1) { if (this.goodsList.length > 1) {
this.isMoreThanOne = true; this.isMoreThanOne = true;
} }
@ -482,7 +482,7 @@
if (res.return_data.length > 0) { if (res.return_data.length > 0) {
_this.discountList = res.return_data; _this.discountList = res.return_data;
console.log(_this.discountList, "优惠券") // console.log(_this.discountList, "")
} }
} else { } else {
uni.showToast({ uni.showToast({
@ -535,7 +535,7 @@
this.availIntegal = 0; this.availIntegal = 0;
} }
console.log(this.userInfo, "this.userInfo", "积分", this.availIntegal) // console.log(this.userInfo, "this.userInfo", "", this.availIntegal)
} else { } else {
uni.showToast({ uni.showToast({
@ -693,7 +693,7 @@
childOrderList: childOrderList // childOrderList: childOrderList //
} }
console.log(params, "params")
uni.showLoading({ uni.showLoading({
title: '支付中...' title: '支付中...'
@ -701,7 +701,7 @@
createOrder(params).then(res => { createOrder(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
console.log(res,"订单信息") // console.log(res,"")
let obj = { let obj = {
orderNo : res.return_data.orderNo, orderNo : res.return_data.orderNo,
createTime:res.return_data.createTime, createTime:res.return_data.createTime,
@ -710,17 +710,17 @@
} }
obj = JSON.stringify(obj) obj = JSON.stringify(obj)
console.log(_this.priceSettle,_this.availIntegalUse) // console.log(_this.priceSettle,_this.availIntegalUse)
if(_this.priceSettle ==0&&_this.availIntegalUse!=0){ if(_this.priceSettle ==0&&_this.availIntegalUse!=0){
uni.reLaunch({ uni.redirectTo({
url: "/physical-merchants/classify/order/paymentResult?id=" + res.return_data.orderNo url: "/physical-merchants/classify/order/paymentResult?id=" + res.return_data.orderNo
}); });
return return
} }
uni.reLaunch({ uni.redirectTo({
url: '/physical-merchants/classify/order/pay?obj=' + obj url: '/physical-merchants/classify/order/pay?obj=' + obj
}) })
return return
@ -743,7 +743,7 @@
// //
submitHandle(e) { submitHandle(e) {
this.PaymentPassword = e.value; this.PaymentPassword = e.value;
console.log(e, "eeeeeee")
if (this.PaymentPassword == 0) { if (this.PaymentPassword == 0) {
uni.showToast({ uni.showToast({
title: '请勿手动关闭弹窗', title: '请勿手动关闭弹窗',

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save