This commit is contained in:
wangweidong 2026-02-26 16:46:06 +08:00
parent cd1f6f4c2f
commit a30d7ae346
4 changed files with 1142 additions and 25 deletions

View File

@ -164,16 +164,19 @@
console.log("data", data) console.log("data", data)
if (data.nuFailType == "ORG_PAYMENT_DISABLED") { if (data.nuFailType ) {
uni.showToast({ uni.showToast({
title: '机构已经关闭微信支付功能', title: data.msg,
icon: 'none' icon: 'none',
duration:4000
}); });
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ // uni.reLaunch({
url: '/pages/oldmanindex/index' // url: '/pages/oldmanindex/index'
}) // })
}, 1000) uni.navigateBack({delta:2})
}, 4000)
return
} else if (data.nuFailType == "NU_HAS_BEEN_BOUND") { } else if (data.nuFailType == "NU_HAS_BEEN_BOUND") {
uni.showToast({ uni.showToast({
title: '护理单元已被其他用户绑定', title: '护理单元已被其他用户绑定',
@ -200,6 +203,7 @@
if (data.appId || data.timeStamp || data.package || data.paySign) { if (data.appId || data.timeStamp || data.package || data.paySign) {
await callWeixinPay(data); await callWeixinPay(data);
} else { } else {
console.log(data)
// 使 // 使
uni.showToast({ uni.showToast({
title: '支付信息获取失败', title: '支付信息获取失败',
@ -208,6 +212,16 @@
console.error('支付返回:', data); console.error('支付返回:', data);
} }
} catch (err) { } catch (err) {
uni.request({
url: payurl.value+'/api/nuInfo/cancelBind',
method: 'POST',
header: {
'Content-Type': 'application/json'
},
data: {
nuId:item.value.nuId
}
});
uni.hideLoading(); uni.hideLoading();
console.error('请求失败:', err); console.error('请求失败:', err);
uni.showToast({ uni.showToast({
@ -313,6 +327,16 @@
}); });
} catch (e) { } catch (e) {
console.error('uni.requestPayment 调用异常', e); console.error('uni.requestPayment 调用异常', e);
uni.request({
url: payurl.value+'/api/nuInfo/cancelBind',
method: 'POST',
header: {
'Content-Type': 'application/json'
},
data: {
nuId:item.value.nuId
}
});
uni.showToast({ uni.showToast({
title: '支付调用失败', title: '支付调用失败',
icon: 'none' icon: 'none'

View File

@ -67,7 +67,10 @@
import { import {
getOrgNuId getOrgNuId
} from './api.js' } from './api.js'
onShow(()=>{
uuid.value = '';
item.value = {};
})
const uuid = ref(""); const uuid = ref("");
const goBack = () => { const goBack = () => {

View File

@ -9,13 +9,15 @@
<view class="index-up"> <view class="index-up">
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" <image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
lazy-load="false" /> lazy-load="false" />
<!-- <div v-for="(v,i) in ['-1','1','2','3','4','5']" @click="item.suppliersStatus=v"
style=" top: -300rpx;float: left;width: 50rpx;position: relative;z-index: 888;">{{v}}</div> -->
</view> </view>
<model :show="show" @close="show=false" :content="content" /> <model :show="show" @close="show=false" :content="content" />
<swiper style="width: 100%;position: fixed;bottom: 0;left: 0;" :duration="150" :style="{minHeight: `100vh`}" <!-- <swiper style="width: 100%;position: fixed;bottom: 0;left: 0;" :duration="150" :style="{minHeight: `100vh`}"
:current="which" @change="swiperchange"> :current="which" @change="swiperchange">
<view v-for="(item,index) in menuArray" :key="index"> <view v-for="(item,index) in menuArray" :key="index">
<swiper-item> <swiper-item> -->
<view style="height: 10vh;" v-if="item.suppliersStatus !='2'&&item.suppliersStatus !='4'&&item.suppliersStatus !='5'"> </view> <view style="height: 10vh;" v-if="item.suppliersStatus !='2'&&item.suppliersStatus !='4'&&item.suppliersStatus !='5'"> </view>
<view class="white-content-father"> <view class="white-content-father">
<view class="chuo-ball" @click="loadingData" <view class="chuo-ball" @click="loadingData"
@ -126,14 +128,14 @@
<image class="right-button-img" <image class="right-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" /> :src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
<view class=""> <view class="">
敬请期待 供应商信息
</view> </view>
</view> </view>
<view class="right-button-one"> <view class="right-button-one">
<image class="right-button-img" <image class="right-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" /> :src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
<view class=""> <view class="">
敬请期待 信息变更
</view> </view>
</view> </view>
</view> </view>
@ -167,7 +169,7 @@
</view> </view>
<view class="white-content" style="margin: 0 auto;margin-top: 0rpx;height: 740rpx;" <view class="white-content" style="margin: 0 auto;margin-top: 0rpx;height: 740rpx;"
v-if="item.applyStatus==`-1`"> v-if="item.suppliersStatus==`-1`">
<view style="display: flex;width: 100%;margin-top: 30rpx;align-items: center;"> <view style="display: flex;width: 100%;margin-top: 30rpx;align-items: center;">
<view class="blue-shu"></view> <view class="blue-shu"></view>
<view class="blue-font"> <view class="blue-font">
@ -190,11 +192,11 @@
</view> </view>
</view> --> </view> -->
</swiper-item> <!-- </swiper-item>
</view> </view>
</swiper> </swiper> -->
<view <!-- <view
style="z-index:9;position: fixed;bottom: 150rpx; width: 100%;display: flex;align-items: center;flex-direction: column;margin-top: -25rpx;height: 100rpx;"> style="z-index:9;position: fixed;bottom: 150rpx; width: 100%;display: flex;align-items: center;flex-direction: column;margin-top: -25rpx;height: 100rpx;">
<view class="jia-box"> <view class="jia-box">
<view v-for="(item,index) in menuArray" :key="index" @click="changecard(index)"> <view v-for="(item,index) in menuArray" :key="index" @click="changecard(index)">
@ -208,7 +210,7 @@
<view style="font-size: 32rpx;margin-top: 50rpx;"> <view style="font-size: 32rpx;margin-top: 50rpx;">
{{menuArray[which]?.departName}} {{menuArray[which]?.departName}}
</view> </view>
</view> </view> -->
<downMenu :itemTarget="0" /> <downMenu :itemTarget="0" />
<u-popup v-model="popupshow" mode="bottom" border-radius="40"> <u-popup v-model="popupshow" mode="bottom" border-radius="40">
<view class="popop-father"> <view class="popop-father">
@ -268,7 +270,7 @@
}) })
} }
const buttonArray = ref(["供应商", "敬请期待", "敬请期待"]) const buttonArray = ref(["供应商", "物料信息", "敬请期待"])
const statusarray = ["loading", "success", "fail"] const statusarray = ["loading", "success", "fail"]
const which = ref(0); const which = ref(0);
@ -428,15 +430,17 @@
onUnmounted(() => {}) onUnmounted(() => {})
const menuArray = ref([]) const menuArray = ref([])
const item = ref([])
const loadingData = () => { const loadingData = () => {
getSuppliersOrgInfo().then(res => { getSuppliersOrgInfo().then(res => {
menuArray.value = [] item.value = res.result.records[0]
res.result.records.forEach((element) => { // menuArray.value = []
menuArray.value.push(element) // res.result.records.forEach((element) => {
}) // menuArray.value.push(element)
menuArray.value.push({ // })
applyStatus: `-1` // menuArray.value.push({
}) // applyStatus: `-1`
// })
}) })
// getMessageList().then(res => { // getMessageList().then(res => {
// console.log("special", res) // console.log("special", res)

File diff suppressed because it is too large Load Diff