Commit b3de9027 by 前端

fixed

1 parent 6a416fcf
<view class="bar-wrap"> <view class="bar-wrap">
<view class="searchList"> <view class="searchList">
<block wx:for="{{opts.barList}}" wx:for-item="item"> <block wx:for="{{opts.barList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block> <view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
</view> </view>
......
<view class="bar-wrap"> <view class="bar-wrap">
<view class="searchList"> <view class="searchList">
<block wx:for="{{opts.lineList}}" wx:for-item="item"> <block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block> <view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
</view> </view>
<view class="searchTime"> <view class="searchTime">
<block wx:for="{{dimension}}" wx:for-item="item"> <block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
<view class="time {{timePeriod==item.type?'active':''}}" data-condition="timePeriod" data-type="{{item.type}}" bindtap="selectCondition">{{item.text}}</view> <view class="time {{timePeriod==item.type?'active':''}}" data-condition="timePeriod" data-type="{{item.type}}" bindtap="selectCondition">{{item.text}}</view>
</block> </block>
<view class="flex" bindtap="selectTime"> <view class="flex" bindtap="selectTime">
......
...@@ -9,6 +9,7 @@ Component({ ...@@ -9,6 +9,7 @@ Component({
type: Number, type: Number,
observer: function (val) { observer: function (val) {
console.log(val, 'index') console.log(val, 'index')
console.log(Date.now())
this.initLocal(val) this.initLocal(val)
} }
} }
...@@ -138,12 +139,13 @@ Component({ ...@@ -138,12 +139,13 @@ Component({
outputData: {}, outputData: {},
sfaffList: [], sfaffList: [],
tabelTh: [] tabelTh: []
}, () => { })
thisPage = wx.$router.getPageInstance() thisPage = wx.$router.getPageInstance()
this.getActivityInfo() this.getActivityInfo()
})
}, },
getActivityInfo() { getActivityInfo() {
console.log(Date.now())
this.initSearch() this.initSearch()
this.getOutput() this.getOutput()
this.getStaffOutput() this.getStaffOutput()
...@@ -233,6 +235,7 @@ Component({ ...@@ -233,6 +235,7 @@ Component({
} }
} }
ActivityApi[apiName](params).then(res => { ActivityApi[apiName](params).then(res => {
thisPage.setData({ loading: false })
this.setData({ this.setData({
outputData: { outputData: {
triggered: false, triggered: false,
...@@ -240,7 +243,6 @@ Component({ ...@@ -240,7 +243,6 @@ Component({
...res ...res
} }
}) })
console.log(this.data.outputData)
}) })
}, },
merchantsOutputToday() { merchantsOutputToday() {
......
...@@ -83,6 +83,7 @@ Component({ ...@@ -83,6 +83,7 @@ Component({
this.setData(result) this.setData(result)
}) })
} }
thisPage.setData({loading:false})
wx.hideLoading() wx.hideLoading()
}) })
}, },
......
...@@ -5,6 +5,7 @@ Component({ ...@@ -5,6 +5,7 @@ Component({
behaviors: [imgUrlMixin], behaviors: [imgUrlMixin],
properties: {}, properties: {},
data: { data: {
loading:true,
navStyle, navStyle,
tab: [], tab: [],
roadTodayNum: 0, roadTodayNum: 0,
...@@ -67,6 +68,7 @@ Component({ ...@@ -67,6 +68,7 @@ Component({
const {merchantId,merchantName} = options; const {merchantId,merchantName} = options;
this.setData({merchantId,merchantName}) this.setData({merchantId,merchantName})
this.getSubscribeConfig(options) this.getSubscribeConfig(options)
console.log(Date.now())
this.addEvent() this.addEvent()
}, },
// 获取活动订阅配置 // 获取活动订阅配置
...@@ -85,7 +87,7 @@ Component({ ...@@ -85,7 +87,7 @@ Component({
this.setData({ this.setData({
fresh: false, fresh: false,
}) })
}, 3000) }, 300)
}, },
// 添加evevtbus通知刷新订阅 // 添加evevtbus通知刷新订阅
addEvent() { addEvent() {
......
@import "index.skeleton.wxss";
page { page {
overflow: hidden; overflow: hidden;
} }
......
<!--
此文件为开发者工具生成,生成时间: 2023/5/4下午5:37:27
使用方法:
在 D:\project\git\store-assistant-assemble\packagesList\outDetail\index.wxml 引入模板
```
<import src="index.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}" />
```
在 D:\project\git\store-assistant-assemble\packagesList\outDetail\index.wxss 中引入样式
```
@import "./index.skeleton.wxss";
```
更多详细信息可以参考文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/skeleton.html
-->
<template name="skeleton">
<view class="sk-container">
<view class="navigation-bar">
<view is="components/NavigationBar/NavigationBar">
<view class="NavigationBar--navigation-bar" id="aabb308a--navigation-bar" style="padding-top:44px;height:44px;background-color: transparent;">
<view class="NavigationBar--navigation-bar-box" style="font-size:15px;">
<view class="NavigationBar--back">
<image class="NavigationBar--img sk-image"></image>
</view>
<view class="NavigationBar--navigation-bar-titleText" style="width:187px;padding:0 7px;">
<view class="bar-nav">
<view class="bar-text sk-transparent sk-text-14-2857-23 sk-text" style="background-position-x: 50%;">老梁用车</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="layout" id="layout" style="top:88px; height: calc(100vh - 88px - 30px)">
<view class="bg-box" style="height:272px;top:-88px">
<view class="bg">
<view is="components/image/index">
<image lazy-load="true" class="sk-image" mode="scaleToFill" webp="true"></image>
</view>
</view>
</view>
<view class="tab-box" style="top: 88px">
<scroll-view scroll-with-animation="true" class="tab-scroll" enhanced="true" scroll-into-view="true" scroll-x="true">
<view class="tab_element" data-index="0" id="to-0" style="scroll-snap-align: none;">
<view class="inner active sk-transparent sk-text-31-2500-144 sk-text">
精品升级
</view>
<view class="line"></view>
</view>
<view class="tab_element" data-index="1" id="to-1" style="scroll-snap-align: none;">
<view class="inner sk-transparent sk-text-33-3333-633 sk-text">
售后众筹
</view>
</view>
<view class="tab_element" data-index="2" id="to-2" style="scroll-snap-align: none;">
<view class="inner sk-transparent sk-text-33-3333-227 sk-text">
会员权益/升级
</view>
</view>
</scroll-view>
<view class="nav-btn">
<view is="components/image/index" class="nav-func-icon">
<image lazy-load="true" class="nav-func-icon sk-image" mode="scaleToFill" webp="true"></image>
</view>
</view>
</view>
<view class="pannel" style="height:calc(100% - 15px)">
<view style="height: calc(100% - 15px);">
<view is="packagesList/outDetail/components/OutputWork/index">
<scroll-view refresher-enabled="true" scroll-y="true" class="index--content" style="height: calc(100% - 11px);">
<view class="index--output-box">
<view class="index--output-title sk-transparent sk-text-16-6667-262 sk-text">产值总览</view>
<view class="index--output-value sk-image">
<view class="index--output-item">
<view class="index--output-num sk-transparent">
<text class="index--_unit"></text> 2
<text class="index--unit_"></text>
</view>
<view class="index--output-label sk-transparent sk-text-16-6667-284 sk-text" style="background-position-x: 50%;">发券量(总)/张</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent">
<text class="index--_unit"></text> 1
<text class="index--unit_"></text>
</view>
<view class="index--output-label sk-transparent sk-text-16-6667-121 sk-text" style="background-position-x: 50%;">升级订单/单</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent">
<text class="index--_unit sk-transparent sk-opacity">¥</text> 3000
<text class="index--unit_"></text>
</view>
<view class="index--output-label sk-transparent sk-text-16-6667-750 sk-text" style="background-position-x: 50%;">营业额(总)/元</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent">
<text class="index--_unit sk-transparent sk-opacity">¥</text> 3000
<text class="index--unit_"></text>
</view>
<view class="index--output-label sk-transparent sk-text-16-6667-518 sk-text" style="background-position-x: 50%;">客单价/元</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent">
<text class="index--_unit"></text> 100
<text class="index--unit_ sk-transparent sk-opacity">%</text>
</view>
<view class="index--output-label sk-transparent sk-text-16-6667-146 sk-text" style="background-position-x: 50%;">转化率</view>
</view>
</view>
<view class="index--output-title sk-transparent sk-text-16-6667-730 sk-text">当日新增</view>
<view class="index--output-value index--today sk-image">
<view class="index--output-item">
<view class="index--output-num sk-transparent sk-text-18-7500-705 sk-text" style="background-position-x: 50%;">0 </view>
<view class="index--output-label sk-transparent sk-text-16-6667-210 sk-text" style="background-position-x: 50%;">发券量/张</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent sk-text-18-7500-427 sk-text" style="background-position-x: 50%;">0 </view>
<view class="index--output-label sk-transparent sk-text-16-6667-427 sk-text" style="background-position-x: 50%;">升级订单/单</view>
</view>
<view class="index--output-item">
<view class="index--output-num sk-transparent sk-text-18-7500-865 sk-text" style="background-position-x: 50%;">0 </view>
<view class="index--output-label sk-transparent sk-text-16-6667-141 sk-text" style="background-position-x: 50%;">营业额(总)/元</view>
</view>
</view>
</view>
<view class="index--line-box">
<view is="packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine" id="54315bb8--line">
<view class="OutputLine--bar-wrap">
<view class="OutputLine--searchList">
<view class="OutputLine--search-text OutputLine--active sk-transparent sk-text-16-6667-950 sk-text" data-condition="dataType" data-type="1">营业额</view>
<view class="OutputLine--search-text sk-transparent sk-text-20-8333-286 sk-text" data-condition="dataType" data-type="2">到店量</view>
</view>
<view class="OutputLine--searchTime">
<view class="OutputLine--time OutputLine--active sk-transparent sk-text-14-2857-385 sk-text" data-condition="timePeriod" data-type="1">周</view>
<view class="OutputLine--time sk-transparent sk-text-14-2857-454 sk-text" data-condition="timePeriod" data-type="2">月</view>
<view class="OutputLine--time sk-transparent sk-text-14-2857-75 sk-text" data-condition="timePeriod" data-type="3">年</view>
<view class="OutputLine--flex">
<view is="components/image/index" class="OutputLine--time-icon">
<image lazy-load="true" class="OutputLine--time-icon sk-image" mode="scaleToFill"></image>
</view>
<view class="OutputLine--temporal sk-transparent sk-text-14-2857-711 sk-text">自定义</view>
<view is="components/image/index" class="OutputLine--arrows">
<image lazy-load="true" class="OutputLine--arrows sk-image" mode="scaleToFill"></image>
</view>
</view>
</view>
<view class="OutputLine--container">
<view is="packagesList/outDetail/components/line/line" class="OutputLine--f2-chart">
<view is="packagesList/outDetail/ec-canvas/ec-canvas" id="e70bc260--mychart-dom-line">
<view bindtouchend="touchEnd" bindtouchmove="touchMove" bindtouchstart="touchStart" canvas-id="mychart-line" class="canvas--ec-canvas sk-transparent sk-text-14-2857-849 sk-text sk-image" type="2d">绘图区域</view>
</view>
</view>
</view>
<view class="OutputLine--remind sk-transparent sk-text-14-2857-134 sk-text" style="background-position-x: 50%;">请左右滑动查阅更多信息</view>
</view>
</view>
</view>
<view class="index--bar-box">
<view is="packagesList/outDetail/components/OutputWork/components/OutputBar/OutputBar" id="54315bb8--bar">
<view class="OutputBar--bar-wrap">
<view class="OutputBar--searchList">
<view class="OutputBar--search-text OutputBar--active sk-transparent sk-text-16-6667-137 sk-text" data-condition="dataType" data-type="3">发券量</view>
<view class="OutputBar--search-text sk-transparent sk-text-20-8333-752 sk-text" data-condition="dataType" data-type="1">营业额</view>
</view>
</view>
</view>
</view>
</scroll-view>
<view is="miniprogram_npm/@vant/weapp/calendar/index">
<view is="miniprogram_npm/@vant/weapp/popup/index">
<view is="miniprogram_npm/@vant/weapp/overlay/index">
<view is="miniprogram_npm/@vant/weapp/transition/index"></view>
</view>
</view>
<view is="miniprogram_npm/@vant/weapp/toast/index" id="75ae1006--van-toast">
<view is="miniprogram_npm/@vant/weapp/transition/index"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view is="packagesList/outDetail/components/menu/index">
<view is="miniprogram_npm/@vant/weapp/popup/index">
<view is="miniprogram_npm/@vant/weapp/overlay/index">
<view is="miniprogram_npm/@vant/weapp/transition/index"></view>
</view>
</view>
</view>
</view>
</template>
\ No newline at end of file \ No newline at end of file
/*
此文件为开发者工具生成,生成时间: 2023/5/4下午5:37:27
在 D:\project\git\store-assistant-assemble\packagesList\outDetail\index.wxss 中引入样式
```
@import "./index.skeleton.wxss";
```
更多详细信息可以参考文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/skeleton.html
*/
.sk-transparent {
color: transparent !important;
}
.sk-text-14-2857-23 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 47.6000rpx;
position: relative !important;
}
.sk-text {
background-origin: content-box !important;
background-clip: content-box !important;
background-color: transparent !important;
color: transparent !important;
background-repeat: repeat-y !important;
}
.sk-text-31-2500-144 {
background-image: linear-gradient(transparent 31.2500%, #EEEEEE 0%, #EEEEEE 68.7500%, transparent 0%) !important;
background-size: 100% 96.0000rpx;
position: relative !important;
}
.sk-text-33-3333-633 {
background-image: linear-gradient(transparent 33.3333%, #EEEEEE 0%, #EEEEEE 66.6667%, transparent 0%) !important;
background-size: 100% 96.0000rpx;
position: relative !important;
}
.sk-text-33-3333-227 {
background-image: linear-gradient(transparent 33.3333%, #EEEEEE 0%, #EEEEEE 66.6667%, transparent 0%) !important;
background-size: 100% 96.0000rpx;
position: relative !important;
}
.sk-text-16-6667-262 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-16-6667-284 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-16-6667-121 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-opacity {
opacity: 0 !important;
}
.sk-text-16-6667-750 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-16-6667-518 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-16-6667-146 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-16-6667-730 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-18-7500-705 {
background-image: linear-gradient(transparent 18.7500%, #EEEEEE 0%, #EEEEEE 81.2500%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-16-6667-210 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-18-7500-427 {
background-image: linear-gradient(transparent 18.7500%, #EEEEEE 0%, #EEEEEE 81.2500%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-16-6667-427 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-18-7500-865 {
background-image: linear-gradient(transparent 18.7500%, #EEEEEE 0%, #EEEEEE 81.2500%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-16-6667-141 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-16-6667-950 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-20-8333-286 {
background-image: linear-gradient(transparent 20.8333%, #EEEEEE 0%, #EEEEEE 79.1667%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-14-2857-385 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 28.0000rpx;
position: relative !important;
}
.sk-text-14-2857-454 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 28.0000rpx;
position: relative !important;
}
.sk-text-14-2857-75 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 28.0000rpx;
position: relative !important;
}
.sk-text-14-2857-711 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 33.6000rpx;
position: relative !important;
}
.sk-text-14-2857-849 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 39.2000rpx;
position: relative !important;
}
.sk-text-14-2857-134 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 28.0000rpx;
position: relative !important;
}
.sk-text-16-6667-137 {
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-text-20-8333-752 {
background-image: linear-gradient(transparent 20.8333%, #EEEEEE 0%, #EEEEEE 79.1667%, transparent 0%) !important;
background-size: 100% 48.0000rpx;
position: relative !important;
}
.sk-image {
background: #EFEFEF !important;
}
.sk-container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: transparent;
}
<!-- pages/index/index.wxml 引入模板 -->
<import src="index.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}"/>
<wxs src="./index.wxs" module="fn"></wxs> <wxs src="./index.wxs" module="fn"></wxs>
<view class="navigation-bar"> <view class="navigation-bar">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="工作台"> <navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="工作台">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!