From af31fc3a0cd37b96e28a6399d5818eb2fa8da53e Mon Sep 17 00:00:00 2001
From: Sliverber <2622874537@qq.com>
Date: Thu, 22 Feb 2024 13:15:51 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F?=
=?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/order.js | 4 +-
config/app.js | 2 +-
manifest.json | 2 +-
pages.json | 8 +
.../activity/goods_seckill_details/index.vue | 12 +-
pages/goods_details/index.vue | 4 +-
pages/order_details/index.vue | 6 +-
pages/user/index.vue | 8 +-
pages/users/alipay_return/alipay_return.vue | 1846 +++++++++++++++--
pages/users/order_confirm/index.vue | 2 +-
pages/users/order_list/index.vue | 10 +
pages/users/repayment/index.vue | 91 +-
pages/users/signin/index.vue | 18 +-
template.html | 73 +-
utils/checkOverdue.js | 10 +-
utils/request.js | 2 +-
16 files changed, 1849 insertions(+), 249 deletions(-)
diff --git a/api/order.js b/api/order.js
index 0c445ba..703f1e9 100644
--- a/api/order.js
+++ b/api/order.js
@@ -81,7 +81,9 @@ export function orderComment(data) {
export function orderPay(data) {
return request.post('pay/payment', data);
}
-
+export function orderPays(data) {
+ return request.post('user/aliPayRepayment', data);
+}
/**
* 订单统计数据
*/
diff --git a/config/app.js b/config/app.js
index 428cbe9..f85ef8c 100644
--- a/config/app.js
+++ b/config/app.js
@@ -1,7 +1,7 @@
//移动端商城API
// let domain = 'http://117.50.163.143:20410'
// let domain = 'http://117.50.215.20:20410'
-// let domain = 'http://192.168.2.14:8081'
+// let domain = 'http://192.168.2.26:20411'
// let domain = 'http://106.75.49.247:20410'
let domain = 'https://yruibao.com/prod'
module.exports = {
diff --git a/manifest.json b/manifest.json
index 8ecc5b1..3f5a1c3 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "先享后付",
- "appid" : "__UNI__C7D69AA", //wxb74514b47a2f29d4 wx46c3a73d8c4f7051 __UNI__EB8A7B
+ "appid" : "__UNI__EA8F22D", //wxb74514b47a2f29d4 wx46c3a73d8c4f7051 __UNI__EB8A7B
"description" : "crmeb商城",
"versionName" : "2.1",
"versionCode" : 2,
diff --git a/pages.json b/pages.json
index 52ed79f..dfbcdd5 100644
--- a/pages.json
+++ b/pages.json
@@ -820,6 +820,14 @@
"enablePullDownRefresh": false
}
}
+ ,{
+ "path" : "alipay_returns/alipay_return",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ }
,{
"path" : "alipay_invoke/index",
"style" :
diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue
index 506a680..3185284 100644
--- a/pages/activity/goods_seckill_details/index.vue
+++ b/pages/activity/goods_seckill_details/index.vue
@@ -108,20 +108,20 @@
diff --git a/pages/users/alipay_return/alipay_return.vue b/pages/users/alipay_return/alipay_return.vue
index 6725eca..1638a42 100644
--- a/pages/users/alipay_return/alipay_return.vue
+++ b/pages/users/alipay_return/alipay_return.vue
@@ -1,239 +1,1711 @@
-
-
-
-
-
- {{payResult}}
-
-
- 订单编号
- {{orderId}}
-
-
- 下单时间
- {{order_pay_info.createTime?order_pay_info.createTime:'-'}}
-
-
- 支付方式
- 支付宝支付
-
-
- 支付金额
- {{order_pay_info.payPrice}}
-
-
-
- 失败原因
- {{msg}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{addressInfo.realName}}
+ {{addressInfo.phone}}
+
+
+ [默认]
+ {{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.detail}}
+
+
+
+ 设置收货地址
+
+
+
+
+
+
+
+
+ {{system_store.name}}
+ {{system_store.phone}}
+
+ {{system_store.address}}{{", " + system_store.detailedAddress}}
+
+
+
+
+
+ 暂无门店信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 完善身份信息 {{sfxx}}
+ 填写资料 加速审核
+
+
+
+
+
+
+
+
+
+
+
+
+ 优惠券
+ {{couponTitle}}
+
+
+
+
+
+ 积分抵扣
+
+ {{useIntegral ? "剩余积分":"当前积分"}}
+ {{useIntegral ? orderInfoVo.surplusIntegral : orderInfoVo.userIntegral || 0}}
+
+
+
+
+
+
+
+
+ 快递费用
+
+ +¥{{orderInfoVo.freightFee}}
+
+ 免运费
+
+
+
+ 联系人
+
+
+
+
+
+ 联系电话
+
+
+
+
+
+
+
+ 商品总价:
+ ¥{{orderInfoVo.proTotalFee || 0}}
+
+
+
+ 备注信息
+
+ {{markNum ? markNum : 150}}/150
+
+
+
+
+
+
+
+
+
+ 分期计划
+ {{installmentobj.name}}
+
+
+
+ 首付金额
+ ¥{{downPaymentAmount}}
+
+
+ 还款周期(间隔)
+ {{fenqiobj.cycle}}天
+
+
+ 还款期数
+ {{fenqiobj.downPaymentNumber}}
+
+
+ 每期还款
+ ¥{{fenqiobj.repaymentAmount}}
+
+
+ 合计付款
+ ¥{{totalAmount}}
+
+
+
+
+
+
+
+
+ 增值服务:
+ ¥0.00
+
+
+ 暂无:
+ ¥0.00
+
+
+
+ 优惠券抵扣:
+ -¥{{orderInfoVo.couponFee}}
+
+
+ 积分抵扣:
+ -¥{{orderInfoVo.deductionPrice}}
+
+
+ 运费:
+ +¥{{orderInfoVo.freightFee}}
+
+
+
+
+
+
+
+
+
+
-
-
\ No newline at end of file
diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue
index 6220366..a1730c5 100644
--- a/pages/users/order_confirm/index.vue
+++ b/pages/users/order_confirm/index.vue
@@ -1110,7 +1110,7 @@
uid: this.$store.getters.uid
}
getidentity(data).then(res=>{
- if (res.message == '操作成功') {
+ if (res.message == '操作成功' && res.data!=null){
this.sfxx = '已完成'
this.identification = res.data
}
diff --git a/pages/users/order_list/index.vue b/pages/users/order_list/index.vue
index a4f7654..b84754a 100644
--- a/pages/users/order_list/index.vue
+++ b/pages/users/order_list/index.vue
@@ -76,8 +76,10 @@
驳回原因: {{item.auditRejectReason}}
+
立即签约
+
+
待还款
已结清
@@ -18,10 +21,14 @@
{{item.repaymentStatus == 'Pending'? '待还款' : 'Partial' ? '部分还款' : 'Paid' ? '已还款' : '逾期'}}
+
- {{title}}
+ {{title}}
+
+
+
@@ -30,19 +37,49 @@
import {
getreceivable
} from '@/api/api.js'
+ import payment from '@/components/payments';
export default {
data() {
return {
index: 0,
binglist: [],
- title: '还款'
+ title: '还款',
+ pay_close: false,
+ pay_order_id: '',
+ totalPrice: '0',
}
},
+ components: {
+ payment,
+
+ },
onLoad() {
+ uni.webView.postMessage({
+ data: {
+ action: 'authorize'
+ }
+ })
+
this.getData()
// console.log(this.$Cache.get('orderno'))
+ // window.my.postMessage({ action: 'authorize' });
+
+ // step 4. 接受小程序发过来的用户信息
+
},
methods: {
+ toreturn(){
+ console.log('点击了');
+
+ // uni.navigateTo({
+ // url: '/pages/users/alipay_return/alipay_return'
+ // })
+ },
+ ispayok(num){
+ uni.navigateTo({
+ url: '/pages/users/alipay_return/alipay_return'
+ })
+ },
btnhk() {
this.index = 0
this.title = '还款'
@@ -57,13 +94,59 @@
getData: function() {
let data = {
uid:this.$store.getters.uid,
- orderId:this.$Cache.get('ordernobh'),
+ // orderId:this.$Cache.get('ordernobh'),
type: this.index
}
getreceivable(data).then(res => {
this.binglist = res.data
})
- }
+ },
+ /**
+ * 事件回调
+ *
+ */
+ onChangeFun: function(e) {
+
+ let opt = e;
+ let action = opt.action || null;
+ let value = opt.value != undefined ? opt.value : null;
+ (action && this[action]) && this[action](value);
+ },
+ /**
+ * 关闭支付组件
+ *
+ */
+ payClose: function() {
+ this.pay_close = false;
+ },
+ /**
+ * 打开支付组件
+ *
+ */
+ goPay(pay_price, order_id) {
+ this.$set(this, 'pay_close', true);
+ this.$set(this, 'pay_order_id', order_id);
+ this.$set(this, 'totalPrice', pay_price);
+ },
+ /**
+ * 支付成功回调
+ *
+ */
+ pay_complete: function() {
+ this.loadend = false;
+ this.page = 1;
+ this.$set(this, 'orderList', []);
+ this.$set(this, 'pay_close', false);
+ this.getOrderData();
+ this.getOrderList();
+ },
+ /**
+ * 支付失败回调
+ *
+ */
+ pay_fail: function() {
+ this.pay_close = false;
+ },
}
}
diff --git a/pages/users/signin/index.vue b/pages/users/signin/index.vue
index 9d05c42..dbc6df9 100644
--- a/pages/users/signin/index.vue
+++ b/pages/users/signin/index.vue
@@ -52,12 +52,17 @@
}
},
onLoad(option) {
- this.orderNo = this.$Cache.get('qyids')
+ // this.orderNo = this.$Cache.get('qyids')
// console.log(this.id)
- // this.orderNo = option.orderId
+ this.orderNo = option.orderId
+ let token =option.token
+ console.log(token,'tokentokentokentokentoken');
+ this.$store.commit("LOGIN", {
+ 'token': token
+ });
// this.shopobj = JSON.parse(option.shopobj)
- this.getnews(this.orderNo)
- this.logoflag = true
+ // this.getnews()
+ // this.logoflag = true
this.timer = setInterval(() => {
this.getnews()
@@ -67,14 +72,15 @@
},
methods: {
- getnews(orderNo) {
- getqianyue(orderNo).then(res => {
+ getnews() {
+ getqianyue(this.orderNo).then(res => {
console.log(res)
this.signStatus = res.data.signStatus
if (this.signStatus == 2) {
this.flag = true
this.text = '成功'
this.logoflag = false
+ clearInterval(this.timer);
}
})
},
diff --git a/template.html b/template.html
index 44d80ec..68ea06a 100644
--- a/template.html
+++ b/template.html
@@ -1,29 +1,48 @@
-
-
-
-
-
- <%= htmlWebpackPlugin.options.title %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ <%= htmlWebpackPlugin.options.title %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+