1.修改问题

huipay-master
杨杰 2 years ago
parent 07a6c4ff16
commit 106179eb6c
  1. 34
      App.vue
  2. 16
      Utils/Api.js
  3. 297
      components/mcclist.vue
  4. 44
      pages.json
  5. 89
      pages/index/depositaryBank/depositaryBank.vue
  6. 77
      pages/index/mcc-list/mcc-list.vue
  7. 471
      pages/index/merchant-incoming-parts/merchant-incoming-parts.vue
  8. 5
      pages/welcome/welcome.vue
  9. 2
      unpackage/dist/build/h5/index.html

@ -4,28 +4,36 @@
// url: 'http://192.168.3.4:9301/crest', // url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://pay.dctpay.com/crest', url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// //
url: 'https://gratia-pay.dctpay.com/crest', // url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://xuan-pay-private.obs.cn-southwest-2.myhuaweicloud.com', // imgUrl: 'https://xuan-pay-private.obs.cn-southwest-2.myhuaweicloud.com',
userInfo: "", userInfo: "",
openId: '', openId: '',
h5code: '', h5code: '',
token: '', token: '',
//id //id
businessid:'', businessid: '',
// //
businessname:'', businessname: '',
//mccid //mccid
mccid:'', mccid: '',
//mcc //mcc
mccname:'', mccname: '',
// //
Dictionaries:'' Dictionaries: '',
//
depositaryBank: '',
//
branchBankNo:'',
//
clearNo:'',
//
bankareaCode: ''
}, },
onLaunch: function() { onLaunch: function() {
let that = this; let that = this;
uni.getStorage({ uni.getStorage({
key: 'payuser', key: 'payuser',
success: (res) => { success: (res) => {
@ -40,10 +48,8 @@
} }
}); });
}, },
onShow: function() { onShow: function() {},
}, onHide: function() {}
onHide: function() {
}
} }
</script> </script>

