feat: 添加静态资源文件及基础组件
- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示 - 添加字体文件及样式配置,支持自定义字体 - 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件 - 添加网络状态监听、加密工具等基础工具函数 - 配置 Vuex 状态管理,包括购物车数量、热门搜索词等 - 增加页面组件,如用户协议、分销信息、提现状态等 - 配置项目构建和忽略文件,优化开发体验
This commit is contained in:
905
pages/admin/distribution/index.vue
Normal file
905
pages/admin/distribution/index.vue
Normal file
@@ -0,0 +1,905 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- #ifdef MP || APP -->
|
||||
<NavBar titleText="配送员" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack></NavBar>
|
||||
<!-- #endif -->
|
||||
<view class="headerBg"></view>
|
||||
<view class="order-index">
|
||||
<view class="header acea-row row-middle">
|
||||
<image :src="user.avatar" class="avatar"></image>
|
||||
<view class="text">
|
||||
<view class="name line1">{{ user.nickname }}</view>
|
||||
<view class="phone">{{ user.phone }}</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<!-- #ifdef APP-PLUS || MP-WEIXIN -->
|
||||
<view class="item">
|
||||
<view class="iconfont icon-ic_Scan ite" @click="to"></view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<view v-if="isWeixin" class="item">
|
||||
<view class="iconfont icon-ic_Scan ite" @click="to"></view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="footer == 'tongji'" class="">
|
||||
<view class="wrapper">
|
||||
<view class="title acea-row row-between row-middle">
|
||||
<view class="uni-list-cell-db" @click="hiddened">
|
||||
<picker @change="bindPickerChange" :range="arrays" @cancel="cancel">
|
||||
<label class="aa">{{array.length && array[index].name}}</label>
|
||||
<text class='iconfont' :class='hidden==true?"icon-ic_downarrow":"icon-ic_uparrow"'></text>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="tab acea-row">
|
||||
<view class="box" :class="detailtabs== 'today' ? 'on':''" @click="detailtab('today')">今日</view>
|
||||
<view class="box" :class="detailtabs== 'yesterday' ? 'on':''" @click="detailtab('yesterday')">昨日</view>
|
||||
<view class="box" :class="detailtabs== 'month' ? 'on':''" @click="detailtab('month')">本月</view>
|
||||
</view>
|
||||
</view>
|
||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||
<view class="list acea-row" v-if="!loading">
|
||||
<view class="item">
|
||||
<view class="num">{{ census.unsend || 0 }}</view>
|
||||
<view>待配送</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="num">{{ census.send || 0 }}</view>
|
||||
<view>已配送</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="num">{{ census.send_price || 0 }}</view>
|
||||
<view>配送金额</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="public-wrapper">
|
||||
<view class="title">
|
||||
<view class="uni-list-cell-db" @click="hiddened">
|
||||
详细数据
|
||||
</view>
|
||||
</view>
|
||||
<view class="nav acea-row row-between-wrapper">
|
||||
<view class="data">日期</view>
|
||||
<view class="browse">订单数</view>
|
||||
<view class="turnover">配送金额</view>
|
||||
</view>
|
||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||
<view v-if="list.length" class="conter">
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item, index) in list" :key="index">
|
||||
<view class="data">{{ item.time }}</view>
|
||||
<view class="browse">{{ item.count }}</view>
|
||||
<view class="turnover">¥ {{ item.price }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="unconter">
|
||||
<view v-if="!loading">暂无数据</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="footer == 'list'" class="tongji-index">
|
||||
<view class="tabbar acea-row">
|
||||
<view class="item" :class="{ active: type == 1 }">
|
||||
<view class="text-box"></view>
|
||||
<view class="item-box"></view>
|
||||
<view class="inner acea-row row-center row-middle" @click="tab('1')">待配送({{ count.unsend }})</view>
|
||||
</view>
|
||||
<view class="item" :class="{ active: type == 2 }">
|
||||
<view class="text-box"></view>
|
||||
<view class="item-box"></view>
|
||||
<view class="inner acea-row row-center row-middle" @click="tab('2')">已配送({{ count.send }})</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="item" v-for="(item,index) in orderlist" :key="index" @click="jump(item.id)">
|
||||
<view class="item-top acea-row row-between row-middle">
|
||||
<view class="">订单号:{{ item.order_id }}</view>
|
||||
<view style="color: #FF7E00;">{{type == 1?'待配送':'已配送'}}</view>
|
||||
</view>
|
||||
<view class="item-center acea-row">
|
||||
<scroll-view v-if="item.cart_id.length > 1" class="goods-section scroll-view" scroll-x="true">
|
||||
<image v-for="(value, i) in item._info" :key="i" :src="value.cart_info.productInfo.image" class="image"></image>
|
||||
</scroll-view>
|
||||
<view v-else class="goods-section">
|
||||
<view v-for="(value, i) in item._info" :key="i" class="acea-row">
|
||||
<image :src="value.cart_info.productInfo.image" class="image"></image>
|
||||
<view class="name-wrap">
|
||||
<view class="name line2">{{ value.cart_info.productInfo.store_name }}</view>
|
||||
<view class="attr line1">{{ value.cart_info.productInfo.attrInfo.suk }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="money-section">
|
||||
<baseMoney :money="item.pay_price" symbolSize="20" integerSize="32" decimalSize="20"></baseMoney>
|
||||
<view class="num">共{{ item.total_num }}件</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-bottom acea-row">
|
||||
<view>配送地址:</view>
|
||||
<view class="info">{{ item.user_address }}</view>
|
||||
</view>
|
||||
<!-- <view class="content_box" v-for="(val, key) in item._info" :key="key">
|
||||
<image :src="val.cart_info.productInfo.image" mode=""></image>
|
||||
<view class="content_box_title">
|
||||
<view class="txt">
|
||||
<view class="textbox"><text class="icon-color" v-if="val.cart_info.is_gift">[赠品]</text>{{ val.cart_info.productInfo.store_name }}</view>
|
||||
<view>x {{ val.cart_info.cart_num }}</view>
|
||||
</view>
|
||||
<p class="attribute">属性:{{ val.cart_info.productInfo.attrInfo.suk }}</p>
|
||||
<p>¥ {{ val.cart_info.productInfo.attrInfo.price }} </p>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="content_bottom">
|
||||
<view></view>
|
||||
<view>共{{ item.total_num }}件商品,订单实付:<span class="money">¥{{ item.pay_price }}</span></view>
|
||||
</view> -->
|
||||
</view>
|
||||
<emptyPage v-if="!orderlist.length && !loading" title="暂无数据~" src="/statics/images/noOrder.gif"></emptyPage>
|
||||
</view>
|
||||
<Loading :loaded="loaded" :loading="loading"></Loading>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer">
|
||||
<view class="footer-inner acea-row">
|
||||
<view class="tab acea-row row-column row-center row-middle" :class="footer == 'list'?'on':''" @click="footerTab('list')">
|
||||
<image v-if="footer == 'list'" :src="imgHost+'/statics/images/admin-order-menu2.png'" class="image"></image>
|
||||
<image v-else :src="imgHost+'/statics/images/admin-order-menu1.png'" class="image"></image>
|
||||
<view class="font">订单列表</view>
|
||||
</view>
|
||||
<view class="tab acea-row row-column row-center row-middle" :class="footer == 'tongji'?'on':''" @click="footerTab('tongji')">
|
||||
<image v-if="footer == 'tongji'" :src="imgHost+'/statics/images/admin-order-menu4.png'" class="image"></image>
|
||||
<image v-else :src="imgHost+'/statics/images/admin-order-menu3.png'" class="image"></image>
|
||||
<view class="font">数据统计</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="safe-area-inset-bottom"></view>
|
||||
</view>
|
||||
<view class="footer-placeholder"></view>
|
||||
<view class="safe-area-inset-bottom"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
// getStatisticsInfo,
|
||||
// getStatisticsMonth,
|
||||
deliveryInfo,
|
||||
deliveryStatistics,
|
||||
deliveryList,
|
||||
deliveryOrderList,
|
||||
orderWriteoffInfo
|
||||
} from "@/api/admin";
|
||||
import Loading from '@/components/Loading/index.vue';
|
||||
import emptyPage from '@/components/emptyPage.vue'
|
||||
// #ifdef MP || APP
|
||||
import NavBar from '@/components/NavBar.vue';
|
||||
// #endif
|
||||
import {
|
||||
HTTP_REQUEST_URL
|
||||
} from '@/config/app';
|
||||
export default {
|
||||
name: 'adminOrder',
|
||||
components: {
|
||||
Loading,
|
||||
emptyPage,
|
||||
// #ifdef MP || APP
|
||||
NavBar,
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
hidden: true,
|
||||
index: 0,
|
||||
detailtabs: 'today',
|
||||
footer: 'list',
|
||||
type: '1',
|
||||
arrays: [], //展示下拉时的数据
|
||||
array: [], //下拉时选择的数据
|
||||
storeInfoid: 0, //下拉时选择的数据ID
|
||||
census: {},
|
||||
list: [],
|
||||
orderlist: [],
|
||||
count: {},
|
||||
page: 1,
|
||||
limit: 15,
|
||||
loaded: false,
|
||||
loading: false,
|
||||
user: {},
|
||||
ids: '',
|
||||
verify_code: '',
|
||||
// #ifdef H5
|
||||
isWeixin: this.$wechat.isWeixin(),
|
||||
// #endif
|
||||
imgHost: HTTP_REQUEST_URL,
|
||||
// #ifdef MP || APP
|
||||
iconColor: '#FFFFFF',
|
||||
isScrolling: false,
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// this.getIndex();
|
||||
// this.init()
|
||||
this.userInfo();
|
||||
this.footerTab('list')
|
||||
|
||||
// this.$scroll(this.$refs.container, () => {
|
||||
// !this.loading && this.getList();
|
||||
// });
|
||||
},
|
||||
methods: {
|
||||
userInfo() {
|
||||
deliveryInfo().then(res => {
|
||||
this.user = res.data
|
||||
this.array = res.data.store_info.map(a => a);
|
||||
this.arrays = res.data.store_info.map(a => a.name);
|
||||
let obj = {
|
||||
id: 0,
|
||||
name: '全部'
|
||||
}
|
||||
this.array.unshift(obj);
|
||||
this.arrays.unshift(obj.name);
|
||||
})
|
||||
},
|
||||
getStatistics() {
|
||||
let data = {
|
||||
store_id: this.storeInfoid,
|
||||
data: this.detailtabs
|
||||
}
|
||||
deliveryStatistics(data).then(res => {
|
||||
this.census = res.data
|
||||
})
|
||||
},
|
||||
deliveryLists() {
|
||||
let data = {
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
store_id: this.storeInfoid,
|
||||
data: this.detailtabs
|
||||
}
|
||||
if (this.loading || this.loaded) return;
|
||||
this.loading = true
|
||||
deliveryList(data).then(res => {
|
||||
this.loading = false
|
||||
this.loaded = res.data.length < this.limit
|
||||
this.page += 1
|
||||
// this.list = res.data
|
||||
this.list.push.apply(this.list, res.data);
|
||||
})
|
||||
},
|
||||
getOrderList() {
|
||||
if (this.loading || this.loaded) return;
|
||||
this.loading = true
|
||||
deliveryOrderList({
|
||||
type: this.type,
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
}).then(res => {
|
||||
this.loading = false
|
||||
this.count = res.data.data
|
||||
this.loaded = res.data.list.length < this.limit
|
||||
this.page += 1
|
||||
let arr = [];
|
||||
for (let i = 0; i < res.data.list.length; i++) {
|
||||
arr = [];
|
||||
for (let j = 0; j < res.data.list[i].user_address.length; j++) {
|
||||
if (res.data.list[i].user_address[j] != ' ') {
|
||||
arr.push(res.data.list[i].user_address[j]);
|
||||
}
|
||||
}
|
||||
res.data.list[i].user_address = arr.join('');
|
||||
}
|
||||
this.orderlist.push.apply(this.orderlist, res.data.list);
|
||||
})
|
||||
},
|
||||
init: function() {
|
||||
this.orderlist = [];
|
||||
this.list = [];
|
||||
this.page = 1;
|
||||
this.loaded = false;
|
||||
this.loading = false;
|
||||
},
|
||||
to() {
|
||||
var self = this;
|
||||
// #ifdef MP || APP
|
||||
uni.scanCode({
|
||||
scanType: ["qrCode", "barCode"],
|
||||
success(res) {
|
||||
self.verify_code = res.result
|
||||
self.codeChange();
|
||||
},
|
||||
fail(res) {},
|
||||
})
|
||||
// #endif
|
||||
//#ifdef H5
|
||||
this.$wechat.wechatEvevt('scanQRCode', {
|
||||
needResult: 1,
|
||||
scanType: ["qrCode", "barCode"]
|
||||
}).then(res => {
|
||||
let result = res.resultStr;
|
||||
if (result.includes(',')) {
|
||||
result = result.split(",")[1]
|
||||
}
|
||||
this.verify_code = result
|
||||
this.codeChange();
|
||||
});
|
||||
//#endif
|
||||
},
|
||||
// 立即核销
|
||||
codeChange: function() {
|
||||
let self = this
|
||||
let ref = /^[0-9]*$/;
|
||||
if (!this.verify_code) return self.$util.Tips({
|
||||
title: '请输入核销码'
|
||||
});
|
||||
if (!ref.test(this.verify_code)) return self.$util.Tips({
|
||||
title: '请输入正确的核销码'
|
||||
});
|
||||
self.$util.Tips({
|
||||
title: '查询中'
|
||||
});
|
||||
setTimeout(() => {
|
||||
orderWriteoffInfo(2, {
|
||||
verify_code: self.verify_code,
|
||||
code_type: 2
|
||||
}).then(res => {
|
||||
if (res.status == 200) {
|
||||
uni.navigateTo({
|
||||
url: './scanning/index?code=' + self.verify_code
|
||||
})
|
||||
} else {
|
||||
self.$util.Tips({
|
||||
title: res.msg
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
self.$util.Tips({
|
||||
title: err
|
||||
});
|
||||
})
|
||||
}, 800);
|
||||
},
|
||||
footerTab: function(type) {
|
||||
this.footer = type
|
||||
this.init()
|
||||
if (type == 'tongji') {
|
||||
this.deliveryLists()
|
||||
this.getStatistics()
|
||||
}
|
||||
if (type == 'list') {
|
||||
this.getOrderList()
|
||||
}
|
||||
|
||||
},
|
||||
tab(type) {
|
||||
this.type = type
|
||||
this.init()
|
||||
this.getOrderList()
|
||||
},
|
||||
hiddened: function(e) {
|
||||
this.hidden = !this.hidden;
|
||||
},
|
||||
cancel: function() {
|
||||
this.hidden = !this.hidden;
|
||||
},
|
||||
bindPickerChange: function(e) {
|
||||
this.hidden = !this.hidden;
|
||||
this.index = e.target.value
|
||||
this.storeInfoid = this.array[this.index].id
|
||||
this.init()
|
||||
this.getStatistics()
|
||||
this.deliveryLists()
|
||||
},
|
||||
detailtab: function(type) {
|
||||
this.detailtabs = type
|
||||
this.init()
|
||||
this.deliveryLists()
|
||||
this.getStatistics()
|
||||
},
|
||||
jump: function(id) {
|
||||
uni.navigateTo({
|
||||
url: 'orderDetail/index?id=' + id
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
if (this.footer == 'tongji') {
|
||||
this.deliveryList()
|
||||
}
|
||||
if (this.footer == 'list') {
|
||||
this.getOrderList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.footer-placeholder {
|
||||
height: 100rpx;
|
||||
}
|
||||
|
||||
.safe-area-inset-bottom {
|
||||
height: 0;
|
||||
height: constant(safe-area-inset-bottom);
|
||||
height: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.nothing {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
color: #cfcfcf;
|
||||
}
|
||||
|
||||
.ite {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: #FFFFFF;
|
||||
|
||||
.footer-inner {
|
||||
height: 100rpx;
|
||||
}
|
||||
|
||||
.tab {
|
||||
flex: 1;
|
||||
font-size: 20rpx;
|
||||
line-height: 28rpx;
|
||||
color: #333333;
|
||||
|
||||
.image {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.on {
|
||||
color: #2A7EFB;
|
||||
|
||||
.font {
|
||||
color: #2A7EFB;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*订单首页*/
|
||||
.headerBg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 516rpx;
|
||||
background: linear-gradient(270deg, #01ABF8 0%, #2A7EFB 100%);
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 22rpx 40rpx 32rpx 32rpx;
|
||||
|
||||
.avatar {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.text {
|
||||
flex: 1;
|
||||
padding-left: 16rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 30rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.phone {
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.items,
|
||||
.item {
|
||||
font-size: 24upx;
|
||||
color: #fff;
|
||||
height: 120upx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
image {
|
||||
width: 64upx;
|
||||
height: 64upx;
|
||||
border-radius: 60upx;
|
||||
border: 2upx solid #FFFFFF;
|
||||
}
|
||||
|
||||
.font {
|
||||
display: inline-block;
|
||||
margin-left: 16upx;
|
||||
margin-right: 16upx;
|
||||
font-size: 30upx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-index {
|
||||
position: relative;
|
||||
|
||||
.tongji-index {
|
||||
padding: 0 20rpx;
|
||||
.empty-page{
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.tabbar {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
height: 96rpx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
overflow: hidden;
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
|
||||
&:last-child {
|
||||
.item-box {
|
||||
border-radius: 18rpx 0 0 0;
|
||||
transform: perspective(80rpx) scaleX(1.4) scaleY(1.5) rotateX(20deg) translate(20rpx, 0);
|
||||
}
|
||||
|
||||
.text-box {
|
||||
border-radius: 0 24rpx 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
font-weight: 500;
|
||||
color: #2A7EFB;
|
||||
|
||||
.item-box {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.text-box {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 78rpx;
|
||||
border-radius: 24rpx 0 0 0;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
.item-box {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
height: 96rpx;
|
||||
border-radius: 0 18rpx 0 0;
|
||||
background: #FFFFFF;
|
||||
transform-origin: center bottom;
|
||||
transform: perspective(80rpx) scaleX(1.4) scaleY(1.5) rotateX(20deg) translate(-20rpx, 0);
|
||||
}
|
||||
|
||||
.inner {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
z-index: 3;
|
||||
width: 100%;
|
||||
height: 78rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
.item {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
&:first-child {
|
||||
border-radius: 0 0 24rpx 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.item-top {
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.item-center {
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
|
||||
.goods-section {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
|
||||
.image {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.name-wrap {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.attr {
|
||||
margin-top: 12rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-view {
|
||||
box-sizing: border-box;
|
||||
|
||||
.image {
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.item-bottom {
|
||||
padding: 18rpx 20rpx;
|
||||
border-radius: 8rpx;
|
||||
margin-top: 26rpx;
|
||||
background: #F5F5F5;
|
||||
font-size: 26rpx;
|
||||
line-height: 36rpx;
|
||||
color: #333333;
|
||||
|
||||
.info {
|
||||
flex: 1;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-view {
|
||||
box-sizing: border-box;
|
||||
|
||||
.image {
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.money-section {
|
||||
width: 102rpx;
|
||||
text-align: right;
|
||||
|
||||
.num {
|
||||
margin-top: 8rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-index .header .icon-saoma {
|
||||
font-size: 40rpx;
|
||||
padding: 30rpx 20rpx 30rpx 80rpx;
|
||||
}
|
||||
|
||||
.order-index .header .item,
|
||||
.order-index .header .items {
|
||||
font-size: 24upx;
|
||||
color: #fff;
|
||||
height: 120upx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.order-index .header .item .font,
|
||||
.order-index .header .items .font {
|
||||
display: inline-block;
|
||||
margin-left: 16upx;
|
||||
margin-right: 16upx;
|
||||
font-size: 30upx;
|
||||
|
||||
}
|
||||
|
||||
.order-index .header .items image {
|
||||
width: 64upx;
|
||||
height: 64upx;
|
||||
border-radius: 60upx;
|
||||
border: 2upx solid #FFFFFF;
|
||||
}
|
||||
|
||||
.order-index .wrapper {
|
||||
width: 710rpx;
|
||||
border-radius: 24rpx;
|
||||
margin: 0 auto;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.order-index .wrapper .title .iconfont {
|
||||
color: #2291f8;
|
||||
font-size: 40upx;
|
||||
margin-right: 13upx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.order-index .wrapper .title {
|
||||
padding: 32rpx 24rpx;
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
line-height: 42rpx;
|
||||
color: #333333;
|
||||
|
||||
.uni-list-cell-db .iconfont {
|
||||
font-size: 24rpx;
|
||||
color: #CCCCCC;
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
|
||||
.tab {
|
||||
border-radius: 24rpx;
|
||||
background: #F5F5F5;
|
||||
|
||||
.box {
|
||||
width: 96rpx;
|
||||
height: 48rpx;
|
||||
border-radius: 24rpx;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
line-height: 48rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.on {
|
||||
background: #2A7EFB;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.order-index .wrapper .list .item {
|
||||
flex: 1;
|
||||
padding: 30rpx 0 38rpx;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.order-index .wrapper .list .item .num {
|
||||
margin-bottom: 10rpx;
|
||||
font-family: SemiBold;
|
||||
font-size: 36rpx;
|
||||
line-height: 36rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.public-wrapper .title {
|
||||
padding: 32rpx 24rpx 40rpx;
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
line-height: 42rpx;
|
||||
color: #333333;
|
||||
|
||||
.uni-list-cell-db .iconfont {
|
||||
font-size: 24upx;
|
||||
color: #999;
|
||||
margin-left: 14upx;
|
||||
}
|
||||
|
||||
.tab {
|
||||
width: 240upx;
|
||||
height: 48upx;
|
||||
background: #F5F5F5;
|
||||
border-radius: 24upx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
font-size: 24upx;
|
||||
|
||||
.box {
|
||||
width: 82upx;
|
||||
height: 48upx;
|
||||
border-radius: 24upx;
|
||||
text-align: center;
|
||||
line-height: 48upx;
|
||||
}
|
||||
|
||||
.on {
|
||||
background: #1890FF;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.public-wrapper .title .iconfont {
|
||||
color: #2291f8;
|
||||
font-size: 40upx;
|
||||
margin-right: 13upx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.public-wrapper {
|
||||
width: 710rpx;
|
||||
border-radius: 24rpx;
|
||||
margin: 20rpx auto 0;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.public-wrapper .nav {
|
||||
padding: 0 40rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.public-wrapper .data {
|
||||
width: 45%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.public-wrapper .browse {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.public-wrapper .turnover {
|
||||
width: 30%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.public-wrapper .conter {
|
||||
padding: 0 40rpx;
|
||||
}
|
||||
|
||||
.public-wrapper .conter .item {
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1px solid #F1F1F1;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.public-wrapper .conter .item .turnover {
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.public-wrapper .unconter {
|
||||
text-align: center;
|
||||
color: #999;
|
||||
padding: 25upx;
|
||||
}
|
||||
</style>
|
||||
635
pages/admin/distribution/orderDetail/index.vue
Normal file
635
pages/admin/distribution/orderDetail/index.vue
Normal file
@@ -0,0 +1,635 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- #ifdef MP || APP -->
|
||||
<NavBar titleText="订单详情" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack></NavBar>
|
||||
<!-- #endif -->
|
||||
<view class="headerBg"></view>
|
||||
<view class="order-details pos-order-details">
|
||||
<view class="address">
|
||||
<view v-if="orderInfo.store" class="box acea-row row-middle">
|
||||
<view class="left">
|
||||
<view class="text">{{orderInfo.store.name}}</view>
|
||||
<view class="acea-row row-between-wrapper" @click="showMaoLocation(system_store.latitude,system_store.longitude,system_store.name,system_store.detailed_address)">
|
||||
<span class="txt">{{ orderInfo.store.detailed_address }}</span>
|
||||
<span class="iconfont icon-xiangyou"></span>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view class="iconfont icon-tonghua marrt" @click="makePhone(system_store.phone)"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box acea-row row-middle">
|
||||
<view class="text-box">
|
||||
<view class="text"><text class="iconfont icon-ic_receiving"></text>{{orderInfo.nickname}} {{orderInfo.user_phone}}</view>
|
||||
<view class="acea-row row-between-wrapper">
|
||||
地址:{{orderInfo.user_address}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" @click.stop="makePhone(orderInfo.user_phone)">
|
||||
<text class="iconfont icon-ic_phone"></text>
|
||||
</view>
|
||||
<view class="btn" @click.stop="showMaoLocation(orderInfo.latitude,orderInfo.longitude,orderInfo.nickname,orderInfo.user_address)">
|
||||
<text class="iconfont icon-ic_location"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="line">
|
||||
<image src="/static/images/line.jpg" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-section">
|
||||
<view class="">订单号:{{orderInfo.order_id}}</view>
|
||||
<view class="goods acea-row" v-for="(item, index) in orderInfo.cartInfo" :key="index">
|
||||
<view class="picTxt acea-row">
|
||||
<image :src="item.productInfo.image" class="pictrue"></image>
|
||||
<view class="text">
|
||||
<view class="info line1">
|
||||
{{ item.productInfo.store_name }}
|
||||
</view>
|
||||
<view class="attr line1">{{ item.productInfo.attrInfo.suk }}</view>
|
||||
<view class="label">7天无理由退换货·放心购</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="money">
|
||||
<baseMoney :money="item.productInfo.attrInfo.price" symbolSize="20" integerSize="32" decimalSize="20"></baseMoney>
|
||||
<view class="num">共{{ item.cart_num }}件</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="giveGoods">
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item,index) in giveCartInfo" :key="index">
|
||||
<view class="picTxt acea-row row-middle">
|
||||
<view class="pictrue">
|
||||
<image :src="item.productInfo.attrInfo.image" v-if="item.productInfo.attrInfo"></image>
|
||||
<image :src="item.productInfo.image" v-else></image>
|
||||
</view>
|
||||
<view class="texts">
|
||||
<view class="name line1">[赠品]{{item.productInfo.store_name}}</view>
|
||||
<view class="limit line1" v-if="item.productInfo.attrInfo">{{item.productInfo.attrInfo.suk}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="num">x{{item.cart_num}}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between-wrapper" v-for="(item,index) in giveData.give_coupon" :key="index" v-if="giveData.give_coupon.length">
|
||||
<view class="picTxt acea-row row-middle">
|
||||
<view class="pictrue acea-row row-center-wrapper">
|
||||
<text class="iconfont icon-pc-youhuiquan"></text>
|
||||
</view>
|
||||
<view class="texts">
|
||||
<view class="line1">[赠品]{{item.coupon_title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between-wrapper" v-if="giveData.give_integral>0">
|
||||
<view class="picTxt acea-row row-middle">
|
||||
<view class="pictrue acea-row row-center-wrapper">
|
||||
<text class="iconfont icon-pc-jifen"></text>
|
||||
</view>
|
||||
<view class="texts">
|
||||
<view class="line1">[赠品]{{giveData.give_integral}}积分</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="detail-section">
|
||||
<view class="item acea-row row-between">
|
||||
<view>订单编号</view>
|
||||
<view class="conter acea-row row-middle row-right">
|
||||
{{ orderInfo.order_id }}
|
||||
<span class="copy copy-data" @click="copyNum(orderInfo.order_id)">复制</span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>支付方式</view>
|
||||
<view class="conter">{{ payType }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>支付时间</view>
|
||||
<view class="conter">{{ orderInfo._pay_time }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>下单时间</view>
|
||||
<view class="conter">{{ orderInfo._add_time }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between" v-if="orderInfo._status">
|
||||
<view>配送方式</view>
|
||||
<view class="conter">{{ orderInfo._status._deliveryType }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between">
|
||||
<view>买家留言</view>
|
||||
<view class="conter">{{ orderInfo.mark }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<customForm :customForm="orderInfo.custom_form"></customForm>
|
||||
<view class="wrapper topnone">
|
||||
<view class="item acea-row row-between">
|
||||
<view>商品总价:</view>
|
||||
<view class="conter">¥{{ (parseFloat(orderInfo.total_price)+parseFloat(orderInfo.vip_true_price)).toFixed(2) }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between" v-if="orderInfo.coupon_price>0">
|
||||
<view>优惠券抵扣:</view>
|
||||
<view class="conter">-¥{{ orderInfo.coupon_price }}</view>
|
||||
</view>
|
||||
<view v-if="orderInfo.pay_postage>0" class="item acea-row row-between">
|
||||
<view>运费:</view>
|
||||
<view class="conter">¥{{ orderInfo.pay_postage }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between" v-if="orderInfo.deduction_price>0">
|
||||
<view>积分抵扣金额:</view>
|
||||
<view class="conter">-¥{{ orderInfo.deduction_price }}</view>
|
||||
</view>
|
||||
<view class="item acea-row row-between" v-if="orderInfo.vip_true_price>0">
|
||||
<view>会员商品优惠:</view>
|
||||
<view class="conter">-¥{{ orderInfo.vip_true_price }}</view>
|
||||
</view>
|
||||
<view class='item acea-row row-between' v-for="(item,index) in orderInfo.promotions_detail" :key="index" v-if="parseFloat(item.promotions_price)">
|
||||
<view>{{item.title}}:</view>
|
||||
<view class='conter'>-¥{{parseFloat(item.promotions_price).toFixed(2)}}</view>
|
||||
</view>
|
||||
<view class="actualPay acea-row row-right">
|
||||
实付款:
|
||||
<!-- <span class="money">¥{{ orderInfo.pay_price }}</span> -->
|
||||
<baseMoney :money="orderInfo.pay_price" symbolSize="24" integerSize="40" decimalSize="24" color="#FF7E00"></baseMoney>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="height-add"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import customForm from "@/components/customForm";
|
||||
// #ifdef MP || APP
|
||||
import NavBar from "@/components/NavBar.vue";
|
||||
// #endif
|
||||
import {OrderDetail} from "@/api/admin";
|
||||
import {
|
||||
isMoney
|
||||
} from '@/utils/validate.js'
|
||||
|
||||
export default {
|
||||
name: "orderDetail",
|
||||
components: {
|
||||
customForm,
|
||||
// #ifdef MP || APP
|
||||
NavBar,
|
||||
// #endif
|
||||
},
|
||||
props: {},
|
||||
data: function() {
|
||||
return {
|
||||
giveData: {
|
||||
give_integral: 0,
|
||||
give_coupon: []
|
||||
},
|
||||
giveCartInfo: [],
|
||||
order: false,
|
||||
change: false,
|
||||
order_id: "",
|
||||
orderInfo: '',
|
||||
status: "",
|
||||
title: "",
|
||||
payType: "",
|
||||
types: "",
|
||||
clickNum: 1,
|
||||
goname: '',
|
||||
system_store: '',
|
||||
sum: 0,
|
||||
// #ifdef MP || APP
|
||||
iconColor: '#FFFFFF',
|
||||
isScrolling: false,
|
||||
// #endif
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
"$route.params.oid": function(newVal) {
|
||||
let that = this;
|
||||
if (newVal != undefined) {
|
||||
that.order_id = newVal;
|
||||
that.getIndex();
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad: function(option) {
|
||||
let self = this
|
||||
this.order_id = option.id;
|
||||
this.goname = option.goname
|
||||
this.getIndex();
|
||||
},
|
||||
onPageScroll(e) {
|
||||
// #ifdef MP
|
||||
if (e.scrollTop > 50) {
|
||||
this.isScrolling = true;
|
||||
this.iconColor = '#333333';
|
||||
} else if (e.scrollTop < 50) {
|
||||
this.isScrolling = false;
|
||||
this.iconColor = '#FFFFFF';
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
methods: {
|
||||
more: function() {
|
||||
this.order = !this.order;
|
||||
},
|
||||
modify: function(status) {
|
||||
this.change = true;
|
||||
this.status = status;
|
||||
},
|
||||
changeclose: function(msg) {
|
||||
this.change = msg;
|
||||
},
|
||||
getIndex: function() {
|
||||
let that = this;
|
||||
OrderDetail(that.order_id).then(
|
||||
res => {
|
||||
that.sum = (parseFloat(res.data.total_price) + parseFloat(res.data.vip_true_price)).toFixed(2)
|
||||
that.types = res.data._status._type;
|
||||
that.title = res.data._status._title;
|
||||
that.payType = res.data._status._payType;
|
||||
this.system_store = res.data.store
|
||||
that.giveData.give_coupon = res.data.give_coupon;
|
||||
that.giveData.give_integral = res.data.give_integral;
|
||||
let cartObj = [],
|
||||
giftObj = [];
|
||||
res.data.cartInfo.forEach((item, index) => {
|
||||
if (item.is_gift == 1) {
|
||||
giftObj.push(item)
|
||||
} else {
|
||||
cartObj.push(item)
|
||||
}
|
||||
});
|
||||
res.data.cartInfo = cartObj;
|
||||
that.$set(that, 'giveCartInfo', giftObj);
|
||||
let arr = [];
|
||||
for (let i = 0; i < res.data.user_address.length; i++) {
|
||||
if (res.data.user_address[i] != ' ') {
|
||||
arr.push(res.data.user_address[i]);
|
||||
}
|
||||
}
|
||||
res.data.user_address = arr.join('');
|
||||
that.orderInfo = res.data;
|
||||
},
|
||||
err => {
|
||||
// that.$util.Tips({
|
||||
// title: err
|
||||
// }, {
|
||||
// tab: 3,
|
||||
// url: 1
|
||||
// });
|
||||
}
|
||||
);
|
||||
},
|
||||
//打开地图
|
||||
showMaoLocation: function(latitude, longitude, name, detailed_address) {
|
||||
if (!latitude || !longitude) return this.$util.Tips({
|
||||
title: '缺少经纬度信息无法查看地图!'
|
||||
});
|
||||
uni.openLocation({
|
||||
latitude: parseFloat(latitude),
|
||||
longitude: parseFloat(longitude),
|
||||
scale: 8,
|
||||
name: name,
|
||||
address: detailed_address,
|
||||
success: function() {
|
||||
|
||||
},
|
||||
});
|
||||
},
|
||||
//拨打电话
|
||||
makePhone: function(phone) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phone
|
||||
})
|
||||
},
|
||||
copyNum(id) {
|
||||
uni.setClipboardData({
|
||||
data: id,
|
||||
});
|
||||
},
|
||||
// #ifdef H5
|
||||
webCopy(item, index) {
|
||||
let items = item
|
||||
let indexs = index
|
||||
let self = this
|
||||
|
||||
if (self.clickNum == 1) {
|
||||
self.clickNum += 1
|
||||
self.webCopy(items, indexs)
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.headerBg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 506rpx;
|
||||
background: linear-gradient(360deg, #F5F5F5 0%, rgba(245, 245, 245, 0) 100%),
|
||||
linear-gradient(-90deg, $gradient-primary-admin 0%, $primary-admin 100%);
|
||||
background-position: left bottom, left top;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 120rpx, 100% 100%;
|
||||
}
|
||||
|
||||
.order-details {
|
||||
position: relative;
|
||||
padding: 32rpx 20rpx;
|
||||
|
||||
.address {
|
||||
position: relative;
|
||||
padding: 32rpx 24rpx 28rpx 32rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #FFFFFF;
|
||||
overflow: hidden;
|
||||
|
||||
.text-box {
|
||||
flex: 1;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-bottom: 12rpx;
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
line-height: 42rpx;
|
||||
color: #333333;
|
||||
|
||||
.iconfont {
|
||||
font-size: 32rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 50%;
|
||||
margin-left: 24rpx;
|
||||
background: rgba(42, 126, 251, 0.1);
|
||||
text-align: center;
|
||||
line-height: 56rpx;
|
||||
|
||||
.iconfont {
|
||||
font-size: 28rpx;
|
||||
color: #2A7EFB;
|
||||
}
|
||||
}
|
||||
|
||||
.line {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.goods-section {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
.goods {
|
||||
margin-top: 32rpx;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.picTxt {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.pictrue {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
|
||||
.info {
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.attr {
|
||||
margin-top: 8rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 26rpx;
|
||||
padding: 0 6rpx;
|
||||
border: 1rpx solid #FF7E00;
|
||||
border-radius: 4rpx;
|
||||
margin-top: 12rpx;
|
||||
font-size: 18rpx;
|
||||
line-height: 26rpx;
|
||||
color: #FF7E00;
|
||||
}
|
||||
|
||||
.money {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.num {
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-section {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
.item {
|
||||
margin-top: 24rpx;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mt28 {
|
||||
margin-top: 28rpx;
|
||||
}
|
||||
|
||||
.height-add {
|
||||
height: 120upx;
|
||||
}
|
||||
|
||||
.giveGoods {
|
||||
.item {
|
||||
padding: 14rpx 0;
|
||||
border-top: 1px solid #eee;
|
||||
|
||||
.picTxt {
|
||||
.pictrue {
|
||||
width: 76rpx;
|
||||
height: 76rpx;
|
||||
border-radius: 6rpx;
|
||||
background-color: #F5F5F5;
|
||||
color: $primary-admin;
|
||||
|
||||
.iconfont {
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.texts {
|
||||
width: 360rpx;
|
||||
color: #999999;
|
||||
font-size: 20rpx;
|
||||
|
||||
.name {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.limit {
|
||||
font-size: 20rpx;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.num {
|
||||
color: #999999;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.order-details .line {
|
||||
width: 100%;
|
||||
height: 3upx;
|
||||
}
|
||||
|
||||
.order-details .line image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.order-details .wrapper {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.order-details .topnone {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.order-details .wrapper .title {
|
||||
height: 100upx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1upx solid #EEEEEE;
|
||||
margin-bottom: 34upx;
|
||||
|
||||
}
|
||||
|
||||
.order-details .wrapper .title .font {
|
||||
font-size: 32upx;
|
||||
font-weight: 600;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.order-details .wrapper .title .mapbtn {
|
||||
width: 176upx;
|
||||
height: 56upx;
|
||||
border: 1upx solid #1890FF;
|
||||
border-radius: 28upx;
|
||||
text-align: center;
|
||||
line-height: 50upx;
|
||||
color: #1890FF;
|
||||
font-size: 26upx;
|
||||
}
|
||||
|
||||
.order-details .wrapper .item {
|
||||
font-size: 28upx;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.order-details .wrapper .item~.item {
|
||||
margin-top: 26rpx;
|
||||
}
|
||||
|
||||
.order-details .wrapper .item .conter {
|
||||
color: #868686;
|
||||
/* width: 500upx; */
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.order-details .wrapper .item .conter .copy {
|
||||
font-size: 20rpx;
|
||||
color: #333;
|
||||
border-radius: 3rpx;
|
||||
border: 1px solid #666;
|
||||
padding: 0rpx 15rpx;
|
||||
margin-left: 10rpx;
|
||||
height: 40rpx;
|
||||
line-height: 38upx;
|
||||
}
|
||||
|
||||
.order-details .wrapper .actualPay {
|
||||
// border-top: 1upx solid #eee;
|
||||
margin-top: 26rpx;
|
||||
// padding-top: 30upx;
|
||||
}
|
||||
|
||||
.order-details .wrapper .actualPay .money {
|
||||
font-weight: bold;
|
||||
font-size: 30upx;
|
||||
color: #FF7E00;
|
||||
}
|
||||
|
||||
.copy-data {
|
||||
width: 68rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 18rpx;
|
||||
margin-left: 8rpx;
|
||||
background: #F5F5F5;
|
||||
text-align: center;
|
||||
font-size: 22rpx;
|
||||
line-height: 36rpx;
|
||||
color: #333333;
|
||||
}
|
||||
</style>
|
||||
756
pages/admin/distribution/scanning/detail/index.vue
Normal file
756
pages/admin/distribution/scanning/detail/index.vue
Normal file
@@ -0,0 +1,756 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class='shoppingCart copy-data'>
|
||||
<view class='nav acea-row row-between-wrapper'>
|
||||
<view>订单号:<text class='num'>{{ list.order_id }}</text></view>
|
||||
<navigator class="btn" :url="'/pages/admin/writeRecordList/index?id='+id" hover-class="none">
|
||||
核销记录<text class="iconfont icon-ic_rightarrow"></text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class='list'>
|
||||
<view>
|
||||
<block v-for="(item,index) in list.cart_info" :key="index">
|
||||
<view class='item acea-row row-between-wrapper' :style="{ opacity: item.is_writeoff ? 0.5: 1 }">
|
||||
<div class="xuan" @click="dan(item.cart_id,index)">
|
||||
<view :class="(item.checked || item.is_writeoff)?'iconfont icon-a-ic_CompleteSelect':'iconfont icon-ic_unselect'"></view>
|
||||
</div>
|
||||
<view class='picTxt acea-row row-between-wrapper'>
|
||||
<view class='pictrue'>
|
||||
<image :src="item.cart_info.productInfo.attrInfo?item.cart_info.productInfo.attrInfo.image:item.cart_info.productInfo.image" mode=""></image>
|
||||
</view>
|
||||
<view class='text'>
|
||||
<view class="title">
|
||||
<view class='line1' :class="item.attrStatus?'':'reColor'">
|
||||
{{ item.cart_info.productInfo.store_name }}
|
||||
</view>
|
||||
<view v-if="item.is_writeoff == 1" class="txt">已核销</view>
|
||||
<view v-if="item.is_writeoff == 0 && lists.cart_info[index].surplus_num == lists.cart_info[index].cart_num" class="txt bluecol">未核销</view>
|
||||
<view v-if="item.is_writeoff == 0 && lists.cart_info[index].surplus_num != lists.cart_info[index].cart_num" class="txt orangcol">
|
||||
已核销{{parseInt(lists.cart_info[index].cart_num-lists.cart_info[index].surplus_num)}}件</view>
|
||||
</view>
|
||||
<view class='infor line1'>
|
||||
属性:{{ item.cart_info.productInfo.attrInfo.suk }}</view>
|
||||
<view class='money he row-middle'>
|
||||
<view>¥{{ item.cart_info.productInfo.attrInfo?item.cart_info.productInfo.attrInfo.price:item.cart_info.productInfo.price }}</view>
|
||||
<view v-if="item.is_writeoff == 1" class="txt">
|
||||
<view class='carnum acea-row row-center-wrapper'>
|
||||
<view class="reduce">
|
||||
<text class="iconfont icon-ic_Reduce"></text>
|
||||
</view>
|
||||
<view class='nums'>0</view>
|
||||
<view class="plus">
|
||||
<text class="iconfont icon-ic_increase"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="txt">
|
||||
<view class='carnum acea-row row-center-wrapper'>
|
||||
<view v-if="item.surplus_num_input == 1" class="reduce bggary">
|
||||
<text class="iconfont icon-ic_Reduce"></text>
|
||||
</view>
|
||||
<view v-else class="reduce" @click.stop='subCart(item,index)'>
|
||||
<text class="iconfont icon-ic_Reduce"></text>
|
||||
</view>
|
||||
<!-- <view class='nums'>{{parseInt(item.surplus_num)}}</view> -->
|
||||
<input v-model="item.surplus_num_input" class='nums' type="number" @input="numInput(index, $event)" />
|
||||
<view v-if="item.surplus_num_input == item.surplus_num" class="plus bggary">
|
||||
<text class="iconfont icon-ic_increase"></text>
|
||||
</view>
|
||||
<view v-else class="plus" @click.stop='addCart(item,index)'>
|
||||
<text class="iconfont icon-ic_increase"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='footer acea-row row-between-wrapper'>
|
||||
<view>
|
||||
<view style="display: flex;" @change="checkboxAllChange">
|
||||
<div class="xuan" @click="checkAll" v-model="checked">
|
||||
<view class="iconfont" :class="checked?'icon-a-ic_CompleteSelect':'icon-ic_unselect'"></view>
|
||||
</div>
|
||||
<text class='checkAll'>全选</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<button class='money' type="primary" @click="verification">{{checked?'一键':'确认'}}核销({{numChecked}})</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="box">
|
||||
<view class="box">
|
||||
<view class="small_box">
|
||||
<!-- <image src="../../../static/decorate.png" mode=""></image> -->
|
||||
<view class="content">
|
||||
<view class="font">核销成功</view>
|
||||
<view v-if="list.total_num == parseInt(list.writeoff_count)+writeOffNum" class="small_font">当前订单已完成核销</view>
|
||||
<view v-else class="small_font">该订单仍有其他待核销商品</view>
|
||||
</view>
|
||||
<view class="acea-row btn-box">
|
||||
<view v-if="lets == 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum" class="btn primary" @click="ok(1)">知道了</view>
|
||||
<navigator v-if="lets > 1 && list.total_num != parseInt(list.writeoff_count)+writeOffNum" :url='"/pages/admin/distribution/scanning/index?code="+attr.code' hover-class='none'
|
||||
open-type="redirect" class="btn btn_no">返回列表</navigator>
|
||||
<navigator v-if="(lets > 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum)||(lets==1&&list.total_num != parseInt(list.writeoff_count)+writeOffNum)"
|
||||
url="/pages/admin/distribution/index" hover-class='none' open-type="redirect" class="btn btn_no">返回首页</navigator>
|
||||
<view v-if="list.total_num != parseInt(list.writeoff_count)+writeOffNum" class="btn on" @click="ok(0)">继续核销</view>
|
||||
<navigator v-if="lets > 1 && list.total_num == parseInt(list.writeoff_count)+writeOffNum" :url='"/pages/admin/distribution/scanning/index?code="+attr.code' open-type="redirect"
|
||||
hover-class='none' class="btn">核销其他订单</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<writeOffSwitching ref="writeOff" :attr="attr" :isShow='1' :iSplus='1' :iScart='1' @dataId="onDataId" @myevent="onMyEvent" id='product-window'></writeOffSwitching>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import writeOffSwitching from '../../../components/writeOffSwitching/index.vue';
|
||||
import {
|
||||
orderCartInfo,
|
||||
orderWriteoff
|
||||
} from '@/api/admin'
|
||||
import {
|
||||
nextTick
|
||||
} from 'process';
|
||||
export default {
|
||||
components: {
|
||||
writeOffSwitching
|
||||
},
|
||||
props: {
|
||||
idss: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
code: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
let: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
nums: [],
|
||||
newList: [],
|
||||
reduce_show: -1,
|
||||
plus_show: -1,
|
||||
ids: [], //选定需要核销的id
|
||||
lets: 0, //判断订单的数量
|
||||
listlet: 0, //判断订单商品的数量
|
||||
attr: { //切换组件传值
|
||||
cartAttr: false,
|
||||
id: [],
|
||||
code: '',
|
||||
type: 0
|
||||
},
|
||||
id: 0, //订单ID
|
||||
list: [],
|
||||
lists: [],
|
||||
lengt: 0,
|
||||
box: false,
|
||||
checked: false,
|
||||
checkModel: [],
|
||||
isAllSelect: false,
|
||||
data: [{
|
||||
id: '1',
|
||||
value: 'aaa'
|
||||
}, {
|
||||
id: '2',
|
||||
value: 'bbb'
|
||||
}, {
|
||||
id: '3',
|
||||
value: 'ccc'
|
||||
}],
|
||||
writeOffNum: 0, //每次核销商品数量
|
||||
auth: 1,
|
||||
numChecked: 0,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
checkModel(val) {
|
||||
if (this.lengt == this.checkModel.length) {
|
||||
this.checked = true;
|
||||
} else {
|
||||
this.checked = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad: function(options) {
|
||||
this.id = options.id
|
||||
this.attr.code = options.code
|
||||
this.lets = options.let
|
||||
this.auth = options.auth
|
||||
this.getList(this.id)
|
||||
},
|
||||
onShow: function() {},
|
||||
methods: {
|
||||
numInput(index, event) {
|
||||
let value = event.detail.value;
|
||||
// if (parseInt(event.detail.value) > (this.list.cart_info[index].surplus_num + this.nums[index].num)) {
|
||||
// this.$nextTick(() => {
|
||||
// this.list.cart_info[index].surplus_num_input = this.list.cart_info[index].surplus_num + this.nums[index].num
|
||||
// })
|
||||
// }
|
||||
if (value) {
|
||||
value = Number(value);
|
||||
this.$nextTick(() => {
|
||||
if (value > this.list.cart_info[index].surplus_num) {
|
||||
this.list.cart_info[index].surplus_num_input = this.list.cart_info[index].surplus_num;
|
||||
} else if (value < 1) {
|
||||
this.list.cart_info[index].surplus_num_input = 1;
|
||||
}
|
||||
let numChecked = 0;
|
||||
for (let i = 0; i < this.list.cart_info.length; i++) {
|
||||
if (!this.list.cart_info[i].is_writeoff) {
|
||||
if (this.list.cart_info[i].checked) {
|
||||
numChecked = numChecked + Number(this.list.cart_info[i].surplus_num_input)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.numChecked = numChecked;
|
||||
});
|
||||
}
|
||||
},
|
||||
//处理每一条数据的最大值
|
||||
num() {
|
||||
for (let index = 0; index < this.lists.cart_info.length; index++) {
|
||||
this.nums.push({
|
||||
num: 0
|
||||
});
|
||||
}
|
||||
},
|
||||
subCart(item, index) {
|
||||
if (item.surplus_num_input == 1) {
|
||||
this.reduce_show = index;
|
||||
} else {
|
||||
this.nums[index].num--
|
||||
item.surplus_num_input--
|
||||
}
|
||||
let numChecked = 0;
|
||||
for (let i = 0; i < this.list.cart_info.length; i++) {
|
||||
if (!this.list.cart_info[i].is_writeoff) {
|
||||
if (this.list.cart_info[i].checked) {
|
||||
numChecked = numChecked + this.list.cart_info[i].surplus_num_input
|
||||
}
|
||||
}
|
||||
}
|
||||
this.numChecked = numChecked;
|
||||
},
|
||||
addCart(item, index) {
|
||||
if (item.surplus_num_input == item.surplus_num) {
|
||||
this.plus_show = index;
|
||||
} else {
|
||||
item.surplus_num_input++
|
||||
this.nums[index].num++
|
||||
}
|
||||
let numChecked = 0;
|
||||
for (let i = 0; i < this.list.cart_info.length; i++) {
|
||||
if (!this.list.cart_info[i].is_writeoff) {
|
||||
if (this.list.cart_info[i].checked) {
|
||||
numChecked = numChecked + this.list.cart_info[i].surplus_num_input
|
||||
}
|
||||
}
|
||||
}
|
||||
this.numChecked = numChecked;
|
||||
},
|
||||
checkAll() {
|
||||
var items = this.list.cart_info,
|
||||
data = [];
|
||||
if (this.checked) {
|
||||
this.checkModel = [];
|
||||
for (var i = 0, lenI = this.list.cart_info.length; i < lenI; ++i) {
|
||||
const item = items[i]
|
||||
this.$set(item, 'checked', false)
|
||||
}
|
||||
} else {
|
||||
this.checkModel = [];
|
||||
for (var i = 0, lenI = this.list.cart_info.length; i < lenI; ++i) {
|
||||
const item = items[i]
|
||||
|
||||
this.$set(item, 'checked', true)
|
||||
if (item.is_writeoff == 1) {
|
||||
this.checkModel = this.checkModel.filter(item => item != item.cart_id)
|
||||
} else {
|
||||
this.checkModel.push(item.cart_id)
|
||||
}
|
||||
}
|
||||
this.lengt = this.checkModel.length
|
||||
}
|
||||
let numChecked = 0;
|
||||
for (let i = 0; i < this.list.cart_info.length; i++) {
|
||||
if (!this.list.cart_info[i].is_writeoff) {
|
||||
if (this.list.cart_info[i].checked) {
|
||||
numChecked = numChecked + Number(this.list.cart_info[i].surplus_num_input)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.numChecked = numChecked;
|
||||
},
|
||||
dan(id, index) {
|
||||
if (this.list.cart_info[index].is_writeoff) {
|
||||
return
|
||||
}
|
||||
if (this.checkModel.indexOf(id) == -1) {
|
||||
this.$set(this.list.cart_info[index], 'checked', true)
|
||||
this.checkModel.push(id)
|
||||
} else {
|
||||
this.$set(this.list.cart_info[index], 'checked', false)
|
||||
this.checkModel = this.checkModel.filter(item => item != id)
|
||||
}
|
||||
// let checked = true;
|
||||
// for (let i = 0; i < this.cart_info.length; i++) {
|
||||
// if (!this.cart_info[i].is_writeoff) {
|
||||
// if (!this.cart_info[i].checked) {
|
||||
// checked = false;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// this.checked = checked;
|
||||
let numChecked = 0;
|
||||
for (let i = 0; i < this.list.cart_info.length; i++) {
|
||||
if (!this.list.cart_info[i].is_writeoff) {
|
||||
if (this.list.cart_info[i].checked) {
|
||||
numChecked = numChecked + Number(this.list.cart_info[i].surplus_num_input)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.numChecked = numChecked;
|
||||
},
|
||||
getList: function(id) {
|
||||
orderCartInfo({
|
||||
oid: id,
|
||||
auth: this.auth,
|
||||
}).then(res => {
|
||||
for (let i = 0; i < res.data.cart_info.length; i++) {
|
||||
res.data.cart_info[i].surplus_num_input = res.data.cart_info[i].surplus_num;
|
||||
}
|
||||
this.list = res.data
|
||||
this.lists = JSON.parse(JSON.stringify(res.data))
|
||||
this.listlet = res.data.cart_info.length
|
||||
this.$set(this.attr, 'id', this.list.id);
|
||||
this.checkAll()
|
||||
this.num()
|
||||
})
|
||||
},
|
||||
onDataId: function(id) {
|
||||
this.nums.forEach((item) => {
|
||||
item.num = 0
|
||||
})
|
||||
this.id = id;
|
||||
this.getList(id)
|
||||
},
|
||||
switchs() {
|
||||
this.attr.cartAttr = true;
|
||||
this.$refs.writeOff.getList(2)
|
||||
},
|
||||
onMyEvent() {
|
||||
this.attr.cartAttr = false;
|
||||
},
|
||||
verification() {
|
||||
let that = this
|
||||
let obj = {};
|
||||
// 将数组转化为对象
|
||||
for (let key in this.checkModel) {
|
||||
obj[key] = this.checkModel[key];
|
||||
};
|
||||
let newObj = Object.keys(obj).map(val => ({
|
||||
cart_id: obj[val],
|
||||
}));
|
||||
//处理列表内对应的核销数的数值
|
||||
for (var i = 0; i < newObj.length; i++) {
|
||||
for (var j = 0; j < this.list.cart_info.length; j++) {
|
||||
if (newObj[i].cart_id == this.list.cart_info[j].cart_id) {
|
||||
newObj[i].cart_num = this.list.cart_info[j].surplus_num_input;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.newList = newObj
|
||||
if (that.checkModel.length == 0) {
|
||||
that.$util.Tips({
|
||||
title: '请选择商品'
|
||||
});
|
||||
} else {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
});
|
||||
let num = 0;
|
||||
newObj.forEach((item) => {
|
||||
num = num + parseInt(item.cart_num)
|
||||
})
|
||||
this.writeOffNum = num;
|
||||
setTimeout(function() {
|
||||
orderWriteoff({
|
||||
auth: that.auth,
|
||||
oid: that.id,
|
||||
cart_ids: that.newList
|
||||
}).then(res => {
|
||||
uni.hideLoading();
|
||||
that.box = true
|
||||
}).catch(err => {
|
||||
that.$util.Tips({
|
||||
title: err
|
||||
});
|
||||
uni.hideLoading();
|
||||
})
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
// 所有订单核销完成
|
||||
ok(type) {
|
||||
this.box = false
|
||||
this.nums.forEach((item) => {
|
||||
item.num = 0
|
||||
})
|
||||
this.getList(this.id)
|
||||
if (type) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/admin/orderDetail/index?id='+this.list.order_id+'&types=3'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.shoppingCart {
|
||||
padding: 24rpx 20rpx;
|
||||
}
|
||||
.shoppingCart .list .item .xuan .iconfont {
|
||||
font-size: 40rpx;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
.he {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.txt {
|
||||
font-size: 22upx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
|
||||
.small_box {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 75rpx;
|
||||
left: 75rpx;
|
||||
padding: 40rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FFFFFF;
|
||||
transform: translateY(-50%);
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 228upx;
|
||||
}
|
||||
|
||||
.content {
|
||||
// height: 200upx;
|
||||
text-align: center;
|
||||
|
||||
.font {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
line-height: 52rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.small_font {
|
||||
margin-top: 24rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 42rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-box {
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
height: 72rpx;
|
||||
border: 1rpx solid $primary-admin;
|
||||
border-radius: 36rpx;
|
||||
margin-left: 32rpx;
|
||||
transform: rotateZ(360deg);
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
line-height: 70rpx;
|
||||
color: $primary-admin;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&.on {
|
||||
background: $primary-admin;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background: $primary-admin;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
.btn_no {
|
||||
// flex: 1;
|
||||
// color: #999999;
|
||||
// margin-top: 28upx;
|
||||
// text-align: center;
|
||||
// font-size: 30upx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shoppingCart .content {
|
||||
padding: 32rpx 24rpx;
|
||||
margin-top: 20rpx;
|
||||
border-radius: 24rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
.item {
|
||||
margin-top: 48rpx;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .xuan .icon-a-ic_CompleteSelect {
|
||||
color: $primary-admin;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding-left: 16rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .pictrue {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .pictrue image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding-left: 20rpx;
|
||||
font-size: 28upx;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text .reColor {
|
||||
color: #333333;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text .title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
|
||||
.bluecol {
|
||||
color: $primary-admin;
|
||||
}
|
||||
|
||||
.orangcol {
|
||||
color: #FF7E00;
|
||||
}
|
||||
|
||||
.graycol {
|
||||
color: #CCCCCC;
|
||||
}
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text .title .top {
|
||||
width: 70%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 28upx;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text .infor {
|
||||
font-size: 22rpx;
|
||||
line-height: 30rpx;
|
||||
color: #999999;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .text .money {
|
||||
font-size: 36rpx;
|
||||
line-height: 36rpx;
|
||||
color: #333333;
|
||||
margin-top: 18rpx;
|
||||
font-family: Regular;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum {
|
||||
height: 36rpx;
|
||||
// position: absolute;
|
||||
// bottom: 7upx;
|
||||
// right: 0;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum view {
|
||||
// border: 1upx solid #a4a4a4;
|
||||
width: 32rpx;
|
||||
text-align: center;
|
||||
height: 100%;
|
||||
line-height: 36rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .reduce {
|
||||
border-right: 0;
|
||||
border-radius: 30upx 0 0 30upx;
|
||||
padding-right: 8rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .reduce.on {
|
||||
border-color: #e3e3e3;
|
||||
color: #dedede;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .plus {
|
||||
border-left: 0;
|
||||
border-radius: 0 30upx 30upx 0;
|
||||
padding-left: 8rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .iconfont {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .bggary .iconfont {
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .num {
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .num0 {
|
||||
color: #a4a4a4;
|
||||
}
|
||||
|
||||
.shoppingCart .list .item .picTxt .carnum .nums {
|
||||
width: 72rpx;
|
||||
border-radius: 4rpx;
|
||||
background: #F5F5F5;
|
||||
text-align: center;
|
||||
font-family: SemiBold;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.shoppingCart .footer {
|
||||
// z-index: 999;
|
||||
width: 100%;
|
||||
background: #FFFFFF;
|
||||
position: fixed;
|
||||
padding: 0 20rpx 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
height: 96rpx;
|
||||
height: calc(96rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||||
height: calc(96rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||||
padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
|
||||
padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
|
||||
}
|
||||
|
||||
.shoppingCart .footer.on {
|
||||
// #ifndef H5
|
||||
bottom: 0upx;
|
||||
// #endif
|
||||
}
|
||||
|
||||
.shoppingCart .footer .iconfont {
|
||||
font-size: 40rpx;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
|
||||
.shoppingCart .footer .icon-a-ic_CompleteSelect {
|
||||
color: $primary-admin;
|
||||
}
|
||||
|
||||
.shoppingCart .footer .checkAll {
|
||||
font-size: 28upx;
|
||||
color: #282828;
|
||||
margin-left: 16upx;
|
||||
}
|
||||
.shoppingCart .footer .money {
|
||||
font-size: 24rpx;
|
||||
height: 64rpx;
|
||||
padding: 0 32rpx;
|
||||
background: $primary-admin;
|
||||
border-radius: 32rpx;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
line-height: 64rpx;
|
||||
}
|
||||
|
||||
.shoppingCart .footer .placeOrder {
|
||||
color: #fff;
|
||||
font-size: 30upx;
|
||||
width: 226upx;
|
||||
height: 70upx;
|
||||
border-radius: 50upx;
|
||||
text-align: center;
|
||||
line-height: 70upx;
|
||||
margin-left: 22upx;
|
||||
}
|
||||
|
||||
.shoppingCart .footer .button .bnt {
|
||||
font-size: 28upx;
|
||||
color: #999;
|
||||
border-radius: 50upx;
|
||||
border: 1px solid #999;
|
||||
width: 160upx;
|
||||
height: 60upx;
|
||||
text-align: center;
|
||||
line-height: 60upx;
|
||||
}
|
||||
|
||||
.shoppingCart .footer .button form~form {
|
||||
margin-left: 17upx;
|
||||
}
|
||||
</style>
|
||||
451
pages/admin/distribution/scanning/index.vue
Normal file
451
pages/admin/distribution/scanning/index.vue
Normal file
@@ -0,0 +1,451 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="scan">
|
||||
<view class="header">请选择要核销的订单</view>
|
||||
<view class="box">
|
||||
<view class="content" v-for="(item,index) in list" :key="index" @click="jump(item.id)">
|
||||
<view class="acea-row row-between">
|
||||
<view class="orange" v-if="(item._status == 4 || item._status == 12) && item.status == 5">部分核销</view>
|
||||
<view class="attributes blue" v-if="item._status == 4 && item.status == 1">未核销</view>
|
||||
<view class="attributes blue" v-if="item._status == 11">未核销</view>
|
||||
<view class="attributes blue" v-if="item._status == 5">已核销</view>
|
||||
<!-- <navigator class="btn" url="/pages/admin/writeRecordList/index" hover-class="none">核销记录<text class="iconfont icon-ic_rightarrow"></text></navigator> -->
|
||||
<view class="btn" @click.stop="goRecord(item.id)">核销记录<text class="iconfont icon-ic_rightarrow"></text></view>
|
||||
</view>
|
||||
<view class="content_box acea-row">
|
||||
<image :src="item.image" mode=""></image>
|
||||
<view class="content_box_title acea-row row-column row-between">
|
||||
<p class="textbox">订单号:{{ item.order_id }}</p>
|
||||
<p class="attribute">下单时间:{{ item.add_time }}</p>
|
||||
<view class="txt">
|
||||
<p class="attribute">订单实付:¥{{ item.pay_price }}</p>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mask" v-if="popupShow" @click="closePopup"></view>
|
||||
<view class="popup acea-row row-column on" v-if="popupShow">
|
||||
<view class="popup-hd">
|
||||
商品核销
|
||||
<view class="btn" @click="closePopup">
|
||||
<text class="iconfont icon-ic_close"></text>
|
||||
</view>
|
||||
</view>
|
||||
<writeOffList class="popup-bd" :list="orderInfo" :auth="auth" :oid="id" @success="writeSuccess"></writeOffList>
|
||||
</view>
|
||||
<view v-if="box">
|
||||
<view class="boxs">
|
||||
<view class="small_box">
|
||||
<view class="content">
|
||||
<view class="font">核销成功</view>
|
||||
<view v-if="isAll" class="small_font">当前订单已完成核销</view>
|
||||
<view v-else class="small_font">该订单仍有其他待核销商品</view>
|
||||
</view>
|
||||
<view class="acea-row btn-box">
|
||||
<view v-if="!isAll" class="btn" @click="ok(1)">返回列表</view>
|
||||
<!-- <navigator v-if="!isAll" :url='"/pages/admin/distribution/scanning/index?code="+attr.code' hover-class='none' open-type="redirect" class="btn btn_no">返回列表</navigator> -->
|
||||
<navigator v-if="isAll" url="/pages/admin/work/index" hover-class='none' class="btn btn_no">返回工作台</navigator>
|
||||
<view v-if="!isAll" class="btn on" @click="ok(2)">继续核销</view>
|
||||
<view v-if="isAll" class="btn on" @click="ok(3)">核销其他订单</view>
|
||||
<!-- <navigator v-if="isAll" :url='"/pages/admin/distribution/scanning/index?code="' open-type="redirect" hover-class='none' class="btn on">核销其他订单</navigator> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
orderWriteoffInfo,
|
||||
orderVerific,
|
||||
orderCartInfo,
|
||||
} from '@/api/admin'
|
||||
import {
|
||||
HTTP_REQUEST_URL
|
||||
} from '@/config/app';
|
||||
import {
|
||||
nextTick
|
||||
} from "vue";
|
||||
import writeOffList from '../../components/writeOffList/index.vue';
|
||||
export default {
|
||||
name: 'scanning',
|
||||
components: {
|
||||
writeOffList,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
auth: 1,
|
||||
verify_code: '',
|
||||
list: [],
|
||||
imgHost: HTTP_REQUEST_URL,
|
||||
popupShow: false,
|
||||
orderInfo: {},
|
||||
id: 0,
|
||||
box: false,
|
||||
isAll: 1,
|
||||
}
|
||||
},
|
||||
onLoad: function(option) {
|
||||
this.auth = option.auth
|
||||
this.verify_code = option.code
|
||||
},
|
||||
onShow(options) {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
goRecord(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/admin/writeRecordList/index?id=' + id
|
||||
})
|
||||
},
|
||||
getList: function() {
|
||||
orderVerific(this.verify_code, this.auth)
|
||||
.then(res => {
|
||||
// self.orderInfo = res.data
|
||||
this.list = res.data.data;
|
||||
// self.iShidden = true
|
||||
})
|
||||
.catch(res => {
|
||||
// self.verify_code = ''
|
||||
return this.$util.Tips({
|
||||
title: res
|
||||
});
|
||||
});
|
||||
},
|
||||
jump: function(id) {
|
||||
this.id = id;
|
||||
this.getCartList(id)
|
||||
},
|
||||
getCartList: function(id) {
|
||||
orderCartInfo({
|
||||
oid: id,
|
||||
auth: this.auth,
|
||||
}).then(res => {
|
||||
if (res.data.product_type == 4) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/admin/writeOffCard/index?id=' + id
|
||||
})
|
||||
} else {
|
||||
let orderInfo = res.data;
|
||||
for (let i = 0; i < orderInfo.cart_info.length; i++) {
|
||||
orderInfo.cart_info[i].surplus_num_input = orderInfo.cart_info[i].surplus_num;
|
||||
orderInfo.cart_info[i].checked = true;
|
||||
}
|
||||
this.orderInfo = orderInfo
|
||||
this.popupShow = true;
|
||||
}
|
||||
}).catch(res => {
|
||||
this.$util.Tips({
|
||||
title: res
|
||||
});
|
||||
});
|
||||
},
|
||||
closePopup() {
|
||||
this.popupShow = false;
|
||||
},
|
||||
writeSuccess(val) {
|
||||
this.isAll = val;
|
||||
this.box = true;
|
||||
},
|
||||
ok(val) {
|
||||
this.box = false;
|
||||
this.popupShow = false;
|
||||
this.getList();
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.scan {
|
||||
padding-bottom: 160upx;
|
||||
|
||||
.header {
|
||||
height: 346rpx;
|
||||
padding: 48rpx 0 0 32rpx;
|
||||
background: linear-gradient(270deg, $gradient-primary-admin 0%, $primary-admin 100%);
|
||||
font-weight: 500;
|
||||
font-size: 36rpx;
|
||||
line-height: 50rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.box {
|
||||
padding: 0 20rpx;
|
||||
margin: -216rpx 0 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 32rpx 24rpx;
|
||||
border-radius: 24rpx;
|
||||
margin-bottom: 20rpx;
|
||||
background: #FFFFFF;
|
||||
|
||||
.attributes {
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: $primary-admin;
|
||||
}
|
||||
|
||||
.orange {
|
||||
color: #FF7E00;
|
||||
}
|
||||
|
||||
.pad {
|
||||
padding: 20upx 20upx 22upx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #999999;
|
||||
|
||||
.iconfont {
|
||||
margin-left: 4rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content_box {
|
||||
margin-top: 26rpx;
|
||||
|
||||
image {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.content_box_title {
|
||||
flex: 1;
|
||||
padding-left: 20rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 34rpx;
|
||||
color: #666666;
|
||||
|
||||
.textbox {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
line-height: 40rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.mar {
|
||||
margin: 16upx 0upx;
|
||||
}
|
||||
|
||||
.attribute {
|
||||
color: #999999;
|
||||
// margin: 4upx 0upx 10upx;
|
||||
}
|
||||
|
||||
.txt {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 24upx;
|
||||
|
||||
.orange {
|
||||
color: #FF7E00;
|
||||
}
|
||||
|
||||
.blue {
|
||||
color: $primary-admin;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content_bottom {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 22upx;
|
||||
padding: 0upx 20upx;
|
||||
color: #666666;
|
||||
|
||||
.money {
|
||||
font-size: 26upx;
|
||||
color: #F5222D;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 6;
|
||||
// max-height: 75%;
|
||||
// min-height: 500rpx;
|
||||
height: 800rpx;
|
||||
padding-bottom: 0;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
border-radius: 40rpx 40rpx 0 0;
|
||||
background: #FFFFFF;
|
||||
overflow: hidden;
|
||||
flex-wrap: nowrap;
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.3s;
|
||||
|
||||
&.on {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.popup-hd {
|
||||
position: relative;
|
||||
height: 108rpx;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
line-height: 108rpx;
|
||||
color: #333333;
|
||||
|
||||
.btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 32rpx;
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 50%;
|
||||
background: #EEEEEE;
|
||||
transform: translateY(-50%);
|
||||
text-align: center;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
vertical-align: middle;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-bd {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
/deep/.shoppingCart {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
margin-top: 0;
|
||||
padding: 36rpx 32rpx;
|
||||
border-radius: 0;
|
||||
|
||||
.item {
|
||||
margin-bottom: 48rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: static;
|
||||
height: 96rpx;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup-ft {
|
||||
padding: 16rpx 20rpx 16rpx 32rpx;
|
||||
|
||||
.btn {
|
||||
height: 64rpx;
|
||||
padding: 0 32rpx;
|
||||
border-radius: 32rpx;
|
||||
background: $primary-admin;
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
line-height: 64rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.boxs {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
background-color: #78797a;
|
||||
|
||||
.small_box {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 75rpx;
|
||||
left: 75rpx;
|
||||
padding: 40rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #FFFFFF;
|
||||
transform: translateY(-50%);
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 228upx;
|
||||
}
|
||||
|
||||
.content {
|
||||
// height: 200upx;
|
||||
text-align: center;
|
||||
|
||||
.font {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
line-height: 52rpx;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.small_font {
|
||||
margin-top: 24rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 42rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-box {
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
height: 72rpx;
|
||||
border: 1rpx solid $primary-admin;
|
||||
border-radius: 36rpx;
|
||||
margin-left: 32rpx;
|
||||
transform: rotateZ(360deg);
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
line-height: 70rpx;
|
||||
color: $primary-admin;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&.on {
|
||||
background: $primary-admin;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user