|
|
@ -2,11 +2,11 @@ |
|
|
<view> |
|
|
<view> |
|
|
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="收款码"></uni-nav-bar> |
|
|
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="收款码"></uni-nav-bar> |
|
|
<view class="container"> |
|
|
<view class="container"> |
|
|
<view class="top-section flex-col" v-for="(item, index) in list" :key="item.mallSupplierId"> |
|
|
|
|
|
|
|
|
<view class="top-section flex-col" v-for="item in list" :key="item.mallSupplierId"> |
|
|
<view class="flex-col section_1" v-show="item.payeeCodeUrl"> |
|
|
<view class="flex-col section_1" v-show="item.payeeCodeUrl"> |
|
|
<view class="flex-col items-center group_5"> |
|
|
<view class="flex-col items-center group_5"> |
|
|
<image :src="item.payeeCodeUrl" mode="aspectFit" class="image_4" @click="previewCode(item.payeeCodeUrl)" /> |
|
|
<image :src="item.payeeCodeUrl" mode="aspectFit" class="image_4" @click="previewCode(item.payeeCodeUrl)" /> |
|
|
<view class="justify-evenly section_2" @click="deleteCode(index)"> |
|
|
|
|
|
|
|
|
<view class="justify-evenly section_2" @click="deleteCode(item)"> |
|
|
<image src="/static/imgs/general/close-icon.png" class="image_5" /> |
|
|
<image src="/static/imgs/general/close-icon.png" class="image_5" /> |
|
|
<text>删除</text> |
|
|
<text>删除</text> |
|
|
</view> |
|
|
</view> |
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { back, uploadImage } from '@/utils/hook.js' |
|
|
import { back, uploadImage } from '@/utils/hook.js' |
|
|
import { bindingReciptCode, getReciptCodeList } from '@/apis/commonApi' |
|
|
|
|
|
|
|
|
import { bindingReceiptCode, getReceiptCodeList } from '@/apis/commonApi' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -44,7 +44,7 @@ export default { |
|
|
uploadCode(item) { |
|
|
uploadCode(item) { |
|
|
uploadImage().then((res) => { |
|
|
uploadImage().then((res) => { |
|
|
if (res.length > 0) { |
|
|
if (res.length > 0) { |
|
|
bindingReciptCode({ |
|
|
|
|
|
|
|
|
bindingReceiptCode({ |
|
|
mallSupplierId: item.mallSupplierId, |
|
|
mallSupplierId: item.mallSupplierId, |
|
|
payeeCodeUrl: res[0] |
|
|
payeeCodeUrl: res[0] |
|
|
}).then((result) => { |
|
|
}).then((result) => { |
|
|
@ -63,7 +63,7 @@ export default { |
|
|
uni.previewImage({ urls: [url], current: url }) |
|
|
uni.previewImage({ urls: [url], current: url }) |
|
|
}, |
|
|
}, |
|
|
getList() { |
|
|
getList() { |
|
|
getReciptCodeList().then((res) => { |
|
|
|
|
|
|
|
|
getReceiptCodeList().then((res) => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.list = res |
|
|
this.list = res |
|
|
} |
|
|
} |
|
|
|