代码优化

This commit is contained in:
GaoHao
2025-03-26 17:18:49 +08:00
parent 656793dae2
commit 5a655ba09e
9 changed files with 6 additions and 15 deletions

View File

@@ -559,7 +559,6 @@
function tuikuan(item, index) {
hasPermission('允许退款').then(res => {
if (res) {
console.log(item)
if (Array.isArray(item)) {
let arr = [];
item.map(v=>{

View File

@@ -66,10 +66,9 @@
}
}
})
function toOrder(){
go.to('PAGES_ORDER_INDEX',{
userId:props.user.id||'',
userId:props.user.userId||'',
type:'user'
})
}

View File

@@ -76,7 +76,7 @@
// 监听选择用户事件
let user = ref({
headImg:'',
telephone:'',
phone:'',
amount:'0.00',
accountPoints:'0.00'
})

View File

@@ -928,7 +928,6 @@
async function pay(par) {
const payType = pays.payTypes.list[pays.payTypes.selIndex].payType
let pars = getPayParam()
console.log(pars)
payStatus = 'paying'
let params = {
shopId: uni.getStorageSync("shopInfo").id,
@@ -945,9 +944,6 @@
params.creditBuyerId = pageData.buyer.id
}
console.log(params)
try {
if (payType == 'scanCode') {
await microPay(params)