添加商家二维码下载入口

This commit is contained in:
wangxiaowei 2024-06-29 17:29:42 +08:00
parent 564aa23e68
commit 8ec9a7ebc5
4 changed files with 61 additions and 2 deletions

@ -107,4 +107,9 @@ export function getLocalStore() {
// 本地生活-提交信息
export function addLocalStore(params) {
return request.post("LocalStore/addLocalStore", params)
}
}
// 本地生活-支付码
export function localStorePayImage(params) {
return request.post("LocalStore/makeMyPayImage")
}

@ -0,0 +1,45 @@
<template>
<view class="content">
<view class="basic-info">
</view>
</view>
</template>
<script>
import {localStorePayImage} from '@/api/shop.js'
export default {
data() {
return {
orderList: []
};
},
onLoad() {
this.getPayImage()
},
methods: {
// 获取商家支付二维码
async getPayImage() {
await localStorePayImage((res) => {
console.log(res)
})
}
}
}
</script>
<style lang="scss" scoped>
.content {
padding: 20rpx;
.basic-info {
width: 100%;
padding: 30rpx;
box-sizing: border-box;
background: #fff;
border-radius: 10rpx;
margin: 20rpx 0;
}
}
</style>

@ -38,7 +38,7 @@
{title: '商品添加', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_add.png', src: '/bundle_b/pages/local_shop/local_shop_add'},
{title: '商品管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_shop.png', src: '/bundle_b/pages/local_shop/local_shop_manager'},
{title: '订单管理', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_order.png', src: '/bundle_b/pages/local_shop/local_shop_order'},
// {title: '二维码下载', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_ercode.png', src: '/bundle_b/pages/local_shop/local_shop_order'},
{title: '二维码下载', image: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/bundle_b/local_shop/local_ercode.png', src: '/bundle_b/pages/local_shop/local_ercode'},
]
}
},

@ -1118,6 +1118,15 @@
"meta": {
"auth": true
}
},
{
"path": "pages/local_shop/local_ercode",
"style": {
"navigationBarTitleText": "商家支付码"
},
"meta": {
"auth": true
}
}
]
}