Commit 528a006c by 胡悦

更换支付 merchantId

1 parent 90115526
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-10 10:26:37 * @LastEditTime: 2024-04-10 14:07:57
--> -->
<template> <template>
<uni-popup <uni-popup
...@@ -117,8 +117,9 @@ export default { ...@@ -117,8 +117,9 @@ export default {
}, },
// 查询门店支付配置 // 查询门店支付配置
async findPayInfo() { async findPayInfo() {
const { shopMerchantId } = uni.$storage.get("userInfo");
const data = await uni.$api.commonApi.findPayInfo({ const data = await uni.$api.commonApi.findPayInfo({
merchantId: 44209880, merchantId: shopMerchantId,
}); });
this.payInfo = data.find((item) => item.paymentType == 1); this.payInfo = data.find((item) => item.paymentType == 1);
this.accountInfo = data.find((item) => item.paymentType == 2); this.accountInfo = data.find((item) => item.paymentType == 2);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2024-04-10 10:25:03 * @LastEditTime: 2024-04-10 14:00:05
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
</view> </view>
</view> </view>
<view class="information-done" @click="done()">完成接待</view> <view class="information-done" @click="done()">完成接待</view>
<uni-popup ref="preview" type="center" border-radius="10px 10px 0 0"> <!-- <uni-popup ref="preview" type="center" border-radius="10px 10px 0 0">
<image class="preview-img" :src="previewImg" mode="aspectFit" /> <image class="preview-img" :src="previewImg" mode="aspectFit" />
</uni-popup> </uni-popup> -->
<MessageBox <MessageBox
ref="formRef" ref="formRef"
@cancel="cancel" @cancel="cancel"
...@@ -299,7 +299,19 @@ export default { ...@@ -299,7 +299,19 @@ export default {
// 预览图片 // 预览图片
preview(index) { preview(index) {
this.previewImg = this.infoList[index].imgUrl; this.previewImg = this.infoList[index].imgUrl;
this.$refs.preview.open("center"); uni.previewImage({
urls: [this.infoList[index].imgUrl],
longPressActions: {
// itemList: ['发送给朋友', '保存图片', '收藏'],
success: function(data) {
console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
},
fail: function(err) {
console.log(err.errMsg);
}
}
});
// this.$refs.preview.open("center");
}, },
handleSelect(item, popkey) { handleSelect(item, popkey) {
console.log(item); console.log(item);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!