|
|
@ -10,8 +10,8 @@ |
|
|
|
<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">7</view> |
|
|
|
<view class="width50 flleft font18 fcor333 fontwig6 fotlt">{{agentList.orderCount}}</view> |
|
|
|
<view class="width50 flright font18 fcor333 fontwig6 fotrt">5300.00</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> |
|
|
@ -33,22 +33,23 @@ |
|
|
|
</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"> |
|
|
|
剩余库存(24) |
|
|
|
剩余库存({{agentList.laveStockCount}}) |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
总计 9500.00 |
|
|
|
总计 {{agentList.surplusCountPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- //循环:class="[index==0?'colorfe':'']" --> |
|
|
|
<!-- //循环:class="[index==0?'colorfe':'']" --> |
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" @click="jumpAgent(1)"> |
|
|
|
<view v-if="minepros == ''">暂无数据</view> |
|
|
|
|
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" @click="jumpAgent(1,mers.couponId)"> |
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
面额100 |
|
|
|
面额{{mers.salesPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
13张 |
|
|
|
{{mers.stockCount}}张 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
1300 |
|
|
|
{{mers.salesPrice*mers.stockCount}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -67,22 +68,23 @@ |
|
|
|
</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"> |
|
|
|
已销售(24) |
|
|
|
已销售({{agentList.soldCount}}) |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
总计 1129500.00 |
|
|
|
总计 {{agentList.salesCountPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="minepros == ''">暂无数据</view> |
|
|
|
<!-- //循环 --> |
|
|
|
<!-- //循环 --> |
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore9" @click="jumpAgent(2)"> |
|
|
|
<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 class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
面额100 |
|
|
|
面额{{mers.salesPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
13张 |
|
|
|
{{mers.salesCount}}张 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
1300 |
|
|
|
{{mers.salesPrice*mers.salesCount}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -96,26 +98,23 @@ |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
minepros: [{ |
|
|
|
minepros: [], |
|
|
|
id: 1 |
|
|
|
agentList :[] |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 1 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
|
|
|
|
|
|
|
|
onShow(){ |
|
|
|
this.getAgentCount(); |
|
|
|
this.getAgentCount(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//查询代理商信息 |
|
|
|
//查询代理商信息 |
|
|
|
getAgentCount() { |
|
|
|
getAgentCount() { |
|
|
|
getAgentCount().then(res => { |
|
|
|
getAgentCount().then(res => { |
|
|
|
if (res.return_code == '000000') {} else { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.agentList = res.return_data; |
|
|
|
|
|
|
|
this.minepros = res.return_data.list |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
|
icon: "none" |
|
|
|
icon: "none" |
|
|
@ -124,9 +123,9 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//跳转代理商卡券 |
|
|
|
//跳转代理商卡券 |
|
|
|
jumpAgent(item) { |
|
|
|
jumpAgent(item,items) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../agentCoupons/agentCoupons?id='+item |
|
|
|
url: '../agentCoupons/agentCoupons?id='+item +'&couponsId='+ items |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|