Commit 6555bc7b authored by Facius's avatar Facius

feat: 收款码

parent 1559e792
Pipeline #2904 canceled with stages
import request from "@/utils/request.js" import request from "@/utils/request.js"
// 获取所有的收款码 // 获取所有的收款码
export function getCollectionCode(data) { export async function getCollectionCode(data) {
return request({ return request({
url: `/rest/collectionCode`, url: `/rest/collectionCode`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
// 保存收款码 // 保存收款码
export function setCollectionCode(data) { export async function setCollectionCode(data) {
return request({ return request({
url: `/rest/collectionCode`, url: `/rest/collectionCode`,
method: 'POSt', method: 'POSt',
data data,
noLoading: true
})
}
// 获取自己的名片
export async function getBusinessCard(data) {
return request({
url: `/rest/businessCard`,
method: 'GET',
data,
noLoading: true
}) })
} }
\ No newline at end of file
...@@ -5,6 +5,7 @@ export async function getQiNiuToken(data) { ...@@ -5,6 +5,7 @@ export async function getQiNiuToken(data) {
method: 'GET', method: 'GET',
data:{ data:{
bucketName: 'banshou-account-book', bucketName: 'banshou-account-book',
} },
noLoading: true
}) })
} }
\ No newline at end of file
...@@ -5,7 +5,8 @@ export async function getWeather(data) { ...@@ -5,7 +5,8 @@ export async function getWeather(data) {
return request({ return request({
url: `/rest/anno/weather/getWeather`, url: `/rest/anno/weather/getWeather`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -14,7 +15,8 @@ export async function bookRecord(data) { ...@@ -14,7 +15,8 @@ export async function bookRecord(data) {
return request({ return request({
url: `/rest/bookRecord`, url: `/rest/bookRecord`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -23,7 +25,8 @@ export async function monthRecord(data) { ...@@ -23,7 +25,8 @@ export async function monthRecord(data) {
return request({ return request({
url: `/rest/bookRecord/statistics`, url: `/rest/bookRecord/statistics`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -32,7 +35,8 @@ export async function repair(data) { ...@@ -32,7 +35,8 @@ export async function repair(data) {
return request({ return request({
url: `/rest/repair`, url: `/rest/repair`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -41,7 +45,8 @@ export async function repairExport(data) { ...@@ -41,7 +45,8 @@ export async function repairExport(data) {
return request({ return request({
url: `/rest/repair/export`, url: `/rest/repair/export`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -50,7 +55,8 @@ export async function repairDetail(data) { ...@@ -50,7 +55,8 @@ export async function repairDetail(data) {
return request({ return request({
url: `/rest/repair/detail`, url: `/rest/repair/detail`,
method: 'GET', method: 'GET',
data data,
noLoading: true
}) })
} }
...@@ -59,7 +65,8 @@ export async function editeRepair(data) { ...@@ -59,7 +65,8 @@ export async function editeRepair(data) {
return request({ return request({
url: `/rest/repair`, url: `/rest/repair`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -68,7 +75,8 @@ export async function repairSettle(data) { ...@@ -68,7 +75,8 @@ export async function repairSettle(data) {
return request({ return request({
url: `/rest/repair/settle`, url: `/rest/repair/settle`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -77,7 +85,8 @@ export async function repairSync(data) { ...@@ -77,7 +85,8 @@ export async function repairSync(data) {
return request({ return request({
url: `/rest/repair/sync`, url: `/rest/repair/sync`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -86,7 +95,8 @@ export async function repairDelete(data) { ...@@ -86,7 +95,8 @@ export async function repairDelete(data) {
return request({ return request({
url: `/rest/repair/delete`, url: `/rest/repair/delete`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -95,7 +105,8 @@ export async function repairSend(data) { ...@@ -95,7 +105,8 @@ export async function repairSend(data) {
return request({ return request({
url: `/rest/repair/send`, url: `/rest/repair/send`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
...@@ -104,6 +115,7 @@ export async function repairSign(data) { ...@@ -104,6 +115,7 @@ export async function repairSign(data) {
return request({ return request({
url: `/rest/repair/sign`, url: `/rest/repair/sign`,
method: 'POST', method: 'POST',
data data,
noLoading: true
}) })
} }
\ No newline at end of file
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
}}</view> }}</view>
<view class="middle-view"> <view class="middle-view">
<view class="code-view"> <view class="code-view">
<view class="loading-view" v-if="loading"
><u-loading mode="flower"></u-loading
></view>
<template v-else>
<image <image
v-if="info[currentSetting.type].url" v-if="info[currentSetting.type].url"
:src="info[currentSetting.type].url" :src="info[currentSetting.type].url"
...@@ -50,6 +54,7 @@ ...@@ -50,6 +54,7 @@
}}</view> }}</view>
<view>便于快速收款使用</view> <view>便于快速收款使用</view>
</view> </view>
</template>
</view> </view>
</view> </view>
</view> </view>
...@@ -86,10 +91,11 @@ export default { ...@@ -86,10 +91,11 @@ export default {
info: { info: {
WX: {}, WX: {},
ZFB: {}, ZFB: {},
OTHER: {} OTHER: {},
}, },
currentIndex: 0, currentIndex: 0,
value: '', value: '',
loading: false
} }
}, },
computed: { computed: {
...@@ -270,6 +276,11 @@ export default { ...@@ -270,6 +276,11 @@ export default {
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
} }
.loading-view {
display: flex;
align-items: center;
justify-content: center;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment