This commit is contained in:
parent
2b2d3891ba
commit
068b3a12df
|
@ -14,11 +14,11 @@
|
|||
<view class="top">
|
||||
<view class="pictrue">
|
||||
<!-- <easy-loadimage mode="widthFix" :image-src="item.image"></easy-loadimage> -->
|
||||
<image class="img" :src="item.image||defaultImageSRC" :lazy-load="true" @click="clickImg(item, 1, 0)"></image>
|
||||
<image class="img" :src="item.image||defaultImageSRC" :lazy-load="true"></image>
|
||||
<view class="swiper">
|
||||
<image :src="item.slider_image[0]||defaultImageSRC" :lazy-load="true" @click="clickImg(item, 2, 0)"></image>
|
||||
<image :src="item.slider_image[1]||defaultImageSRC" :lazy-load="true" @click="clickImg(item, 2, 1)"></image>
|
||||
<image :src="item.slider_image[2]||defaultImageSRC" :lazy-load="true" @click="clickImg(item, 2, 2)"></image>
|
||||
<image :src="item.slider_image[0]||defaultImageSRC" :lazy-load="true"></image>
|
||||
<image :src="item.slider_image[1]||defaultImageSRC" :lazy-load="true"></image>
|
||||
<image :src="item.slider_image[2]||defaultImageSRC" :lazy-load="true"></image>
|
||||
</view>
|
||||
<view v-if="item.update" class="btn" @click="updateItemImage(item)">保存修改</view>
|
||||
</view>
|
||||
|
@ -87,7 +87,9 @@
|
|||
<view>刷新: 3次</view>
|
||||
</view>
|
||||
<view class="img-list">
|
||||
<image class="img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png" v-for="item in 6" :key="item"></image>
|
||||
<image class="img"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png"
|
||||
v-for="item in 6" :key="item"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card">
|
||||
|
@ -95,7 +97,9 @@
|
|||
<view class="text">请选择产品图片:</view>
|
||||
</view>
|
||||
<view class="img-list img-list2">
|
||||
<image class="img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png" v-for="item in 2" :key="item"></image>
|
||||
<image class="img"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png"
|
||||
v-for="item in 2" :key="item"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card">
|
||||
|
@ -103,7 +107,9 @@
|
|||
<view class="text">请选择产品图片:</view>
|
||||
</view>
|
||||
<view class="img-list">
|
||||
<image class="img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png" v-for="item in 3" :key="item"></image>
|
||||
<image class="img"
|
||||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png"
|
||||
v-for="item in 3" :key="item"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -138,11 +144,13 @@
|
|||
<view style="text-align: center;font-weight: bold;">完善商品信息</view>
|
||||
<view style="display: flex;align-items: center;margin-top: 16rpx;">
|
||||
<view style="margin-right: 20rpx;">名称:</view>
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.store_name" class="putGoods" placeholder="请输入商品名称">
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.store_name" class="putGoods"
|
||||
placeholder="请输入商品名称">
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;margin-top: 16rpx;">
|
||||
<view style="margin-right: 20rpx;">价格:</view>
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.price" class="putGoods" :placeholder="`请输入商品价格`">
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.price" class="putGoods"
|
||||
:placeholder="`请输入商品价格`">
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;margin-top: 16rpx;">
|
||||
<view style="margin-right: 20rpx;">库存:</view>
|
||||
|
@ -154,7 +162,8 @@
|
|||
</view>
|
||||
<view v-if="showPutGoodsInput.trademark" style="display: flex;align-items: center;margin-top: 16rpx;">
|
||||
<view style="margin-right: 20rpx;">品牌:</view>
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.trademark" class="putGoods" placeholder="请输入商品品牌">
|
||||
<input style="flex: 1;" type="text" v-model="putGoods.trademark" class="putGoods"
|
||||
placeholder="请输入商品品牌">
|
||||
</view>
|
||||
<view class="search_goods_btn">
|
||||
<view class="cancel edit_btn" @click="addGoodsclose()">取消</view>
|
||||
|
@ -171,7 +180,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-modal :show="showModel" title="提示" content="没有找到该商品,是否手动添加?" show-cancel-button @cancel="showModel = false" @confirm="navToAdd"></u-modal>
|
||||
<u-modal :show="showModel" title="提示" content="没有找到该商品,是否手动添加?" show-cancel-button @cancel="showModel = false"
|
||||
@confirm="navToAdd"></u-modal>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
@ -204,8 +214,7 @@
|
|||
data() {
|
||||
return {
|
||||
pageType: 1, // 当前页面显示的类型, 1为商品列表, 2为手动选择图片进行添加
|
||||
goodsData: [
|
||||
{
|
||||
goodsData: [{
|
||||
name: '搜索名称入库',
|
||||
type: 1,
|
||||
// src: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/mingcheng.png'
|
||||
|
@ -314,8 +323,7 @@
|
|||
if (item[key] == null || item[key] == undefined || item[key] == '') {
|
||||
this.showPutGoodsInput[key] = true;
|
||||
this.putGoods[key] = '';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.showPutGoodsInput[key] = false;
|
||||
this.putGoods[key] = item[key];
|
||||
}
|
||||
|
@ -541,8 +549,7 @@
|
|||
console.log('导入出错', err);
|
||||
this.addGoodsShow = false;
|
||||
});
|
||||
}
|
||||
else micro_product_import(this.putGoods).then(e => {
|
||||
} else micro_product_import(this.putGoods).then(e => {
|
||||
console.log('导入错误', e);
|
||||
if (e.status == 200) {
|
||||
Toast(e.data.msg)
|
||||
|
@ -712,7 +719,8 @@
|
|||
},
|
||||
navToAdd() {
|
||||
let url;
|
||||
if(this.showModelCode) url = `/pages/product/addGood/addGood?mer_id=${this.mer_id}&code=${this.showModelCode}`;
|
||||
if (this.showModelCode) url =
|
||||
`/pages/product/addGood/addGood?mer_id=${this.mer_id}&code=${this.showModelCode}`;
|
||||
else url = `/pages/product/addGood/addGood?mer_id=${this.mer_id}`;
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
|
@ -726,7 +734,8 @@
|
|||
const data = getStorage('addGoodsFormData');
|
||||
if (data && data.product_id) {
|
||||
let waitDeleteData = ['addGoodsFormData', 'singleSpecification', 'attrValue', 'modifyPriceData',
|
||||
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'];
|
||||
'addGoodsSecoundData', 'goodsDis', 'editGoodsDetils'
|
||||
];
|
||||
waitDeleteData.forEach(item => {
|
||||
if (getStorage(item)) {
|
||||
removeStorage(item);
|
||||
|
@ -821,12 +830,15 @@
|
|||
.select_item1 {
|
||||
background: linear-gradient(to right, #ffba00, #ff9000) !important;
|
||||
}
|
||||
|
||||
.select_item2 {
|
||||
background: linear-gradient(to right, #459eff, #0a60ff) !important;
|
||||
}
|
||||
|
||||
.select_item3 {
|
||||
background: linear-gradient(to right, #ff7245, #ff3f02) !important;
|
||||
}
|
||||
|
||||
.select_item4 {
|
||||
background: linear-gradient(to right, #2be45d, #02bb34) !important;
|
||||
}
|
||||
|
@ -1301,6 +1313,7 @@
|
|||
|
||||
.list-box-put {
|
||||
padding-bottom: 30rpx;
|
||||
|
||||
.item {
|
||||
width: 694rpx;
|
||||
margin: 0 auto;
|
||||
|
@ -1330,6 +1343,7 @@
|
|||
height: 60rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
font-size: 24rpx;
|
||||
margin: 0 auto;
|
||||
|
@ -1346,6 +1360,7 @@
|
|||
|
||||
.text-info {
|
||||
flex: 1;
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
|
||||
|
@ -1407,16 +1422,19 @@
|
|||
background-color: #fff;
|
||||
padding: 20rpx;
|
||||
border-radius: 14rpx;
|
||||
|
||||
.card-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.img-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.img {
|
||||
width: 210rpx;
|
||||
height: 210rpx;
|
||||
|
@ -1425,13 +1443,14 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.img-list2 {
|
||||
justify-content: left;
|
||||
|
||||
.img {
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
|
@ -8,8 +8,8 @@
|
|||
placeholder-class="inputPlaceHolder" />
|
||||
</view>
|
||||
<view class="input_content_textarea">
|
||||
<textarea v-model="setFormData.store_name" placeholder="请输入商品名称" placeholder-class="placeholderStyle"
|
||||
maxlength="60" />
|
||||
<textarea v-model="setFormData.store_name" placeholder="请输入商品名称"
|
||||
placeholder-class="placeholderStyle" maxlength="60" />
|
||||
<view class="flex" style="justify-content: space-between;color: #999999;">
|
||||
<view>(品牌,名称,规格,口味)</view>
|
||||
<view>
|
||||
|
@ -21,13 +21,15 @@
|
|||
<view class="photo_count">
|
||||
<text class="photo_size" style="color: #e93323;">建议:图片尺寸为750*750px, 上传2张以上</text>
|
||||
<view class="input_content_photo">
|
||||
<view class="input_content_photo_adPh" v-for="(item, index) in setFormData.imageList" :key="index">
|
||||
<view class="input_content_photo_adPh" v-for="(item, index) in setFormData.imageList"
|
||||
:key="index">
|
||||
<image :src="item" class="myimg2 photos" @click="pop(item)"></image>
|
||||
<view class="input_content_photo_adPh_jiao" @click="deleteImage(index)">
|
||||
<image src="../static/images/close.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="setFormData.imageList.length < 9" class="input_content_photo_adPh addBtn" @click="clk">
|
||||
<view v-if="setFormData.imageList.length < 9" class="input_content_photo_adPh addBtn"
|
||||
@click="clk">
|
||||
<view>
|
||||
<image src="../static/images/creamer.png" mode="widthFix"></image>
|
||||
</view>
|
||||
|
@ -35,15 +37,16 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup ref="select_popup" class="pop" :show="show" mode="center" closeOnClickOverlay bgColor='transparent'>
|
||||
<u-popup ref="select_popup" class="pop" :show="show" mode="center" closeOnClickOverlay
|
||||
bgColor='transparent'>
|
||||
<image :src="image"></image>
|
||||
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
|
||||
</u-popup>
|
||||
</view>
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<commodityComponent ref="commodityRef" v-if="showCommodity" :key="showCommodity" :showCommodity="showCommodity"
|
||||
:product_id="product_id" :merId="merId" :code="code">
|
||||
<commodityComponent ref="commodityRef" v-if="showCommodity" :key="showCommodity"
|
||||
:showCommodity="showCommodity" :product_id="product_id" :merId="merId" :code="code">
|
||||
</commodityComponent>
|
||||
|
||||
<view class="popup_group">
|
||||
|
@ -80,7 +83,8 @@
|
|||
|
||||
<!-- 选择平台分类弹框 -->
|
||||
<uni-popup ref="select_platform" type="bottom">
|
||||
<platfrom @close="closePlatfrom" :classifiedData="platformClassificationData" @getPlatData="getPlatData">
|
||||
<platfrom @close="closePlatfrom" :classifiedData="platformClassificationData"
|
||||
@getPlatData="getPlatData">
|
||||
</platfrom>
|
||||
</uni-popup>
|
||||
<!-- 选择店铺分类弹框 -->
|
||||
|
@ -98,14 +102,15 @@
|
|||
<view class="popup_group_item_label">商品规格</view>
|
||||
<view class="popup_group_item_value">
|
||||
<view class="popup_group_item_message">
|
||||
<span class="popup_group_item_message_value">{{ setFormData.spec_type==0?'单规格':'多规格' }}</span>
|
||||
<span
|
||||
class="popup_group_item_message_value">{{ setFormData.spec_type==0?'单规格':'多规格' }}</span>
|
||||
</view>
|
||||
<view><span class="iconfont"></span></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-modal :show="showSpecType" title="温馨提示" content="切换后商品原有规格将失效,是否继续?" show-cancel-button confirm-text="继续"
|
||||
@confirm="changeSpecType2" @cancel="showSpecType=false"></u-modal>
|
||||
<u-modal :show="showSpecType" title="温馨提示" content="切换后商品原有规格将失效,是否继续?" show-cancel-button
|
||||
confirm-text="继续" @confirm="changeSpecType2" @cancel="showSpecType=false"></u-modal>
|
||||
</picker>
|
||||
<priceComponent v-if="setFormData.spec_type==0" :datas="setFormData.attrValue[0]" ref="priceRef"
|
||||
:product_id="product_id" :bar_code="code" @updateCode="updateCode">
|
||||
|
@ -139,8 +144,8 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="input_content_describe_textarea">
|
||||
<textarea v-model="setFormData.store_info" style="width: 100%;" value="" placeholder="请填写商品简介"
|
||||
placeholderClass="placeholderClass" maxlength="200" />
|
||||
<textarea v-model="setFormData.store_info" style="width: 100%;" value=""
|
||||
placeholder="请填写商品简介" placeholderClass="placeholderClass" maxlength="200" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -162,7 +167,8 @@
|
|||
<checkbox-group class="select_group flex_start" @change="changeDelivery">
|
||||
<label class="radio_select" v-for="(val, i) in deliveryFreeList" :key="val.value">
|
||||
<view>
|
||||
<checkbox :value="val.value" :checked="setFormData.delivery_way.includes(val.value+'')" />
|
||||
<checkbox :value="val.value"
|
||||
:checked="setFormData.delivery_way.includes(val.value+'')" />
|
||||
</view>
|
||||
<view>{{ val.name }}</view>
|
||||
</label>
|
||||
|
@ -285,7 +291,7 @@
|
|||
// if (!opt.product_id) this.showCommodity = true;
|
||||
this.showCommodity = true;
|
||||
this.initData();
|
||||
this.initClasiffy();
|
||||
|
||||
if (this.import == 1) {
|
||||
this.getOpenerEventChannel().once('importAttrValue', (e) => {
|
||||
this.attrValue = e.attrValue;
|
||||
|
@ -315,6 +321,7 @@
|
|||
},
|
||||
onBackPress() {},
|
||||
onShow() {
|
||||
this.initClasiffy();
|
||||
// this.setFormData = Object.assign(this.setFormData, {
|
||||
// "store_name": "方法",
|
||||
// "imageList": [
|
||||
|
@ -398,13 +405,15 @@
|
|||
};
|
||||
productDetail(this.merId, this.product_id).then(async (res) => {
|
||||
this.showCommodity = true;
|
||||
if (res.data.content_arr&&res.data.content_arr.length > 0) res.data.content = res.data.content_arr;
|
||||
if (res.data.content_arr && res.data.content_arr.length > 0) res.data.content = res.data
|
||||
.content_arr;
|
||||
let editGoodsDetils = res.data;
|
||||
Object.keys(this.setFormData).forEach(item => {
|
||||
this.setFormData[item] = editGoodsDetils[item];
|
||||
});
|
||||
this.setFormData.product_id = this.product_id;
|
||||
this.setFormData.imageList = [...(this.setFormData.image ? [this.setFormData.image] : []), ...
|
||||
this.setFormData.imageList = [...(this.setFormData.image ? [this.setFormData.image] : []),
|
||||
...
|
||||
this
|
||||
.setFormData.slider_image
|
||||
];
|
||||
|
@ -412,8 +421,10 @@
|
|||
this.setFormData.mer_cate_name = editGoodsDetils.merCateId ? editGoodsDetils.merCateId.map(
|
||||
item => item
|
||||
.category && item.category.cate_name).join(',') : '';
|
||||
this.setFormData.brand_name = editGoodsDetils.brand ? editGoodsDetils.brand.brand_name : '';
|
||||
if (res.data.content && typeof res.data.content == 'string') res.data.content = JSON.parse(res.data
|
||||
this.setFormData.brand_name = editGoodsDetils.brand ? editGoodsDetils.brand.brand_name :
|
||||
'';
|
||||
if (res.data.content && typeof res.data.content == 'string') res.data.content = JSON.parse(
|
||||
res.data
|
||||
.content);
|
||||
this.setFormData.once_min_count <= 0 ? this.setFormData.once_min_count = '' : null;
|
||||
this.setFormData.delivery_way = res.data.delivery_way;
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
<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 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 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"></text>
|
||||
</text>
|
||||
<text class="select_label line1">{{ item.label }}</text>
|
||||
|
@ -15,23 +18,28 @@
|
|||
<text class="iconfont"></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" />
|
||||
<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" />
|
||||
<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" />
|
||||
<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)" />
|
||||
<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">
|
||||
<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>
|
||||
|
@ -41,9 +49,11 @@
|
|||
</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">
|
||||
<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" />
|
||||
<checkbox class="chenk_list" :value="val.value"
|
||||
:checked="val.value == item.inforValue" />
|
||||
</view>
|
||||
<view>{{ val.name }}</view>
|
||||
</label>
|
||||
|
@ -93,7 +103,11 @@ export default {
|
|||
},
|
||||
form: {
|
||||
handler(val) {
|
||||
this.formData = val
|
||||
this.formData = val;
|
||||
|
||||
// 需求方要求为空 直接输入 不需要默认值
|
||||
this.formData.price = '';
|
||||
this.formData.stock = '';
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
|
@ -142,12 +156,14 @@ export default {
|
|||
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;
|
||||
}
|
||||
|
@ -163,9 +179,11 @@ export default {
|
|||
font-size: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.select_label {
|
||||
max-width: 520rpx;
|
||||
}
|
||||
|
||||
.select_check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -184,11 +202,13 @@ export default {
|
|||
.select {
|
||||
background: #e93323;
|
||||
border: none;
|
||||
|
||||
.iconfont {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&_value {
|
||||
padding-right: 10rpx;
|
||||
flex: 1;
|
||||
|
@ -200,6 +220,7 @@ export default {
|
|||
display: inline-block;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
|
@ -229,6 +250,7 @@ export default {
|
|||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
>view:not(:last-child) {
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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>
|
||||
class="manage_btn">新增分类</navigator>
|
||||
<view class="area_container_title_name">选择店铺分类</view>
|
||||
<view class="area_container_title_close" @click="close"><text class="iconfont"></text></view>
|
||||
</view>
|
||||
|
@ -25,7 +25,8 @@
|
|||
<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"></text></view>
|
||||
<view @click="handlyAddSelect(item)" v-if="!item.children"><text
|
||||
class="iconfont"></text></view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
@ -37,7 +38,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { serialize, Toast } from '@/libs/uniApi.js';
|
||||
import {
|
||||
serialize,
|
||||
Toast
|
||||
} from '@/libs/uniApi.js';
|
||||
export default {
|
||||
props: {
|
||||
allReadySelect: {
|
||||
|
@ -95,7 +99,6 @@
|
|||
this.isShowLastItem = false;
|
||||
return;
|
||||
}
|
||||
// console.log(item);
|
||||
// 如果title被选中,选择子项时,删除后面所有title——item
|
||||
if (this.selectTapIndex > -1) {
|
||||
this.tapList.splice(this.selectTapIndex, 999);
|
||||
|
@ -162,7 +165,10 @@
|
|||
.join('/') +
|
||||
'/' +
|
||||
item.name;
|
||||
this.selectList.push({ ...item, name: str });
|
||||
this.selectList.push({
|
||||
...item,
|
||||
name: str
|
||||
});
|
||||
},
|
||||
// 删除所选地址
|
||||
delSelectItem(item, index) {
|
||||
|
|
|
@ -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">(图片格式支持JPG、PNG、JPEG)</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: '请输入正确的身份证号!'
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue