|
|
<template>
|
|
|
<view>
|
|
|
<view class="wrap">
|
|
|
<view class="u-tabs-box">
|
|
|
<u-tabs-swiper activeColor="#2e7ff9" ref="tabs" :barWidth="100" :list="list" :current="current" @change="change" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
|
|
|
</view>
|
|
|
<view class="u-m-p-50" style="background: #fff;position: relative;" v-if="current == 0">
|
|
|
<view class="u-demo-area u-flex u-row-left">
|
|
|
<u-dropdown :close-on-click-mask="mask" ref="uDropdown" :activeColor="activeColor" :borderBottom="borderBottom">
|
|
|
<u-dropdown-item @change="changeDrop" v-model="value1" title="企业类型" :options="options1"></u-dropdown-item>
|
|
|
<u-dropdown-item @change="changeDrop" v-model="value2" title="位置" :options="options2"></u-dropdown-item>
|
|
|
</u-dropdown>
|
|
|
</view>
|
|
|
</view>
|
|
|
<swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
|
|
|
<swiper-item class="swiper-item">
|
|
|
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
<view class="page-box">
|
|
|
<view class="order" v-for="(res, index) in orderList[0]" :key="res.id">
|
|
|
<view class="companyList">
|
|
|
<view class="itemLeft">
|
|
|
<!-- 条件判断显示选择图标 -->
|
|
|
<!-- <image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_62@2x.png" mode=""></image> -->
|
|
|
<image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_61@2x.png" mode=""></image>
|
|
|
<image style="width: 70rpx;height: 70rpx;border-radius: 50%;margin-right: 20rpx;" src="../../../static/image/del/ic_90@2x.png" mode=""></image>
|
|
|
<text>企业名称企业名称</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-loadmore :status="loadStatus[0]" bgColor="#f2f2f2"></u-loadmore>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
|
<swiper-item class="swiper-item">
|
|
|
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
<view class="page-box">
|
|
|
<view class="order" v-for="(res, index) in orderList[0]" :key="res.id">
|
|
|
<view class="companyItem">
|
|
|
<view class="companyList">
|
|
|
<view class="itemLeft">
|
|
|
<!-- 条件判断显示选择图标 -->
|
|
|
<!-- <image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_62@2x.png" mode=""></image> -->
|
|
|
<image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_61@2x.png" mode=""></image>
|
|
|
<image style="width: 70rpx;height: 70rpx;border-radius: 50%;margin-right: 20rpx;" src="../../../static/image/del/ic_90@2x.png" mode=""></image>
|
|
|
<text>企业名称企业名称</text>
|
|
|
</view>
|
|
|
<image src="../../../static/image/down.png" mode=""></image>
|
|
|
</view>
|
|
|
<view class="employList">
|
|
|
<view class="itemLeft">
|
|
|
<!-- 条件判断显示选择图标 -->
|
|
|
<!-- <image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_62@2x.png" mode=""></image> -->
|
|
|
<image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_61@2x.png" mode=""></image>
|
|
|
<image style="width: 70rpx;height: 70rpx;border-radius: 50%;margin-right: 20rpx;" src="../../../static/image/del/ic_90@2x.png" mode=""></image>
|
|
|
<text style="margin-right: 20rpx;">人员名称</text>
|
|
|
<text>职位:销售总经理</text>
|
|
|
</view>
|
|
|
<view class="itemLeft">
|
|
|
<!-- 条件判断显示选择图标 -->
|
|
|
<!-- <image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_62@2x.png" mode=""></image> -->
|
|
|
<image style="width: 24rpx;height: 24rpx;margin-right: 20rpx;" src="../../../static/image/index/ic_61@2x.png" mode=""></image>
|
|
|
<image style="width: 70rpx;height: 70rpx;border-radius: 50%;margin-right: 20rpx;" src="../../../static/image/del/ic_90@2x.png" mode=""></image>
|
|
|
<text style="margin-right: 20rpx;">人员名称</text>
|
|
|
<text>职位:销售总经理</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
<u-loadmore :status="loadStatus[1]" bgColor="#f2f2f2"></u-loadmore>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<simple-confirm :alertTxt="'是否确认发送'" v-if="showConfirmAlert" @close="showConfirmAlert = false"></simple-confirm>
|
|
|
<view style="height: 120rpx;"></view>
|
|
|
<!-- 底部按钮区域 -->
|
|
|
<view class="loginBtnWrap">
|
|
|
<view class="loginBtn">
|
|
|
发送
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import simpleConfirm from '@/components/simpleConfirm.vue'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
showConfirmAlert:true,
|
|
|
itemList: [{
|
|
|
head: "赏识在于角度的转换",
|
|
|
body: "只要我们正确择取一个合适的参照物乃至稍降一格去看待他人,值得赏识的东西便会扑面而来:闪光的道德、妙异的智慧、优美的人情…… 赏识不是单向的施舍,是智慧与智慧的主动碰撞",
|
|
|
show: false,
|
|
|
}, {
|
|
|
head: "生活中不是缺少美,而是缺少发现美的眼睛",
|
|
|
body: "学会欣赏,实际是一种积极生活的态度,是生活的调味品,会在欣赏中发现生活的美",
|
|
|
show: false,
|
|
|
}, {
|
|
|
head: "周围一些不起眼的人、事、物,或许都隐藏着不同凡响的智慧",
|
|
|
body: "但是据说雕刻大卫像所用的这块大理石,曾被多位雕刻家批评得一无是处,有些人认为这块大理石采凿得不好,有些人嫌它的纹路不够美,用它绝对雕不出好的艺术品,总之它被批评为一块不受人赏识的普通石头",
|
|
|
show: false,
|
|
|
}, {
|
|
|
head: "点燃心中的火焰,找回了自信和人生的价值",
|
|
|
body: "他随手翻了几页,竟被一篇题名为《童年》的小说所吸引,作者是一个初出茅庐的无名小辈,但屠格涅夫却十分欣赏,钟爱有加",
|
|
|
show: false,
|
|
|
}, {
|
|
|
head: "因为赏识,那块被人不耻的石头变成了雕塑",
|
|
|
body: "这个材料反应的就是赏识的问题,赏识是一种理解和信任,包含了肯定与欣赏,也是一种激励和引导,可以使人悔过自新,扬长避短,更健康地成长和进步",
|
|
|
show: false,
|
|
|
}],
|
|
|
accordion: true,
|
|
|
arrow: true,
|
|
|
hoverClass: 'hover2',
|
|
|
itemStyle: {},
|
|
|
key: true,
|
|
|
// ================================================下拉选项 开始================================================
|
|
|
value1: '',
|
|
|
value2: '2',
|
|
|
mask: true,
|
|
|
options1: [{
|
|
|
label: '企业类型1',
|
|
|
value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: '企业类型2',
|
|
|
value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: '企业类型3',
|
|
|
value: 3,
|
|
|
}
|
|
|
],
|
|
|
options2: [{
|
|
|
label: '位置1',
|
|
|
value: 1,
|
|
|
},
|
|
|
{
|
|
|
label: '位置2',
|
|
|
value: 2,
|
|
|
},
|
|
|
{
|
|
|
label: '位置3',
|
|
|
value: 3,
|
|
|
}
|
|
|
],
|
|
|
borderBottom: false,
|
|
|
activeColor: '#2979ff',
|
|
|
// ================================================下拉选项 结束================================================
|
|
|
orderList: [[], [], [], []],
|
|
|
dataList: [
|
|
|
{
|
|
|
id: 1,
|
|
|
store: '夏日流星限定贩卖',
|
|
|
deal: '交易成功',
|
|
|
goodsList: [
|
|
|
{
|
|
|
goodsUrl: '//img13.360buyimg.com/n7/jfs/t1/103005/7/17719/314825/5e8c19faEb7eed50d/5b81ae4b2f7f3bb7.jpg',
|
|
|
title: '【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风',
|
|
|
type: '灰色;M',
|
|
|
deliveryTime: '付款后30天内发货',
|
|
|
price: '348.58',
|
|
|
number: 2
|
|
|
},
|
|
|
{
|
|
|
goodsUrl: '//img12.360buyimg.com/n7/jfs/t1/102191/19/9072/330688/5e0af7cfE17698872/c91c00d713bf729a.jpg',
|
|
|
title: '【葡萄藤】现货 小清新学院风制服格裙百褶裙女短款百搭日系甜美风原创jk制服女2020新款',
|
|
|
type: '45cm;S',
|
|
|
deliveryTime: '付款后30天内发货',
|
|
|
price: '135.00',
|
|
|
number: 1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
store: '江南皮革厂',
|
|
|
deal: '交易失败',
|
|
|
goodsList: [
|
|
|
{
|
|
|
goodsUrl: '//img14.360buyimg.com/n7/jfs/t1/60319/15/6105/406802/5d43f68aE9f00db8c/0affb7ac46c345e2.jpg',
|
|
|
title: '【冬日限定】现货 原创jk制服女2020冬装新款小清新宽松软糯毛衣外套女开衫短款百搭日系甜美风',
|
|
|
type: '粉色;M',
|
|
|
deliveryTime: '付款后7天内发货',
|
|
|
price: '128.05',
|
|
|
number: 1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
store: '三星旗舰店',
|
|
|
deal: '交易失败',
|
|
|
goodsList: [
|
|
|
{
|
|
|
goodsUrl: '//img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg',
|
|
|
title: '三星(SAMSUNG)京品家电 UA65RUF70AJXXZ 65英寸4K超高清 HDR 京东微联 智能语音 教育资源液晶电视机',
|
|
|
type: '4K,广色域',
|
|
|
deliveryTime: '保质5年',
|
|
|
price: '1998',
|
|
|
number: 3
|
|
|
},
|
|
|
{
|
|
|
goodsUrl: '//img14.360buyimg.com/n7/jfs/t6007/205/4099529191/294869/ae4e6d4f/595dcf19Ndce3227d.jpg!q90.jpg',
|
|
|
title: '美的(Midea)639升 对开门冰箱 19分钟急速净味 一级能效冷藏双开门杀菌智能家用双变频节能 BCD-639WKPZM(E)',
|
|
|
type: '容量大,速冻',
|
|
|
deliveryTime: '保质5年',
|
|
|
price: '2354',
|
|
|
number: 1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
store: '三星旗舰店',
|
|
|
deal: '交易失败',
|
|
|
goodsList: [
|
|
|
{
|
|
|
goodsUrl: '//img10.360buyimg.com/n7/jfs/t22300/31/1505958241/171936/9e201a89/5b2b12ffNe6dbb594.jpg!q90.jpg',
|
|
|
title: '法国进口红酒 拉菲(LAFITE)传奇波尔多干红葡萄酒750ml*6整箱装',
|
|
|
type: '4K,广色域',
|
|
|
deliveryTime: '珍藏10年好酒',
|
|
|
price: '1543',
|
|
|
number: 3
|
|
|
},
|
|
|
{
|
|
|
goodsUrl: '//img10.360buyimg.com/n7/jfs/t1/107598/17/3766/525060/5e143aacE9a94d43c/03573ae60b8bf0ee.jpg',
|
|
|
title: '蓝妹(BLUE GIRL)酷爽啤酒 清啤 原装进口啤酒 罐装 500ml*9听 整箱装',
|
|
|
type: '一打',
|
|
|
deliveryTime: '口感好',
|
|
|
price: '120',
|
|
|
number: 1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
store: '三星旗舰店',
|
|
|
deal: '交易成功',
|
|
|
goodsList: [
|
|
|
{
|
|
|
goodsUrl: '//img12.360buyimg.com/n7/jfs/t1/52408/35/3554/78293/5d12e9cfEfd118ba1/ba5995e62cbd747f.jpg!q90.jpg',
|
|
|
title: '企业微信 中控人脸指纹识别考勤机刷脸机 无线签到异地多店打卡机WX108',
|
|
|
type: '识别效率高',
|
|
|
deliveryTime: '使用方便',
|
|
|
price: '451',
|
|
|
number: 9
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
list: [
|
|
|
{
|
|
|
name: '企业'
|
|
|
},
|
|
|
{
|
|
|
name: '员工'
|
|
|
}
|
|
|
],
|
|
|
current: 0,
|
|
|
swiperCurrent: 0,
|
|
|
tabsHeight: 0,
|
|
|
dx: 0,
|
|
|
loadStatus: ['loadmore','loadmore','loadmore','loadmore'],
|
|
|
};
|
|
|
},
|
|
|
components:{
|
|
|
simpleConfirm
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getOrderList(0);
|
|
|
this.getOrderList(1);
|
|
|
this.getOrderList(3);
|
|
|
},
|
|
|
computed: {
|
|
|
// 价格小数
|
|
|
priceDecimal() {
|
|
|
return val => {
|
|
|
if (val !== parseInt(val)) return val.slice(-2);
|
|
|
else return '00';
|
|
|
};
|
|
|
},
|
|
|
// 价格整数
|
|
|
priceInt() {
|
|
|
return val => {
|
|
|
if (val !== parseInt(val)) return val.split('.')[0];
|
|
|
else return val;
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
changeCollapse(index) {
|
|
|
let str = '';
|
|
|
if(Array.isArray(index)) {
|
|
|
let arr = index.map(val => {
|
|
|
return Number(val) + 1;
|
|
|
})
|
|
|
index = arr.join(',');
|
|
|
} else {
|
|
|
index = Number(index) + 1;
|
|
|
}
|
|
|
this.$refs.uToast.show({
|
|
|
title: `点击了第${index}个`,
|
|
|
type: 'warning'
|
|
|
})
|
|
|
},
|
|
|
changeDrop(index) {
|
|
|
this.$u.toast(`点击了第${index}项`);
|
|
|
},
|
|
|
reachBottom() {
|
|
|
// 此tab为空数据
|
|
|
if(this.current != 2) {
|
|
|
this.loadStatus.splice(this.current,1,"loading")
|
|
|
setTimeout(() => {
|
|
|
this.getOrderList(this.current);
|
|
|
}, 1200);
|
|
|
}
|
|
|
},
|
|
|
// 页面数据
|
|
|
getOrderList(idx) {
|
|
|
for(let i = 0; i < 5; i++) {
|
|
|
let index = this.$u.random(0, this.dataList.length - 1);
|
|
|
let data = JSON.parse(JSON.stringify(this.dataList[index]));
|
|
|
data.id = this.$u.guid();
|
|
|
this.orderList[idx].push(data);
|
|
|
}
|
|
|
this.loadStatus.splice(this.current,1,"loadmore")
|
|
|
},
|
|
|
// 总价
|
|
|
totalPrice(item) {
|
|
|
let price = 0;
|
|
|
item.map(val => {
|
|
|
price += parseFloat(val.price);
|
|
|
});
|
|
|
return price.toFixed(2);
|
|
|
},
|
|
|
// 总件数
|
|
|
totalNum(item) {
|
|
|
let num = 0;
|
|
|
item.map(val => {
|
|
|
num += val.number;
|
|
|
});
|
|
|
return num;
|
|
|
},
|
|
|
// tab栏切换
|
|
|
change(index) {
|
|
|
this.swiperCurrent = index;
|
|
|
this.getOrderList(index);
|
|
|
},
|
|
|
transition({ detail: { dx } }) {
|
|
|
this.$refs.tabs.setDx(dx);
|
|
|
},
|
|
|
animationfinish({ detail: { current } }) {
|
|
|
this.$refs.tabs.setFinishCurrent(current);
|
|
|
this.swiperCurrent = current;
|
|
|
this.current = current;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
/* #ifndef H5 */
|
|
|
page {
|
|
|
height: 100%;
|
|
|
background-color: #f2f2f2;
|
|
|
}
|
|
|
/* #endif */
|
|
|
</style>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.order {
|
|
|
width: 710rpx;
|
|
|
background-color: #ffffff;
|
|
|
margin: 20rpx auto;
|
|
|
border-radius: 20rpx;
|
|
|
box-sizing: border-box;
|
|
|
padding: 20rpx;
|
|
|
font-size: 28rpx;
|
|
|
.companyItem{
|
|
|
background: #ffffff;
|
|
|
border-radius: 20rpx;
|
|
|
.companyList{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
height: 136rpx;
|
|
|
.itemLeft{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
image{width: 32rpx;height: 32rpx;}
|
|
|
}
|
|
|
}
|
|
|
.companyList{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
height: 136rpx;
|
|
|
.itemLeft{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
image{width: 32rpx;height: 32rpx;}
|
|
|
}
|
|
|
.employList{
|
|
|
padding-left: 60rpx;
|
|
|
.itemLeft{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
height: 80rpx;
|
|
|
}
|
|
|
image{width: 32rpx;height: 32rpx;}
|
|
|
}
|
|
|
}
|
|
|
.centre {
|
|
|
text-align: center;
|
|
|
margin: 200rpx auto;
|
|
|
font-size: 32rpx;
|
|
|
image {
|
|
|
width: 164rpx;
|
|
|
height: 164rpx;
|
|
|
border-radius: 50%;
|
|
|
margin-bottom: 20rpx;
|
|
|
}
|
|
|
.tips {
|
|
|
font-size: 24rpx;
|
|
|
color: #999999;
|
|
|
margin-top: 20rpx;
|
|
|
}
|
|
|
.btn {
|
|
|
margin: 80rpx auto;
|
|
|
width: 200rpx;
|
|
|
border-radius: 32rpx;
|
|
|
line-height: 64rpx;
|
|
|
color: #ffffff;
|
|
|
font-size: 26rpx;
|
|
|
background: linear-gradient(270deg, rgba(249, 116, 90, 1) 0%, rgba(255, 158, 1, 1) 100%);
|
|
|
}
|
|
|
}
|
|
|
.wrap {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
height: calc(100vh - var(--window-top) - 120rpx);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.swiper-box {
|
|
|
flex: 1;
|
|
|
}
|
|
|
.swiper-item {
|
|
|
height: 100%;
|
|
|
}
|
|
|
/* 底部按钮区域 */
|
|
|
.loginBtnWrap{
|
|
|
position: fixed;
|
|
|
bottom: 0;
|
|
|
width: 750rpx;
|
|
|
height: 120rpx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
background: $uni-bg-color-hui;
|
|
|
justify-content: center;
|
|
|
.loginBtn{
|
|
|
width: 686rpx;
|
|
|
height: 88rpx;
|
|
|
background: $uni-bg-main-color;
|
|
|
border-radius: 96rpx;
|
|
|
text-align: center;
|
|
|
color: $uni-text-color-bai;
|
|
|
line-height: 88rpx;
|
|
|
font-size: $uni-font-size-32;
|
|
|
}
|
|
|
}
|
|
|
</style> |
...
|
...
|
|