Commit 6555bc7b authored by Facius's avatar Facius

feat: 收款码

parent 1559e792
Pipeline #2904 canceled with stages
import request from "@/utils/request.js"
// 获取所有的收款码
export function getCollectionCode(data) {
export async function getCollectionCode(data) {
return request({
url: `/rest/collectionCode`,
method: 'GET',
data
data,
noLoading: true
})
}
// 保存收款码
export function setCollectionCode(data) {
export async function setCollectionCode(data) {
return request({
url: `/rest/collectionCode`,
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) {
method: 'GET',
data:{
bucketName: 'banshou-account-book',
}
},
noLoading: true
})
}
\ No newline at end of file
......@@ -5,7 +5,8 @@ export async function getWeather(data) {
return request({
url: `/rest/anno/weather/getWeather`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -14,7 +15,8 @@ export async function bookRecord(data) {
return request({
url: `/rest/bookRecord`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -23,7 +25,8 @@ export async function monthRecord(data) {
return request({
url: `/rest/bookRecord/statistics`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -32,7 +35,8 @@ export async function repair(data) {
return request({
url: `/rest/repair`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -41,7 +45,8 @@ export async function repairExport(data) {
return request({
url: `/rest/repair/export`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -50,7 +55,8 @@ export async function repairDetail(data) {
return request({
url: `/rest/repair/detail`,
method: 'GET',
data
data,
noLoading: true
})
}
......@@ -59,7 +65,8 @@ export async function editeRepair(data) {
return request({
url: `/rest/repair`,
method: 'POST',
data
data,
noLoading: true
})
}
......@@ -68,7 +75,8 @@ export async function repairSettle(data) {
return request({
url: `/rest/repair/settle`,
method: 'POST',
data
data,
noLoading: true
})
}
......@@ -77,7 +85,8 @@ export async function repairSync(data) {
return request({
url: `/rest/repair/sync`,
method: 'POST',
data
data,
noLoading: true
})
}
......@@ -86,7 +95,8 @@ export async function repairDelete(data) {
return request({
url: `/rest/repair/delete`,
method: 'POST',
data
data,
noLoading: true
})
}
......@@ -95,7 +105,8 @@ export async function repairSend(data) {
return request({
url: `/rest/repair/send`,
method: 'POST',
data
data,
noLoading: true
})
}
......@@ -104,6 +115,7 @@ export async function repairSign(data) {
return request({
url: `/rest/repair/sign`,
method: 'POST',
data
data,
noLoading: true
})
}
\ No newline at end of file
......@@ -32,24 +32,29 @@
}}</view>
<view class="middle-view">
<view class="code-view">
<image
v-if="info[currentSetting.type].url"
:src="info[currentSetting.type].url"
hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)"
>
</image>
<view
v-else
class="add-view"
hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)"
>
<view class="add-text" :style="'color:' + currentSetting.color">{{
currentSetting.addText
}}</view>
<view>便于快速收款使用</view>
</view>
<view class="loading-view" v-if="loading"
><u-loading mode="flower"></u-loading
></view>
<template v-else>
<image
v-if="info[currentSetting.type].url"
:src="info[currentSetting.type].url"
hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)"
>
</image>
<view
v-else
class="add-view"
hover-class="u-hover-class"
@click="$u.throttle(addCode, 500)"
>
<view class="add-text" :style="'color:' + currentSetting.color">{{
currentSetting.addText
}}</view>
<view>便于快速收款使用</view>
</view>
</template>
</view>
</view>
</view>
......@@ -86,10 +91,11 @@ export default {
info: {
WX: {},
ZFB: {},
OTHER: {}
OTHER: {},
},
currentIndex: 0,
value: '',
loading: false
}
},
computed: {
......@@ -270,6 +276,11 @@ export default {
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