商家入驻改版
This commit is contained in:
parent
ddd1b67aea
commit
970b59fa62
@ -13,5 +13,7 @@ export const apiArr = {
|
||||
getPayList:"/api/v2/wechat/quick-payment-record-crud/page", //支付记录
|
||||
getUserPoints:"/api/v2/wechat/member-points-flow-crud/main",//获取用户积分
|
||||
getPointsList:"/api/v2/wechat/member-points-flow-crud/page", //积分记录
|
||||
|
||||
createPay:"/api/v2/wechat/quick-payment-record-crud/creat",//创建支付信息
|
||||
getPayInfo:"/api/v2/wechat/quick-payment-record-crud/info"
|
||||
};
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="Msg2_con_right">
|
||||
{{ room_name}}
|
||||
{{ room_name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -68,8 +68,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<u-picker :show="show" :columns="[commintyList]" keyName="label" @confirm='confirm' @close='onClose' @cancel='onClose'
|
||||
closeOnClickOverlay></u-picker>
|
||||
<u-picker :show="show" :columns="[commintyList]" keyName="label" @confirm='confirm' @close='onClose'
|
||||
@cancel='onClose' closeOnClickOverlay></u-picker>
|
||||
|
||||
<div class="boxshadow" @click="changeBoxshadow" v-if="boxShow">
|
||||
<div class="boxshadow_con">
|
||||
@ -93,6 +93,7 @@ import {
|
||||
apiArr
|
||||
} from '../../../api/v2local';
|
||||
|
||||
import { apiPay } from '../../../api/pay'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@ -105,11 +106,13 @@ export default {
|
||||
homeMoney: 0,
|
||||
Money: "",
|
||||
show: false,
|
||||
remarks:"",
|
||||
room_id:"",
|
||||
room_name:"",
|
||||
boxShow:false,
|
||||
remarks: "",
|
||||
room_id: "",
|
||||
room_name: "",
|
||||
boxShow: false,
|
||||
commintyList: [],
|
||||
OrderMsg: "",
|
||||
payId:""
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -130,18 +133,18 @@ export default {
|
||||
|
||||
|
||||
methods: {
|
||||
|
||||
changeBoxshadow(){
|
||||
|
||||
changeBoxshadow() {
|
||||
this.boxShow = !this.boxShow
|
||||
},
|
||||
|
||||
confirm(e){
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
this.room_id = e.value[0].room_id
|
||||
this.room_name = e.value[0].label
|
||||
this.show = false
|
||||
},
|
||||
onClose(){
|
||||
onClose() {
|
||||
this.show = false
|
||||
},
|
||||
//选择房源
|
||||
@ -156,11 +159,11 @@ export default {
|
||||
page_num: 1,
|
||||
page_size: 30,
|
||||
}).then(res => {
|
||||
res.rows.forEach(item=>{
|
||||
res.rows.forEach(item => {
|
||||
item.label = item.name
|
||||
})
|
||||
this.commintyList = res.rows
|
||||
if(res.rows.length){
|
||||
if (res.rows.length) {
|
||||
this.room_id = res.rows[0].room_id
|
||||
this.room_name = res.rows[0].name
|
||||
}
|
||||
@ -168,33 +171,83 @@ export default {
|
||||
},
|
||||
pay() {
|
||||
let that = this
|
||||
if(!that.Money){
|
||||
if (!that.Money) {
|
||||
return uni.showToast({
|
||||
title:"请输入金额",
|
||||
icon:"none"
|
||||
title: "请输入金额",
|
||||
icon: "none"
|
||||
})
|
||||
}
|
||||
request(apiArr.createPay, "POST", {
|
||||
merchant_id:that.info.id,
|
||||
order_amount:that.Money, //金额
|
||||
refund_property_fee:that.homeMoney, //物业费
|
||||
refund_member_points:that.integral, //积分
|
||||
remark:that.remarks,
|
||||
room_id:that.room_id
|
||||
}).then(res=>{
|
||||
console.log(res);
|
||||
merchant_id: that.info.id,
|
||||
order_amount: that.Money, //金额
|
||||
refund_property_fee: that.homeMoney, //物业费
|
||||
refund_member_points: that.integral, //积分
|
||||
remark: that.remarks,
|
||||
room_id: that.room_id
|
||||
}).then(res => {
|
||||
that.payId = res.id
|
||||
that.getPayInfo(res.id)
|
||||
})
|
||||
},
|
||||
|
||||
payList(){
|
||||
payList() {
|
||||
NavgateTo("../payInfo/index")
|
||||
},
|
||||
homeMoneList(){
|
||||
homeMoneList() {
|
||||
NavgateTo("../houseProvident/index")
|
||||
},
|
||||
home(){
|
||||
home() {
|
||||
NavgateTo("/pages/index/index")
|
||||
}
|
||||
},
|
||||
|
||||
async getPayInfo(e) {
|
||||
let that = this
|
||||
await request(apiArr.getPayInfo, "POST", {
|
||||
id: e
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
this.OrderMsg = res
|
||||
|
||||
that.LakaLaPrePay()
|
||||
})
|
||||
},
|
||||
|
||||
async LakaLaPrePay() {
|
||||
let that = this
|
||||
request(apiPay.pay, "POST", {
|
||||
total_amount: that.OrderMsg.order_amount,
|
||||
subject: '快捷支付订单',
|
||||
goods_id: that.payId,
|
||||
address: "",
|
||||
out_trade_no: that.OrderMsg.term_no,
|
||||
remark: that.OrderMsg.remark,
|
||||
quantity: '1',
|
||||
user: uni.getStorageSync('userId'),
|
||||
user_id: uni.getStorageSync('openId')
|
||||
}).then(res => {
|
||||
console.log(res,'res');
|
||||
|
||||
const { resp_data, msg } = res.data
|
||||
|
||||
wx.requestPayment({
|
||||
timeStamp: String(resp_data.acc_resp_fields.time_stamp),
|
||||
nonceStr: String(resp_data.acc_resp_fields.nonce_str),
|
||||
package: String(resp_data.acc_resp_fields.package),
|
||||
signType: String(resp_data.acc_resp_fields.sign_type),
|
||||
paySign: String(resp_data.acc_resp_fields.pay_sign),
|
||||
success(res) {
|
||||
that.queryPay()
|
||||
},
|
||||
fail(fal) {
|
||||
if (fal.errMsg == 'requestPayment:fail cancel') {
|
||||
that.payFail(2)
|
||||
} else {
|
||||
that.payFail(1)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
|
||||
@ -1,44 +1,47 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="payInfoList">
|
||||
<div class="PayInfoItem">
|
||||
<div class="PayInfoItem" v-for="item in payList">
|
||||
<div class="row">
|
||||
<div class="row_label">付款金额</div>
|
||||
<div class="row_con">¥53.1</div>
|
||||
<div class="row_con">¥{{ item.order_amount }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row_label2">2025-06-06 18:10:08</div>
|
||||
<div class="row_label2">Adapay微信小程序支付</div>
|
||||
<div class="row_label2">{{item.create_time}}</div>
|
||||
<div class="row_label2" v-if="false">Adapay微信小程序支付</div>
|
||||
<div class="row_label2">{{item.payment_method}}</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="row2">
|
||||
<div class="label">订单号</div>
|
||||
<div class="con3">6354245654125654</div>
|
||||
<div class="con3">{{item.order_no}}</div>
|
||||
</div>
|
||||
|
||||
<div class="row2">
|
||||
<div class="label">消费门店</div>
|
||||
<div class="con3">真彩图文</div>
|
||||
<div class="con3">{{item.merchant_info.merchant_name}}</div>
|
||||
</div>
|
||||
|
||||
<div class="row2">
|
||||
<div class="label">当前状态</div>
|
||||
<div class="con3">已支付</div>
|
||||
<div class="con3" v-if="item.status == 1">已支付</div>
|
||||
<div class="con3" v-if="item.status == 2">待支付</div>
|
||||
<div class="con3" v-if="item.status == 3">已退款</div>
|
||||
</div>
|
||||
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="row3">
|
||||
<div class="label">返物业费</div>
|
||||
<div class="con3" @click="houseProvident">¥53.1
|
||||
<div class="con3" @click="houseProvident">¥{{item.refund_property_fee}}
|
||||
<u-icon name="arrow-right" color="#999999" size="40" style="max-lines: 10rpx;"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="row">
|
||||
<div class="label">返会员积分</div>
|
||||
<div class="con3" @click="points">3
|
||||
<div class="con3" @click="points">{{ item.refund_member_points }}
|
||||
<u-icon name="arrow-right" color="#999999" size="40" style="max-lines: 10rpx;"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
@ -70,7 +73,8 @@ export default {
|
||||
localHeight: "",
|
||||
page_num: 1,
|
||||
page_size: 10,
|
||||
flag:false
|
||||
flag:false,
|
||||
payList:[]
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -95,7 +99,13 @@ export default {
|
||||
page_num:that.page_num,
|
||||
page_size:that.page_size
|
||||
}).then(res=>{
|
||||
console.log(res);
|
||||
if(res.rows.length == that.page_size){
|
||||
that.flag = true
|
||||
}else{
|
||||
that.flag = false
|
||||
}
|
||||
that.payList = that.payList.concat(res.rows)
|
||||
that.page_num++
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -20928,7 +20928,10 @@ var apiArr = {
|
||||
//获取用户积分
|
||||
getPointsList: "/api/v2/wechat/member-points-flow-crud/page",
|
||||
//积分记录
|
||||
createPay: "/api/v2/wechat/quick-payment-record-crud/creat" //创建支付信息
|
||||
|
||||
createPay: "/api/v2/wechat/quick-payment-record-crud/creat",
|
||||
//创建支付信息
|
||||
getPayInfo: "/api/v2/wechat/quick-payment-record-crud/info"
|
||||
};
|
||||
exports.apiArr = apiArr;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user