fix:更新
This commit is contained in:
parent
6a7e01c0bf
commit
a4bd9ef764
@ -1,5 +1,5 @@
|
|||||||
NODE_ENV= development
|
NODE_ENV= development
|
||||||
VITE_HTTP_BASE_URL = http://10.39.13.78:8002/api/
|
# VITE_HTTP_BASE_URL = http://10.39.13.78:8002/api/
|
||||||
# VITE_HTTP_BASE_URL = http://test-weapp-api.linyikj.com.cn/api/
|
VITE_HTTP_BASE_URL = http://test-weapp-api.linyikj.com.cn/api/
|
||||||
# VITE_HTTP_BASE_URL = https://weapp-api.linyikj.com.cn/api/
|
# VITE_HTTP_BASE_URL = https://weapp-api.linyikj.com.cn/api/
|
||||||
VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER'
|
VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER'
|
||||||
@ -1,9 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="pay_title">支付金额</view>
|
<view class="house_title">
|
||||||
|
{{ useModel?.houseInfo?.value?.asset_house?.full_name || '-' }}
|
||||||
|
</view>
|
||||||
<view class="pay_price">
|
<view class="pay_price">
|
||||||
<text>¥</text>{{ useModel?.orderShow.value?.total_payable_amount || '0.00' }}
|
<text>¥</text>{{ useModel?.orderShow.value?.total_payable_amount || '0.00' }}
|
||||||
</view>
|
</view>
|
||||||
|
<view class="pay_title_sub">支付金额</view>
|
||||||
<view class="pay_type">
|
<view class="pay_type">
|
||||||
<view class="pay_label">
|
<view class="pay_label">
|
||||||
<image src="/static/svg/wx_pay.svg" mode="heightFix" />
|
<image src="/static/svg/wx_pay.svg" mode="heightFix" />
|
||||||
|
|||||||
@ -7,6 +7,7 @@ const getShow = (timer?: any) => {
|
|||||||
Apis.HouseOrder.HouseOrders.Show({ id: useModel?.OrderInfo?.value?.id }).then(res => {
|
Apis.HouseOrder.HouseOrders.Show({ id: useModel?.OrderInfo?.value?.id }).then(res => {
|
||||||
useModel.loadingShowNumber.value += 1
|
useModel.loadingShowNumber.value += 1
|
||||||
useModel.orderShow.value = res?.data
|
useModel.orderShow.value = res?.data
|
||||||
|
useModel.houseInfo.value = res?.data?.house_order_items[0]
|
||||||
if (res?.data?.order_status === 'Paid') {
|
if (res?.data?.order_status === 'Paid') {
|
||||||
useModel.payDisabled.value = false
|
useModel.payDisabled.value = false
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
|
|||||||
@ -8,5 +8,6 @@ export default {
|
|||||||
payDisabled: ref(false),
|
payDisabled: ref(false),
|
||||||
hideStatus: ref(false),
|
hideStatus: ref(false),
|
||||||
loadingLabel: ref(''),
|
loadingLabel: ref(''),
|
||||||
timer: ref<any>()
|
timer: ref<any>(),
|
||||||
|
houseInfo: ref<any>({}),
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,24 @@ page {
|
|||||||
background-color: #f3f3f4;
|
background-color: #f3f3f4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.house_title{
|
||||||
|
text-align: center;
|
||||||
|
font-size:34rpx;
|
||||||
|
padding:70rpx 0 40rpx 0;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.pay_title{
|
.pay_title{
|
||||||
font-size:30rpx;
|
font-size:30rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding:70rpx 0 40rpx 0;
|
padding: 40rpx 0;
|
||||||
|
}
|
||||||
|
.pay_title_sub{
|
||||||
|
font-size:24rpx;
|
||||||
|
color:#999;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.pay_price{
|
.pay_price{
|
||||||
font-size: 50rpx;
|
font-size: 50rpx;
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
export default {
|
export default {
|
||||||
WxAppId: 'wx31500e871924b903' //小程序id
|
WxAppId: 'wx67e73fbc0e0139c1' //小程序id
|
||||||
}
|
}
|
||||||
@ -64,7 +64,8 @@ export const useWeAppAuthStore = defineStore('we_app_auth', () => {
|
|||||||
uni.login({
|
uni.login({
|
||||||
provider: 'weixin', //使用微信登录
|
provider: 'weixin', //使用微信登录
|
||||||
success: function (loginRes) {
|
success: function (loginRes) {
|
||||||
console.log(loginRes)
|
console.log('登录',loginRes)
|
||||||
|
// return false
|
||||||
getWXToken(app, loginRes.code)
|
getWXToken(app, loginRes.code)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
"quickapp": {},
|
"quickapp": {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin": {
|
"mp-weixin": {
|
||||||
"appid": "wx31500e871924b903",
|
"appid": "wx67e73fbc0e0139c1",
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": false
|
"urlCheck": false
|
||||||
},
|
},
|
||||||
|
|||||||
@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
<view class="login_logo">
|
<view class="login_logo">
|
||||||
<image
|
<image
|
||||||
src="https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K4720FBMW7CSV7XJXERJRV8S.png"
|
src="https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KSM68K5EFMN5Q8CR6AFZXTA4.png"
|
||||||
mode="heightFix"
|
mode="heightFix"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="group_des"> 欢迎登录邻里壹站 </view>
|
<view class="group_des"> 欢迎登录农文服务 </view>
|
||||||
<view class="group_from">
|
<view class="group_from">
|
||||||
<!-- <view class="title"> 手机号码登录 </view> -->
|
<!-- <view class="title"> 手机号码登录 </view> -->
|
||||||
<!-- <view class="form_input">
|
<!-- <view class="form_input">
|
||||||
@ -97,6 +97,7 @@ const handleBack = () => {
|
|||||||
|
|
||||||
//绑定手机
|
//绑定手机
|
||||||
const handleGetPhoneNumber = async (data: { detail: { code: string } }) => {
|
const handleGetPhoneNumber = async (data: { detail: { code: string } }) => {
|
||||||
|
console.log('获取手机号',data)
|
||||||
if (!CheckedVal.value) {
|
if (!CheckedVal.value) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -124,7 +125,7 @@ const previewPdf = () => {
|
|||||||
mask: true
|
mask: true
|
||||||
})
|
})
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: 'https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N70AAG2V678XATHQTH1RC.pdf',
|
url: 'https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KSM6WCZ4VKDPR4MBMD8JCD12.pdf',
|
||||||
success: function (e) {
|
success: function (e) {
|
||||||
const filePath = e.tempFilePath
|
const filePath = e.tempFilePath
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user