This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-04-03 17:41:28 +08:00
parent 2b2d3891ba
commit 068b3a12df
6 changed files with 2688 additions and 2627 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,60 +1,70 @@
<template>
<view class="container_input">
<view class="container_input_item" v-for="(item, index) in platformClassification" :key="index" @click="selectItem(item)" v-if="!item.DoNotShow">
<view class="select_and_input" v-if="item.type == 'select' || item.type == 'input' || item.type == 'switch' || item.type == 'number' || item.type == 'digit'">
<view v-if="item.require" style="color: #e93323;">*</view>
<view class="container_input_item_label">
<text class="select_check" :class="{ select: item.select }" @click.stop="selectRadio(item)" v-if="Object.keys(item).indexOf('select') != -1">
<text v-if="item.select" class="iconfont">&#xe646;</text>
</text>
<text class="select_label line1">{{ item.label }}</text>
</view>
<view class="container_input_item_value greyColor" v-if="item.type == 'select'">
<text v-if="item.value" class="text">{{ item.value }}</text>
<text v-else>{{ item.holder }}</text>
<text class="iconfont">&#xe6bd;</text>
</view>
<view class="container_input_item_value" v-if="item.type == 'number'">
<input v-model="formData[item.model]" type="number" value="" :placeholder="item.holder" placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'digit'">
<input v-model="formData[item.model]" type="digit" value="" :placeholder="item.holder" placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'input'">
<input v-model="formData[item.model]" type="text" value="" :placeholder="item.holder" placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'switch'">
<switch :checked="formData[item.model] == 1" color="#E93323" style="transform:scale(0.8)" @change="switchChange($event, item)" />
</view>
</view>
<view class="radio" v-if="item.type == 'radio' || item.type == 'check'">
<view class="container_input_item_label">{{ item.label }}</view>
<view class="container_input_item_value flex_start" v-if="item.type == 'radio'">
<radio-group class="select_group" @change="radioChange($event, item)">
<label class="container_input_item_value_select" v-for="(val, i) in item.radioList" :key="val.value">
<view>
<radio :value="val.value" :checked="val.value == item.inforValue" />
</view>
<view>{{ val.name }}</view>
</label>
</radio-group>
</view>
<view class="container_input_item_value flex_start" v-if="item.type == 'check'">
<checkbox-group class="select_group" @change="checkChange($event, item)">
<label class="container_input_item_value_select" v-for="(val, i) in item.checkList" :key="val.value">
<view>
<checkbox class="chenk_list" :value="val.value" :checked="val.value == item.inforValue" />
</view>
<view>{{ val.name }}</view>
</label>
</checkbox-group>
</view>
</view>
</view>
</view>
<view class="container_input">
<view class="container_input_item" v-for="(item, index) in platformClassification" :key="index"
@click="selectItem(item)" v-if="!item.DoNotShow">
<view class="select_and_input"
v-if="item.type == 'select' || item.type == 'input' || item.type == 'switch' || item.type == 'number' || item.type == 'digit'">
<view v-if="item.require" style="color: #e93323;">*</view>
<view class="container_input_item_label">
<text class="select_check" :class="{ select: item.select }" @click.stop="selectRadio(item)"
v-if="Object.keys(item).indexOf('select') != -1">
<text v-if="item.select" class="iconfont">&#xe646;</text>
</text>
<text class="select_label line1">{{ item.label }}</text>
</view>
<view class="container_input_item_value greyColor" v-if="item.type == 'select'">
<text v-if="item.value" class="text">{{ item.value }}</text>
<text v-else>{{ item.holder }}</text>
<text class="iconfont">&#xe6bd;</text>
</view>
<view class="container_input_item_value" v-if="item.type == 'number'">
<input v-model="formData[item.model]" type="number" value="" :placeholder="item.holder"
placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'digit'">
<input v-model="formData[item.model]" type="digit" value="" :placeholder="item.holder"
placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'input'">
<input v-model="formData[item.model]" type="text" value="" :placeholder="item.holder"
placeholder-class="inputPlaceHolder" />
</view>
<view class="container_input_item_value" v-if="item.type == 'switch'">
<switch :checked="formData[item.model] == 1" color="#E93323" style="transform:scale(0.8)"
@change="switchChange($event, item)" />
</view>
</view>
<view class="radio" v-if="item.type == 'radio' || item.type == 'check'">
<view class="container_input_item_label">{{ item.label }}</view>
<view class="container_input_item_value flex_start" v-if="item.type == 'radio'">
<radio-group class="select_group" @change="radioChange($event, item)">
<label class="container_input_item_value_select" v-for="(val, i) in item.radioList"
:key="val.value">
<view>
<radio :value="val.value" :checked="val.value == item.inforValue" />
</view>
<view>{{ val.name }}</view>
</label>
</radio-group>
</view>
<view class="container_input_item_value flex_start" v-if="item.type == 'check'">
<checkbox-group class="select_group" @change="checkChange($event, item)">
<label class="container_input_item_value_select" v-for="(val, i) in item.checkList"
:key="val.value">
<view>
<checkbox class="chenk_list" :value="val.value"
:checked="val.value == item.inforValue" />
</view>
<view>{{ val.name }}</view>
</label>
</checkbox-group>
</view>
</view>
</view>
</view>
</template>
<script>
/*
/*
item参数
id:
type: select
@ -63,178 +73,190 @@
select 有此key值时可进行选择逻辑
*/
export default {
props: {
platformClassification: {
type: Array,
default() {
return [];
}
},
form: {
type: Object,
default: () => {
return {};
}
}
},
data() {
return {
value: '',
formData: this.form
};
},
watch: {
formData: {
handler(val) {
this.$emit('input',val)
},
deep: true
},
form: {
handler(val) {
this.formData = val
export default {
props: {
platformClassification: {
type: Array,
default () {
return [];
}
},
deep: true
form: {
type: Object,
default: () => {
return {};
}
}
},
data() {
return {
value: '',
formData: this.form
};
},
watch: {
formData: {
handler(val) {
this.$emit('input', val)
},
deep: true
},
form: {
handler(val) {
this.formData = val;
//
this.formData.price = '';
this.formData.stock = '';
},
deep: true
}
},
created() {
this.platformClassification.forEach(item => {
if (item.inforValue) {
this.$emit('formInitData', item.inforValue, item.model);
}
});
},
methods: {
selectItem(item) {
if (item.jumpLogic) {
//
this.$emit('handleJumpLogic', item);
return;
}
this.$emit('handleSelectItem', item);
},
radioChange(e, item) {
this.$emit('radioChange', e.detail.value, item);
},
// switch
switchChange(e, item) {
this.$emit('switchChange', e.detail.value, item);
},
//
//
selectRadio(item) {
item.select = !item.select;
},
//
checkChange(e, item) {
this.$emit('checkChange', e.detail.value, item);
}
}
},
created() {
this.platformClassification.forEach(item => {
if(item.inforValue) {
this.$emit('formInitData', item.inforValue, item.model);
}
});
},
methods: {
selectItem(item) {
if(item.jumpLogic) {
//
this.$emit('handleJumpLogic', item);
return;
}
this.$emit('handleSelectItem', item);
},
radioChange(e, item) {
this.$emit('radioChange', e.detail.value, item);
},
// switch
switchChange(e, item) {
this.$emit('switchChange', e.detail.value, item);
},
//
//
selectRadio(item) {
item.select = !item.select;
},
//
checkChange(e, item) {
this.$emit('checkChange', e.detail.value, item);
}
}
};
};
</script>
<style lang="scss" scoped>
.container_input {
background: #fff;
padding: 0 20rpx;
width: 710rpx;
margin: auto;
margin-top: 31rpx;
border-radius: 10rpx;
&_item {
.select_and_input {
height: 106rpx;
display: flex;
align-items: center;
justify-content: space-between;
.greyColor {
color: #bbbbbb;
}
}
.container_input {
background: #fff;
padding: 0 20rpx;
width: 710rpx;
margin: auto;
margin-top: 31rpx;
border-radius: 10rpx;
.radio {
padding: 30rpx 0;
}
&_item {
.select_and_input {
height: 106rpx;
display: flex;
align-items: center;
justify-content: space-between;
&_label {
padding-left: 10rpx;
color: #333333;
font-size: 30rpx;
display: flex;
align-items: center;
.select_label{
max-width: 520rpx;
}
.select_check {
display: flex;
align-items: center;
justify-content: center;
width: 40rpx;
height: 40rpx;
border: 1px solid #cccccc;
border-radius: 50%;
margin-right: 20rpx;
.greyColor {
color: #bbbbbb;
}
}
.iconfont {
font-size: 24rpx;
}
}
.radio {
padding: 30rpx 0;
}
.select {
background: #e93323;
border: none;
.iconfont {
color: #fff;
}
}
}
&_value {
padding-right: 10rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
&_label {
padding-left: 10rpx;
color: #333333;
font-size: 30rpx;
display: flex;
align-items: center;
> span:nth-child(1) {
display: inline-block;
margin-right: 15rpx;
}
.text {
color: #000;
display: inline-block;
max-width: 400rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.select_label {
max-width: 520rpx;
}
input {
text-align: right;
}
.select_check {
display: flex;
align-items: center;
justify-content: center;
width: 40rpx;
height: 40rpx;
border: 1px solid #cccccc;
border-radius: 50%;
margin-right: 20rpx;
.select_group {
display: flex;
}
.iconfont {
font-size: 24rpx;
}
}
&_select {
display: flex;
margin-right: 110rpx;
}
}
.select {
background: #e93323;
border: none;
.flex_start {
padding: 0 10rpx;
margin-top: 40rpx;
justify-content: flex-start;
}
}
> view:not(:last-child) {
border-bottom: 1px solid #eeeeee;
}
}
.iconfont {
color: #fff;
}
}
}
.inputPlaceHolder {
color: #bbbbbb;
}
</style>
&_value {
padding-right: 10rpx;
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
>span:nth-child(1) {
display: inline-block;
margin-right: 15rpx;
}
.text {
color: #000;
display: inline-block;
max-width: 400rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
input {
text-align: right;
}
.select_group {
display: flex;
}
&_select {
display: flex;
margin-right: 110rpx;
}
}
.flex_start {
padding: 0 10rpx;
margin-top: 40rpx;
justify-content: flex-start;
}
}
>view:not(:last-child) {
border-bottom: 1px solid #eeeeee;
}
}
.inputPlaceHolder {
color: #bbbbbb;
}
</style>

View File

@ -1,306 +1,312 @@
<template>
<view class="area_container">
<view class="area_container_title">
<navigator :url="`/pages/product/storeClassification/index?mer_id=${mer_id}`" hover-class="none"
class="manage_btn">管理</navigator>
<view class="area_container_title_name">选择店铺分类</view>
<view class="area_container_title_close" @click="close"><text class="iconfont">&#xe62f;</text></view>
</view>
<view class="area_container_content">
<view class="selectList_con">
<view class="selectList_con_item" v-for="(item, index) in selectList" :key="index">
<text>{{ item.cate_name }}</text>
<text class="iconfont" @click="delSelectItem(item, index)">&#xe62f;</text>
</view>
</view>
<view class="selectList_tap">
<view class="selectList_tap_item" v-for="(item, index) in tapList" :key="index"
@click="selectTapItem(item, index)" :class="{ selectTap: selectTap == item.value }">
{{ item.cate_name }}
</view>
<view class="selectList_tap_item" @click="selectTapLastItem(-1)" v-if="isShowLastItem"
:class="{ selectTap: selectTap == -1 }">请选择</view>
</view>
<view class="selectList_area">
<scroll-view scroll-y="true" class="scroll">
<view v-for="(item, index) in areaList" :key="index" class="selectList_area_item">
<view class="selectList_area_item_name" @click="selectArea(item)">{{ item.cate_name }}</view>
<view @click="handlyAddSelect(item)" v-if="!item.children"><text class="iconfont">&#xe70e;</text></view>
</view>
</scroll-view>
</view>
<view class="handle">
<view class="handle_button" @click="handleGetSelectArea">确定</view>
</view>
</view>
</view>
<view class="area_container">
<view class="area_container_title">
<navigator :url="`/pages/product/storeClassification/index?mer_id=${mer_id}`" hover-class="none"
class="manage_btn">新增分类</navigator>
<view class="area_container_title_name">选择店铺分类</view>
<view class="area_container_title_close" @click="close"><text class="iconfont">&#xe62f;</text></view>
</view>
<view class="area_container_content">
<view class="selectList_con">
<view class="selectList_con_item" v-for="(item, index) in selectList" :key="index">
<text>{{ item.cate_name }}</text>
<text class="iconfont" @click="delSelectItem(item, index)">&#xe62f;</text>
</view>
</view>
<view class="selectList_tap">
<view class="selectList_tap_item" v-for="(item, index) in tapList" :key="index"
@click="selectTapItem(item, index)" :class="{ selectTap: selectTap == item.value }">
{{ item.cate_name }}
</view>
<view class="selectList_tap_item" @click="selectTapLastItem(-1)" v-if="isShowLastItem"
:class="{ selectTap: selectTap == -1 }">请选择</view>
</view>
<view class="selectList_area">
<scroll-view scroll-y="true" class="scroll">
<view v-for="(item, index) in areaList" :key="index" class="selectList_area_item">
<view class="selectList_area_item_name" @click="selectArea(item)">{{ item.cate_name }}</view>
<view @click="handlyAddSelect(item)" v-if="!item.children"><text
class="iconfont">&#xe70e;</text></view>
</view>
</scroll-view>
</view>
<view class="handle">
<view class="handle_button" @click="handleGetSelectArea">确定</view>
</view>
</view>
</view>
</template>
<script>
import { serialize, Toast } from '@/libs/uniApi.js';
export default {
props: {
allReadySelect: {
type: Array,
default: () => {
return []
}
},
classifiedData: {
type: Array,
default: () => {
return []
}
},
mer_id: {
type: Number || String,
default: 0
}
},
data() {
return {
selectList: [],
selectTap: -1,
selectTapIndex: -1, //
tapList: [],
isShowLastItem: true, //
areaList: []
};
},
watch: {
classifiedData: {
handler(val) {
this.areaList = this.classifiedData
},
deep: true
}
},
created() {
this.areaList = serialize(this.classifiedData);
},
methods: {
import {
serialize,
Toast
} from '@/libs/uniApi.js';
export default {
props: {
allReadySelect: {
type: Array,
default: () => {
return []
}
},
classifiedData: {
type: Array,
default: () => {
return []
}
},
mer_id: {
type: Number || String,
default: 0
}
},
data() {
return {
selectList: [],
selectTap: -1,
selectTapIndex: -1, //
tapList: [],
isShowLastItem: true, //
areaList: []
};
},
watch: {
classifiedData: {
handler(val) {
this.areaList = this.classifiedData
},
deep: true
}
},
created() {
this.areaList = serialize(this.classifiedData);
},
methods: {
//
async selectArea(item) {
//
async selectArea(item) {
//
if (!(item.children && item.children.length)) {
// Toast('');
return;
if (this.isShowLastItem) {
this.tapList.push(item);
} else {
this.tapList.splice(this.tapList.length - 1, 1, item);
}
this.isShowLastItem = false;
return;
}
// console.log(item);
// titletitleitem
if (this.selectTapIndex > -1) {
this.tapList.splice(this.selectTapIndex, 999);
this.areaList = item.children;
this.tapList.push(item);
this.isShowLastItem = true;
this.selectTap = -1;
this.selectTapIndex = -1;
return;
}
//
if (!(item.children && item.children.length)) {
// Toast('');
return;
if (this.isShowLastItem) {
this.tapList.push(item);
} else {
this.tapList.splice(this.tapList.length - 1, 1, item);
}
this.isShowLastItem = false;
return;
}
// titletitleitem
if (this.selectTapIndex > -1) {
this.tapList.splice(this.selectTapIndex, 999);
this.areaList = item.children;
this.tapList.push(item);
this.isShowLastItem = true;
this.selectTap = -1;
this.selectTapIndex = -1;
return;
}
//
if (item.children && item.children.length) {
this.areaList = item.children;
this.tapList.push(item);
this.isShowLastItem = true;
this.selectTap = -1;
return;
}
//
if (item.children && item.children.length) {
this.areaList = item.children;
this.tapList.push(item);
this.isShowLastItem = true;
this.selectTap = -1;
return;
}
},
// tap
async selectTapItem(item, index) {
if (index == 0) {
this.areaList = serialize(this.classifiedData);
this.selectTap = item.value; //
this.selectTapIndex = index; //
return;
}
this.selectTap = item.value;
this.areaList = item.children;
},
//
selectTapLastItem(val) {
this.selectTap = -1;
if (!this.tapList.length) {
// this.areaList = val.children;
this.areaList = serialize(this.classifiedData);
return;
}
},
// tap
async selectTapItem(item, index) {
if (index == 0) {
this.areaList = serialize(this.classifiedData);
this.selectTap = item.value; //
this.selectTapIndex = index; //
return;
}
this.selectTap = item.value;
this.areaList = item.children;
},
//
selectTapLastItem(val) {
this.selectTap = -1;
if (!this.tapList.length) {
// this.areaList = val.children;
this.areaList = serialize(this.classifiedData);
return;
}
this.areaList = this.tapList[this.tapList.length - 1].children;
},
this.areaList = this.tapList[this.tapList.length - 1].children;
},
//
handlyAddSelect(item) {
if (this.selectList.some(val => val.value == item.value)) {
Toast('已经选择过了')
return
}
//
handlyAddSelect(item) {
if (this.selectList.some(val => val.value == item.value)) {
Toast('已经选择过了')
return
}
if (this.selectTapIndex > -1) {
this.tapList.splice(this.selectTapIndex, 999);
}
if (!item.parent_id) {
this.selectList.push(item);
return;
}
let str = '';
str =
serialize(this.tapList)
.map(val => val.name)
.join('/') +
'/' +
item.name;
this.selectList.push({ ...item, name: str });
},
//
delSelectItem(item, index) {
this.selectList.splice(index, 1);
},
if (this.selectTapIndex > -1) {
this.tapList.splice(this.selectTapIndex, 999);
}
if (!item.parent_id) {
this.selectList.push(item);
return;
}
let str = '';
str =
serialize(this.tapList)
.map(val => val.name)
.join('/') +
'/' +
item.name;
this.selectList.push({
...item,
name: str
});
},
//
delSelectItem(item, index) {
this.selectList.splice(index, 1);
},
//
handleGetSelectArea() {
this.$emit('handleGetSelectArea', this.selectList);
},
close() {
this.$emit('close');
},
//
handleGetSelectArea() {
this.$emit('handleGetSelectArea', this.selectList);
},
close() {
this.$emit('close');
},
//
unique(arr) {
var obj = {};
return arr.filter(ele => {
if (!obj[ele]) {
obj[ele] = true;
return true;
}
});
}
}
};
//
unique(arr) {
var obj = {};
return arr.filter(ele => {
if (!obj[ele]) {
obj[ele] = true;
return true;
}
});
}
}
};
</script>
<style lang="scss" scoped>
.area_container {
background: #fff;
border-radius: 16px 16px 0px 0px;
.area_container {
background: #fff;
border-radius: 16px 16px 0px 0px;
&_title {
text-align: center;
padding: 36rpx 30rpx 46rpx 0;
position: relative;
&_title {
text-align: center;
padding: 36rpx 30rpx 46rpx 0;
position: relative;
&_close {
position: absolute;
top: 20rpx;
right: 20rpx;
}
&_close {
position: absolute;
top: 20rpx;
right: 20rpx;
}
.manage_btn {
font-weight: normal;
color: #e93323;
font-size: 24rpx;
position: absolute;
left: 30rpx;
top: 40rpx;
}
}
.manage_btn {
font-weight: normal;
color: #e93323;
font-size: 24rpx;
position: absolute;
left: 30rpx;
top: 40rpx;
}
}
&_content {
padding: 0 30rpx;
&_content {
padding: 0 30rpx;
.selectList_con {
display: flex;
flex-wrap: wrap;
margin-bottom: 50rpx;
.selectList_con {
display: flex;
flex-wrap: wrap;
margin-bottom: 50rpx;
&_item {
padding: 3rpx 10rpx;
background: #fff6f5;
color: #e93323;
margin-right: 20rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
font-size: 22rpx;
&_item {
padding: 3rpx 10rpx;
background: #fff6f5;
color: #e93323;
margin-right: 20rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
font-size: 22rpx;
>span:nth-child(1) {
display: inline-block;
margin-right: 14rpx;
white-space: nowrap;
}
>span:nth-child(1) {
display: inline-block;
margin-right: 14rpx;
white-space: nowrap;
}
.iconfont {
font-size: 24rpx;
}
}
}
.iconfont {
font-size: 24rpx;
}
}
}
.selectList_tap {
border-bottom: 1px solid #eeeeee;
display: flex;
.selectList_tap {
border-bottom: 1px solid #eeeeee;
display: flex;
&_item {
font-size: 28rpx;
margin-right: 60rpx;
white-space: nowrap;
}
&_item {
font-size: 28rpx;
margin-right: 60rpx;
white-space: nowrap;
}
.selectTap {
color: #e93323;
border-bottom: 3rpx solid #e93323;
padding-bottom: 21rpx;
}
}
.selectTap {
color: #e93323;
border-bottom: 3rpx solid #e93323;
padding-bottom: 21rpx;
}
}
.selectList_area {
.scroll {
height: 597rpx;
}
.selectList_area {
.scroll {
height: 597rpx;
}
.selectList_area_item {
padding: 40rpx 0;
display: flex;
justify-content: space-between;
font-size: 28rpx;
.selectList_area_item {
padding: 40rpx 0;
display: flex;
justify-content: space-between;
font-size: 28rpx;
.iconfont {
color: #e93323;
font-size: 40rpx;
}
.iconfont {
color: #e93323;
font-size: 40rpx;
}
.selectList_area_item_name {
flex: 0.7;
}
}
}
.selectList_area_item_name {
flex: 0.7;
}
}
}
.handle {
height: 126rpx;
.handle {
height: 126rpx;
&_button {
width: 690rpx;
height: 86rpx;
background: #e93323;
border-radius: 43rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #fff;
}
}
}
}
&_button {
width: 690rpx;
height: 86rpx;
background: #e93323;
border-radius: 43rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #fff;
}
}
}
}
</style>

View File

@ -83,7 +83,7 @@
</view>
<!-- 相关凭证 -->
<view class="withdrawal-envidence">
<!-- <view class="withdrawal-envidence">
<view class="withdrawal-envidence">
<text class="withdrawal-envidence-main">请上传相关凭证</text>
<text class="withdrawal-envidence-sub">(图片格式支持JPGPNGJPEG)</text>
@ -102,9 +102,11 @@
<text>上传凭证</text>
</view>
</view>
</view>
</view> -->
<view style="color: #FE2121;font-size:24rpx;margin-top: 20rpx;">
锁定规则为连续输入超过3次后或当日总次数超过10次后锁定恢复规则分为12时后恢复和次日0时恢复锁定期间建议不要重复提交绑定否则锁定时间会相应延长
锁定规则错误输入超 3 次后锁定<br>
恢复规则12 时后或次日 0 时恢复<br>
温馨提示锁定期间勿重复提交绑定否则锁定时间延长
</view>
</view>
@ -148,7 +150,9 @@
</view>
</view>
<view style="color: #FE2121;font-size:24rpx;margin-top: 20rpx;">
锁定规则为连续输入超过3次后或当日总次数超过10次后锁定恢复规则分为12时后恢复和次日0时恢复锁定期间建议不要重复提交绑定否则锁定时间会相应延长
锁定规则错误输入超 3 次后锁定<br>
恢复规则12 时后或次日 0 时恢复<br>
温馨提示锁定期间勿重复提交绑定否则锁定时间延长
</view>
</view>
</view>
@ -265,9 +269,9 @@
Object.assign(this.bindForm, res.data.financial_account);
this.bindForm.id = res.data.id;
this.mer_id = this.bindForm.mer_id;
if (this.bindForm.is_own === 0 && this.bindForm.financial_img) {
this.$set(this.bindForm, 'temp', this.bindForm.financial_img.split(","));
}
// if (this.bindForm.is_own === 0 && this.bindForm.financial_img) {
// this.$set(this.bindForm, 'temp', this.bindForm.financial_img.split(","));
// }
}
})
},
@ -336,10 +340,10 @@
//
if (this.bindForm.is_own === 0) {
if (!this.bindForm.temp.length > 0) return this.$util.Tips({
title: '请上传凭证!'
});
this.bindForm.financial_img = this.bindForm.temp.join(",");
// if (!this.bindForm.temp.length > 0) return this.$util.Tips({
// title: ''
// });
// this.bindForm.financial_img = this.bindForm.temp.join(",");
if (!uni.$u.test.idCard(this.bindForm.id_card)) return this.$util.Tips({
title: '请输入正确的身份证号!'

View File

@ -60,7 +60,7 @@
<!-- 协议 -->
<view class="withdrawal-pro">
<text class="withdrawal-pro-txt" @click="handlePreview">企业授权法人提现书</text>
<!-- <text class="withdrawal-pro-txt" @click="handlePreview">企业授权法人提现书</text> -->
<text class="withdrawal-pro-progress" @click="viewProgress">查看审核进度</text>
</view>
@ -122,15 +122,16 @@
</view>
<!-- 提现btn -->
<view class="withdrawal-btn tapActive" @click="handleSubmit">
<view class="withdrawal-btn tapActive" @click="handleSubmit" v-if="bankList.length != 0">
<view class="withdrawal-btn-wrap">
<text v-if="bankList.length == 0">点击查看审核进度</text>
<text v-else>点击提现</text>
<!-- <text v-if="bankList.length == 0">点击查看审核进度</text> -->
<text>点击提现</text>
</view>
</view>
<!-- 明细按钮 -->
<view class="saomaCode" @click="navigator(`/pages/users/gather_list/index?mer_id=${mer_id}`)">明细</view>
<view class="saomaCode" @click="navigator(`/pages/users/gather_list/index?mer_id=${mer_id}`)"
v-if="bankList.length != 0">明细</view>
<!-- 提现提示 -->
<u-modal :show="tipShow" title="提示"
@ -189,8 +190,6 @@
this.getBankInfo();
//
this.userInfo = JSON.parse(this.$Cache.get("USER_INFO"));
console.log(this.userInfo.mer_info.is_company)
},
methods: {
@ -202,15 +201,15 @@
},
//
handlePreview() {
let that = this;
if (this.bankInfo && this.bankInfo.financial_account.financial_img) {
uni.previewImage({
urls: that.bankInfo.financial_account.financial_img.split(','),
current: 0
})
}
},
// handlePreview() {
// let that = this;
// if (this.bankInfo && this.bankInfo.financial_account.financial_img) {
// uni.previewImage({
// urls: that.bankInfo.financial_account.financial_img.split(','),
// current: 0
// })
// }
// },
//
handleToAdd() {