Commit 5587dda0 by 张立顺

合并代码

1 parent 95ba0670
......@@ -85,7 +85,7 @@ Component({
let key = res.tapIndex == 0 ? 'monthTime' : 'todayTime'
let merchantId = list[index]['merchantId']
let params = {
partnerMerchantId: '44209468', // userInfo.merchantId
partnerMerchantId: userInfo.merchantId, // userInfo.merchantId
merchantIdList: [merchantId],
...dataObj[key]
}
......@@ -129,12 +129,14 @@ Component({
let { current } = this.data
// let { merchantId } = userInfo.subLoginUser
// console.log('merchantId', merchantId)
console.log('test', userInfo.merchantId)
// 默认返回2前两条的具体数据 剩下需要自己手动查询
// console.log(outputApi.partnerMerchantTotal)
outputApi
.partnerMerchantTotal({ merchantId: '44209468' })
.partnerMerchantTotal({ merchantId: userInfo.merchantId })
.then(result => {
// console.log(result)
debugger
console.log(result)
let { dataList, yqMerchantIds } = result
const list = yqMerchantIds.reduce((list, item, index) => {
......@@ -224,7 +226,7 @@ Component({
},
swiperChange(e) {
console.log(e)
let { list } = this.data
let { list, userInfo } = this.data
let { current } = e.detail
this.setData({
totalMoney: list[current].totalMoney,
......@@ -237,7 +239,7 @@ Component({
let merchantId = list[current + 1]['merchantId']
console.log(merchantId)
let params = {
partnerMerchantId: '44209468',
partnerMerchantId: userInfo.merchantId,
merchantIdList: [merchantId]
}
// console.log()
......
<!-- pages/tab/output/components/merchant/mrechant.wxml -->
<!-- hidden="{{true}}" -->
<view class="con">
<view class="con" wx:if="{{list.length }}">
<view class="statistics">
<view class="totalOutputValue box">
<view class="num">¥{{totalMoney}}</view>
......@@ -117,5 +117,5 @@
查看订单详情
</navigator>
</view>
<nothingTipsCon wx:if="{{noProduct}}" />
<nothingTipsCon wx:if="{{!list.length }}" />
......@@ -16,5 +16,9 @@ Component({
/**
* 组件的方法列表
*/
methods: {}
methods: {
nav() {
wx.$router.go('pages.index')
}
}
})
/* pages/tab/output/components/nothingTipsCon/nothingTipsCon.wxss */
.nothingCon {
box-sizing: border-box;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background-color: #fff;
// justify-content: center;
align-items: center;
padding-top: 80rpx;
.link {
color: rgba(54, 102, 254, 1);
font-size: 26rpx;
}
}
.img {
......
......@@ -6,8 +6,10 @@
webp
src="{{nothingBg}}"
alt="" />
暂未开通,去
<text>了解产品</text>
开通门店
<view>
暂未开通,去
<text class="link" bind:tap="nav">了解产品</text>
开通门店
</view>
</view>
......@@ -7,6 +7,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
3生产
*/
const index = 1
const secretKey = {
ip: {},
dev: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!