邓雄飞 4 years ago
parent
commit
cf840c2002
4 changed files with 10 additions and 10 deletions
  1. 4
      apis/commonApi.js
  2. 4
      env/index.js
  3. 2
      manifest.json
  4. 10
      pages/my-receipt-code/index.vue

4
apis/commonApi.js

@ -206,7 +206,7 @@ export function openVipPay(data = {}) {
* @value {string} mallSupplierId * @value {string} mallSupplierId
* @value {string} payeeCodeUrl * @value {string} payeeCodeUrl
*/ */
export function getReciptCodeList(data = {}) {
export function getReceiptCodeList(data = {}) {
return http.get({ return http.get({
url: '/yyt-uec/get/mall/supplier/payee/code/list', url: '/yyt-uec/get/mall/supplier/payee/code/list',
data: data data: data
@ -219,7 +219,7 @@ export function getReciptCodeList(data = {}) {
* @value {string} mallSupplierId * @value {string} mallSupplierId
* @value {string} payeeCodeUrl * @value {string} payeeCodeUrl
*/ */
export function bindingReciptCode(data = {}) {
export function bindingReceiptCode(data = {}) {
return http.post({ return http.post({
url: '/yyt-uec/save/mall/supplier/payee/code', url: '/yyt-uec/save/mall/supplier/payee/code',
data: data data: data

4
env/index.js

@ -1,8 +1,8 @@
/** /**
* @description 唯一环境变量 * @description 唯一环境变量
*/ */
const env = 'test'
// const env = 'test'
// const env = 'dev' // const env = 'dev'
// const env = 'production'
const env = 'production'
export default env export default env

2
manifest.json

@ -2,7 +2,7 @@
"name" : "纸掌柜", "name" : "纸掌柜",
"appid" : "__UNI__8C1E198", "appid" : "__UNI__8C1E198",
"description" : "", "description" : "",
"versionName" : "1.0.3",
"versionName" : "1.0.4",
"versionCode" : 100, "versionCode" : 100,
"transformPx" : false, "transformPx" : false,
"networkTimeout" : { "networkTimeout" : {

10
pages/my-receipt-code/index.vue

@ -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
} }

Loading…
Cancel
Save