parent
60efa27c21
commit
125da454eb
File diff suppressed because one or more lines are too long
@ -1,318 +1,352 @@ |
|||||||
<template> |
<template> |
||||||
<view> |
<view> |
||||||
<view class="onorder width100" v-if="agentCouponList.length==0"> |
<view class="onorder width100" v-if="agentCouponList.length==0"> |
||||||
<image :src="imagewxUrl+imgadres"></image> |
<image :src="imagewxUrl+imgadres"></image> |
||||||
</view> |
</view> |
||||||
<view class="width90 height120 backcorfff mart15" v-for="(agent,index) in agentCouponList" :key="index"> |
<view class="width90 height130 backcorfff mart15" v-for="(agent,index) in agentCouponList" :key="index"> |
||||||
<image class="flleft agent_img margle mart10" v-if="agent.merchantLogo == null" |
<image class="flleft agent_img margle mart10" v-if="agent.merchantLogo == null" |
||||||
src='../../../static/img/logo.png'></image> |
src='../../../static/img/logo.png'></image> |
||||||
<image class="flleft agent_img margle mart10" v-else :src="image_url+agent.merchantLogo"></image> |
<image class="flleft agent_img margle mart10" v-else :src="image_url+agent.merchantLogo"></image> |
||||||
<view class="agent_title paddtop13"> |
<view class="agent_title paddtop13"> |
||||||
<view class="font18 fcor333 width100">{{agent.highCoupon.couponName}}</view> |
<view class="font18 fcor333 width100">{{agent.highCoupon.couponName}}</view> |
||||||
<view class="width100 mart5 font14 fcor333 height22"> |
<view class="width100 mart5 font14 fcor333 height22"> |
||||||
<!-- <view class="agent_left_num flleft text1"> |
<!-- <view class="agent_left_num flleft text1"> |
||||||
{{agent.highCouponCode.salesCode}} |
{{agent.highCouponCode.salesCode}} |
||||||
</view> --> |
</view> --> |
||||||
<view class="agent_right_num flright fotrt"> |
<view class="agent_right_num flright fotrt"> |
||||||
{{agent.highCoupon.salesPrice}}.00 |
{{agent.highCoupon.salesPrice}}.00 |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="width100 line1 mart5"></view> |
<view class="width100 line1 mart5"></view> |
||||||
<view class="width90"> |
<view class="width90"> |
||||||
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode(agent.id)" |
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode(agent.id)" |
||||||
v-if="typeId == 1">生成油码</button> |
v-if="typeId == 1 && typeid == 1">生成油码</button> |
||||||
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
||||||
v-if="typeId == 2">查看详情</button> |
v-if="typeId == 2 && typeid == 1">查看详情</button> |
||||||
<view class="agent_ts font15 fcor333 fotlt text1" v-if="typeId == 2 && agent.remark !=null "> |
<view class="agent_ts font15 fcor333 fotlt text1" |
||||||
备注:{{agent.remark}}</view> |
v-if="typeId == 2 && agent.remark !=null && typeid == 1"> |
||||||
</view> |
备注:{{agent.remark}}</view> |
||||||
</view> |
|
||||||
|
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="generateCode(agent.id)" |
||||||
<!-- /弹窗 --> |
v-if="typeId == 1 && typeid == 2">生成兑换码</button> |
||||||
<view :hidden="userFeedbackHidden" class="popup_content"> |
<button class="flright backcorf06 fcorfff font15 agent_btn mart10" @click="jumpCouponDes(agent.id)" |
||||||
<view class="popup_title">填写备注</view> |
v-if="typeId == 2 && typeid == 2">查看详情</button> |
||||||
<view class="popup_textarea_item"> |
<view class="agent_ts font15 fcor333 fotlt text1" |
||||||
<textarea class="popup_textarea" placeholder='请填写您的备注信息...' v-model="feedbackContent"> |
v-if="typeId == 2 && typeid == 2 && agent.remark !=null "> |
||||||
</textarea> |
备注:{{agent.remark}}</view> |
||||||
<view @click="submitFeedback()"> |
</view> |
||||||
<button class="popup_button">提交备注</button> |
</view> |
||||||
</view> |
|
||||||
</view> |
<!-- /弹窗 --> |
||||||
</view> |
<view :hidden="userFeedbackHidden" class="popup_content"> |
||||||
<view class="popup_overlay" :hidden="userFeedbackHidden" @click="hideDiv()"></view> |
<view class="popup_title">填写备注</view> |
||||||
</view> |
<view class="popup_textarea_item"> |
||||||
</template> |
<textarea class="popup_textarea" placeholder='请填写您的备注信息...' v-model="feedbackContent"> |
||||||
|
</textarea> |
||||||
<script> |
<view @click="submitFeedback()"> |
||||||
import { |
<button class="popup_button">提交备注</button> |
||||||
getCodeListByAgentCoupon, |
</view> |
||||||
generateCode |
</view> |
||||||
} from "../../../Utils/Api.js"; |
</view> |
||||||
let app = getApp(); |
<view class="popup_overlay" :hidden="userFeedbackHidden" @click="hideDiv()"></view> |
||||||
export default { |
</view> |
||||||
data() { |
</template> |
||||||
return { |
|
||||||
pageNum: 1, |
<script> |
||||||
pageSize: 10, |
import { |
||||||
agentCouponList: [], |
getCodeListByAgentCoupon, |
||||||
imagewxUrl: app.globalData.imageWxImg, |
generateCode |
||||||
imgadres:'noorder.png', |
} from "../../../Utils/Api.js"; |
||||||
isNoMoreData: false, |
let app = getApp(); |
||||||
typeId: '', |
export default { |
||||||
reFreshs: '', |
data() { |
||||||
couponId: '', |
return { |
||||||
image_url: app.globalData.imgUrl, |
pageNum: 1, |
||||||
userFeedbackHidden: true, // 默认隐藏 |
pageSize: 10, |
||||||
feedbackContent: '', // 用户备注信息 |
agentCouponList: [], |
||||||
couId: '' |
imagewxUrl: app.globalData.imageWxImg, |
||||||
} |
imgadres: 'noorder.png', |
||||||
}, |
isNoMoreData: false, |
||||||
filters: { |
typeId: '', |
||||||
//过滤器 用于格式化时间 |
reFreshs: '', |
||||||
formatDate: function(value, spe = '/') { |
couponId: '', |
||||||
let data = new Date(value); |
image_url: app.globalData.imgUrl, |
||||||
let year = data.getFullYear(); |
userFeedbackHidden: true, // 默认隐藏 |
||||||
let month = data.getMonth() + 1; |
feedbackContent: '', // 用户备注信息 |
||||||
let day = data.getDate(); |
couId: '', |
||||||
let h = data.getHours(); |
typeid: '' |
||||||
let mm = data.getMinutes(); |
} |
||||||
let s = data.getSeconds(); |
}, |
||||||
month = month >= 10 ? month : "0" + month; |
filters: { |
||||||
day = day >= 10 ? day : "0" + day; |
//过滤器 用于格式化时间 |
||||||
h = h >= 10 ? h : "0" + h; |
formatDate: function(value, spe = '/') { |
||||||
mm = mm >= 10 ? mm : "0" + mm; |
let data = new Date(value); |
||||||
s = s >= 10 ? s : "0" + s; |
let year = data.getFullYear(); |
||||||
return `${year}${spe}${month}${spe}${day}`; |
let month = data.getMonth() + 1; |
||||||
} |
let day = data.getDate(); |
||||||
}, |
let h = data.getHours(); |
||||||
onReachBottom() { |
let mm = data.getMinutes(); |
||||||
this.getCodeListByAgentCoupon(); |
let s = data.getSeconds(); |
||||||
}, |
month = month >= 10 ? month : "0" + month; |
||||||
onLoad(option) { |
day = day >= 10 ? day : "0" + day; |
||||||
this.typeId = option.id; |
h = h >= 10 ? h : "0" + h; |
||||||
this.couponId = option.couponsId; |
mm = mm >= 10 ? mm : "0" + mm; |
||||||
}, |
s = s >= 10 ? s : "0" + s; |
||||||
onShow() { |
return `${year}${spe}${month}${spe}${day}`; |
||||||
this.getCodeListByAgentCoupon(); |
} |
||||||
}, |
}, |
||||||
watch: { |
onReachBottom() { |
||||||
//监听reFresh,如果有修改就执行监听器 |
this.getCodeListByAgentCoupon(); |
||||||
reFreshs: function() { |
}, |
||||||
this.pageNum = 1; |
onLoad(option) { |
||||||
this.agentCouponList = [] |
this.typeId = option.id; |
||||||
this.isNoMoreData = false; |
this.typeid = option.typeid; |
||||||
this.getCodeListByAgentCoupon(); |
this.couponId = option.couponsId; |
||||||
} |
}, |
||||||
}, |
onShow() { |
||||||
methods: { |
this.getCodeListByAgentCoupon(); |
||||||
//查询列表 |
}, |
||||||
getCodeListByAgentCoupon() { |
watch: { |
||||||
uni.showLoading({ |
//监听reFresh,如果有修改就执行监听器 |
||||||
title: '加载中...' |
reFreshs: function() { |
||||||
}) |
this.pageNum = 1; |
||||||
if (this.isNoMoreData) { |
this.agentCouponList = [] |
||||||
uni.hideLoading(); |
this.isNoMoreData = false; |
||||||
return false; |
this.getCodeListByAgentCoupon(); |
||||||
} |
} |
||||||
let pagenum = this.pageNum; |
}, |
||||||
let params; |
methods: { |
||||||
if (this.typeId == 1) { |
//查询列表 |
||||||
params = { |
getCodeListByAgentCoupon() { |
||||||
pageNum: pagenum, |
uni.showLoading({ |
||||||
couponId: this.couponId, |
title: '加载中...' |
||||||
status: 1, |
}) |
||||||
pageSize: this.pageSize |
if (this.isNoMoreData) { |
||||||
} |
uni.hideLoading(); |
||||||
} else if (this.typeId == 2) { |
return false; |
||||||
params = { |
} |
||||||
pageNum: pagenum, |
let pagenum = this.pageNum; |
||||||
couponId: this.couponId, |
let params; |
||||||
status: '2,3', |
if (this.typeId == 1) { |
||||||
pageSize: this.pageSize |
if (this.typeid == 1) { |
||||||
} |
params = { |
||||||
} |
pageNum: pagenum, |
||||||
|
couponId: this.couponId, |
||||||
getCodeListByAgentCoupon(params).then(res => { |
status: 1, |
||||||
uni.hideLoading(); |
type: 1, |
||||||
if (res.return_code == '000000') { |
pageSize: this.pageSize |
||||||
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
} |
||||||
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
} else { |
||||||
this.isNoMoreData = true; |
params = { |
||||||
} |
pageNum: pagenum, |
||||||
this.agentCouponList = this.agentCouponList.concat(res.return_data.list); |
couponId: this.couponId, |
||||||
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
status: 1, |
||||||
} else { |
type: 2, |
||||||
this.agentCouponList = []; |
pageSize: this.pageSize |
||||||
} |
} |
||||||
}) |
} |
||||||
}, |
} else if (this.typeId == 2) { |
||||||
|
if (this.typeid == 1) { |
||||||
//生成二维码 |
params = { |
||||||
generateCode(item) { |
pageNum: pagenum, |
||||||
this.userFeedbackHidden = false; |
couponId: this.couponId, |
||||||
this.couId = item; |
status: '2,3', |
||||||
}, |
type: 1, |
||||||
hideDiv() { // 隐藏输入弹出框 |
pageSize: this.pageSize |
||||||
this.userFeedbackHidden = true; |
} |
||||||
}, |
} else { |
||||||
// 提交备注 |
params = { |
||||||
submitFeedback() { |
pageNum: pagenum, |
||||||
if (this.feedbackContent == '') { |
couponId: this.couponId, |
||||||
uni.showToast({ |
status: '2,3', |
||||||
title: '请填写备注信息', |
type: 2, |
||||||
icon: 'none', |
pageSize: this.pageSize |
||||||
duration: 2000 |
} |
||||||
}) |
} |
||||||
} else { |
} |
||||||
uni.showLoading({ |
|
||||||
title: '油码生成中...' |
getCodeListByAgentCoupon(params).then(res => { |
||||||
}) |
uni.hideLoading(); |
||||||
let datas = { |
if (res.return_code == '000000') { |
||||||
couponAgentCodeId: this.couId, |
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
||||||
remark: this.feedbackContent |
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
||||||
} |
this.isNoMoreData = true; |
||||||
generateCode(datas).then(res => { |
} |
||||||
uni.hideLoading() |
this.agentCouponList = this.agentCouponList.concat(res.return_data.list); |
||||||
if (res.return_code == '000000') { |
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
||||||
this.userFeedbackHidden = true; |
} else { |
||||||
uni.navigateTo({ |
this.agentCouponList = []; |
||||||
url: '../../goods/coupons-info-details/coupons-info-details?id=' + this.couId |
} |
||||||
}) |
}) |
||||||
} else { |
}, |
||||||
uni.showToast({ |
|
||||||
title: res.return_msg, |
//生成二维码 |
||||||
icon: 'none', |
generateCode(item) { |
||||||
duration: 2000 |
this.userFeedbackHidden = false; |
||||||
}) |
this.couId = item; |
||||||
} |
}, |
||||||
}); |
hideDiv() { // 隐藏输入弹出框 |
||||||
} |
this.userFeedbackHidden = true; |
||||||
}, |
}, |
||||||
|
// 提交备注 |
||||||
//查看详情 |
submitFeedback() { |
||||||
jumpCouponDes(ids) { |
if (this.feedbackContent == '') { |
||||||
uni.navigateTo({ |
uni.showToast({ |
||||||
url: '../../goods/coupons-info-details/coupons-info-details?id=' + ids |
title: '请填写备注信息', |
||||||
}) |
icon: 'none', |
||||||
} |
duration: 2000 |
||||||
} |
}) |
||||||
} |
} else { |
||||||
</script> |
uni.showLoading({ |
||||||
|
title: '生成中...' |
||||||
<style lang="scss"> |
}) |
||||||
page { |
let datas = { |
||||||
background-color: #f5f5f5; |
couponAgentCodeId: this.couId, |
||||||
} |
remark: this.feedbackContent |
||||||
|
} |
||||||
.onorder { |
generateCode(datas).then(res => { |
||||||
width: 100%; |
uni.hideLoading() |
||||||
height: 50vw; |
if (res.return_code == '000000') { |
||||||
display: flex; |
this.userFeedbackHidden = true; |
||||||
justify-content: center; |
uni.navigateTo({ |
||||||
align-content: center; |
url: '../../goods/coupons-info-details/coupons-info-details?id=' + this |
||||||
flex-wrap: wrap; |
.couId |
||||||
|
}) |
||||||
image { |
} else { |
||||||
width: 70vw; |
uni.showToast({ |
||||||
margin-top: 150px; |
title: res.return_msg, |
||||||
} |
icon: 'none', |
||||||
|
duration: 2000 |
||||||
.text { |
}) |
||||||
width: 100%; |
} |
||||||
height: 60upx; |
}); |
||||||
font-size: 28upx; |
} |
||||||
color: #444; |
}, |
||||||
display: flex; |
|
||||||
justify-content: center; |
//查看详情 |
||||||
align-items: center; |
jumpCouponDes(ids) { |
||||||
} |
uni.navigateTo({ |
||||||
} |
url: '../../goods/coupons-info-details/coupons-info-details?id=' + ids |
||||||
|
}) |
||||||
.agent_img { |
} |
||||||
width: 50px; |
} |
||||||
height: 50px; |
} |
||||||
} |
</script> |
||||||
|
|
||||||
.agent_title { |
<style lang="scss"> |
||||||
margin-left: 60px; |
page { |
||||||
} |
background-color: #f5f5f5; |
||||||
|
} |
||||||
.agent_left_num { |
|
||||||
width: 55%; |
.onorder { |
||||||
} |
width: 100%; |
||||||
|
height: 50vw; |
||||||
.agent_right_num { |
display: flex; |
||||||
width: 40%; |
justify-content: center; |
||||||
margin-right: 5%; |
align-content: center; |
||||||
} |
flex-wrap: wrap; |
||||||
|
|
||||||
.agent_btn { |
image { |
||||||
width: 88px; |
width: 70vw; |
||||||
height: 35px; |
margin-top: 150px; |
||||||
line-height: 35px; |
} |
||||||
} |
|
||||||
|
.text { |
||||||
.agent_ts { |
width: 100%; |
||||||
margin-right: 95px; |
height: 60upx; |
||||||
padding-top: 18px; |
font-size: 28upx; |
||||||
} |
color: #444; |
||||||
|
display: flex; |
||||||
// 弹窗 |
justify-content: center; |
||||||
.popup_overlay { |
align-items: center; |
||||||
|
} |
||||||
position: fixed; |
} |
||||||
top: 0%; |
|
||||||
left: 0%; |
.agent_img { |
||||||
width: 100%; |
width: 50px; |
||||||
height: 100%; |
height: 50px; |
||||||
background-color: black; |
} |
||||||
z-index: 1001; |
|
||||||
-moz-opacity: 0.8; |
.agent_title { |
||||||
opacity: .80; |
margin-left: 60px; |
||||||
filter: alpha(opacity=88); |
} |
||||||
} |
|
||||||
|
.agent_left_num { |
||||||
.popup_content { |
width: 55%; |
||||||
position: fixed; |
} |
||||||
top: 50%; |
|
||||||
left: 50%; |
.agent_right_num { |
||||||
width: 520upx; |
width: 40%; |
||||||
height: 550upx; |
margin-right: 5%; |
||||||
margin-left: -270upx; |
} |
||||||
margin-top: -270upx; |
|
||||||
border: 10px solid white; |
.agent_btn { |
||||||
background-color: white; |
width: 88px; |
||||||
z-index: 1002; |
height: 35px; |
||||||
overflow: auto; |
line-height: 35px; |
||||||
border-radius: 20upx; |
} |
||||||
} |
|
||||||
|
.agent_ts { |
||||||
.popup_title { |
margin-right: 95px; |
||||||
padding-top: 20upx; |
padding-top: 18px; |
||||||
width: 480upx; |
} |
||||||
text-align: center; |
|
||||||
font-size: 40rpx; |
// 弹窗 |
||||||
} |
.popup_overlay { |
||||||
|
|
||||||
.popup_textarea_item { |
position: fixed; |
||||||
padding-top: 20rpx; |
top: 0%; |
||||||
height: 240rpx; |
left: 0%; |
||||||
width: 90%; |
width: 100%; |
||||||
background-color: #F1F1F1; |
height: 100%; |
||||||
margin-top: 30rpx; |
background-color: black; |
||||||
margin-left: 5%; |
z-index: 1001; |
||||||
} |
-moz-opacity: 0.8; |
||||||
|
opacity: .80; |
||||||
.popup_textarea { |
filter: alpha(opacity=88); |
||||||
width: 410upx; |
} |
||||||
font-size: 26upx; |
|
||||||
margin-left: 20upx; |
.popup_content { |
||||||
} |
position: fixed; |
||||||
|
top: 50%; |
||||||
.popup_button { |
left: 50%; |
||||||
color: white; |
width: 520upx; |
||||||
background-color: #4399FC; |
height: 550upx; |
||||||
border-radius: 10upx; |
margin-left: -270upx; |
||||||
} |
margin-top: -270upx; |
||||||
|
border: 10px solid white; |
||||||
|
background-color: white; |
||||||
|
z-index: 1002; |
||||||
|
overflow: auto; |
||||||
|
border-radius: 20upx; |
||||||
|
} |
||||||
|
|
||||||
|
.popup_title { |
||||||
|
padding-top: 20upx; |
||||||
|
width: 480upx; |
||||||
|
text-align: center; |
||||||
|
font-size: 40rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.popup_textarea_item { |
||||||
|
padding-top: 20rpx; |
||||||
|
height: 240rpx; |
||||||
|
width: 90%; |
||||||
|
background-color: #F1F1F1; |
||||||
|
margin-top: 30rpx; |
||||||
|
margin-left: 5%; |
||||||
|
} |
||||||
|
|
||||||
|
.popup_textarea { |
||||||
|
width: 410upx; |
||||||
|
font-size: 26upx; |
||||||
|
margin-left: 20upx; |
||||||
|
} |
||||||
|
|
||||||
|
.popup_button { |
||||||
|
color: white; |
||||||
|
background-color: #4399FC; |
||||||
|
border-radius: 10upx; |
||||||
|
} |
||||||
</style> |
</style> |
||||||
|
@ -1,226 +1,314 @@ |
|||||||
<template> |
<template> |
||||||
<view> |
<view> |
||||||
<view class="promotion_bg backcorf06 width100 height90 fcorfff fotct font24 fontspec10">我的推广</view> |
<view class="promotion_bg backcorf06 width100 height90 fcorfff fotct font24 fontspec10">我的推广</view> |
||||||
<view class="promotion_dt width90 height100p backcorfff" @click="jumpRunWater"> |
<view class="promotion_dt width90 height100p backcorfff" @click="jumpRunWater"> |
||||||
<view class="width100 mart10 fcor333 font14 fontwig6 height22"> |
<view class="width100 mart10 fcor333 font14 fontwig6 height22"> |
||||||
<view class="promotion_xg flleft"></view> |
<view class="promotion_xg flleft"></view> |
||||||
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
||||||
<view class="flleft promotoin_text font16" style="margin-top: -2px;">今日数据</view> |
<view class="flleft promotoin_text font16" style="margin-top: -2px;">今日数据</view> |
||||||
<view class="promotion_mixg flleft"></view> |
<view class="promotion_mixg flleft"></view> |
||||||
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
||||||
</view> |
</view> |
||||||
<view class="width90 mart5 height22"> |
<view class="width90 mart5 height22"> |
||||||
<view class="width50 flleft font18 fcor333 fontwig6 fotlt">{{agentList.orderCount}}</view> |
<view class="width50 flleft font18 fcor333 fontwig6 fotlt">{{agentList.orderCount}}</view> |
||||||
<view class="width50 flright font18 fcor333 fontwig6 fotrt">{{agentList.turnoverPrice}}</view> |
<view class="width50 flright font18 fcor333 fontwig6 fotrt">{{agentList.turnoverPrice}}</view> |
||||||
</view> |
</view> |
||||||
<view class="width90 mart10"> |
<view class="width90 mart10"> |
||||||
<view class="width50 flleft font15 fcor666 fontwig6 fotlt">今日订单</view> |
<view class="width50 flleft font15 fcor666 fontwig6 fotlt">今日订单</view> |
||||||
<view class="width50 flright font15 fcor666 fontwig6 fotrt">今日流水</view> |
<view class="width50 flright font15 fcor666 fontwig6 fotrt">今日流水</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<!-- //库存管理 --> |
<!-- //库存管理 --> |
||||||
<view class="width100 mart80"> |
<view class="width100 mart80"> |
||||||
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
||||||
<view class="promotion_xg flleft"></view> |
<view class="promotion_xg flleft"></view> |
||||||
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
||||||
<view class="flleft promotoin_text font16" style="margin-top: -2px;">库存管理</view> |
<view class="flleft promotoin_text font16" style="margin-top: -2px;">库存管理</view> |
||||||
<view class="promotion_mixg flleft"></view> |
<view class="promotion_mixg flleft"></view> |
||||||
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<view class="promotion_kc width90 mart10"> |
<view class="promotion_kc width90 mart10"> |
||||||
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
||||||
</image> |
</image> |
||||||
<view class="pro_cont paddtop15"> |
<view class="pro_cont paddtop15"> |
||||||
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
||||||
剩余库存({{agentList.laveStockCount}}) |
剩余库存({{mineproList.laveStockCount}}) |
||||||
</view> |
</view> |
||||||
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
||||||
总计 {{agentList.surplusCountPrice}} |
总计 ¥{{mineproList.surplusCountPrice}} |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<!-- //循环:class="[index==0?'colorfe':'']" --> |
<!-- //循环:class="[index==0?'colorfe':'']" --> |
||||||
<view v-if="minepros == ''">暂无数据</view> |
<view v-if="minepros == ''" class="width90">暂无数据</view> |
||||||
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" @click="jumpAgent(1,mers.couponId)"> |
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" |
||||||
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
@click="jumpAgent(1,mers.couponId,1)"> |
||||||
面额{{mers.salesPrice}} |
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
||||||
</view> |
面额{{mers.salesPrice}} |
||||||
<view class="width100 font14 fcor999 fotct mart10"> |
</view> |
||||||
{{mers.stockCount}}张 |
<view class="width100 font14 fcor999 fotct mart10"> |
||||||
</view> |
{{mers.stockCount}}张 |
||||||
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
</view> |
||||||
{{mers.salesPrice*mers.stockCount}} |
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
||||||
</view> |
{{mers.salesPrice*mers.stockCount}} |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
<!-- //销售统计 --> |
</view> |
||||||
<view class="width100 mart20"> |
<!-- //销售统计 --> |
||||||
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
<view class="width100 mart20"> |
||||||
<view class="promotion_xg flleft"></view> |
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
||||||
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_xg flleft"></view> |
||||||
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销售统计</view> |
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
||||||
<view class="promotion_mixg flleft"></view> |
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销售统计</view> |
||||||
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
<view class="promotion_mixg flleft"></view> |
||||||
</view> |
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
||||||
</view> |
</view> |
||||||
<view class="promotion_kc width90 mart10"> |
</view> |
||||||
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
<view class="promotion_kc width90 mart10"> |
||||||
</image> |
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
||||||
<view class="pro_cont paddtop15"> |
</image> |
||||||
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
<view class="pro_cont paddtop15"> |
||||||
已销售({{agentList.soldCount}}) |
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
||||||
</view> |
已销售({{mineproList.soldCount}}) |
||||||
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
</view> |
||||||
总计 {{agentList.salesCountPrice}} |
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
||||||
</view> |
总计 ¥{{mineproList.salesCountPrice}} |
||||||
</view> |
</view> |
||||||
<view v-if="minepros == ''">暂无数据</view> |
</view> |
||||||
<!-- //循环 --> |
<view v-if="minepros == ''" class="width90">暂无数据</view> |
||||||
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore9" @click="jumpAgent(2,mers.couponId)"> |
<!-- //循环 --> |
||||||
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore9" |
||||||
面额{{mers.salesPrice}} |
@click="jumpAgent(2,mers.couponId,1)"> |
||||||
</view> |
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
||||||
<view class="width100 font14 fcor999 fotct mart10"> |
面额{{mers.salesPrice}} |
||||||
{{mers.salesCount}}张 |
</view> |
||||||
</view> |
<view class="width100 font14 fcor999 fotct mart10"> |
||||||
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
{{mers.salesCount}}张 |
||||||
{{mers.salesPrice*mers.salesCount}} |
</view> |
||||||
</view> |
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
||||||
</view> |
{{mers.salesPrice*mers.salesCount}} |
||||||
</view> |
</view> |
||||||
<view class="btnw50 mart50 marb30" @click="toPage()">修改密码</view> |
</view> |
||||||
</view> |
</view> |
||||||
</template> |
|
||||||
|
<!-- 销核码兑换库存 --> |
||||||
<script> |
<view class="width100 mart20"> |
||||||
import { |
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
||||||
getAgentCount |
<view class="promotion_xg flleft"></view> |
||||||
} from "../../../Utils/Api.js"; |
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
||||||
let app = getApp(); |
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销核码兑换</view> |
||||||
export default { |
<view class="promotion_mixg flleft"></view> |
||||||
data() { |
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
||||||
return { |
</view> |
||||||
minepros: [], |
</view> |
||||||
imagewxUrl: app.globalData.imageWxImg, |
<view class="promotion_kc width90 mart10"> |
||||||
imgadres:'wenj.png', |
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
||||||
agentList :[] |
</image> |
||||||
} |
<view class="pro_cont paddtop15"> |
||||||
}, |
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
||||||
|
待使用({{codeList.laveStockCount}}) |
||||||
onShow(){ |
</view> |
||||||
this.getAgentCount(); |
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
||||||
}, |
总计 ¥{{codeList.surplusCountPrice}} |
||||||
methods: { |
</view> |
||||||
//查询代理商信息 |
</view> |
||||||
getAgentCount() { |
<!-- //循环:class="[index==0?'colorfe':'']" --> |
||||||
getAgentCount().then(res => { |
<view v-if="minepros == ''" class="width90">暂无数据</view> |
||||||
if (res.return_code == '000000') { |
<view v-for="(mers,index) in checkcodeList" :key="mers.id" class="pro_mok marb10 colore7" |
||||||
this.agentList = res.return_data; |
@click="jumpAgent(1,mers.couponId,2)"> |
||||||
this.minepros = res.return_data.list |
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
||||||
} else { |
面额{{mers.salesPrice}} |
||||||
|
</view> |
||||||
uni.showToast({ |
<view class="width100 font14 fcor999 fotct mart10"> |
||||||
title: res.return_msg, |
{{mers.stockCount}}张 |
||||||
icon: "none" |
</view> |
||||||
}) |
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
||||||
} |
{{mers.salesPrice*mers.stockCount}} |
||||||
}) |
</view> |
||||||
}, |
</view> |
||||||
//跳转流水 |
</view> |
||||||
jumpRunWater(){ |
<!-- 销核码兑换销售 --> |
||||||
uni.navigateTo({ |
<view class="width100 mart20"> |
||||||
url:'../runningWater/runningWater' |
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
||||||
}) |
<view class="promotion_xg flleft"></view> |
||||||
}, |
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
||||||
//跳转代理商卡券 |
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销核码统计</view> |
||||||
jumpAgent(item,items) { |
<view class="promotion_mixg flleft"></view> |
||||||
uni.navigateTo({ |
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
||||||
url: '../agentCoupons/agentCoupons?id='+item +'&couponsId='+ items |
</view> |
||||||
}) |
</view> |
||||||
}, |
<view class="promotion_kc width90 mart10"> |
||||||
toPage(page) { |
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
||||||
uni.navigateTo({ |
</image> |
||||||
url: '../../login/resetpasswd' |
<view class="pro_cont paddtop15"> |
||||||
}); |
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
||||||
} |
已使用({{codeList.soldCount}}) |
||||||
} |
</view> |
||||||
} |
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
||||||
</script> |
总计 ¥{{codeList.salesCountPrice}} |
||||||
|
</view> |
||||||
<style lang="scss"> |
</view> |
||||||
.promotion_bg { |
<view v-if="minepros == ''" class="width90">暂无数据</view> |
||||||
position: relative; |
<!-- //循环 --> |
||||||
} |
<view v-for="(mers,index) in checkcodeList" :key="mers.id" class="pro_mok marb10 colore9" |
||||||
|
@click="jumpAgent(2,mers.couponId,2)"> |
||||||
.promotion_dt { |
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
||||||
position: absolute; |
面额{{mers.salesPrice}} |
||||||
top: 50px; |
</view> |
||||||
border-radius: 5px; |
<view class="width100 font14 fcor999 fotct mart10"> |
||||||
box-shadow: 0px 2px 6px 2px #999999; |
{{mers.salesCount}}张 |
||||||
} |
</view> |
||||||
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
||||||
.promotion_xg { |
{{mers.salesPrice*mers.salesCount}} |
||||||
width: 15px; |
</view> |
||||||
height: 2px; |
</view> |
||||||
margin-top: 8px; |
</view> |
||||||
background-color: #0083f5; |
<view class="btnw50 mart50 marb30" @click="toPage()">修改密码</view> |
||||||
transform: rotate(100deg); |
</view> |
||||||
} |
</template> |
||||||
|
|
||||||
.promotoin_text { |
<script> |
||||||
margin-left: 5px; |
import { |
||||||
margin-right: 5px; |
getAgentCount |
||||||
} |
} from "../../../Utils/Api.js"; |
||||||
|
let app = getApp(); |
||||||
.promotion_mixg { |
export default { |
||||||
width: 10px; |
data() { |
||||||
margin-top: 8px; |
return { |
||||||
height: 2px; |
imagewxUrl: app.globalData.imageWxImg, |
||||||
background-color: #0083f5; |
imgadres: 'wenj.png', |
||||||
transform: rotate(100deg); |
agentList: [], //总统计 |
||||||
} |
minepros: [], //分发数据 |
||||||
|
mineproList: [], //分发统计 |
||||||
.promotion_kc { |
checkcodeList: [], //销核码数据 |
||||||
padding-bottom: 10px; |
codeList: [] //兑换码统计 |
||||||
border-radius: 5px; |
} |
||||||
box-shadow: 0px 2px 4px 2px #999999; |
}, |
||||||
} |
|
||||||
|
onShow() { |
||||||
.pro_img { |
this.getAgentCount(1); |
||||||
width: 25px; |
this.getAgentCount(2); |
||||||
height: 25px; |
}, |
||||||
} |
methods: { |
||||||
|
//查询代理商信息 |
||||||
.pro_cont { |
getAgentCount(item) { |
||||||
height: 35px; |
let datas = { |
||||||
margin-left: 40px; |
type: item |
||||||
} |
} |
||||||
|
getAgentCount(datas).then(res => { |
||||||
.pro_title { |
if (res.return_code == '000000') { |
||||||
width: 110px; |
this.agentList = res.return_data; |
||||||
} |
if (item == 1) { |
||||||
|
this.minepros = res.return_data.list; |
||||||
.pro_price { |
this.mineproList = res.return_data; |
||||||
margin-right: 10px; |
} else { |
||||||
margin-left: 110px; |
this.checkcodeList = res.return_data.list; |
||||||
} |
this.codeList = res.return_data |
||||||
|
} |
||||||
.pro_mok { |
} else { |
||||||
height: 95px; |
|
||||||
margin-left: 2.5%; |
uni.showToast({ |
||||||
width: 30%; |
title: res.return_msg, |
||||||
display: inline-block; |
icon: "none" |
||||||
} |
}) |
||||||
|
} |
||||||
.colorfe { |
}) |
||||||
background-color: #fef7e5; |
}, |
||||||
} |
//跳转流水 |
||||||
|
jumpRunWater() { |
||||||
.colore9 { |
uni.navigateTo({ |
||||||
background-color: #e9f3ff; |
url: '../runningWater/runningWater' |
||||||
} |
}) |
||||||
|
}, |
||||||
.colore7 { |
//跳转代理商卡券 |
||||||
background-color: #e7fcf3; |
jumpAgent(item, items, itemtype) { |
||||||
} |
uni.navigateTo({ |
||||||
|
url: '../agentCoupons/agentCoupons?id=' + item + '&couponsId=' + items + '&typeid=' + itemtype |
||||||
|
}) |
||||||
|
}, |
||||||
|
toPage(page) { |
||||||
|
uni.navigateTo({ |
||||||
|
url: '../../login/resetpasswd' |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
.promotion_bg { |
||||||
|
position: relative; |
||||||
|
} |
||||||
|
|
||||||
|
.promotion_dt { |
||||||
|
position: absolute; |
||||||
|
top: 50px; |
||||||
|
border-radius: 5px; |
||||||
|
box-shadow: 0px 2px 6px 2px #999999; |
||||||
|
} |
||||||
|
|
||||||
|
.promotion_xg { |
||||||
|
width: 15px; |
||||||
|
height: 2px; |
||||||
|
margin-top: 8px; |
||||||
|
background-color: #0083f5; |
||||||
|
transform: rotate(100deg); |
||||||
|
} |
||||||
|
|
||||||
|
.promotoin_text { |
||||||
|
margin-left: 5px; |
||||||
|
margin-right: 5px; |
||||||
|
} |
||||||
|
|
||||||
|
.promotion_mixg { |
||||||
|
width: 10px; |
||||||
|
margin-top: 8px; |
||||||
|
height: 2px; |
||||||
|
background-color: #0083f5; |
||||||
|
transform: rotate(100deg); |
||||||
|
} |
||||||
|
|
||||||
|
.promotion_kc { |
||||||
|
padding-bottom: 10px; |
||||||
|
border-radius: 5px; |
||||||
|
box-shadow: 0px 2px 4px 2px #999999; |
||||||
|
} |
||||||
|
|
||||||
|
.pro_img { |
||||||
|
width: 25px; |
||||||
|
height: 25px; |
||||||
|
} |
||||||
|
|
||||||
|
.pro_cont { |
||||||
|
height: 35px; |
||||||
|
margin-left: 40px; |
||||||
|
} |
||||||
|
|
||||||
|
.pro_title { |
||||||
|
width: 110px; |
||||||
|
} |
||||||
|
|
||||||
|
.pro_price { |
||||||
|
margin-right: 10px; |
||||||
|
margin-left: 110px; |
||||||
|
} |
||||||
|
|
||||||
|
.pro_mok { |
||||||
|
height: 95px; |
||||||
|
margin-left: 2.5%; |
||||||
|
width: 30%; |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
.colorfe { |
||||||
|
background-color: #fef7e5; |
||||||
|
} |
||||||
|
|
||||||
|
.colore9 { |
||||||
|
background-color: #e9f3ff; |
||||||
|
} |
||||||
|
|
||||||
|
.colore7 { |
||||||
|
background-color: #e7fcf3; |
||||||
|
} |
||||||
</style> |
</style> |
||||||
|
Loading…
Reference in new issue