Commit 6bb3405e by 张立顺

app.json 重置

1 parent 9af691de
{
"pages": [
"login/loading/loading",
"pages/tab/index/index",
"pages/tab/output/output",
"pages/tab/mine/mine",
"login/index/index",
"login/accountItems/accountItems",
"pages/checkProduct/checkProduct"
],
"pages": ["login/loading/loading", "pages/tab/index/index", "pages/tab/output/output", "pages/tab/mine/mine", "login/index/index", "login/accountItems/accountItems", "pages/checkProduct/checkProduct"],
"requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents",
"window": {
......@@ -20,7 +12,8 @@
"selectedColor": "#3666FE",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [{
"list": [
{
"pagePath": "pages/tab/index/index",
"text": "拓客户",
"iconPath": "images/home.png",
......@@ -40,15 +33,45 @@
}
]
},
"subpackages": [
{
"root": "packagesList/packageOutput",
"name": "packageOutput",
"pages": ["pages/openBusiness", "pages/summary"]
},
{
"root": "packagesList/mineDetail",
"name": "mineDetail",
"pages": ["pages/messageBox", "pages/customerManagement"]
},
{
"root": "packagesList/webView",
"name": "webView",
"pages": ["pages/webView"]
},
{
"root": "packagesList/apply",
"name": "apply",
"pages": ["pages/apply"]
}
],
"preloadRule": {
"pages/tab/mine/mine": {
"network": "all",
"packages": ["mineDetail"]
},
"pages/tab/index/index": {
"network": "all",
"packages": ["apply", "packageOutput"]
}
},
"usingComponents": {
"tab": "/components/Tab/Tab",
"navigation-bar": "/components/NavigationBar/NavigationBar",
"popup": "/components/Popup/Popup",
"nothing-tips": "/components/Nothing-tips/nothingTips",
"crowdfund-poster": "/components/CrowdfundPoster/CrowdfundPoster",
"glsx-image": "/components/image/index",
"authorize":"/components/Authorize/Authorize"
"glsx-image": "/components/image/index"
},
"style": "v2",
"resolveAlias": {
......@@ -60,4 +83,4 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
}
}
\ No newline at end of file
}
......@@ -8,7 +8,10 @@ const IMAGES = {
money: `${IMG_URL}/output/money.png`,
paper: `${IMG_URL}/output/paper.png`,
link: `${IMG_URL}/output/link.webp`,
empty: `${IMG_URL}/output/empty.png`
empty: `${IMG_URL}/output/empty.png`,
funnelNew: `${IMG_URL}/output/funnelNew.webp`,
funnelNewSm: `${IMG_URL}/output/funnelNewSm.webp`,
totalIcon: `${IMG_URL}/output/totalIcon.webp`
}
Component({
/**
......@@ -47,15 +50,15 @@ Component({
funnelList: {
start: [
{ label: '到店量', key: 'toShopCount' },
{ label: '核销数', key: 'couponUsedCount' },
// { label: '核销数', key: 'couponUsedCount' },
{ label: '体验数', key: 'experienceCount' },
{ label: '订单成交', key: 'upgradeCount' }
{ label: '成交量', key: 'upgradeCount' }
],
end: [
{ label: '转发量', key: 'shareCount' },
// { label: '转发量', key: 'shareCount' },
{ label: '访客数', key: 'visitCount' },
{ label: '成交数', key: 'dealCount' },
{ label: '产值', key: 'totalMoney' }
{ label: '成交数', key: 'dealCount' }
// { label: '产值', key: 'totalMoney' }
]
}
// showNothingSceneCon: false
......
......@@ -108,9 +108,12 @@
}
.bg-image {
width: 100%;
height: 100%;
// width: 100%;
width: 440rpx;
// height: 100%;
position: absolute;
left: 50%;
transform: translateX(-50%);
// width: 670rpx;
// height: 550rpx;
// z-index: -0;
......@@ -118,7 +121,13 @@
}
.longHeight {
height: 285rpx;
}
.shortHeight {
height: 200rpx;
}
.funneItem {
position: relative;
......
......@@ -8,138 +8,134 @@
bindrefresherrefresh="refreshList"
refresher-threshold="104"
refresher-triggered="{{triggered}}"> -->
<view class="con" wx:if="{{list.length }}">
<view class="statistics">
<view class="totalOutputValue box">
<view class="num">¥{{totalMoney}}</view>
<view class="label">总产值</view>
</view>
<view class="totalOrder box">
<view class="num">{{totalOrder}}</view>
<view class="label">订单数/笔</view>
</view>
<view class="con" wx:if="{{list.length }}">
<view class="statistics">
<view class="totalOutputValue box">
<view class="num">¥{{totalMoney}}</view>
<view class="label">总产值</view>
</view>
<!-- -->
<!-- 无门店 -->
<!-- <merchantDataStatistics bind:swiperChange="swiperChange" /> -->
<!-- sceneIndx==3? 'short': -->
<!-- {{startInd ==4?'short':'full'}} -->
<swiper
indicator-dots="{{list.length>1? indicatorDots:false}}"
class="swiper "
style="height:{{swiperHeight*2}}rpx"
autoplay="{{autoplay}}"
bindchange="swiperChange"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{list}}" wx:key="*this">
<swiper-item>
<view class="merchantDataStatistics-con">
<view class="contitle">
<view class="name">{{item.merchantName}}</view>
<view
class="select"
data-index="{{index}}"
data-item="{{item}}"
bind:tap="pickSheet">
<view>{{item.selectName||'累计'}}</view>
<image
class="arrow {{isAct?'isAct':''}}"
webp
src="{{IMAGES.arrow}}"
alt="" />
</view>
</view>
<!-- <scene-select/> -->
<view class="scene-box">
<!-- {{item.startInd + 1}} -->
<scene-box
formData="{{item}}"
data-index="{{index}}"
data-item="{{item}}"
bind:handleSceneChange="handleSceneChange"
sceneActive="{{(item.startInd + 1)}}" />
<view class="totalOrder box">
<view class="num">{{totalOrder}}</view>
<view class="label">订单数/笔</view>
</view>
</view>
<!-- -->
<!-- 无门店 -->
<!-- <merchantDataStatistics bind:swiperChange="swiperChange" /> -->
<!-- sceneIndx==3? 'short': -->
<!-- {{startInd ==4?'short':'full'}} -->
<swiper
indicator-dots="{{list.length>1? indicatorDots:false}}"
class="swiper "
style="height:{{swiperHeight*2}}rpx"
autoplay="{{autoplay}}"
bindchange="swiperChange"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{list}}" wx:key="*this">
<swiper-item>
<view class="merchantDataStatistics-con">
<view class="contitle">
<view class="name">{{item.merchantName}}</view>
<view
class="select"
data-index="{{index}}"
data-item="{{item}}"
bind:tap="pickSheet">
<view>{{item.selectName||'累计'}}</view>
<image
class="arrow {{isAct?'isAct':''}}"
webp
src="{{IMAGES.arrow}}"
alt="" />
</view>
<view class="outputValueCon " wx:if="{{!item.showNothingSceneCon && item.showList[item.startInd] }}">
<view class="title">产值图</view>
<view class="swiperCon" wx:if="{{item['showList']}}">
<view class="swiper-item ">
<view class="fluuelCon">
<image class="bg-image" src="{{IMAGES.funnel}}" />
<block
wx:for="{{item.startInd!=3? funnelList['start']: funnelList['end']}}"
wx:key="*this"
wx:for-index="ind"
wx:for-item="funneItem">
<view class="funneItem">
<view class="label">{{funneItem['label']}}</view>
<view class="num">
{{item.showList[item.startInd][funneItem['key']]||0}}
</view>
</view>
</block>
</view>
<!-- <block wx:for="{{items}}"></block> hidden="{{item.startInd ==3}}" -->
<view hidden="{{item.startInd ==3}}">
<!-- 统计 -->
<view class="merchantCount">
<view class="turnover">
<image class="img " webp src="{{IMAGES.money}}" />
<view class="num">{{item.showList[item.startInd]['totalMoney']||0}}</view>
<view class="label">营业额/¥</view>
</view>
<view class="customerUnitPrice">
<image class="img " webp src="{{IMAGES.paper}}" />
<view class="num">
{{item.showList[item.startInd]['custUnitPrice']||0}}
</view>
<view class="label">客单价/¥</view>
</view>
</view>
<!-- <scene-select/> -->
<view class="scene-box">
<!-- {{item.startInd + 1}} -->
<scene-box
formData="{{item}}"
data-index="{{index}}"
data-item="{{item}}"
bind:handleSceneChange="handleSceneChange"
sceneActive="{{(item.startInd + 1)}}" />
</view>
<view class="outputValueCon " wx:if="{{!item.showNothingSceneCon && item.showList[item.startInd] }}">
<view class="title">产值图</view>
<view class="swiperCon" wx:if="{{item['showList']}}">
<view class="swiper-item ">
<view class="fluuelCon">
<image class="bg-image {{item.startInd!=3?'longHeight':'shortHeight'}}" src="{{item.startInd!=3?IMAGES.funnelNew :IMAGES.funnelNew}}" />
<block
wx:for="{{item.startInd!=3? funnelList['start']: funnelList['end']}}"
wx:key="*this"
wx:for-index="ind"
wx:for-item="funneItem">
<view class="funneItem">
<view class="label">{{funneItem['label']}}</view>
<view class="num">{{item.showList[item.startInd][funneItem['key']]||0}}</view>
</view>
<!-- 指标诊断 -->
<view class="diagnosisCon" wx:if="{{item.showList[item.startInd]['diagnoseList'].length}}">
<view class="tipsIcon">指标诊断</view>
<swiper
class="tips"
autoplay="{{true}}"
interval="{{5000}}"
circular="{{true}}"
duration="{{duration}}">
<block
wx:for="{{item.showList[item.startInd]['diagnoseList']}}"
wx:key="*this"
wx:for-index="dgInd"
wx:for-item="dgItem">
<swiper-item>{{dgItem}}</swiper-item>
</block>
</swiper>
<view>
<!-- 日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。 -->
</view>
</block>
</view>
<!-- <block wx:for="{{items}}"></block> hidden="{{item.startInd ==3}}" -->
<view hidden="{{item.startInd ==3}}">
<!-- 统计 -->
<view class="merchantCount">
<view class="turnover">
<image class="img " webp src="{{IMAGES.money}}" />
<view class="num">{{item.showList[item.startInd]['totalMoney']||0}}</view>
<view class="label">营业额/¥</view>
</view>
<view class="customerUnitPrice">
<image class="img " webp src="{{IMAGES.paper}}" />
<view class="num">{{item.showList[item.startInd]['custUnitPrice']||0}}</view>
<view class="label">客单价/¥</view>
</view>
</view>
<!-- 指标诊断 -->
<view class="diagnosisCon" wx:if="{{item.showList[item.startInd]['diagnoseList'].length}}">
<view class="tipsIcon">指标诊断</view>
<swiper
class="tips"
autoplay="{{true}}"
interval="{{5000}}"
circular="{{true}}"
duration="{{duration}}">
<block
wx:for="{{item.showList[item.startInd]['diagnoseList']}}"
wx:key="*this"
wx:for-index="dgInd"
wx:for-item="dgItem">
<swiper-item>{{dgItem}}</swiper-item>
</block>
</swiper>
<view>
<!-- 日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。 -->
</view>
</view>
</view>
</view>
<!-- <view wx:else>test</view> -->
</view>
<view wx:else class="emptyCon">
<image class="img" src="{{IMAGES.empty}}" />
</view>
<!-- <view wx:else>test</view> -->
</view>
</swiper-item>
</block>
</swiper>
<navigator
wx:if="{{swiperHeight>590}}"
class="navOhterApp"
target="miniProgram"
open-type="navigate"
app-id="wx570d9331f9ace0bd"
version="release">
<image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情
</navigator>
</view>
<view wx:else class="emptyCon">
<image class="img" src="{{IMAGES.empty}}" />
</view>
</view>
</swiper-item>
</block>
</swiper>
<navigator
wx:if="{{swiperHeight>590}}"
class="navOhterApp"
target="miniProgram"
open-type="navigate"
app-id="wx570d9331f9ace0bd"
version="release">
<image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情
</navigator>
</view>
<!-- </scroll-view> -->
<nothingTipsCon wx:if="{{!list.length }}" />
......@@ -79,4 +79,17 @@
.navigation-title .move {
transform: rotate(-180deg) translateY(0);
}
\ No newline at end of file
}
// // 圆点样式
// .wx-swiper-dots .wx-swiper-dot {
// width: 10rpx;
// height: 10rpx;
// margin: 0 5rpx;
// background-color: aqua;
// }
// // 当前选中圆点样式
// .wx-swiper-dots .wx-swiper-dot.wx-swiper-dot-active {
// width: 16rpx;
// border-radius: 10rpx;
// }
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!