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">
......
import ActivityApi from '~/api/activityApi/index' import ActivityApi from '~/api/activityApi/index'
let thisPage; let thisPage;
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
entranceType: { entranceType: {
type: Number, type: Number,
observer: function (val) { observer: function (val) {
console.log(val, 'index') console.log(val, 'index')
this.initLocal(val) console.log(Date.now())
} this.initLocal(val)
} }
}, }
/**
* 组件的初始数据
*/
data: {
minDate: new Date(2020, 0, 1).getTime(),
maxDate: new Date().getTime(),
outputView: {
outputValue: [{
label: '总报价量',
name: 'totalQuotationCount'
}, {
label: '总成交量',
name: 'totalSuccessCount',
unit: ''
}, {
label: '总产值',
name: 'totalOutputValue',
_unit: '¥'
}, {
label: '当月报价量',
name: 'monthQuotationCount',
_unit: '¥'
}, {
label: '当月成交量',
name: 'monthSuccessCount',
unit: ''
}, {
label: '当月产值',
name: 'monthOutputValue',
_unit: '¥'
}, {
label: '单价',
name: 'avgPrice',
_unit: '¥'
}, {
label: '升级率',
name: 'conversionRate',
unit_: '%',
multiple: 100,
}, {
label: '平均车险报价',
name: 'avgQuotationPrice',
_unit: '¥'
}],
boutiqueOutputValue: [{
label: '发券量(总)/张',
name: 'sendCouponCountTotal',
unit: ''
}, {
label: '升级订单/单',
name: 'upgradeCountTotal',
unit: ''
}, {
label: '营业额(总)/元',
name: 'orderMoneyTotal',
_unit: '¥'
}, {
label: '客单价/元',
name: 'averagePrice',
_unit: '¥'
}, {
label: '转化率',
name: 'upgradeRatio',
unit_: '%'
}],
todayOutiqueOutputValue: [{
label: '发券量/张',
name: 'sendCouponCountToday',
unit: ''
}, {
label: '升级订单/单',
name: 'upgradeCountToday',
unit: ''
}, {
label: '营业额(总)/元',
name: 'orderMoneyTotalToday',
unit: ''
}],
todayOutputValue: [{
label: '报价量',
name: 'quotationCount',
unit: ''
}, {
label: '成交量',
name: 'successCount',
unit: ''
}, {
label: '产值',
name: 'outputValue',
unit: ''
}],
},
listData: [],
chartData: [],
activeTrigger: false,
activePageNum: 1,
activeTotal: 0,
pageNum: 1,
total: 0,
pageSize: 10,
noResult: false,
isShow: false,
opts: {
keys: ['abscissaValue', 'ordinateValue'],
color: '#69C9FF',
lineColr: '#6ED0BE',
tickCount: 8,
lineList: [],
barList: [],
},
},
/**
* 组件的方法列表
*/
methods: {
// 初始化
initLocal(val) {
this.setData({
type: val,
activeTrigger: false,
noResult: false,
outputData: {},
sfaffList: [],
tabelTh: []
}, () => {
thisPage = wx.$router.getPageInstance()
this.getActivityInfo()
})
},
getActivityInfo() {
this.initSearch()
this.getOutput()
this.getStaffOutput()
this.merchantsOutputToday()
this.getHistogram()
this.getTrend()
}, },
initSearch() { /**
let { * 组件的初始数据
type, */
opts data: {
} = this.data minDate: new Date(2020, 0, 1).getTime(),
const obj = { maxDate: new Date().getTime(),
1: { outputView: {
lineList: [{ outputValue: [{
title: '营业额', label: '总报价量',
type: 1 name: 'totalQuotationCount'
}, { }, {
title: '到店量', label: '总成交量',
type: 2 name: 'totalSuccessCount',
unit: ''
}, {
label: '总产值',
name: 'totalOutputValue',
_unit: '¥'
}, {
label: '当月报价量',
name: 'monthQuotationCount',
_unit: '¥'
}, {
label: '当月成交量',
name: 'monthSuccessCount',
unit: ''
}, {
label: '当月产值',
name: 'monthOutputValue',
_unit: '¥'
}, {
label: '单价',
name: 'avgPrice',
_unit: '¥'
}, {
label: '升级率',
name: 'conversionRate',
unit_: '%',
multiple: 100,
}, {
label: '平均车险报价',
name: 'avgQuotationPrice',
_unit: '¥'
}], }],
barList: [{ boutiqueOutputValue: [{
title: '发券量', label: '发券量(总)/张',
type: 3 name: 'sendCouponCountTotal',
unit: ''
}, {
label: '升级订单/单',
name: 'upgradeCountTotal',
unit: ''
}, { }, {
title: '营业额', label: '营业额(总)/元',
type: 1 name: 'orderMoneyTotal',
}] _unit: '¥'
},
2: {
lineList: [{
title: '报价量',
type: 1
}, { }, {
title: '成交量', label: '客单价/元',
type: 2 name: 'averagePrice',
_unit: '¥'
}, { }, {
title: '产值', label: '转化率',
type: 3 name: 'upgradeRatio',
unit_: '%'
}], }],
barList: [{ todayOutiqueOutputValue: [{
title: '报价量', label: '发券量/张',
type: 1 name: 'sendCouponCountToday',
unit: ''
}, { }, {
title: '成交量', label: '升级订单/单',
type: 2 name: 'upgradeCountToday',
unit: ''
}, { }, {
title: '产值', label: '营业额(总)/元',
type: 3 name: 'orderMoneyTotalToday',
}] unit: ''
} }],
todayOutputValue: [{
label: '报价量',
name: 'quotationCount',
unit: ''
}, {
label: '成交量',
name: 'successCount',
unit: ''
}, {
label: '产值',
name: 'outputValue',
unit: ''
}],
}, },
lineList = obj[type].lineList, listData: [],
barList = obj[type].barList chartData: [],
const barObj = this.selectComponent('#bar') activeTrigger: false,
const lineObj = this.selectComponent('#line') activePageNum: 1,
this.setData({ activeTotal: 0,
pageNum: 1,
total: 0,
pageSize: 10,
noResult: false,
isShow: false,
opts: { opts: {
...opts, keys: ['abscissaValue', 'ordinateValue'],
lineList, color: '#69C9FF',
barList lineColr: '#6ED0BE',
} tickCount: 8,
}) lineList: [],
lineObj.setData({ barList: [],
startTime: '',
endTime: '',
dataType: 1,
timePeriod: 1
})
barObj.setData({
dataType: type == 1 ? 3 : 1
})
},
// 看产值-产值总览
getOutput() {
const {
type,
} = this.data
let apiName = 'boutiquecouponOutputValue'
let params = {
merchantId: thisPage.data.merchantId
}
if ([2].includes(type)) {
apiName = 'merchantsOutput'
params = {
merchantIds: [thisPage.data.merchantId]
}
}
ActivityApi[apiName](params).then(res => {
this.setData({
outputData: {
triggered: false,
...this.data.outputData,
...res
}
})
console.log(this.data.outputData)
})
},
merchantsOutputToday() {
const {
type,
} = this.data
if (type != 2) return
ActivityApi.merchantsOutputToday({
merchantIds: [thisPage.data.merchantId]
}).then(res => {
this.setData({
outputData: {
...this.data.outputData,
...res
}
})
})
},
selectEvent() {
this.getTrend()
},
selectBarEvent() {
this.getHistogram()
},
selectTime() {
this.setData({
isShow: true
})
},
onClose() {
this.setData({
isShow: false
});
},
onConfirm(event) {
const [start, end] = event.detail;
const lineObj = this.selectComponent('#line')
this.setData({
isShow: false
});
lineObj.setData({
startTime: this.formatDate(start),
endTime: this.formatDate(end),
timePeriod: ''
})
this.getTrend()
},
formatDate(date) {
date = new Date(date);
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, 0)}-${(date.getDate()).toString().padStart(2, 0)}`;
},
/**柱状图 */
getHistogram() {
const barObj = this.selectComponent('#bar')
let {
dataType
} = barObj.data
const methods = {
1: 'boutiquecouponQueryCouponCountAndOrderMoney',
2: 'merchantsHistogram'
}
const params = {
merchantId: thisPage.data.merchantId,
dataType //数据类型:1报价量/ 2成交量 /3产值
// timePeriod: 1, //时间类型 1本周 / 2本月 /3全年
// startTime: '',
// endTime: ''
}
ActivityApi[methods[this.data.type]](params).then(res => {
this.setData({
chartData: res
})
})
},
/**折线图 */
getTrend() {
const lineObj = this.selectComponent('#line')
let { },
dataType,
timePeriod,
startTime,
endTime
} = lineObj.data
const methods = {
1: 'boutiquecouponQueryOrderMoneyTotalAndToShopCount',
2: 'merchantsTrend'
}
const params = {
merchantId: thisPage.data.merchantId,
dataType, //数据类型:1报价量/ 2成交量 /3产值
}
this.data.type == 1 ? params.dateDimension = timePeriod : params.timePeriod = timePeriod
if (startTime) this.data.type == 1 ? params.startDate = startTime : params.startTime = startTime + ' 00:00:00'
if (endTime) this.data.type == 1 ? params.endDate = endTime : params.endTime = endTime + ' 23:59:59'
ActivityApi[methods[this.data.type]](params).then(res => {
// res.forEach(item=>{
// item.abscissaValue = item.abscissaValue.substring(5)
// })
this.setData({
lineData: res
})
})
},
getOutputReport() {
ActivityApi.merchantsOutputReport
}, },
/**员工排行 */ /**
getStaffOutput() { * 组件的方法列表
const { */
type methods: {
} = this.data // 初始化
let apiName, params, tabelTh; initLocal(val) {
const dataT = { this.setData({
1: () => { type: val,
apiName = 'boutiquecouponQueryEmployeeRankList', activeTrigger: false,
params = { noResult: false,
merchantId: thisPage.data.merchantId outputData: {},
sfaffList: [],
tabelTh: []
})
thisPage = wx.$router.getPageInstance()
this.getActivityInfo()
},
getActivityInfo() {
console.log(Date.now())
this.initSearch()
this.getOutput()
this.getStaffOutput()
this.merchantsOutputToday()
this.getHistogram()
this.getTrend()
},
initSearch() {
let {
type,
opts
} = this.data
const obj = {
1: {
lineList: [{
title: '营业额',
type: 1
}, {
title: '到店量',
type: 2
}],
barList: [{
title: '发券量',
type: 3
}, {
title: '营业额',
type: 1
}]
},
2: {
lineList: [{
title: '报价量',
type: 1
}, {
title: '成交量',
type: 2
}, {
title: '产值',
type: 3
}],
barList: [{
title: '报价量',
type: 1
}, {
title: '成交量',
type: 2
}, {
title: '产值',
type: 3
}]
}
}, },
tabelTh = { lineList = obj[type].lineList,
employeeName: '员工', barList = obj[type].barList
orderMoneyTotal: '产值(营业额)', const barObj = this.selectComponent('#bar')
upgradeCountTotal: '单量', const lineObj = this.selectComponent('#line')
averagePrice: '客单价', this.setData({
upgradeRatio: '转化率' opts: {
...opts,
lineList,
barList
}
})
lineObj.setData({
startTime: '',
endTime: '',
dataType: 1,
timePeriod: 1
})
barObj.setData({
dataType: type == 1 ? 3 : 1
})
},
// 看产值-产值总览
getOutput() {
const {
type,
} = this.data
let apiName = 'boutiquecouponOutputValue'
let params = {
merchantId: thisPage.data.merchantId
} }
if ([2].includes(type)) {
apiName = 'merchantsOutput'
params = {
merchantIds: [thisPage.data.merchantId]
}
}
ActivityApi[apiName](params).then(res => {
thisPage.setData({ loading: false })
this.setData({
outputData: {
triggered: false,
...this.data.outputData,
...res
}
})
})
},
merchantsOutputToday() {
const {
type,
} = this.data
if (type != 2) return
ActivityApi.merchantsOutputToday({
merchantIds: [thisPage.data.merchantId]
}).then(res => {
this.setData({
outputData: {
...this.data.outputData,
...res
}
})
})
},
selectEvent() {
this.getTrend()
},
selectBarEvent() {
this.getHistogram()
},
selectTime() {
this.setData({
isShow: true
})
},
onClose() {
this.setData({
isShow: false
});
},
onConfirm(event) {
const [start, end] = event.detail;
const lineObj = this.selectComponent('#line')
this.setData({
isShow: false
});
lineObj.setData({
startTime: this.formatDate(start),
endTime: this.formatDate(end),
timePeriod: ''
})
this.getTrend()
},
formatDate(date) {
date = new Date(date);
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, 0)}-${(date.getDate()).toString().padStart(2, 0)}`;
}, },
2: () => { /**柱状图 */
apiName = 'merchantsStaffOutput', getHistogram() {
params = { const barObj = this.selectComponent('#bar')
merchantIds: [thisPage.data.merchantId] let {
dataType
} = barObj.data
const methods = {
1: 'boutiquecouponQueryCouponCountAndOrderMoney',
2: 'merchantsHistogram'
} }
tabelTh = { const params = {
transferName: "员工", merchantId: thisPage.data.merchantId,
outputValue: "产值", dataType //数据类型:1报价量/ 2成交量 /3产值
successCount: "成交量", // timePeriod: 1, //时间类型 1本周 / 2本月 /3全年
quotationCount: "报价量", // startTime: '',
conversionRate: "转化率", // endTime: ''
} }
} ActivityApi[methods[this.data.type]](params).then(res => {
} this.setData({
dataT[type]() chartData: res
ActivityApi[apiName](params).then(res => { })
const sfaffList = res.list || res || [] })
this.setData({ },
triggered: false, /**折线图 */
sfaffList, getTrend() {
tabelTh const lineObj = this.selectComponent('#line')
})
}) let {
}, dataType,
formatArr(arr, fn) { timePeriod,
let res = {} startTime,
for (let v of arr) { endTime
const val = Object.keys(v) } = lineObj.data
for (let i of val) { const methods = {
if (res[i]) { 1: 'boutiquecouponQueryOrderMoneyTotalAndToShopCount',
res[i].push(v[i]) 2: 'merchantsTrend'
continue }
} const params = {
res[i] = [v[i]] merchantId: thisPage.data.merchantId,
dataType, //数据类型:1报价量/ 2成交量 /3产值
}
this.data.type == 1 ? params.dateDimension = timePeriod : params.timePeriod = timePeriod
if (startTime) this.data.type == 1 ? params.startDate = startTime : params.startTime = startTime + ' 00:00:00'
if (endTime) this.data.type == 1 ? params.endDate = endTime : params.endTime = endTime + ' 23:59:59'
ActivityApi[methods[this.data.type]](params).then(res => {
// res.forEach(item=>{
// item.abscissaValue = item.abscissaValue.substring(5)
// })
this.setData({
lineData: res
})
})
},
getOutputReport() {
ActivityApi.merchantsOutputReport
},
/**员工排行 */
getStaffOutput() {
const {
type
} = this.data
let apiName, params, tabelTh;
const dataT = {
1: () => {
apiName = 'boutiquecouponQueryEmployeeRankList',
params = {
merchantId: thisPage.data.merchantId
},
tabelTh = {
employeeName: '员工',
orderMoneyTotal: '产值(营业额)',
upgradeCountTotal: '单量',
averagePrice: '客单价',
upgradeRatio: '转化率'
}
},
2: () => {
apiName = 'merchantsStaffOutput',
params = {
merchantIds: [thisPage.data.merchantId]
}
tabelTh = {
transferName: "员工",
outputValue: "产值",
successCount: "成交量",
quotationCount: "报价量",
conversionRate: "转化率",
}
}
}
dataT[type]()
ActivityApi[apiName](params).then(res => {
const sfaffList = res.list || res || []
this.setData({
triggered: false,
sfaffList,
tabelTh
})
})
},
formatArr(arr, fn) {
let res = {}
for (let v of arr) {
const val = Object.keys(v)
for (let i of val) {
if (res[i]) {
res[i].push(v[i])
continue
}
res[i] = [v[i]]
}
}
return fn(res)
},
// 下拉刷新
activityRefresh(e) {
this.getActivityInfo()
},
jumpReport(e) {
const {
time
} = e.target.dataset
const {
entranceType
} = this.data
wx.navigateTo({
url: `/packagesList/packageOutput/pages/monthReport/monthReport?time=${time}&type=${entranceType}&merchantId=${thisPage.data.merchantId}&merchantName=${thisPage.data.merchantName}`,
})
} }
}
return fn(res)
},
// 下拉刷新
activityRefresh(e) {
this.getActivityInfo()
}, },
jumpReport(e) { // lifetimes: {
const { // attached() {
time // if(this.control)return
} = e.target.dataset // this.control = true
const { // this.initLocal(this.data.entranceType)
entranceType // }
} = this.data // },
wx.navigateTo({
url: `/packagesList/packageOutput/pages/monthReport/monthReport?time=${time}&type=${entranceType}&merchantId=${thisPage.data.merchantId}&merchantName=${thisPage.data.merchantName}`,
})
}
},
// lifetimes: {
// attached() {
// if(this.control)return
// this.control = true
// this.initLocal(this.data.entranceType)
// }
// },
}) })
\ No newline at end of file \ No newline at end of file
...@@ -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!