@ -59,6 +59,18 @@ export const configMerBasis = params => {
export const configMerSettlement = params => { export const configMerSettlement = params => {
return POST('POST', `${base}/mer/configMerSettlement`, params).then(res => res.data); return POST('POST', `${base}/mer/configMerSettlement`, params).then(res => res.data);
} }
//获取银行卡bin信息
export const getBankCardBin = params => {
return POST('GET', `${base}/common/getBankCardBin`, params).then(res => res.data);
}
//获取银行支行列表
export const getBankList = params => {
return POST('GET', `${base}/common/getBankList`, params).then(res => res.data);
}
//银行开户许可证识别
export const recognizeBankAccount = params => {
return POST('GET', `${base}/ocr/recognizeBankAccount`, params).then(res => res.data);
}
//第四步商户门店信心 //第四步商户门店信心
export const configMerStore = params => { export const configMerStore = params => {
return POST('POST', `${base}/mer/configMerStore`, params).then(res => res.data); return POST('POST', `${base}/mer/configMerStore`, params).then(res => res.data);
@ -68,8 +80,8 @@ export const getMerListBySalesman = params => {
return POST('GET', `${base}/mer/getMerListBySalesman`, params).then(res => res.data); return POST('GET', `${base}/mer/getMerListBySalesman`, params).then(res => res.data);
} }
//业务员查询mcc //业务员查询mcc
export const getLklMcc = params => { export const getMccList = params => {
return POST('GET', `${base}/common/getLklMcc`, params).then(res => res.data); return POST('GET', `${base}/common/getMccList`, params).then(res => res.data);
} }
//查询所有数据字典 //查询所有数据字典
export const getDictionaries = params => { export const getDictionaries = params => {

@ -0,0 +1,297 @@
<template>
<view class="u-wrap">
<view class="search-warp" v-if="showAction">
<scroll-view scroll-y :style="{'height': scrollHeight+'px'}" class="item-container">
<view class="thumb-box" v-for="(item, index) in searchList" :key="index" @click="selval(item)">
<view :class="[value==item[valueName]? 'item-active' : '']">
<text>{{item.pname}}-{{item[labelName]}}</text>
</view>
</view>
</scroll-view>
</view>
<view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop">
<view v-for="(item,index) in list" :key="index" class="u-tab-item"
:class="[current==index ? 'u-tab-item-active' : '']" :data-current="index"
@tap.stop="swichMenu(index)">
<text class="u-line-2">{{item[labelName]}}</text>
</view>
</scroll-view>
<block v-for="(item,index) in list" :key="index">
<scroll-view scroll-y class="right-box" v-if="current==index">
<view class="page-view">
<view class="class-item">
<view class="item-container">
<view class="thumb-box" v-for="(item1, index1) in item.childLklMccList" :key="index1"
@click="selval(item1)">
<view :class="[value==item1[valueName] ? 'item-active' : '']">
<text>{{item1[labelName]}}</text>
</view>
<!-- <u-icon v-if="value==item1[valueName]" name="checkbox-mark" :color="iconColor"
size="28">
</u-icon> -->
</view>
</view>
</view>
</view>
</scroll-view>
</block>
</view>
</view>
</template>
<script>
export default {
name: 'macclist',
props: {
//label
labelName: {
type: String,
default: 'name'
},
//value
valueName: {
type: String,
default: 'id'
},
//
selectValue: {
type: Number,
default: 0
},
//
listData: {
type: Array,
default: () => {
return [];
}
}
},
data() {
return {
list: JSON.parse(JSON.stringify(this.listData)),
scrollTop: 0, //tab
current: 0, //
menuHeight: 0, //
menuItemHeight: 0, // item
value: this.selectValue,
keyword: '',
iconColor: 'primary',
showAction: false,
searchList: [],
scrollHeight: 500
}
},
watch: {
listData: {
handler(newName, oldName) {
this.list = JSON.parse(JSON.stringify(newName))
},
deep: true,
}
},
created() {
var that = this;
uni.getSystemInfo({
success: function(res) {
let windowHeight = res.windowHeight;
let windowWidth = res.windowWidth;
//#ifdef H5
let headHeight = 110 / 750 * windowWidth;
//#endif
//#ifndef H5
let headHeight = 200 / 750 * windowWidth;
//#endif
let scrollHeight = (windowHeight - headHeight);
that.scrollHeight = scrollHeight;
}
});
},
methods: {
selval(item) {
this.value = item[this.valueName];
this.keyword = '';
this.showAction = false;
this.$emit('confirem', item);
},
//
async swichMenu(index) {
if (index == this.current) return;
this.current = index;
// 0
if (this.menuHeight == 0 || this.menuItemHeight == 0) {
await this.getElRect('menu-scroll-view', 'menuHeight');
await this.getElRect('u-tab-item', 'menuItemHeight');
}
// item
this.scrollTop = index * this.menuItemHeight + this.menuItemHeight / 2 - this.menuHeight / 2;
},
//
getElRect(elClass, dataVal) {
new Promise((resolve, reject) => {
const query = uni.createSelectorQuery().in(this);
query.select('.' + elClass).fields({
size: true
}, res => {
// resnull
if (!res) {
setTimeout(() => {
this.getElRect(elClass);
}, 10);
return;
}
this[dataVal] = res.height;
}).exec();
})
},
focus() {
this.showAction = true;
},
cancle() {
this.showAction = false;
this.keyword = '';
},
toSearch() {
let arr = [];
this.list.map((item, index) => {
item.children.map((it, ix) => {
if (it[this.labelName].indexOf(this.keyword) >= 0) {
it['pname'] = item[this.labelName];
arr.push(it);
}
})
})
this.searchList = arr;
}
}
}
</script>
<style lang="scss" scoped>
.u-wrap {
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
.head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 100rpx;
padding: 0 20rpx;
background-color: white;
}
}
.u-search-box {
padding: 0rpx 30rpx;
background-color: white;
display: flex;
flex-direction: row;
align-items: center;
height: 100rpx;
width: 100%;
}
.search-warp {
display: flex;
overflow: hidden;
background-color: #FFFFFF;
position: absolute;
z-index: 10;
top: 200rpx;
left: 0;
width: 100%;
}
.u-menu-wrap {
flex: 1;
display: flex;
overflow: hidden;
background-color: #F8F8F8;
}
.u-tab-view {
width: 300rpx;
height: 100%;
}
.u-tab-item {
height: 100rpx;
background: #f6f6f6;
box-sizing: border-box;
display: flex;
align-items: center;
font-size: 26rpx;
padding: 0 20rpx;
color: #444;
font-weight: 400;
}
.u-tab-item-active {
position: relative;
color: #333333;
font-size: 28rpx;
font-weight: 600;
background: #fff;
}
.u-tab-item-active::before {
content: "";
position: absolute;
border-left: 4px solid #ed6853;
height: 32rpx;
left: 0;
top: 39rpx;
}
.u-tab-view {
height: 100%;
}
.right-box {
background-color: white;
}
.page-view {
background-color: white;
}
.class-item {
background-color: #fff;
border-radius: 8rpx;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: #007AFF;
}
.item-container {
display: flex;
flex-direction: column;
flex: 1;
}
.item-active {
color: #ed6853;
}
.thumb-box {
display: flex;
flex-direction: row;
justify-content: space-between;
height: 100rpx;
width: 100%;
padding: 0 20rpx;
align-items: center;
font-size: 30rpx;
color: #999999;
}
</style>

@ -1,18 +1,17 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path" : "pages/welcome/welcome", "path": "pages/welcome/welcome",
"style" : "style": {
{ "navigationBarTitleText": "",
"navigationBarTitleText": "", "enablePullDownRefresh": false,
"enablePullDownRefresh": false,
"app-plus": { "app-plus": {
"titleNView": false, // "titleNView": false, //
"softinputNavBar": "none" "softinputNavBar": "none"
} }
} }
},{ }, {
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
@ -24,7 +23,7 @@
} }
} }
}, { }, {
"path": "pages/index/serviceApplicationList/serviceApplicationList", "path": "pages/index/serviceApplicationList/serviceApplicationList",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
@ -279,21 +278,32 @@
"softinputNavBar": "none" "softinputNavBar": "none"
} }
} }
},{ }, {
"path" : "pages/index/salesOrderList/salesOrderList", "path": "pages/index/salesOrderList/salesOrderList",
"style" : "style": {
{ "navigationBarTitleText": "设备订单",
"navigationBarTitleText": "设备订单", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}, {
"path": "pages/index/depositaryBank/depositaryBank",
"style": {
"navigationBarTitleText": "选择支行",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"app-plus": { "app-plus": {
"titleNView": false, // "titleNView": false, //
"softinputNavBar": "none" "softinputNavBar": "none"
} }
} }
} }
], ],
"subpackages": [{ "subpackages": [{
"root": "subPages", "root": "subPages",

@ -0,0 +1,89 @@
<template>
<view>
<!-- 搜索框 -->
<unisearchbar v-model="searchValue" class="mart20" @input="getBankList" placeholder="搜索内容" radius="100">
</unisearchbar>
<!-- 商户名字 -->
<view v-if="taryBankList == ''" class="mart60 fotct font14 fcor666">
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
</view>
<view class="width100">
<view class=" mcclist font15 fcor666" v-for="(item,index) in taryBankList" :key="index"
@click="changebank(item)">
{{item.branchBankName}}
</view>
</view>
</view>
</template>
<script>
import {
getBankList
} from '../../../Utils/Api.js';
import unisearchbar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue';
let app = getApp();
export default {
components: {
unisearchbar
},
data() {
return {
//
taryBankList: [],
searchValue: ''
}
},
onLoad() {
if (app.globalData.depositaryBank) {
this.searchValue = app.globalData.depositaryBank;
}
this.getBankList();
},
methods: {
//mcc
getBankList() {
uni.showLoading({
title: '加载中...'
})
let datas = {
regionId: app.globalData.bankareaCode,
bankName: this.searchValue
}
getBankList(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data) {
this.taryBankList = res.return_data;
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
});
},
//mcc
changebank(item) {
app.globalData.depositaryBank = item.branchBankName;
app.globalData.branchBankNo = item.branchBankNo;
app.globalData.clearNo = item.clearNo;
uni.navigateBack({})
}
}
}
</script>
<style lang="scss">
.mcclist {
width: calc(100% - 50upx);
height: 100upx;
display: flex;
align-items: center;
background-color: rgba($color: #ffffff, $alpha: 0.1);
border-bottom: 1px solid #f6f6f6;
padding: 12upx 25upx;
}
</style>

@ -1,26 +1,30 @@
<template> <template>
<view> <view>
<!-- 搜索框 --> <!-- 搜索框 -->
<unisearchbar v-model="searchValue" @input="focusInput" placeholder="搜索内容" radius="100"> <!-- <unisearchbar v-model="searchValue" @input="focusInput" placeholder="搜索内容" radius="100">
</unisearchbar> </unisearchbar> -->
<!-- 商户名字 --> <!-- 商户名字 -->
<view class="mart20 width100"> <!-- <view class="mart20 width100">
<view class=" mcclist font15 fcor666" v-for="(item,index) in mccList" :key="index" @click="changemcc(item)"> <view class=" mcclist font15 fcor666" v-for="(item,index) in mccList" :key="index" @click="changemcc(item)">
{{item.maccCode}} {{item.maccCode}}
</view> </view>
</view> </view> -->
<macclist :listData="mccList" @confirem="changemcc"></macclist>
</view> </view>
</template> </template>
<script> <script>
import unisearchbar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue'; import unisearchbar from '../../../components/uni-search-bar/components/uni-search-bar/uni-search-bar.vue';
import macclist from '../../../components/mcclist.vue';
import { import {
getLklMcc getMccList
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
components: { components: {
unisearchbar unisearchbar,
macclist
}, },
data() { data() {
return { return {
@ -28,53 +32,30 @@
searchValue: '', searchValue: '',
// //
mccList: [], mccList: [],
pageNum: 1,
pagesize: 15,
isLoadMore: false, //
} }
}, },
onLoad() { onLoad() {
this.getLklMcc(); this.getMccList();
},
onReachBottom() { //
if (!this.isLoadMore) { //
this.isLoadMore = true
this.pageNum += 1
this.getLklMcc()
}
}, },
methods: { methods: {
//mcc //mcc
getLklMcc() { getMccList() {
let params = { getMccList().then(res => {
pageNum: this.pageNum, if (res.return_code == '000000' && res.return_data) {
pageSize: this.pagesize, this.mccList = res.return_data;
name: this.searchValue
}
getLklMcc(params).then(res => {
if (res.return_code == '000000' && res.return_data.list) {
this.mccList = this.mccList.concat(res.return_data.list);
if (res.return_data.pages == this.pageNum) {
this.isLoadMore = true;
} else {
this.isLoadMore = false
}
} else {
this.isLoadMore = true
} }
}); });
}, },
// //
focusInput() { focusInput() {
this.pageNum = 1;
this.pagesize = 15;
this.mccList = []; this.mccList = [];
this.getLklMcc(); this.getMccList();
}, },
//mcc //mcc
changemcc(item){ changemcc(item) {
app.globalData.mccid = item.name; app.globalData.mccid = item.maccCode;
app.globalData.mccname = item.maccCode; app.globalData.mccname = item.name;
uni.navigateBack({}) uni.navigateBack({})
} }
} }
@ -82,13 +63,13 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.mcclist { // .mcclist {
width: calc(100% - 50upx); // width: calc(100% - 50upx);
height: 100upx; // height: 100upx;
display: flex; // display: flex;
align-items: center; // align-items: center;
background-color: rgba($color: #ffffff, $alpha: 0.1); // background-color: rgba($color: #ffffff, $alpha: 0.1);
border-bottom: 1px solid #f6f6f6; // border-bottom: 1px solid #f6f6f6;
padding: 12upx 25upx; // padding: 12upx 25upx;
} // }
</style> </style>

@ -175,7 +175,7 @@
</view> --> </view> -->
<view class="username"> <view class="username">
<view class="namecont">mcc编号</view> <view class="namecont">mcc编号</view>
<input placeholder="请选择mcc编号" v-model="mccno" style="width: 70%;" disabled="true" <input placeholder="请选择mcc编号" v-model="mccname" style="width: 70%;" disabled="true"
@click="jumpchangemcc()" placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> @click="jumpchangemcc()" placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view> </view>
@ -419,21 +419,21 @@
</picker> </picker>
<view class="width40 fotct fcor999" v-if="timetype == '2' ">长期有效</view> <view class="width40 fotct fcor999" v-if="timetype == '2' ">长期有效</view>
</view> </view>
<!-- <view class="notes font16" style="border-bottom: 0px;" v-if="lementId != 1"> <view class="notes font16" style="border-bottom: 0px;" v-if="lementId != 1">
<view class="width70 aliitem fcor666"> <view class="width70 aliitem fcor666">
结算人银行卡照片 结算人银行卡照片
</view> </view>
</view> </view>
<view class="width94 displ mart5" v-if="lementId != 1"> <view class="width94 displ mart5" v-if="lementId != 1">
<image :src="imgsUrl+settleimg" v-if="settleimg" @click="upload(4)" mode="widthFix" class="width100"> <image :src="settleimg" v-if="settleimg" @click="upload(4)" mode="widthFix" class="width100">
</image> </image>
<image src="../../../static/img/businesslic9.png" v-else @click="upload(4)" mode="widthFix" <image src="../../../static/img/businesslic9.png" v-else @click="upload(4)" mode="widthFix"
class="width100"> class="width100">
</image> </image>
</view> --> </view>
<!-- 对公结算 --> <!-- 对公结算 -->
<!-- <view class="notes font16" style="border-bottom: 0px;" v-if="lementId == 1"> <view class="notes font16" style="border-bottom: 0px;" v-if="lementId == 1">
<view class="width70 aliitem fcor666"> <view class="width70 aliitem fcor666">
开户许可证照片 开户许可证照片
</view> </view>
@ -447,32 +447,31 @@
</image> </image>
<image src="../../../static/img/businesslic11.png" mode="widthFix" class="width100" v-else <image src="../../../static/img/businesslic11.png" mode="widthFix" class="width100" v-else
@click="upload(5)"></image> @click="upload(5)"></image>
</view> --> </view>
<!-- <view class="username"> <view class="username" v-if="lementId == 1">
<view class="namecont">开户行号</view> <view class="namecont">开户持有人</view>
<input placeholder="请输入开户行号" v-model="openingbankNo" style="width: 70%;" <input placeholder="请输入开户持有人" v-model="bankName" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> -->
<!-- <view class="username">
<view class="namecont">所属支行</view>
<input placeholder="请输入所属支行" v-model="belongbranch" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> -->
<view class="username">
<view class="namecont">银行卡号</view>
<input placeholder="请输入银行卡号" v-model="bankNo" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> </view>
<view class="username">
<view class="username" v-else>
<view class="namecont">银行卡持有人</view> <view class="namecont">银行卡持有人</view>
<input placeholder="请输入银行卡持有人" v-model="bankName" style="width: 70%;" <input placeholder="请输入银行卡持有人" v-model="bankName" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> </view>
<view class="username">
<view class="namecont">所属银行</view> <view class="username" v-if="lementId == 1">
<input placeholder="请输入所属银行" v-model="belongbank" style="width: 70%;" <view class="namecont">开户账号</view>
<input placeholder="请输入开户账号" v-model="bankNo" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> </view>
<view class="username" v-else>
<view class="namecont">银行卡号</view>
<input placeholder="请输入银行卡号" v-model="bankNo" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view>
<view class="username"> <view class="username">
<view class="namecont">开户行地址</view> <view class="namecont">开户行地址</view>
<pickRegions :defaultRegion="defaultRegionCode" class="width70" @getRegion="handleBankCityCode"> <pickRegions :defaultRegion="defaultRegionCode" class="width70" @getRegion="handleBankCityCode">
@ -483,6 +482,33 @@
</pickRegions> </pickRegions>
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/jtg.png" mode="widthFix" class="iconw"></image>
</view> </view>
<view class="username">
<view class="namecont">所属支行</view>
<input placeholder="请选择或者输入所属支行" v-model="belongbranch" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
<image src="../../../static/img/jtg.png" mode="widthFix" class="iconw" @click="showdepositaryBank()">
</image>
</view>
<!-- <view class="username" v-else>
<view class="namecont">所属支行</view>
<input placeholder="请输入所属支行" v-model="belongbranch" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> -->
<!-- <view class="username">
<view class="namecont">开户行号</view>
<input placeholder="请输入开户行号" v-model="openingbankNo" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> -->
<view class="username">
<view class="namecont">所属银行</view>
<input placeholder="请输入所属银行" v-model="belongbank" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view>
<!-- <view class="notes font16" style="border-bottom: 0px;"> <!-- <view class="notes font16" style="border-bottom: 0px;">
<view class="width70 aliitem fcor666"> <view class="width70 aliitem fcor666">
电子协议 电子协议
@ -497,7 +523,7 @@
<image src="../../../static/img/businesslic12.png" mode="widthFix" class="width100" @click="upload(9)"> <image src="../../../static/img/businesslic12.png" mode="widthFix" class="width100" @click="upload(9)">
</image> </image>
</view> --> </view> -->
<!-- <view class="username"> <!-- <view class="username">
<view class="namecont">清算行号</view> <view class="namecont">清算行号</view>
<input placeholder="请输入清算行号" v-model="clearbankNo" style="width: 70%;" <input placeholder="请输入清算行号" v-model="clearbankNo" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
@ -549,26 +575,26 @@
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.settleIdCardPeriodStart}} <view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.settleIdCardPeriodStart}}
{{merDetailInfo.merSettleAcct.settleIdCardPeriodEnd}}</view> {{merDetailInfo.merSettleAcct.settleIdCardPeriodEnd}}</view>
</view> </view>
<!-- <view class="titlename fcor666" v-if="merDetailInfo.merSettleAcct.bankCardImg">结算人银行卡照片</view> <view class="titlename fcor666" v-if="merDetailInfo.merSettleAcct.bankCardImg">结算人银行卡照片</view>
<view class="width94 displ" v-if="merDetailInfo.merSettleAcct.bankCardImg"> <view class="width94 displ" v-if="merDetailInfo.merSettleAcct.bankCardImg">
<image :src="imgsUrl+merDetailInfo.merSettleAcct.bankCardImg" mode="widthFix" class="width30" <image :src="imgsUrl+merDetailInfo.merSettleAcct.bankCardImg" mode="widthFix" class="width30"
@click="perImage(imgsUrl+merDetailInfo.merSettleAcct.bankCardImg)" style="margin-left: 3%;"></image> @click="perImage(imgsUrl+merDetailInfo.merSettleAcct.bankCardImg)" style="margin-left: 3%;"></image>
</view> --> </view>
<!-- 对公结算 --> <!-- 对公结算 -->
<!-- <view class="titlename fcor666" v-if="merDetailInfo.merSettleAcct.openningBankLicenseUrl">开户许可证照片</view> <view class="titlename fcor666" v-if="merDetailInfo.merSettleAcct.openningBankLicenseUrl">开户许可证照片</view>
<view class="width94 displ" v-if="merDetailInfo.merSettleAcct.openningBankLicenseUrl"> <view class="width94 displ" v-if="merDetailInfo.merSettleAcct.openningBankLicenseUrl">
<image :src="imgsUrl+merDetailInfo.merSettleAcct.openningBankLicenseUrl" mode="widthFix" class="width30" <image :src="imgsUrl+merDetailInfo.merSettleAcct.openningBankLicenseUrl" mode="widthFix" class="width30"
@click="perImage(imgsUrl+merDetailInfo.merSettleAcct.openningBankLicenseUrl)" @click="perImage(imgsUrl+merDetailInfo.merSettleAcct.openningBankLicenseUrl)"
style="margin-left: 3%;"></image> style="margin-left: 3%;"></image>
</view> --> </view>
<!-- <view class="username"> <view class="username">
<view class="namecont">开户行号</view> <view class="namecont">开户行号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.openningBankCode}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.openningBankCode}}</view>
</view> --> </view>
<!-- <view class="username"> <view class="username">
<view class="namecont">所属支行</view> <view class="namecont">所属支行</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.openningBankName}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.openningBankName}}</view>
</view> --> </view>
<view class="username"> <view class="username">
<view class="namecont">银行卡号</view> <view class="namecont">银行卡号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.bankCardNo}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDetailInfo.merSettleAcct.bankCardNo}}</view>
@ -590,11 +616,11 @@
<!--第四步 未录入门店信息 --> <!--第四步 未录入门店信息 -->
<view class="width100 mart10 backcorfff" v-if="merchart == 4"> <view class="width100 mart10 backcorfff" v-if="merchart == 4">
<view class="username"> <!-- <view class="username">
<view class="namecont">门店账号</view> <view class="namecont">门店账号</view>
<input placeholder="请输入6-20位门店账号" maxlength="20" v-model="storeaccount" style="width: 70%;" <input placeholder="请输入6-20位门店账号" maxlength="20" v-model="storeaccount" style="width: 70%;"
placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" /> placeholder-style="color: #bfbfbf;font-size:14px;padding-top:2px;" />
</view> </view> -->
<view class="username"> <view class="username">
<view class="namecont">门店名称</view> <view class="namecont">门店名称</view>
<input placeholder="请输入门店名称" v-model="storename" style="width: 70%;" <input placeholder="请输入门店名称" v-model="storename" style="width: 70%;"
@ -728,7 +754,9 @@
configMerBasis, configMerBasis,
configMerSettlement, configMerSettlement,
configMerStore, configMerStore,
getDictionaryByCodeType getDictionaryByCodeType,
getBankCardBin,
recognizeBankAccount
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
@ -778,16 +806,18 @@
larIdCardAddress: '', // larIdCardAddress: '', //
idcardtime: '1', // times: longterm: idcardtime: '1', // times: longterm:
uncorporsettelimg: '', // uncorporsettelimg: '', //
// settleimg: '', // settleimg: '', //
uploadsettleimg: '', //
accopenperimg: '', // accopenperimg: '', //
uploadaccopenperimg: '', //
electronicProtocolimg: [], // electronicProtocolimg: [], //
// openingbankNo: '', // openingbankNo: '', //
OpenningBankCityCode: '', // OpenningBankCityCode: '', //
bankNo: '', // bankNo: '', //
bankName: '', // bankName: '', //
belongbank: '', // belongbank: '', //
// belongbranch: '', // belongbranch: '', //
// clearbankNo: '', // clearbankNo: '', //
storeaccount: '', // storeaccount: '', //
storename: '', // storename: '', //
storephone: '', // storephone: '', //
@ -804,7 +834,8 @@
cardend_date: '结束时间', // cardend_date: '结束时间', //
region: [], // region: [], //
areaCode: '', // areaCode: '', //
// mccno: '', //mcc mccno: '', //mcc
mccname: '', //mcc
defaultRegion: ['北京市', '市辖区', '东城区'], // defaultRegion: ['北京市', '市辖区', '东城区'], //
defaultRegionCode: '110101', // defaultRegionCode: '110101', //
regionName: '', regionName: '',
@ -839,22 +870,35 @@
onLoad(options) { onLoad(options) {
this.merId = options.id; this.merId = options.id;
this.getMerDetail(1); this.getMerDetail(1);
console.log('======' + this.cardstart_date);
}, },
onShow() { onShow() {
if (app.globalData.businessid) { if (app.globalData.businessid) {
this.industrycategory = app.globalData.businessname; this.industrycategory = app.globalData.businessname;
this.inducateid = app.globalData.businessid; this.inducateid = app.globalData.businessid;
} }
// if (app.globalData.mccid) { if (app.globalData.mccid) {
// this.mccno = app.globalData.mccid; this.mccno = app.globalData.mccid;
// } this.mccname = app.globalData.mccname;
}
if (app.globalData.depositaryBank) {
this.belongbranch = app.globalData.depositaryBank;
var belongbank = this.belongbranch.split('银行');
this.belongbank = belongbank[0] + '银行';
}
if (app.globalData.branchBankNo) {
this.openingbankNo = app.globalData.branchBankNo;
}
if (app.globalData.clearNo) {
this.clearbankNo = app.globalData.clearNo;
}
}, },
onUnload() { onUnload() {
app.globalData.businessid = ''; app.globalData.businessid = '';
app.globalData.businessname = ''; app.globalData.businessname = '';
app.globalData.mccid = ''; app.globalData.mccid = '';
app.globalData.mccname = ''; app.globalData.mccname = '';
app.globalData.branchBankNo = '';
app.globalData.clearNo = '';
}, },
methods: { methods: {
// //
@ -888,6 +932,7 @@
this.region = region; this.region = region;
this.bankareaCode = this.region.map(item => item.code)[2]; this.bankareaCode = this.region.map(item => item.code)[2];
this.bankregionName = this.region.map(item => item.name).join('-'); this.bankregionName = this.region.map(item => item.name).join('-');
app.globalData.bankareaCode = this.bankareaCode;
}, },
// //
showjob() { showjob() {
@ -895,6 +940,13 @@
url: '../business-category/business-category' url: '../business-category/business-category'
}) })
}, },
//
showdepositaryBank() {
app.globalData.bankareaCode = this.bankareaCode;
uni.navigateTo({
url: '/pages/index/depositaryBank/depositaryBank'
})
},
//mcc //mcc
jumpchangemcc() { jumpchangemcc() {
uni.navigateTo({ uni.navigateTo({
@ -943,7 +995,7 @@
if (type === 'start') { if (type === 'start') {
year = year - 60; year = year - 60;
} else if (type === 'end') { } else if (type === 'end') {
year = year + 2; year = year + 50;
} }
month = month > 9 ? month : '0' + month; month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day; day = day > 9 ? day : '0' + day;
@ -1029,7 +1081,7 @@
sourceType: ['camera', 'album'], sourceType: ['camera', 'album'],
success: function(res) { success: function(res) {
const tempFilePaths = res.tempFilePaths; const tempFilePaths = res.tempFilePaths;
that.uploadFile(tempFilePaths[0], item); that.uploadFile(tempFilePaths[0], item, 1);
}, },
error: function(e) { error: function(e) {
console.log(e); console.log(e);
@ -1067,7 +1119,7 @@
} }
}, },
// //
uploadFile(item, item1) { uploadFile(item, item1, item2) {
const that = this const that = this
that.translate(item, 0.2, imgURL => { that.translate(item, 0.2, imgURL => {
const uploadTask = uni.uploadFile({ const uploadTask = uni.uploadFile({
@ -1083,7 +1135,7 @@
}, },
success: function(uploadFileRes) { success: function(uploadFileRes) {
that.getImgSignedUrl(item1, JSON.parse(uploadFileRes.data) that.getImgSignedUrl(item1, JSON.parse(uploadFileRes.data)
.return_data); .return_data, item2);
} }
}); });
}) })
@ -1093,30 +1145,52 @@
this.electronicProtocolimg.splice(e, 1); this.electronicProtocolimg.splice(e, 1);
}, },
// //
getImgSignedUrl(item, item1) { getImgSignedUrl(item, item1, item2) {
let datas = { let datas = {
"fileUrl": item1 "fileUrl": item1
} }
getImgSignedUrl(datas).then(res => { getImgSignedUrl(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
if (item == 1) { if (item == 1) {
this.recognizeBusinessLicense(res.return_data); if (item2 == 1) {
this.recognizeBusinessLicense(res.return_data);
} else {
this.businimg = res.return_data;
}
this.uploadbusinimg = item1; this.uploadbusinimg = item1;
} }
if (item == 2) { if (item == 2) {
this.recognizeIdCard(1, res.return_data); if (item2 == 1) {
this.recognizeIdCard(1, res.return_data);
} else {
this.idcardposimg = res.return_data;
}
this.uploadidcardposimg = item1; this.uploadidcardposimg = item1;
} }
if (item == 3) { if (item == 3) {
this.recognizeIdCard(2, res.return_data); if (item2 == 1) {
this.recognizeIdCard(2, res.return_data);
} else {
this.idcardsideimg = res.return_data;
}
this.uploadidcardsideimg = item1; this.uploadidcardsideimg = item1;
} }
// if (item == 4) { if (item == 4) {
// that.recognizeBankCard(res.return_data); this.uploadsettleimg = item1;
// } if (item2 == 1) {
// if (item == 5) { this.recognizeBankCard(res.return_data);
// that.accopenperimg = res.return_data; } else {
// } this.settleimg = res.return_data;
}
}
if (item == 5) {
this.uploadaccopenperimg = item1;
if (item2 == 1) {
this.recognizeBankAccount(res.return_data);
} else {
this.accopenperimg = res.return_data;
}
}
if (item == 6) { if (item == 6) {
this.storeimg1 = res.return_data; this.storeimg1 = res.return_data;
this.uploadstoreimg1 = item1; this.uploadstoreimg1 = item1;
@ -1138,6 +1212,46 @@
} }
}) })
}, },
//
getBankCardBin(item) {
let datas = {
cardNo: item
}
getBankCardBin(datas).then(res => {
if (res.return_code == '000000' && res.return_data) {
this.belongbank = res.return_data.bankName;
this.bankNo = res.return_data.cardNo;
this.openingbankNo = res.return_data.bankCode;
this.belongbranch = res.return_data.bankName;
this.clearbankNo = res.return_data.clearingBankCode;
}
})
},
//
recognizeBankAccount(item) {
uni.showLoading({
title: '识别中...'
})
let datas = {
url: item
}
recognizeBankAccount(datas).then(res => {
uni.hideLoading();
this.accopenperimg = item;
if (res.return_code == '000000' && res.return_data) {
var bankAccount = JSON.parse(res.return_data.data).data;
this.bankName = bankAccount.legalRepresentative;
this.bankNo = bankAccount.bankAccount;
app.globalData.depositaryBank = bankAccount.depositaryBank;
} else {
uni.showToast({
title: '图片识别失败、请重新上传或自动填写内容。',
duration: 3000,
icon: 'none'
})
}
})
},
// //
recognizeBusinessLicense(item) { recognizeBusinessLicense(item) {
uni.showLoading({ uni.showLoading({
@ -1205,7 +1319,6 @@
this.cardstart_date = times[0]; this.cardstart_date = times[0];
this.idcardsideimg = items; this.idcardsideimg = items;
this.cardend_date = times[1]; this.cardend_date = times[1];
console.log('======' + this.idcardtime);
} else { } else {
uni.showToast({ uni.showToast({
title: '请上传身份证国徽信息', title: '请上传身份证国徽信息',
@ -1234,10 +1347,11 @@
recognizeBankCard(params).then(res => { recognizeBankCard(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000' && res.return_data) { if (res.return_code == '000000' && res.return_data) {
this.settleimg = item;
if (JSON.parse(res.return_data.data).data != undefined) { if (JSON.parse(res.return_data.data).data != undefined) {
this.bankCardlist = JSON.parse(res.return_data.data).data; this.bankCardlist = JSON.parse(res.return_data.data).data;
this.bankNo = this.bankCardlist.cardNumber; this.bankNo = this.bankCardlist.cardNumber;
// this.settleimg = item; this.getBankCardBin(this.bankNo);
this.belongbank = this.bankCardlist.bankName; this.belongbank = this.bankCardlist.bankName;
} else { } else {
uni.showToast({ uni.showToast({
@ -1334,18 +1448,27 @@
// //
if (res.return_data.merType) { if (res.return_data.merType) {
this.merchantId = res.return_data.merType; this.merchantId = res.return_data.merType;
if (res.return_data.merType == 1) {
this.merchantType = '个体商户';
}
if (res.return_data.merType == 2) {
this.merchantType = '企业商户';
}
if (res.return_data.merType == 3) {
this.merchantType = '小微商户';
}
} else { } else {
this.merchantId = 1; this.merchantId = 1;
} }
this.companyname = res.return_data.merName this.companyname = res.return_data.merName
this.merabbreviation = res.return_data.merAbbreviate; this.merabbreviation = res.return_data.merAbbreviate;
// this.mccno = res.return_data.merMccCode; this.mccno = res.return_data.merMccCode;
this.mccname = res.return_data.merMccName;
// this.businimg = res.return_data.blisUrl; // this.businimg = res.return_data.blisUrl;
// this.uploadbusinimg = res.return_data.blisUrl; // this.uploadbusinimg = res.return_data.blisUrl;
this.companyname = res.return_data.blisName; this.companyname = res.return_data.blisName;
this.businnum = res.return_data.blisNo this.businnum = res.return_data.blisNo
this.regaddress = res.return_data.blisRegAddress; this.regaddress = res.return_data.blisRegAddress;
if (res.return_data.blisPeriodStart) { if (res.return_data.blisPeriodStart) {
this.start_date = res.return_data.blisPeriodStart; this.start_date = res.return_data.blisPeriodStart;
} }
@ -1365,16 +1488,17 @@
.merRegion.cityName + '-' + res.return_data.merRegion.areaName; .merRegion.cityName + '-' + res.return_data.merRegion.areaName;
this.detailsaddress = res.return_data.merRegion.address; this.detailsaddress = res.return_data.merRegion.address;
} }
if (this.merchart == 2) { if (res.return_data && this.merchart == 2) {
this.idcardname = res.return_data.larName; this.idcardname = res.return_data.larName;
this.idcard = res.return_data.larIdCard; this.idcard = res.return_data.larIdCard;
// this.idcardposimg = res.return_data.larIdCardPortraitImg; this.larIdCardAddress = res.return_data.larIdCardAddress
// this.uploadidcardposimg = res.return_data.larIdCardPortraitImg; this.idcardposimg = res.return_data.larIdCardPortraitImg;
this.getImgSignedUrl(1, res.return_data.blisUrl); this.uploadidcardposimg = res.return_data.larIdCardPortraitImg;
this.getImgSignedUrl(2, res.return_data.larIdCardPortraitImg); this.getImgSignedUrl(1, res.return_data.blisUrl, 2);
// this.idcardsideimg = res.return_data.larIdCardNationalEmblemImg; this.getImgSignedUrl(2, res.return_data.larIdCardPortraitImg, 2);
// this.uploadidcardsideimg = res.return_data.larIdCardNationalEmblemImg; this.idcardsideimg = res.return_data.larIdCardNationalEmblemImg;
this.getImgSignedUrl(3, res.return_data.larIdCardNationalEmblemImg); this.uploadidcardsideimg = res.return_data.larIdCardNationalEmblemImg;
this.getImgSignedUrl(3, res.return_data.larIdCardNationalEmblemImg, 2);
if (res.return_data.larIdCardPeriodStart) { if (res.return_data.larIdCardPeriodStart) {
this.cardstart_date = res.return_data.larIdCardPeriodStart; this.cardstart_date = res.return_data.larIdCardPeriodStart;
} }
@ -1406,43 +1530,64 @@
this.getDictionaryByCodeType(); this.getDictionaryByCodeType();
} }
// this.settleimg = res.return_data.merSettleAcct.bankCardImg;
// this.belongbranch = res.return_data.merSettleAcct.openningBankName;
// this.openingbankNo = res.return_data.merSettleAcct.openningBankCode; if (res.return_data.merSettleAcct && this.merchart == 3) {
// this.accopenperimg = res.return_data.merSettleAcct.openningBankLicenseUrl;
// if (res.return_data.merSettleAcct.electronicPact) { this.settleimg = res.return_data.merSettleAcct.bankCardImg;
// this.electronicProtocolimg = res.return_data.merSettleAcct.electronicPact.split( this.getImgSignedUrl(4, res.return_data.merSettleAcct.bankCardImg, 2);
// ';'); this.belongbranch = res.return_data.merSettleAcct.openningBankName;
// }
// this.clearbankNo = res.return_data.merSettleAcct.clearingBankCode; this.openingbankNo = res.return_data.merSettleAcct.openningBankCode;
if (this.merchart == 3 && res.return_data.merSettleAcct) { this.accopenperimg = res.return_data.merSettleAcct.openningBankLicenseUrl;
this.getImgSignedUrl(5, res.return_data.merSettleAcct.openningBankLicenseUrl, 2);
if (res.return_data.merSettleAcct.electronicPact) {
this.electronicProtocolimg = res.return_data.merSettleAcct.electronicPact
.split(
';');
}
this.clearbankNo = res.return_data.merSettleAcct.clearingBankCode;
this.lementId = res.return_data.merSettleAcct.settleType; this.lementId = res.return_data.merSettleAcct.settleType;
if (this.lementId == 1) {
this.lementType = '对公结算';
}
if (this.lementId == 2) {
this.lementType = '对私法人结算';
}
if (this.lementId == 3) {
this.lementType = '对私非法人结算';
}
this.bankregionName = res.return_data.merSettleAcct.openningBankProvinceName +
'-' +
res.return_data
.merSettleAcct.openningBankCityName + '-' + res.return_data.merSettleAcct
.openningBankAreaName;
this.bankNo = res.return_data.merSettleAcct.bankCardNo; this.bankNo = res.return_data.merSettleAcct.bankCardNo;
this.bankName = res.return_data.merSettleAcct.bankCardHolder; this.bankName = res.return_data.merSettleAcct.bankCardHolder;
this.belongbank = res.return_data.merSettleAcct.bankName; this.belongbank = res.return_data.merSettleAcct.bankName;
this.idcardname = res.return_data.merSettleAcct.settleIdCardName; this.idcardname = res.return_data.merSettleAcct.settleIdCardName;
this.idcard = res.return_data.merSettleAcct.settleIdCardNo; this.idcard = res.return_data.merSettleAcct.settleIdCardNo;
this.idcardtime = res.return_data.merSettleAcct.settleIdPeriodType; this.idcardtime = res.return_data.merSettleAcct.settleIdPeriodType;
this.openningBankAreaCode = res.return_data.merSettleAcct.openningBankAreaCode; this.bankareaCode = res.return_data.merSettleAcct.openningBankAreaCode;
// this.idcardposimg = res.return_data.merSettleAcct.settleIdCardPortraitImg; this.idcardposimg = res.return_data.merSettleAcct.settleIdCardPortraitImg;
// this.uploadidcardposimg = res.return_data.merSettleAcct.settleIdCardPortraitImg; this.uploadidcardposimg = res.return_data.merSettleAcct.settleIdCardPortraitImg;
// this.idcardsideimg = res.return_data.merSettleAcct.settleIdCardNationalEmblemImg; this.idcardsideimg = res.return_data.merSettleAcct.settleIdCardNationalEmblemImg;
// this.uploadidcardsideimg = res.return_data.merSettleAcct.settleIdCardNationalEmblemImg; this.uploadidcardsideimg = res.return_data.merSettleAcct
this.getImgSignedUrl(2, res.return_data.merSettleAcct.settleIdCardPortraitImg); .settleIdCardNationalEmblemImg;
this.getImgSignedUrl(2, res.return_data.merSettleAcct.settleIdCardPortraitImg, 2);
this.getImgSignedUrl(3, res.return_data.merSettleAcct this.getImgSignedUrl(3, res.return_data.merSettleAcct
.settleIdCardNationalEmblemImg); .settleIdCardNationalEmblemImg, 2);
this.cardstart_date = res.return_data.merSettleAcct.settleIdCardPeriodStart; this.cardstart_date = res.return_data.merSettleAcct.settleIdCardPeriodStart;
this.cardend_date = res.return_data.merSettleAcct.settleIdCardPeriodEnd; this.cardend_date = res.return_data.merSettleAcct.settleIdCardPeriodEnd;
} }
// //
if (res.return_data.storeModel) { if (res.return_data.storeModel) {
this.storeaccount = res.return_data.storeModel.account.loginName; // this.storeaccount = res.return_data.storeModel.account.loginName;
this.storename = res.return_data.storeModel.name; this.storename = res.return_data.storeModel.name;
this.storephone = res.return_data.storeModel.telephone; this.storephone = res.return_data.storeModel.telephone;
this.getImgSignedUrl(6, res.return_data.storeModel.doorHeadImg); this.getImgSignedUrl(6, res.return_data.storeModel.doorHeadImg, 2);
this.getImgSignedUrl(7, res.return_data.storeModel.cashRegisterImg); this.getImgSignedUrl(7, res.return_data.storeModel.cashRegisterImg, 2);
this.getImgSignedUrl(8, res.return_data.storeModel.internalImg); this.getImgSignedUrl(8, res.return_data.storeModel.internalImg, 2);
} }
} else { } else {
@ -1600,14 +1745,14 @@
}); });
return; return;
} }
// if (!that.mccno) { if (!that.mccno) {
// uni.showToast({ uni.showToast({
// title: 'mcc', title: '请选择mcc编号',
// icon: "none", icon: "none",
// duration: 2000 duration: 2000
// }); });
// return; return;
// } }
// if (that.mccno.length != 4) { // if (that.mccno.length != 4) {
// uni.showToast({ // uni.showToast({
// title: 'mcc', // title: 'mcc',
@ -1703,7 +1848,7 @@
"merType": that.merchantId, "merType": that.merchantId,
"merName": that.companyname, "merName": that.companyname,
"merAbbreviate": that.merabbreviation, "merAbbreviate": that.merabbreviation,
// "merMccCode": that.mccno, "merMccCode": that.mccno,
"blisUrl": that.uploadbusinimg, "blisUrl": that.uploadbusinimg,
"blisName": that.companyname, "blisName": that.companyname,
"blisNo": that.businnum, "blisNo": that.businnum,
@ -1730,7 +1875,6 @@
configMerBasis(datas).then(res => { configMerBasis(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
that.getMerDetail(0);
that.idcardposimg = ''; that.idcardposimg = '';
that.idcardsideimg = ''; that.idcardsideimg = '';
that.uploadidcardposimg = ''; that.uploadidcardposimg = '';
@ -1739,17 +1883,14 @@
that.idcard = ''; that.idcard = '';
that.idcardtime = 1; that.idcardtime = 1;
that.cardstart_date = '开始时间'; that.cardstart_date = '开始时间';
that.cardend_date = '结束时间' that.cardend_date = '结束时间';
that.merchart = 3;
uni.showToast({ uni.showToast({
title: '提交成功', title: '提交成功',
icon: 'none', icon: 'none',
duration: 2000, duration: 2000
success() {
setTimeout(() => {
that.merchart = 3;
}, 1000);
}
}) })
that.getMerDetail(0);
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -1764,26 +1905,26 @@
// //
submitsettlement() { submitsettlement() {
let that = this; let that = this;
// if (that.lementId == 1) { if (that.lementId == 1) {
// if (!that.accopenperimg) { if (!that.accopenperimg) {
// uni.showToast({ uni.showToast({
// title: '', title: '请上传开户许可证照片',
// icon: "none", icon: "none",
// duration: 2000 duration: 2000
// }); });
// return; return;
// } }
// } }
// if (that.lementId == 2 || that.lementId == 3) { if (that.lementId == 2 || that.lementId == 3) {
// if (!that.settleimg) { if (!that.settleimg) {
// uni.showToast({ uni.showToast({
// title: '', title: '请上传银行卡照片',
// icon: "none", icon: "none",
// duration: 2000 duration: 2000
// }); });
// return; return;
// } }
// } }
// if (that.lementId == 3) { // if (that.lementId == 3) {
// if (!that.uncorporsettelimg) { // if (!that.uncorporsettelimg) {
// uni.showToast({ // uni.showToast({
@ -1855,14 +1996,14 @@
} }
} }
// if (!that.openingbankNo) { if (!that.openingbankNo) {
// uni.showToast({ uni.showToast({
// title: '', title: '请填写开户行号',
// icon: "none", icon: "none",
// duration: 2000 duration: 2000
// }); });
// return; return;
// } }
if (!that.bankareaCode) { if (!that.bankareaCode) {
uni.showToast({ uni.showToast({
@ -1904,14 +2045,14 @@
// }); // });
// return; // return;
// } // }
// if (!that.clearbankNo) { if (!that.clearbankNo) {
// uni.showToast({ uni.showToast({
// title: '', title: '请填写清算行号',
// icon: "none", icon: "none",
// duration: 2000 duration: 2000
// }); });
// return; return;
// } }
if (that.merRateList.length != that.rateCodeList.length) { if (that.merRateList.length != that.rateCodeList.length) {
uni.showToast({ uni.showToast({
title: '请完善商户费率', title: '请完善商户费率',
@ -1935,16 +2076,16 @@
let datas = { let datas = {
"merId": that.merId, "merId": that.merId,
"settleType": that.lementId, // 1 2 3, "settleType": that.lementId, // 1 2 3,
// "bankCardImg": that.settleimg, //"", "bankCardImg": that.uploadsettleimg, //"",
// "openningBankName": that.belongbranch, //"", "openningBankName": that.belongbranch, //"",
"bankCardNo": that.bankNo, //"", "bankCardNo": that.bankNo, //"",
"openningBankAreaCode": that.bankareaCode, // "openningBankAreaCode": that.bankareaCode, //
"bankCardHolder": that.bankName, //"", "bankCardHolder": that.bankName, //"",
// "openningBankCode": that.openingbankNo, //"", "openningBankCode": that.openingbankNo, //"",
"bankName": that.belongbank, //"", "bankName": that.belongbank, //"",
// "openningBankLicenseUrl": that.accopenperimg, //"", "openningBankLicenseUrl": that.uploadaccopenperimg, //"",
// "electronicPact": imgsqes, // // "electronicPact": imgsqes, //
// "clearingBankCode": that.clearbankNo, //"", "clearingBankCode": that.clearbankNo, //"",
"settleIdCardName": that.idcardname, // "settleIdCardName": that.idcardname, //
"settleIdCardNo": that.idcard, // "settleIdCardNo": that.idcard, //
"settleIdCardAddress": that.larIdCardAddress, // "settleIdCardAddress": that.larIdCardAddress, //
@ -1959,17 +2100,13 @@
configMerSettlement(datas).then(res => { configMerSettlement(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
that.getMerDetail(0); that.merchart = 4;
uni.showToast({ uni.showToast({
title: '提交成功', title: '提交成功',
icon: 'none', icon: 'none',
duration: 2000, duration: 2000
success() {
setTimeout(() => {
that.merchart = 4;
}, 1000);
}
}) })
that.getMerDetail(0);
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -1982,14 +2119,14 @@
// //
submitsotre() { submitsotre() {
let that = this; let that = this;
if (!that.storeaccount) { // if (!that.storeaccount) {
uni.showToast({ // uni.showToast({
title: '请填写门店账号', // title: '',
icon: "none", // icon: "none",
duration: 2000 // duration: 2000
}); // });
return; // return;
} // }
if (!that.storename) { if (!that.storename) {
uni.showToast({ uni.showToast({
title: '请填写门店名称', title: '请填写门店名称',
@ -2040,9 +2177,9 @@
}) })
let datas = { let datas = {
"merId": that.merId, "merId": that.merId,
"account": { // "account": {
"loginName": that.storeaccount // "loginName": that.storeaccount
}, // },
"name": that.storename, "name": that.storename,
"telephone": that.storephone, "telephone": that.storephone,
"doorHeadImg": that.uploadstoreimg1, "doorHeadImg": that.uploadstoreimg1,

@ -17,6 +17,9 @@
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
// uni.reLaunch({
// url: '../tabBar/home/home'
// })
// #ifdef H5 // #ifdef H5
let arr1 = window.location.href; let arr1 = window.location.href;
let arr2 = arr1.split('='); let arr2 = arr1.split('=');
@ -30,7 +33,7 @@
}) })
} }
} else { } else {
// openid // openid
that.jumpcdx(); that.jumpcdx();
} }
if (app.globalData.h5code) { if (app.globalData.h5code) {

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>惠支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>惠支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.65d11cca.js></script><script src=/cweb/static/js/index.65ccf64d.js></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.63b34199.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.65d11cca.js></script><script src=/cweb/static/js/index.a731bc12.js></script></body></html>
Loading…
Cancel
Save