邓雄飞 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} payeeCodeUrl
*/
export function getReciptCodeList(data = {}) {
export function getReceiptCodeList(data = {}) {
return http.get({
url: '/yyt-uec/get/mall/supplier/payee/code/list',
data: data
@ -219,7 +219,7 @@ export function getReciptCodeList(data = {}) {
* @value {string} mallSupplierId
* @value {string} payeeCodeUrl
*/
export function bindingReciptCode(data = {}) {
export function bindingReceiptCode(data = {}) {
return http.post({
url: '/yyt-uec/save/mall/supplier/payee/code',
data: data

4
env/index.js

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

2
manifest.json

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

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

@ -2,11 +2,11 @@
<view>
<uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed title="收款码"></uni-nav-bar>
<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 items-center group_5">
<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" />
<text>删除</text>
</view>
@ -29,7 +29,7 @@
<script>
import { back, uploadImage } from '@/utils/hook.js'
import { bindingReciptCode, getReciptCodeList } from '@/apis/commonApi'
import { bindingReceiptCode, getReceiptCodeList } from '@/apis/commonApi'
export default {
data() {
return {
@ -44,7 +44,7 @@ export default {
uploadCode(item) {
uploadImage().then((res) => {
if (res.length > 0) {
bindingReciptCode({
bindingReceiptCode({
mallSupplierId: item.mallSupplierId,
payeeCodeUrl: res[0]
}).then((result) => {
@ -63,7 +63,7 @@ export default {
uni.previewImage({ urls: [url], current: url })
},
getList() {
getReciptCodeList().then((res) => {
getReceiptCodeList().then((res) => {
if (res) {
this.list = res
}

Loading…
Cancel
Save