Compare commits

..

4 Commits

Author SHA1 Message Date
赵毅
71332e070a 修改好店支付的本页二维码逻辑 2025-10-16 15:43:04 +08:00
赵毅
a0b51c8e9f 优化个人中心页面布局 2025-10-16 15:41:37 +08:00
赵毅
26d427eb52 修改物业端默认选中小区的逻辑 2025-10-16 15:26:59 +08:00
赵毅
cf3234b7d5 优化物业缴费的缴费记录的数据展示逻辑 2025-10-16 10:28:12 +08:00
6 changed files with 59 additions and 73 deletions

View File

@ -1,4 +1,5 @@
export const apiPay = { export const apiPay = {
pay: '/api/v1/lakala/preorder', //预下单 pay: '/api/v1/lakala/preorder', //预下单
queryPay: '/api/v1/lakala/trade-query' //查询交易结果 queryPay: '/api/v1/lakala/trade-query', //查询交易结果
qrcode: '/api/v2/wechat/quick-payment-record-crud/qrcode' //快捷支付二维码
} }

View File

@ -401,6 +401,14 @@ export default {
this.currentRoom = item; this.currentRoom = item;
this.getOrderList(); this.getOrderList();
//
if (this.active === 1) {
//
this.page_num = 1;
this.page_size = 10;
this.getPayList();
}
}, },
// //

View File

@ -164,75 +164,37 @@ export default {
this.Money = value; this.Money = value;
}, },
createQrcode() {
uni.showLoading({
title: '加载中',
mask: true
});
uni.request({
url: 'https://api.weixin.qq.com/cgi-bin/token',
data: {
grant_type: 'client_credential',
appid: "wx1addb25675dd8e70",
secret: "1c153a91d0558b4c3834a4399ebc7496"
},
header: {
// 'custom-header': 'hello' //
},
success: (res) => {
// access_token
if (res.data && res.data.access_token) {
this.createQrcode2(res.data.access_token)
} else {
uni.hideLoading();
uni.showToast({
title: '获取二维码失败,请重试',
icon: 'none'
});
console.error('获取微信access_token失败:', res);
}
},
fail: (err) => {
console.error('获取微信access_token失败:', err);
uni.hideLoading();
uni.showToast({
title: '获取二维码失败,请重试',
icon: 'none'
});
}
});
},
createQrcode2(e) {
let that = this
uni.request({
url: `https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=${e}`,
method: 'post',
data: {
path: '/packages/localLife/pay/index'
},
header: {
// 'custom-header': 'hello' //
'content-type': 'application/json'
},
responseType: 'arraybuffer',
success: (res) => {
uni.hideLoading();
// this.text = 'request success';
let data = uni.arrayBufferToBase64(res.data)
console.log(data);
that.myCode = 'data:image/png;base64,' + data
this.boxShow = !this.boxShow
},
fail: (res) => {
uni.hideLoading();
}
});
},
changeBoxshadow2() { changeBoxshadow2() {
this.boxShow = !this.boxShow this.boxShow = !this.boxShow
}, },
changeBoxshadow() { changeBoxshadow() {
this.createQrcode() uni.showLoading({
title: '加载中',
mask: true
});
const params = {
merchant_id: this.info.id,
}
request(apiPay.qrcode, "POST", params).then(res => {
uni.hideLoading();
if (res && res.qrcode_image_url) {
this.myCode = picUrl + res.qrcode_image_url;
this.boxShow = !this.boxShow;
} else {
uni.showToast({
title: '获取二维码失败,请重试',
icon: 'none'
});
}
}).catch(err => {
console.error('获取二维码失败:', err);
uni.hideLoading();
uni.showToast({
title: '获取二维码失败,请重试',
icon: 'none'
});
});
}, },
confirm(e) { confirm(e) {

View File

@ -76,6 +76,7 @@ export default {
} }
}, },
async onLoad() { async onLoad() {
uni.removeStorageSync('changeWorkOrderData');
const workOrderPermission = uni.getStorageSync('work_order_permission'); const workOrderPermission = uni.getStorageSync('work_order_permission');
const orderDispatchPermission = uni.getStorageSync('order_dispatch_permission'); const orderDispatchPermission = uni.getStorageSync('order_dispatch_permission');
this.showWorkOrderSection = !(workOrderPermission === false && orderDispatchPermission === false); this.showWorkOrderSection = !(workOrderPermission === false && orderDispatchPermission === false);

View File

@ -62,7 +62,17 @@ page {
pointer-events: auto; pointer-events: auto;
} }
.avatar_setting>image { .avatar_setting_box{
width: 70rpx;
height: 50rpx;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
margin: 0 5rpx;
}
.avatar_setting_box image {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
} }

View File

@ -10,16 +10,20 @@
<view class="avatar_title"> <view class="avatar_title">
<view class="login-btn">{{ userInfo.nick_name ? userInfo.nick_name : '登录/注册' }}</view> <view class="login-btn">{{ userInfo.nick_name ? userInfo.nick_name : '登录/注册' }}</view>
<view class="avatar_setting"> <view class="avatar_setting">
<view class="avatar_setting_box">
<image <image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Vector13.png" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Vector13.png"
mode="" @click.stop="headerRefreshClick" /> mode="" @click.stop="headerRefreshClick" />
<button class="login-btn" open-type="getPhoneNumber" style="display: none;" </view>
@click="headerLoginClick" @getphonenumber="getPhoneNumber" id="hiddenLoginBtn"></button> <!-- <button class="login-btn" open-type="getPhoneNumber" style="display: none;"
@click="headerLoginClick" @getphonenumber="getPhoneNumber" id="hiddenLoginBtn"></button> -->
<view class="avatar_setting_box">
<image <image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Vector14.png" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Vector14.png"
mode="" @click.stop="headerSettingsClick" /> mode="" @click.stop="headerSettingsClick" />
</view> </view>
</view> </view>
</view>
<view class="avater_mobile">{{ userInfo.mobile }}</view> <view class="avater_mobile">{{ userInfo.mobile }}</view>
</view> </view>
</view> </view>