This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-04-10 17:05:24 +08:00
parent 64b7a52d22
commit 1f13c5daf4
8 changed files with 1022 additions and 878 deletions

View File

@ -427,6 +427,11 @@
@import 'static/css/style.scss'; @import 'static/css/style.scss';
//
* {
scrollbar-color: #e5e5e500 #f7f7f9 !important;
}
view { view {
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -9,8 +9,8 @@ let httpApiThree
let wsApi let wsApi
// 在打包之前请检查当前环境是否正确 // 在打包之前请检查当前环境是否正确
// const env = 'dev'; // 开发 const env = 'dev'; // 开发
const env = 'prod'; // 生产 // const env = 'prod'; // 生产
// const env = 'prew'; // 预上线 // const env = 'prew'; // 预上线
switch (env) { switch (env) {

View File

@ -211,7 +211,6 @@
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
</view> </view>
</template> </template>
@ -252,9 +251,6 @@
this.mer_id = user.service.mer_id; this.mer_id = user.service.mer_id;
this.getSubsidy(); this.getSubsidy();
this.getSubsidyRecord(); this.getSubsidyRecord();
// this.$nextTick(res=>{
// this.$refs.pupRef.open();
// })
}, },
onShow() {}, onShow() {},
methods: { methods: {

View File

@ -117,9 +117,10 @@
获取地址 获取地址
</view> </view>
</view> --> </view> -->
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>提货点营业日期:</view> <view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>提货点营业日期:</view>
<view class="week_box"> <view class="week_box">
<view class="week_item" v-for="(item,index) in dateWeek" :key="index" @click="sel(item,index)"> <view class="week_item" v-for="(item,index) in dateWeek" :key="index" @click="sel(index)">
<view class="date_week" :class="item.isCheck ? 'date_week_a' : ''"> <view class="date_week" :class="item.isCheck ? 'date_week_a' : ''">
{{ item.name }} {{ item.name }}
</view> </view>
@ -284,7 +285,6 @@
id: 7, id: 7,
isCheck: true isCheck: true
}], }],
selarr: [1, 2, 3, 4, 5, 6, 7],
mer_take_time: ['08:00', '18:00'], mer_take_time: ['08:00', '18:00'],
beginTimeShow: false, beginTimeShow: false,
overTimeShow: false, overTimeShow: false,
@ -340,15 +340,19 @@
this.takeName = res.data.mer_take_name this.takeName = res.data.mer_take_name
this.takePhone = res.data.mer_take_phone this.takePhone = res.data.mer_take_phone
this.detailSite = res.data.mer_take_address this.detailSite = res.data.mer_take_address
// this.servicePhone = res.data.service_phone
this.servicePhone = res.data.mer_phone; this.servicePhone = res.data.mer_phone;
res.data.mer_take_location ? this.longLati = res.data.mer_take_location?.join(',') : null; res.data.mer_take_location ? this.longLati = res.data.mer_take_location?.join(',') : null;
res.data.mer_take_day && res.data.mer_take_day.forEach((item, i) => {
this.dateWeek[Number(item) - 1].isCheck = true
})
this.selarr = res.data.mer_take_day; //
if (res.data.mer_take_day && res.data.mer_take_day.length > 0) {
this.dateWeek.forEach(item => {
let day = res.data.mer_take_day.find(i => i == item.id);
if (day) item.isCheck = true;
else item.isCheck = false;
})
}
this.type_code = res.data.type_code this.type_code = res.data.type_code
this.mer_take_time = res.data.mer_take_time this.mer_take_time = res.data.mer_take_time
this.intro = res.data.mer_info this.intro = res.data.mer_info
@ -385,20 +389,13 @@
// //
change(e) { change(e) {
this.credit_buy = e this.credit_buy = e
console.log(e);
}, },
// //
sel(item, i) { sel(i) {
if (item.isCheck == false) { this.dateWeek[i].isCheck = !this.dateWeek[i].isCheck;
item.isCheck = true;
this.selarr.push(String(item.id));
} else {
item.isCheck = false;
this.selarr = this.selarr.filter(id => {
return id != item.id
})
}
}, },
postMerchantUpdata() { postMerchantUpdata() {
uni.showModal({ uni.showModal({
title: '确定提交吗', title: '确定提交吗',
@ -432,7 +429,7 @@
lat: this.latitude, lat: this.latitude,
long: this.longitude, long: this.longitude,
mer_take_location: [this.latitude, this.longitude], // mer_take_location: [this.latitude, this.longitude], //
mer_take_day: this.selarr, // mer_take_day: [], //
mer_take_time: this.mer_take_time, // mer_take_time: this.mer_take_time, //
mer_info: this.intro, mer_info: this.intro,
mer_keyword: this.cruxText, mer_keyword: this.cruxText,
@ -446,35 +443,27 @@
settle_cycle: this.settle_cycle, settle_cycle: this.settle_cycle,
interest_rate: this.interest_rate interest_rate: this.interest_rate
} }
//
this.dateWeek.map(i => {
if (i.isCheck) {
data.mer_take_day.push(i.id)
}
})
merchantUpdateAPI(data).then(res => { merchantUpdateAPI(data).then(res => {
Toast(res.message) Toast(res.message)
setTimeout(() => { setTimeout(() => {
// uni.switchTab({ uni.navigateBack();
// url: '/pages/moreProject/moreProject',
// fail: (err) => {
// // console.log('err', err);
// }
// });
// uni.navigateTo({
// url:'/pages/moreProject/moreProject'
// })
// uni.redirectTo({
// url: '/pages/moreProject/moreProject'
// })
uni.navigateBack({
delta: 1
});
}, 1000) }, 1000)
}).catch(err => { }).catch(err => {
Toast(err) Toast(err)
}) })
}, },
selfLocation() {
selfLocation() {
uni.getLocation({ uni.getLocation({
type: 'wgs84', type: 'wgs84',
success: (res) => { success: (res) => {
// console.log(res);
this.latitude = res.latitude.toString(); this.latitude = res.latitude.toString();
this.longitude = res.longitude.toString(); this.longitude = res.longitude.toString();
this.longLati = `${res.latitude},${res.longitude}` this.longLati = `${res.latitude},${res.longitude}`
@ -488,34 +477,8 @@
seleckImage(i) { seleckImage(i) {
let that = this; let that = this;
that.$util.uploadImageOne('upload/image', function(res) { that.$util.uploadImageOne('upload/image', function(res) {
// console.log(res)
that.images[i].img = res.data.path that.images[i].img = res.data.path
}); });
// let that = this
// uni.chooseImage({
// count: 1,
// sizeType: ['original', 'compressed'],
// sourceType: ['album', 'camera'],
// success: function(res) {
// uni.showLoading({
// title: '...'
// })
// console.log(res.tempFilePaths[0],'22222222');
// uploads(res.tempFilePaths[0], 'img').then(res => {
// console.log(res,'3333');
// that.images[i].img = res
// uni.hideLoading()
// }).catch(err => {
// Toast('')
// uni.hideLoading()
// })
// },
// fail: function(err) {
// Toast('')
// }
// });
}, },
seleckImageArr() { seleckImageArr() {
let that = this; let that = this;
@ -556,7 +519,6 @@
navTo(url) { navTo(url) {
if (url == '/pages/select_address/select_address_n') { if (url == '/pages/select_address/select_address_n') {
uni.$once('changeAddress', (res) => { uni.$once('changeAddress', (res) => {
// console.log('', res);
this.mer_address = res.formatted_addresses.recommend; this.mer_address = res.formatted_addresses.recommend;
this.latitude = res.latitude; this.latitude = res.latitude;
this.longitude = res.longitude; this.longitude = res.longitude;
@ -570,8 +532,7 @@
}, },
onPullDownRefresh() { onPullDownRefresh() {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, }
} }
</script> </script>

View File

@ -5,25 +5,21 @@
<view class="title_search"> <view class="title_search">
<span class="iconfont">&#xe67d;</span> <span class="iconfont">&#xe67d;</span>
<form @submit="search" report-submit="true"> <form @submit="search" report-submit="true">
<input type="text" :name="where.keyword" v-model="where.keyword" placeholder="搜索商品" confirm-type='search'/> <input type="text" :name="where.keyword" v-model="where.keyword" placeholder="搜索商品"
confirm-type='search' />
</form> </form>
</view> </view>
</view> </view>
<view class="longTab"> <view class="longTab">
<scroll-view scroll-x="true" style="white-space: nowrap; display: flex;" scroll-with-animation class="menu" :scroll-left="tabLeft" show-scrollbar="true"> <scroll-view scroll-x="true" style="white-space: nowrap; display: flex;" scroll-with-animation
<view class="menu" :scroll-left="tabLeft" show-scrollbar="true">
class="longItem" <view class="longItem" :style="'width:' + isWidth + 'px'" :data-index="index"
:style="'width:' + isWidth + 'px'" :class="index === tabClick ? 'click' : ''" v-for="(item, index) in menuList" :key="index"
:data-index="index" :id="'id' + index" @click="selectMenu(item, index)">
:class="index === tabClick ? 'click' : ''"
v-for="(item, index) in menuList"
:key="index"
:id="'id' + index"
@click="selectMenu(item, index)"
>
{{ item.name }} {{ item.name }}
</view> </view>
<view v-if="menuList.length" class="underlineBox" :style="'transform:translateX(' + isLeft + 'px);width:' + isWidth + 'px'"> <view v-if="menuList.length" class="underlineBox"
:style="'transform:translateX(' + isLeft + 'px);width:' + isWidth + 'px'">
<view class="underline bg-color-white"></view> <view class="underline bg-color-white"></view>
</view> </view>
</scroll-view> </scroll-view>
@ -46,26 +42,35 @@
</view> </view>
<view class="shop_list_item_shop_con_price"> <view class="shop_list_item_shop_con_price">
<block v-if="mer_info.type_code=='TypeSupplyChain'"> <block v-if="mer_info.type_code=='TypeSupplyChain'">
<block v-if="item.attrValue[0]"> <block v-if="item.attrValue[0]">
<text class='price font-color'>{{item.attrValue[0].wholesale_price}}</text> <text class='price font-color'>{{item.attrValue[0].wholesale_price}}</text>
<text class='ot_price'>零售价{{item.attrValue[0].price}}</text> <text class='ot_price'>零售价{{item.attrValue[0].price}}</text>
</block> </block>
<text v-else class='ot_price'>商品规格错误</text> <text v-else class='ot_price'>商品规格错误</text>
</block> </block>
<text v-else class='price font-color'>{{item.price}}</text> <text v-else class='price font-color'>{{item.price}}</text>
</view> </view>
</view> </view>
</view> </view>
<view class="shop_list_item_handle"> <view class="shop_list_item_handle">
<view v-if="item.is_show == 1 && item.status == 1 && type != 5" class="shop_button" @click="upperShelfAndLowerShelf(item, index)">下架</view> <view v-if="item.is_show == 1 && item.status == 1 && type != 5" class="shop_button"
<view v-if="item.is_show == 0 && item.status == 1 && type != 5" class="shop_button" @click="upperShelfAndLowerShelf(item, index)">上架</view> @click="upperShelfAndLowerShelf(item, index)">下架</view>
<view class="shop_button" v-if="type != 1 && type != 3" @click="handleDelete(item, index)">删除</view> <view v-if="item.is_show == 0 && item.status == 1 && type != 5" class="shop_button"
@click="upperShelfAndLowerShelf(item, index)">上架</view>
<view class="shop_button" v-if="type != 1 && type != 3" @click="handleDelete(item, index)">
删除</view>
<view class="shop_button" v-if="type == 5" @click="reduction(item, index)">恢复</view> <view class="shop_button" v-if="type == 5" @click="reduction(item, index)">恢复</view>
<block v-if="type != 5"> <block v-if="type != 5">
<navigator v-if="mer_info.type_code=='PersonalStore'" :url="`/pages/product/addGood/addGood_one?mer_id=${merId}&product_id=${item.product_id}`" class="shop_button" hover-class="none">编辑</navigator> <navigator v-if="mer_info.type_code=='PersonalStore'"
<navigator v-else-if="mer_info.type_code=='TypeSupplyChain'" :url="`/pages/product/addGood/addGood_supply?mer_id=${merId}&product_id=${item.product_id}`" class="shop_button" hover-class="none">编辑</navigator> :url="`/pages/product/addGood/addGood_one?mer_id=${merId}&product_id=${item.product_id}`"
<navigator v-else :url="`/pages/product/addGood/addGood?mer_id=${merId}&product_id=${item.product_id}`" class="shop_button" hover-class="none">编辑</navigator> class="shop_button" hover-class="none">编辑</navigator>
</block> <navigator v-else-if="mer_info.type_code=='TypeSupplyChain'"
:url="`/pages/product/addGood/addGood_supply?mer_id=${merId}&product_id=${item.product_id}`"
class="shop_button" hover-class="none">编辑</navigator>
<navigator v-else
:url="`/pages/product/addGood/addGood?mer_id=${merId}&product_id=${item.product_id}`"
class="shop_button" hover-class="none">编辑</navigator>
</block>
</view> </view>
</view> </view>
</view> </view>
@ -76,159 +81,182 @@
</template> </template>
<script> <script>
import {
productLstApi,
productTitle,
productDeleteApi,
productOffApi,
productRestore,
productDestory
} from 'api/product.js';
import { productLstApi, productTitle, productDeleteApi, productOffApi, productRestore, productDestory } from 'api/product.js'; import Loading from '@/components/Loading/index.vue';
import Loading from '@/components/Loading/index.vue'; import {
Toast,
Modal,
navigateTo,
getStorage,
removeStorage
} from 'libs/uniApi.js';
import { Toast, Modal, navigateTo,getStorage, removeStorage } from 'libs/uniApi.js'; export default {
components: {
export default { Loading
components: { },
Loading data() {
}, return {
data() { type: 1,
return { tabClick: 0,
type: 1, tabLeft: 0,
tabClick: 0, isLeft: 0, //线
tabLeft: 0, isWidth: 0, //
isLeft: 0, //线 childIndex: 0,
isWidth: 0, // menuList: [],
childIndex: 0, merId: '',
menuList: [], mer_info: {},
merId: '', shopList: [],
mer_info: {}, loaded: false,
shopList: [], loading: false,
loaded: false, where: {
loading: false, page: 1,
where: { limit: 15,
page: 1, keyword: '',
limit: 15,
keyword: '',
},
canNotReade: true
};
},
created() {
var that = this;
//
uni.getSystemInfo({
success(e) {
that.isWidth = e.windowWidth / 5;
}
});
},
onLoad(opt) {
let user = this.$store.state.app.userInfo;
if(typeof user == 'string') user = JSON.parse(user);
this.mer_info = user.mer_info;
this.merId = opt.mer_id;
this.getProductTitle();
this.$set(this, 'type', opt.type ? Number(opt.type) : 1);
this.initData();
},
onShow() {},
//
onReachBottom() {
this.initData();
},
methods: {
initData() {
var that = this;
if (that.loading || that.loaded) return;
that.loading = true;
productLstApi(this.merId, { ...this.where, type: this.type }).then(
res => {
that.loading = false;
that.loaded = res.data.list.length < that.where.limit;
that.shopList.push.apply(that.shopList, res.data.list);
that.where.page = that.where.page + 1;
}, },
error => {
that.$util.Tips({ canNotReade: true
title: error.msg };
}); },
created() {
var that = this;
//
uni.getSystemInfo({
success(e) {
that.isWidth = e.windowWidth / 5;
} }
);
},
search(){
let that = this;
that.loading = that.loaded = false;
that.where.page = 1;
that.shopList = [];
that.initData();
},
//
getProductTitle() {
productTitle(this.merId).then(res => {
this.menuList = res.data;
let clickIndex = 1;
this.menuList.forEach((item, index) => {
if (item.type == this.type) {
clickIndex = index;
}
});
this.setMenuLeft(clickIndex);
}); });
}, },
//
selectMenu(item, index) { onLoad(opt) {
this.type = item.type; let user = this.$store.state.app.userInfo;
this.loading = this.loaded = false; if (typeof user == 'string') user = JSON.parse(user);
this.where.page = 1; this.mer_info = user.mer_info;
this.shopList = []; this.merId = opt.mer_id;
this.setMenuLeft(index); this.getProductTitle();
}, this.$set(this, 'type', opt.type ? Number(opt.type) : 1);
/*导航栏移动位置*/
setMenuLeft(index) {
this.childIndex = 0;
if (this.menuList.length > 5) {
var tempIndex = index - 2;
tempIndex = tempIndex <= 0 ? 0 : tempIndex;
let tabLeft = (index - 2) * this.isWidth; //线
this.$nextTick(function() {
this.$set(this, 'tabLeft', tabLeft);
});
}
this.tabClick = index; //
this.isLeft = index * this.isWidth; //线
this.initData(); this.initData();
}, },
// onShow() {},
reduction(item, index) { //
Modal('温馨提示', `商品"${item.store_name}",将被还原,请问是否继续`).then(() => { onReachBottom() {
productRestore(this.merId, item.product_id).then(res => { this.initData();
this.$util.Tips({ title: res.message, icon: 'success' }); },
this.shopList.splice(index, 1); methods: {
initData() {
var that = this;
if (that.loading || that.loaded) return;
that.loading = true;
productLstApi(this.merId, {
...this.where,
type: this.type
}).then(
res => {
that.loading = false;
that.loaded = res.data.list.length < that.where.limit;
that.shopList.push.apply(that.shopList, res.data.list);
that.where.page = that.where.page + 1;
},
error => {
that.$util.Tips({
title: error.msg
});
}
);
},
search() {
let that = this;
that.loading = that.loaded = false;
that.where.page = 1;
that.shopList = [];
that.initData();
},
//
getProductTitle() {
productTitle(this.merId).then(res => {
this.menuList = res.data;
let clickIndex = 1;
this.menuList.forEach((item, index) => {
if (item.type == this.type) {
clickIndex = index;
}
});
this.setMenuLeft(clickIndex);
}); });
}); },
}, //
editGoods(item) { selectMenu(item, index) {
// console.log(item); this.type = item.type;
let waitDeleteData = [ this.loading = this.loaded = false;
'addGoodsFormData', this.where.page = 1;
'singleSpecification', this.shopList = [];
'attrValue', this.setMenuLeft(index);
'modifyPriceData', },
'addGoodsSecoundData', /*导航栏移动位置*/
'goodsDis', setMenuLeft(index) {
'editGoodsDetils', this.childIndex = 0;
'canChange', if (this.menuList.length > 5) {
'canChangeSecound' var tempIndex = index - 2;
]; tempIndex = tempIndex <= 0 ? 0 : tempIndex;
waitDeleteData.forEach(item => { let tabLeft = (index - 2) * this.isWidth; //线
if (getStorage(item)) { this.$nextTick(function() {
removeStorage(item); this.$set(this, 'tabLeft', tabLeft);
});
} }
}); this.tabClick = index; //
navigateTo(1, '/pages/product/addGood/addGood', { mer_id: this.merId, type: 'edit', product_id: item.product_id, type: 'edit' }); this.isLeft = index * this.isWidth; //线
}, this.initData();
// },
handleDelete(item, index) { //
item.is_del == 1 reduction(item, index) {
? Modal('温馨提示', `商品"${item.store_name}"将被删除,请问是否继续?`).then(res => { Modal('温馨提示', `商品"${item.store_name}",将被还原,请问是否继续`).then(() => {
productRestore(this.merId, item.product_id).then(res => {
this.$util.Tips({
title: res.message,
icon: 'success'
});
this.shopList.splice(index, 1);
});
});
},
editGoods(item) {
// console.log(item);
let waitDeleteData = [
'addGoodsFormData',
'singleSpecification',
'attrValue',
'modifyPriceData',
'addGoodsSecoundData',
'goodsDis',
'editGoodsDetils',
'canChange',
'canChangeSecound'
];
waitDeleteData.forEach(item => {
if (getStorage(item)) {
removeStorage(item);
}
});
navigateTo(1, '/pages/product/addGood/addGood', {
mer_id: this.merId,
type: 'edit',
product_id: item.product_id,
type: 'edit'
});
},
//
handleDelete(item, index) {
item.is_del == 1 ?
Modal('温馨提示', `商品"${item.store_name}"将被删除,请问是否继续?`).then(res => {
productDestory(this.merId, item.product_id) productDestory(this.merId, item.product_id)
.then(res => { .then(res => {
this.shopList.splice(index, 1); this.shopList.splice(index, 1);
@ -237,8 +265,8 @@ export default {
.catch(rej => { .catch(rej => {
Toast(`${rej}`); Toast(`${rej}`);
}); });
}) }) :
: Modal('温馨提示', `商品"${item.store_name}"将被加入回收站,请问是否继续?`).then(res => { Modal('温馨提示', `商品"${item.store_name}"将被加入回收站,请问是否继续?`).then(res => {
productDeleteApi(this.merId, item.product_id) productDeleteApi(this.merId, item.product_id)
.then(res => { .then(res => {
this.shopList.splice(index, 1); this.shopList.splice(index, 1);
@ -247,218 +275,244 @@ export default {
.catch(rej => { .catch(rej => {
Toast(`${rej}, 加入回收站失败`); Toast(`${rej}, 加入回收站失败`);
}); });
});
},
//
upperShelfAndLowerShelf(obj, index) {
let status = obj.is_show == 1 ? 0 : 1;
productOffApi(this.merId, obj.product_id, { status: status })
.then(res => {
this.$util.Tips({ title: res.message, icon: 'success' });
this.shopList.splice(index, 1);
})
.catch(err => {
return this.$util.Tips({
title: err
}); });
}); },
}, //
handleMethod(item, obj, index) { upperShelfAndLowerShelf(obj, index) {
if (item.id == 1) { let status = obj.is_show == 1 ? 0 : 1;
this.upperShelfAndLowerShelf(obj, index); productOffApi(this.merId, obj.product_id, {
return; status: status
} })
if (item.id == 2) { .then(res => {
this.addToRecycleBin(obj, index); this.$util.Tips({
return; title: res.message,
icon: 'success'
});
this.shopList.splice(index, 1);
})
.catch(err => {
return this.$util.Tips({
title: err
});
});
},
handleMethod(item, obj, index) {
if (item.id == 1) {
this.upperShelfAndLowerShelf(obj, index);
return;
}
if (item.id == 2) {
this.addToRecycleBin(obj, index);
return;
}
} }
} }
} };
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import './scss/index.scss'; @import './scss/index.scss';
.longTab {
display: flex;
width: 100%;
/* #ifdef H5 */
padding-bottom: 20rpx;
/* #endif */
/* #ifdef MP */
padding-top: 12rpx;
padding-bottom: 12rpx;
/* #endif */
.longItem {
height: 50upx;
display: inline-block;
line-height: 50upx;
text-align: center;
font-size: 30rpx;
color: #282828;
max-width: 160rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
overflow-x: scroll;
overflow-y: hidden;
/*解决ios上滑动不流畅*/
-webkit-overflow-scrolling: touch;
&.click { .longTab {
font-weight: bold; display: flex;
width: 100%;
/* #ifdef H5 */
padding-bottom: 20rpx;
/* #endif */
/* #ifdef MP */
padding-top: 12rpx;
padding-bottom: 12rpx;
/* #endif */
.longItem {
height: 50upx;
display: inline-block;
line-height: 50upx;
text-align: center;
font-size: 30rpx; font-size: 30rpx;
color: #e93323; color: #282828;
max-width: 160rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
overflow-x: scroll;
overflow-y: hidden;
/*解决ios上滑动不流畅*/
-webkit-overflow-scrolling: touch;
&.click {
font-weight: bold;
font-size: 30rpx;
color: #e93323;
.underline {
opacity: 1;
}
}
}
.underlineBox {
height: 3px;
width: 20%;
display: flex;
align-content: center;
justify-content: center;
transition: 0.5s;
.underline { .underline {
opacity: 1; width: 60rpx;
height: 4rpx;
background-color: #e93323;
} }
} }
} }
.underlineBox { .title_search {
height: 3px; background: #f5f5f5;
width: 20%; border-radius: 30rpx;
display: flex; height: 60rpx;
align-content: center; padding-left: 60rpx;
justify-content: center; position: relative;
transition: 0.5s;
.underline { .iconfont {
width: 60rpx; position: absolute;
height: 4rpx; top: 50%;
background-color: #e93323; margin-top: -14rpx;
left: 30rpx;
font-size: 28rpx;
}
input {
height: 60rpx;
font-size: 26rpx;
margin-left: 20rpx;
} }
} }
}
.title_search {
background: #f5f5f5;
border-radius: 30rpx;
height: 60rpx;
padding-left: 60rpx;
position: relative;
.iconfont {
position: absolute;
top: 50%;
margin-top: -14rpx;
left: 30rpx;
font-size: 28rpx;
}
input {
height: 60rpx;
font-size: 26rpx;
margin-left: 20rpx;
}
}
.shop_button {
margin-left: 18rpx;
padding: 0 34rpx;
height: 60rpx;
border: 1px solid #c7c7c7;
border-radius: 30px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
font-size: 26rpx;
color: #999999;
}
.shop_list {
margin-top: 20rpx;
padding: 0 20rpx;
&_item { .shop_button {
padding: 30rpx; margin-left: 18rpx;
background: #ffffff; padding: 0 34rpx;
border-radius: 10px; height: 60rpx;
margin-bottom: 20rpx; border: 1px solid #c7c7c7;
&_shop { border-radius: 30px;
display: flex; display: flex;
&_image, align-items: center;
uni-image { justify-content: center;
width: 150rpx; margin-top: 30rpx;
height: 150rpx; font-size: 26rpx;
border-radius: 16rpx; color: #999999;
position: relative; }
image {
.shop_list {
margin-top: 20rpx;
padding: 0 20rpx;
&_item {
padding: 30rpx;
background: #ffffff;
border-radius: 10px;
margin-bottom: 20rpx;
&_shop {
display: flex;
&_image,
uni-image {
width: 150rpx; width: 150rpx;
height: 150rpx; height: 150rpx;
} border-radius: 16rpx;
} position: relative;
position: relative;
.spec {
color: #ffffff;
background: rgba(0, 0, 0, 0.5);
border-radius: 16rpx 0 16rpx 0;
text-align: center;
font-size: 18rpx;
display: inline-block;
width: 84rpx;
line-height: 30rpx;
position: absolute;
bottom: 0;
right: 0;
}
&_con {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 20rpx;
padding-bottom: 12rpx;
&_title { image {
font-size: 28rpx; width: 150rpx;
color: #282828; height: 150rpx;
max-width: 500rpx;
padding-top: 4rpx;
}
&_message {
margin-top: 15rpx;
font-size: 22rpx;
color: #868686;
> span:nth-child(1) {
display: inline-block;
margin-right: 20rpx;
} }
} }
&_price { position: relative;
margin-top: 10rpx;
> span { .spec {
display: inline-block; color: #ffffff;
margin-right: 7rpx; background: rgba(0, 0, 0, 0.5);
font-size: 30rpx; border-radius: 16rpx 0 16rpx 0;
color: #e93323; text-align: center;
font-size: 18rpx;
display: inline-block;
width: 84rpx;
line-height: 30rpx;
position: absolute;
bottom: 0;
right: 0;
}
&_con {
flex: 1;
display: flex;
flex-direction: column;
margin-left: 20rpx;
padding-bottom: 12rpx;
&_title {
font-size: 28rpx;
color: #282828;
max-width: 500rpx;
padding-top: 4rpx;
} }
> del {
&_message {
margin-top: 15rpx;
font-size: 22rpx;
color: #868686;
>span:nth-child(1) {
display: inline-block;
margin-right: 20rpx;
}
}
&_price {
margin-top: 10rpx;
>span {
display: inline-block;
margin-right: 7rpx;
font-size: 30rpx;
color: #e93323;
}
>del {
color: #bebebe;
font-size: 26rpx;
}
}
.ot_price {
color: #bebebe; color: #bebebe;
font-size: 26rpx; font-size: 26rpx;
margin-left: 10rpx;
// text-decoration: line-through;
} }
} }
.ot_price {
color: #bebebe;
font-size: 26rpx;
margin-left: 10rpx;
// text-decoration: line-through;
}
} }
}
&_handle { &_handle {
display: flex;
justify-content: flex-end;
> view {
margin-left: 18rpx;
padding: 0 34rpx;
height: 60rpx;
border: 1px solid #c7c7c7;
border-radius: 30px;
display: flex; display: flex;
align-items: center; justify-content: flex-end;
justify-content: center;
margin-top: 30rpx; >view {
font-size: 26rpx; margin-left: 18rpx;
color: #999999; padding: 0 34rpx;
height: 60rpx;
border: 1px solid #c7c7c7;
border-radius: 30px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
font-size: 26rpx;
color: #999999;
}
} }
} }
} }
}
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@ -194,6 +194,18 @@
</view> </view>
</view> </view>
</u-action-sheet> </u-action-sheet>
<!-- 自定义弹框显示 -->
<u-transition :show="modalShow">
<view class="modal-wrap">
<view class="modal">
<view>认证失败</view>
<view>请检查姓名,身份证,银行卡,手机号码是否正确</view>
<view>当日剩余认证次数({{errorCount}})</view>
</view>
</view>
</u-transition>
</view> </view>
</template> </template>
@ -208,6 +220,7 @@
export default { export default {
data() { data() {
return { return {
modalShow: false,
list: [], list: [],
show: false, show: false,
bankList: [], // bankList: [], //
@ -226,7 +239,8 @@
icon: '' icon: ''
}, },
mer_id: '', mer_id: '',
isCompany: '' isCompany: '',
errorCount: 0
} }
}, },
@ -237,6 +251,7 @@
} }
if (opt.mer_id) { if (opt.mer_id) {
this.mer_id = opt.mer_id; this.mer_id = opt.mer_id;
if (opt.hasOwnProperty('isOwn') && (opt.isOwn === 0 || opt.isOwn == '0')) { if (opt.hasOwnProperty('isOwn') && (opt.isOwn === 0 || opt.isOwn == '0')) {
this.list = [{ this.list = [{
name: '对公账户' name: '对公账户'
@ -262,7 +277,7 @@
}] }]
} }
// , is_company =0 // , is_company = 0
const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company; const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company;
this.isCompany = isCompany; this.isCompany = isCompany;
if (isCompany != 1) { if (isCompany != 1) {
@ -374,9 +389,12 @@
title: '请输入正确的手机号!' title: '请输入正确的手机号!'
}); });
} }
let that = this;
uni.showLoading({
title: "绑定中..."
})
addBank(this.mer_id, this.bindForm).then(res => { addBank(this.mer_id, this.bindForm).then(res => {
uni.hideLoading()
this.$util.Tips({ this.$util.Tips({
title: '提交成功,请等待后台审核!' title: '提交成功,请等待后台审核!'
}, () => { }, () => {
@ -385,11 +403,20 @@
}) })
}); });
}).catch(err => { }).catch(err => {
uni.showToast({ uni.hideLoading()
title: err, if (isNaN(err)) {
duration: 3000, uni.showToast({
icon: "none" title: err,
}) icon: "none",
duration: 3000
})
} else {
this.errorCount = err;
that.modalShow = true;
setTimeout(() => {
that.modalShow = false;
}, 3000)
}
}) })
}, },
@ -678,4 +705,30 @@
} }
} }
} }
.modal-wrap {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
.modal {
font-size: 28rpx;
color: #fff;
padding: 20rpx 30rpx;
background: rgba(0, 0, 0, .7);
max-width: 60%;
border-radius: 10rpx;
view {
line-height: 32rpx;
margin-bottom: 10rpx;
}
}
}
</style> </style>

View File

@ -54,7 +54,7 @@
</view> </view>
<view class="audit-info-txt" v-if="item.is_check == 2">审核不通过{{item.fail_msg}}</view> <view class="audit-info-txt" v-if="item.is_check == 2">审核不通过{{item.fail_msg}}</view>
<view style="text-align: right;color:#46B03A;font-weight: bold;" v-if="item.is_check == 2" <view style="text-align: right;color:#46B03A;font-weight: bold;" v-if="item.is_check == 2"
@click="handleToUpdate(item.id)"> @click="handleToUpdate(item)">
去修改 去修改
</view> </view>
</view> </view>
@ -97,9 +97,16 @@
methods: { methods: {
// //
handleToUpdate(id) { handleToUpdate(item) {
// , is_company =0
const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company;
if (isCompany != 1 && item.is_own === 0) return;
let strUrl = "?mer_id=" + this.mer_id;
strUrl += "&id=" + item.id
uni.redirectTo({ uni.redirectTo({
url: "/pages/withdrawal/add?id=" + id url: "/pages/withdrawal/add" + strUrl
}) })
}, },