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">
......
...@@ -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.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!