wangfukang 3 years ago
parent
commit
70584daa6d
  1. 320
      pages/index/index.vue
  2. 69
      pages/index/publicWelfare.vue
  3. 19
      pages/inventory/goodsList1.vue
  4. 164
      pages/rebate/rebateShare.vue

320
pages/index/index.vue

@ -2,25 +2,29 @@
<view> <view>
<cmd-nav-bar iconOne="menu" @iconOne="goToInfo" :title="shopName" background-color="#fff"></cmd-nav-bar> <cmd-nav-bar iconOne="menu" @iconOne="goToInfo" :title="shopName" background-color="#fff"></cmd-nav-bar>
<view class="IndexContent"> <view class="IndexContent">
<view class="contentPadding" style="color:#000;background: #FBFBFF !important;padding: 28rpx 20rpx 0 !important;"> <view class="contentPadding"
style="color:#000;background: #FBFBFF !important;padding: 28rpx 20rpx 0 !important;">
<view class="title-btn-d"> <view class="title-btn-d">
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/returnList')"> <view class="title-btn-sbtn" @tap="goSonPage('/pages/index/returnList')">
<text>待退货</text> <text>待退货</text>
<text v-if="waitCount.waitReturnCount > 0" class="red-circle">{{waitCount.waitReturnCount > 99 ? '99+' :waitCount.waitReturnCount}}</text> <text v-if="waitCount.waitReturnCount > 0"
</view> class="red-circle">{{waitCount.waitReturnCount > 99 ? '99+' :waitCount.waitReturnCount}}</text>
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/order?listStatus=6')"> </view>
<text>待配货</text> <view class="title-btn-sbtn" @tap="goSonPage('/pages/index/order?listStatus=6')">
<text v-if="waitCount.waitAddProductCount > 0" class="red-circle">{{waitCount.waitAddProductCount > 99 ? '99+' :waitCount.waitAddProductCount}}</text> <text>待配货</text>
</view> <text v-if="waitCount.waitAddProductCount > 0"
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/addHangOrder')"> class="red-circle">{{waitCount.waitAddProductCount > 99 ? '99+' :waitCount.waitAddProductCount}}</text>
<text>挂单</text> </view>
</view> <view class="title-btn-sbtn" @tap="goSonPage('/pages/index/addHangOrder')">
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/shareStyle')"> <text>挂单</text>
<text>推款</text> </view>
</view> <view class="title-btn-sbtn" @tap="goSonPage('/pages/index/shareStyle')">
<view class="title-btn-sbtn" @tap="goSonPage('/pages/index/waitStorage?inStorageStatus=0')"> <text>推款</text>
<text>待入库</text> </view>
<text v-if="waitCount.waitPurchaseCount > 0" class="red-circle">{{waitCount.waitPurchaseCount > 99 ? '99+' :waitCount.waitPurchaseCount}}</text> <view class="title-btn-sbtn" @tap="goSonPage('/pages/index/waitStorage?inStorageStatus=0')">
<text>待入库</text>
<text v-if="waitCount.waitPurchaseCount > 0"
class="red-circle">{{waitCount.waitPurchaseCount > 99 ? '99+' :waitCount.waitPurchaseCount}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -64,11 +68,14 @@
</view> </view>
<ul class="inventoryList" v-if="inventoryList.length > 0"> <ul class="inventoryList" v-if="inventoryList.length > 0">
<li v-for="item in inventoryList" :key="item.id"> <li v-for="item in inventoryList" :key="item.id">
<uni-card :title="item.userName == null ?'暂无':item.userName" :sub-title="'¥'+(item.totalAmount == null ?'暂无':item.totalAmount)" :thumbnail="item.img" <uni-card :title="item.userName == null ?'暂无':item.userName"
:sub-title="'¥'+(item.totalAmount == null ?'暂无':item.totalAmount)" :thumbnail="item.img"
@tap="gotoDetail(item.id)"> @tap="gotoDetail(item.id)">
<view class="uni-body">{{ item.createByName == null ?'暂无':item.createByName}} - {{ item.createTime }}</view> <view class="uni-body">{{ item.createByName == null ?'暂无':item.createByName}} -
<view class="uni-body"> <text class="cardText"> {{ item.createTime }}
订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}} </view>
<view class="uni-body"> <text class="cardText">
订单状态:</text>{{item.status == 0 ?'待抢单' :item.status == 1 ?'待取货' :item.status == 3 ?'待送达' :item.status == 4 ?'已完成' :item.status == 5 ?'下游客户待退货' :item.status == 00 ?'退货待抢单' :item.status == 01 ?'退货待取货' :item.status == 03 ?'退货待送达' :item.status == 04 ?'待确认退货' :item.status == 6 ?'待配货' :'挂单'}}
</view> </view>
</uni-card> </uni-card>
</li> </li>
@ -90,20 +97,24 @@
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="setting-fill" url="/pages/index/shopInfo" title="修改个人信息" clickable isLink <u-cell icon="setting-fill" url="/pages/index/shopInfo" title="修改个人信息" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/upstream" v-if="type==0" title="供货商欠款" clickable isLink <u-cell icon="integral-fill" url="/pages/index/upstream" v-if="type==0" title="供货商欠款"
clickable isLink arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/downstream" v-if="type==0" title="客户欠款"
clickable isLink arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/waitStorage" title="采购单历史" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/downstream" v-if="type==0" title="客户欠款" clickable isLink <u-cell icon="integral-fill" url="/pages/index/order?type=dingdan" title="销售单历史" clickable
arrow-direction="left"></u-cell> isLink arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/waitStorage" title="采购单历史" clickable isLink <u-cell icon="integral-fill" url="" title="物业费缴纳" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/index/order?type=dingdan" title="销售单历史" clickable isLink <u-cell icon="integral-fill" url="" title="电费缴纳" clickable isLink
arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="" title="租金缴纳(已过期)" clickable isLink
arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="/pages/rebate/rebateShare" title="邀请返佣" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="" title="物业费缴纳" clickable isLink <u-cell icon="integral-fill" url="/pages/index/publicWelfare" title="公益公示" clickable isLink
arrow-direction="left"></u-cell> arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="" title="电费缴纳" clickable isLink
arrow-direction="left"></u-cell>
<u-cell icon="integral-fill" url="" title="租金缴纳(已过期)" clickable isLink
arrow-direction="left"></u-cell>
</u-cell-group> </u-cell-group>
</view> </view>
</view> </view>
@ -121,13 +132,13 @@
export default { export default {
computed: mapState(['shopName', 'userId', 'shopIndex', 'avatar']), computed: mapState(['shopName', 'userId', 'shopIndex', 'avatar']),
data() { data() {
return { return {
type:'', type: '',
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg', src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
inventoryList: [], inventoryList: [],
settingShow: false, settingShow: false,
chartData: {}, chartData: {},
shopName:'', shopName: '',
opts: { opts: {
padding: [15, 10, 0, 15], padding: [15, 10, 0, 15],
dataLabel: true, dataLabel: true,
@ -163,50 +174,50 @@
} }
}, },
}, },
shopInfo: {}, shopInfo: {},
waitCount:{} waitCount: {}
} }
}, },
components: { components: {
cmdNavBar cmdNavBar
}, },
filters: { filters: {
spliceMsg(val) { spliceMsg(val) {
val == null || undefined ? '暂无' : val val == null || undefined ? '暂无' : val
return val; return val;
} }
}, },
onShow(){ onShow() {
this.shopName = uni.getStorageSync('shopName') this.shopName = uni.getStorageSync('shopName')
this.type = uni.getStorageSync('type') this.type = uni.getStorageSync('type')
}, },
onLoad() { onLoad() {
this.getSaleInfo() this.getSaleInfo()
this.getServerData(); this.getServerData();
this.getOrderInfoList(); this.getOrderInfoList();
this.getWaitCount() this.getWaitCount()
}, },
methods: { methods: {
getWaitCount(){ getWaitCount() {
this.tui.request("/app/sale/getWaitCount", "POST", {}, false, false).then((res) => { this.tui.request("/app/sale/getWaitCount", "POST", {}, false, false).then((res) => {
if(res.code == 200){ if (res.code == 200) {
this.waitCount = res.result this.waitCount = res.result
}else{ } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }
}) })
}, },
getSaleInfo() { getSaleInfo() {
this.tui.request("/app/sale/getShopAll", "POST", { this.tui.request("/app/sale/getShopAll", "POST", {
shopId: this.shopIndex shopId: this.shopIndex
}, false, false).then((res) => { }, false, false).then((res) => {
if(res.code == 200){ if (res.code == 200) {
this.shopInfo = res.result this.shopInfo = res.result
}else{ } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }
}) })
}, },
goToInfo() { goToInfo() {
@ -231,70 +242,72 @@
}, },
}, false, false).then((res) => { }, false, false).then((res) => {
this.status = 'nomore'; this.status = 'nomore';
if (res.code == 200) { if (res.code == 200) {
for (var i=0;i<= res.result.records.length;i++) { for (var i = 0; i <= res.result.records.length; i++) {
res.result.records[i].img='/static/images/dingdan/dd'+i+'.png' res.result.records[i].img = '/static/images/dingdan/dd' + i + '.png'
this.inventoryList = res.result.records this.inventoryList = res.result.records
} }
this.totalPages = res.result.pages this.totalPages = res.result.pages
} else { } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }
}).catch((res) => {}) }).catch((res) => {})
}, },
getServerData() { getServerData() {
this.tui.request("/app/sale/getShopWeek", "POST", {}, false, false).then((res) => { this.tui.request("/app/sale/getShopWeek", "POST", {}, false, false).then((res) => {
if(res.code == 200){ if (res.code == 200) {
let dataList = { let dataList = {
categories: this.getWeek(), categories: this.getWeek(),
series: [{ series: [{
name: "七天营收统计", name: "七天营收统计",
linearColor: [ linearColor: [
[0,"#1890FF"], [0, "#1890FF"],
[0.33,"#00B5FF"], [0.33, "#00B5FF"],
[0.66,"#00D1ED"], [0.66, "#00D1ED"],
[1,"#00E6BB"], [1, "#00E6BB"],
[1,"#90F489"] [1, "#90F489"]
], ],
setShadow: [3,8,10,"#00E6BB"], setShadow: [3, 8, 10, "#00E6BB"],
data: res.result data: res.result
}] }]
}; };
this.chartData = JSON.parse(JSON.stringify(dataList)); this.chartData = JSON.parse(JSON.stringify(dataList));
}else{ } else {
this.tui.toast(res.message) this.tui.toast(res.message)
} }
})
},
getWeek() {
let days = 7
let week = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
let dateList = Array.from({
length: days
}, (v, i) => i).map(day => {
let date = new Date();
date.setDate(date.getDate() - day);
return week[date.getDay()]
})
return dateList.reverse()
},
//跳转订单详情
gotoDetail(id) {
uni.navigateTo({
url: '/pages/index/orderDetail?id=' + id
})
},
//首页头部四个按钮的菜单
goSonPage(url) {
if (url == '/pages/index/waitStorage?inStorageStatus=0') {
if (this.type != 0) {
this.tui.toast('暂无查看权限!')
return;
}
}
uni.navigateTo({
url: url
}) })
},
getWeek() {
let days = 7
let week = ["周日","周一","周二","周三","周四","周五","周六"];
let dateList = Array.from({length:days},(v,i)=> i).map(day =>{
let date = new Date();
date.setDate(date.getDate() - day);
return week[date.getDay()]
})
return dateList.reverse()
},
//跳转订单详情
gotoDetail(id) {
uni.navigateTo({
url: '/pages/index/orderDetail?id=' + id
})
},
//首页头部四个按钮的菜单
goSonPage(url){
if(url=='/pages/index/waitStorage?inStorageStatus=0'){
if(this.type!= 0){
this.tui.toast('暂无查看权限!')
return;
}
}
uni.navigateTo({
url: url
})
} }
} }
} }
@ -369,8 +382,8 @@
.dianpu-img { .dianpu-img {
width: 60upx; width: 60upx;
height: 60upx; height: 60upx;
float: left; float: left;
margin-left:20upx; margin-left: 20upx;
} }
.dianpu-text { .dianpu-text {
@ -378,31 +391,36 @@
height: 60upx; height: 60upx;
line-height: 65upx; line-height: 65upx;
padding-left: 20upx; padding-left: 20upx;
} }
.title-btn-sbtn{
flex: 1; .title-btn-sbtn {
line-height: 80upx; flex: 1;
text-align: center; line-height: 80upx;
position: relative; text-align: center;
} position: relative;
.title-btn-sbtn:hover{ }
color: #B22222;
} .title-btn-sbtn:hover {
.title-btn-sbtn:nth-child(1),.title-btn-sbtn:nth-child(2){ color: #B22222;
border-right: 1px solid #fff; }
}
.red-circle{ .title-btn-sbtn:nth-child(1),
position: absolute; .title-btn-sbtn:nth-child(2) {
top: 0; border-right: 1px solid #fff;
right: 0; }
width: 40rpx;
height: 40rpx; .red-circle {
line-height: 40rpx; position: absolute;
font-size: 22rpx; top: 0;
border-radius: 50%; right: 0;
background: red; width: 40rpx;
color: #fff; height: 40rpx;
text-align: center; line-height: 40rpx;
font-size: 22rpx;
border-radius: 50%;
background: red;
color: #fff;
text-align: center;
} }
</style> </style>
<style> <style>

69
pages/index/publicWelfare.vue

@ -0,0 +1,69 @@
<template>
<view class="">
<view class="month-list">
<view class="title">2023年12月公示</view>
<view class="content">
<view class="text">捐赠总金额:10000元</view>
<view class="text">帮扶人数:20人</view>
<view class="text">本月帮帮团:3005人</view>
</view>
<view class="btn-list" style="display: flex;">
<view class="btn">帮扶公示</view>
<view class="btn">帮帮团公示</view>
</view>
</view>
<view class="month-list">
<view class="title">2023年11月公示</view>
<view class="content">
<view class="text">捐赠总金额:5000元</view>
<view class="text">帮扶人数:10人</view>
<view class="text">本月帮帮团:2156人</view>
</view>
<view class="btn-list" style="display: flex;">
<view class="btn">帮扶公示</view>
<view class="btn">帮帮团公示</view>
</view>
</view>
</view>
</template>
<script>
</script>
<style>
page {
font-size: 36rpx;
}
.month-list {
border: 1px solid #eee;
width: 95%;
margin: 20rpx auto;
background: #fff;
border-radius: 10px;
}
.title {
height: 80rpx;
line-height: 80rpx;
border-bottom: 1px solid #eee;
padding-left: 10px;
font-weight: bold;
}
.text {
line-height: 40px;
height: 80rpx;
padding-left: 10px;
}
.btn {
flex: 1;
text-align: center;
height: 100rpx;
line-height: 100rpx;
border: 1px solid #eee;
text-decoration: underline;
color: #3c9cff
}
</style>

19
pages/inventory/goodsList1.vue

@ -1,6 +1,9 @@
<!-- 销售商品 --> <!-- 销售商品 -->
<template> <template>
<view class="page1"> <view class="page1">
<view class="notice">
<u-notice-bar mode='horizontal' type='primary' :text="noticeData"></u-notice-bar>
</view>
<view class="content"> <view class="content">
<view class="content-box"> <view class="content-box">
<view class="content-list"> <view class="content-list">
@ -346,7 +349,8 @@
noPay: 0, //欠款 noPay: 0, //欠款
discountNum: 10, //整体折扣 discountNum: 10, //整体折扣
priceCurrent: '', priceCurrent: '',
goodsDetail: [], goodsDetail: [],
noticeData:['您每发出一个包,使用拉包工和物流公司送货时,我们将从中拿出0.5元,捐入快拾帮帮公益基金中,帮助那些贫困儿童!我们的付出将让世界充满爱!'],
columns: [], columns: [],
keyList: [], keyList: [],
temporaryList: [], temporaryList: [],
@ -1111,7 +1115,7 @@
onPrint(opt) { onPrint(opt) {
let that = this; let that = this;
that.yNum = 150 that.yNum = 150
let strCmd = blesdk.CreatCPCLPage(600, 2080, 1, 0); let strCmd = blesdk.CreatCPCLPage(600, 1040, 1, 0);
strCmd += blesdk.addCPCLSETMAG(2, 2) strCmd += blesdk.addCPCLSETMAG(2, 2)
blesdk.addCPCLSETBOLD('bold') blesdk.addCPCLSETBOLD('bold')
strCmd += blesdk.addCPCLLocation(2); strCmd += blesdk.addCPCLLocation(2);
@ -1525,10 +1529,6 @@
display: flex; display: flex;
margin-right: 20rpx; margin-right: 20rpx;
} }
.bottom-box { .bottom-box {
width: 100%; width: 100%;
position: absolute; position: absolute;
@ -1545,7 +1545,10 @@
height: 110rpx; height: 110rpx;
line-height: 110rpx; line-height: 110rpx;
} }
.notice{
width: 100%;
height: 90rpx;
}
.bottom-right { .bottom-right {
width: 60%; width: 60%;
display: flex; display: flex;

164
pages/rebate/rebateShare.vue

@ -0,0 +1,164 @@
<template>
<view class="content" @tap="shareBtn">
<button open-type="share" class="btn"></button>
<view class="title" id='arktitle'>邀请注册最高返现50元</view>
<view class="banner">1、被邀请人需注册成功并缴纳年费后返佣<br>2、根据被邀请人开通服务的时间长短,返现金额不同<br>3、邀请成功后返佣金额自动进入店铺账户,可直接提现</view>
<view class="bottom">*最终解释权归快衣店所有</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
onShareAppMessage(res) {
if (res.from === 'button') { // 来自页面内分享按钮
console.log(res.target)
}
return {
title: '你的好友邀请你注册快衣店!',
path: '/pages/rebate/rebateShare',
type:1,
imageUrl:'/static/images/pyq.png'
}
},
onLoad(options) {
},
methods: {
}
}
</script>
<style>
page {
width: 100%;
height: 100%;
}
.content {
width: 100%;
height: 100%;
background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/352c2490d88b47ac84bf13bfa046abcf.png') no-repeat;
background-size: cover;
background-position: center;
overflow: hidden;
}
.title,
.banner,
.bottom {
width: 80%;
margin: 0 auto;
text-align: center;
}
.title {
height: 100rpx;
line-height: 100rpx;
font-size: 48rpx;
margin-top: 200rpx;
}
.banner {
margin-top: 750rpx;
}
.bottom {
margin-top: 100rpx;
font-size: 26rpx;
}
.btn {
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0);
position: absolute;
top: 0;
}
#arktitle {
background: linear-gradient(to bottom, #000, blue);
-webkit-background-clip: text;
color: transparent;
animation: blink 2s linear infinite;
-webkit-animation: blink 2s linear infinite;
-moz-animation: blink 2s linear infinite;
-ms-animation: blink 2s linear infinite;
-o-animation: blink 2s linear infinite;
}
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.8;
}
}
@-webkit-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.8;
}
}
@-moz-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.8;
}
}
@-ms-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.8;
}
}
@-o-keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 0.8;
}
}
</style>
Loading…
Cancel
Save