Commit 7be14a56 by chenwq

店面产值汇总

1 parent 0cf07170
......@@ -11,8 +11,10 @@
"pages/checkProduct/checkProduct",
"packageOutput/pages/summary/summary",
"packageOutput/pages/openBusiness/openBusiness"
],,
"requiredPrivateInfos": ["getLocation"],
],
"requiredPrivateInfos": [
"getLocation"
],
"lazyCodeLoading": "requiredComponents",
"window": {
"backgroundTextStyle": "light",
......
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.layout {
width: 100%;
height: 200rpx;
background-color: #F2F3F7;
}
\ No newline at end of file
<!--packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml-->
<view class="layout"></view>
// packageOutput/pages/summary/components/outputTransform/outputTransform.js
Component({
/**
* 组件的属性列表
*/
properties: {
formData: {
type: Object,
value: () => {}
}
},
/**
* 组件的初始数据
*/
data: {
formDataList: [{
label: '到店贴膜量',
name: 'toShopCount'
}, {
label: '体验量',
name: 'experienceCount'
}, {
label: '成交订单',
name: 'upgradeCount'
}, {
label: '营业额',
name: 'totalOrderMoney'
}, {
label: '客单价',
name: '',
prefix: '¥'
}, {
label: '引流体验量',
name: '',
suffix: '%'
}, {
label: '体验转化率',
name: '',
suffix: '%'
}]
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* packageOutput/pages/summary/components/outputTransform/outputTransform.wxss */
.layout {
display: flex;
flex-wrap: wrap;
.block {
width: calc(100% / 3);
text-align: center;
padding: 32rpx 0;
font-size: 32rpx;
color: #323436;
font-weight: 600;
.label {
font-size: 26rpx;
color: #5A6066;
font-weight: 400;
margin-top: 8rpx;
}
}
}
\ No newline at end of file
<!--packageOutput/pages/summary/components/outputTransform/outputTransform.wxml-->
<view class="layout">
<view class="block" wx:for="{{formDataList}}" wx:key="index">
<view>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{formData[item.name]}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
<view class="label">{{item.label}}</view>
</view>
</view>
\ No newline at end of file
......@@ -13,7 +13,7 @@ Page({
sence3: false,
sence4: true
},
senceActive: 1,
senceActive: 4,
sencePriceList: [{
total: 0
}, {
......@@ -55,7 +55,11 @@ Page({
sence2: [{
name: '座椅通风',
price: 30,
isOpen: true
isOpen: true,
toShopCount: 120,
experienceCount: 200,
upgradeCount: 300,
totalOrderMoney: 365
}, {
name: '座椅通风',
price: 40
......@@ -70,7 +74,8 @@ Page({
}],
sence4: [{
name: '数字化',
price: 70
price: 70,
isOpen: true
}, {
name: '数字化',
price: 80
......@@ -96,6 +101,16 @@ Page({
price: 80,
isOpen: true
}]
},
// 产值
searchForm: {
sence2Idx: 0,
sence3Idx: 0,
sence4Idx: 0
},
baseData: {
timeList: ['全部', '本月', '本日'],
actStatusList: ['全部', '申请中', '活动中', '已结束']
}
},
......@@ -130,6 +145,18 @@ Page({
}
},
handleSelect() {
wx.showActionSheet({
itemList: this.data.senceActive != 4 ? this.data.baseData.timeList : this.data.baseData.actStatusList,
success: res => {
this.setData({
['searchForm.sence' + this.data.senceActive + 'Idx']: res.tapIndex
})
console.log('调接口---')
}
})
},
handleJump(e) {
console.log(this.data.activityList[this.data.activityActive])
wx.$router.go('packageOutput.openBusiness')
......
{
"usingComponents": {
"sence-box": "../../../components/SenceBox/SenceBox"
"sence-box": "../../../components/SenceBox/SenceBox",
"output-transform": "./components/outputTransform/outputTransform",
"output-crowdfund": "./components/outputCrowdfund/outputCrowdfund"
}
}
\ No newline at end of file
......@@ -61,9 +61,32 @@ page {
}
.activity-content {
.activity-title {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 400;
.select {
font-size: 24rpx;
color: #323436;
.icon-arrow {
width: 24rpx;
height: 24rpx;
margin: 6rpx 0 0 6rpx;
}
}
}
.activity-title.no-border {
border-width: 0;
}
.content-empty {
text-align: center;
margin-top: 48rpx;
.img-empty {
width: 512rpx;
height: 512rpx;
......
......@@ -13,7 +13,18 @@
</scroll-view>
<!-- 活动内容 -->
<view class="activity-content">
<view wx:if="{{activityList[activityActive].isOpen}}"></view>
<view wx:if="{{activityList[activityActive].isOpen && senceActive != 1}}">
<view class="activity-title title {{ senceActive == 4 ? 'no-border' : ''}}">
<view>看产值</view>
<view class="select" bindtap="handleSelect">
<text wx:if="{{senceActive == 2 || senceActive == 3}}" class="select-txt">{{baseData.timeList[senceActive == 2 ? searchForm.sence2Idx : searchForm.sence3Idx]}}</text>
<text wx:if="{{senceActive == 4}}" class="select-txt">{{baseData.actStatusList[searchForm.sence4Idx]}}</text>
<image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}"></image>
</view>
</view>
<output-transform wx:if="{{senceActive == 2 || senceActive == 3}}" formData="{{activityList[activityActive]}}"></output-transform>
<output-crowdfund wx:if="{{senceActive == 4}}"></output-crowdfund>
</view>
<view wx:else class="content-empty">
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!