Commit 08ef0207 authored by youjie's avatar youjie

no message

parent e61b87e9
<template> <template>
<view class="ActInProBox column" <!--:scroll-top="scrollTop"
:class="[Details.Level>0?`activeLv${Details.Level}`:'activeLv1']"> :style="{ opacity: 100 - boxOption + '%' }"
<!--:scroll-top="scrollTop"--> @scroll="scroll"
-->
<scroll-view :scroll-y="true" <scroll-view :scroll-y="true"
style="height: 1px;flex: 1;box-sizing: border-box;" class="ActInProBox column"
@scroll="scroll"> @scroll="scroll"
<view class="ActInProHeaderBox" :style="{ opacity: 100 - boxOption + '%' }" style="height: 100vh;overflow: hidden;"
>
<view class="ActInProHeaderBox"
:class="[Details.Level>0?`activeLv${Details.Level}`:'activeLv1']"> :class="[Details.Level>0?`activeLv${Details.Level}`:'activeLv1']">
<headers :title="page" color="#fff"></headers> <headers :title="' '" color="#fff"></headers>
<view class="ActInProHeader" v-if="Details&&Details.TradeMoney>=0"> <view class="ActInProHeader" v-if="Details&&Details.TradeMoney>=0">
<view class="ActInProHeaderTitle"> <view class="ActInProHeaderTitle">
Lv{{ Details.Level>0?Details.Level:1 }} Lv{{ Details.Level>0?Details.Level:1 }}
...@@ -90,6 +93,8 @@ ...@@ -90,6 +93,8 @@
<view class="ActInProCenTjBox"> <view class="ActInProCenTjBox">
<view class="ActInProCenTjTitle">月销售额统计</view> <view class="ActInProCenTjTitle">月销售额统计</view>
<view class="ActInProCenBar"> <view class="ActInProCenBar">
<!--:pageScrollTop="477"
:inScrollView="true"-->
<mrsongCharts v-if="chartsData.series[0].data.length>0" <mrsongCharts v-if="chartsData.series[0].data.length>0"
height="414rpx" height="414rpx"
type='column' type='column'
...@@ -180,10 +185,11 @@ ...@@ -180,10 +185,11 @@
<view style="height: 40rpx;"></view> <view style="height: 40rpx;"></view>
</view> </view>
</scroll-view>
<u-picker mode="time" v-model="showTime" :defaultTime="times" :params="params" @confirm = 'confirm'></u-picker> <u-picker mode="time" v-model="showTime" :defaultTime="times" :params="params" @confirm = 'confirm'></u-picker>
<auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view> </scroll-view>
</template> </template>
<script> <script>
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
...@@ -197,7 +203,7 @@ export default { ...@@ -197,7 +203,7 @@ export default {
}, },
data() { data() {
return { return {
page:'', page:'出发序章',
boxOption: 0, boxOption: 0,
params: { params: {
year: true, year: true,
...@@ -256,10 +262,10 @@ export default { ...@@ -256,10 +262,10 @@ export default {
color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"], color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
padding: [25,5,10,5], padding: [25,5,10,5],
enableScroll: false, enableScroll: false,
pageScrollTop: 477,
legend: { legend: {
show: false, show: false,
}, },
animation: false,
xAxis: { xAxis: {
disableGrid: true, disableGrid: true,
axisLine: true, axisLine: true,
...@@ -401,6 +407,15 @@ export default { ...@@ -401,6 +407,15 @@ export default {
let data = res.data let data = res.data
this.Details = data this.Details = data
this.CustomerOrderListAll = data.CustomerOrderList this.CustomerOrderListAll = data.CustomerOrderList
if(this.Details.Level==2){
this.page = '秘境探索'
}else if(this.Details.Level==3){
this.page = '云端行者'
}else if(this.Details.Level==4){
this.page = '丝路征程'
}else if(this.Details.Level==5){
this.page = '寰宇旅人'
}
this.SelectDate(1) this.SelectDate(1)
let TotalAmount = 0 let TotalAmount = 0
for(let i=0;i<this.Details.OrderMonthList.length;i++){ for(let i=0;i<this.Details.OrderMonthList.length;i++){
...@@ -496,6 +511,7 @@ export default { ...@@ -496,6 +511,7 @@ export default {
.ActInProBox{ .ActInProBox{
height: 100vh; height: 100vh;
background: #F3F1EF; background: #F3F1EF;
will-change: transform;
} }
.ActInProHeaderBox{ .ActInProHeaderBox{
height: 919rpx; height: 919rpx;
...@@ -620,6 +636,7 @@ export default { ...@@ -620,6 +636,7 @@ export default {
height: 414rpx; height: 414rpx;
background: #F2F8FF; background: #F2F8FF;
border-radius: 18rpx; border-radius: 18rpx;
overflow: hidden;
} }
.ActInProCenTimeBox{ .ActInProCenTimeBox{
padding: 40rpx 0 30rpx 0; padding: 40rpx 0 30rpx 0;
......
...@@ -87,10 +87,11 @@ export default { ...@@ -87,10 +87,11 @@ export default {
showAuth: false, showAuth: false,
is_show_auth: 0, is_show_auth: 0,
b2bUser:{}, b2bUser:{},
type: 0
} }
}, },
onLoad(options) { onLoad(options) {
if(options.type)this.type = options.type;
}, },
onShow() { onShow() {
this.U = uni.getStorageSync("mall_UserInfo"); this.U = uni.getStorageSync("mall_UserInfo");
...@@ -116,10 +117,12 @@ export default { ...@@ -116,10 +117,12 @@ export default {
}; };
this.showAuth = true; this.showAuth = true;
} }
this.getList() if(this.type==1){
this.getList()
}
}, },
mounted() { mounted() {
this.getList()
}, },
methods: { methods: {
formatAmount(value) { formatAmount(value) {
......
...@@ -597,7 +597,7 @@ export default { ...@@ -597,7 +597,7 @@ export default {
this.goWebUrl(2) this.goWebUrl(2)
}else if(type==5){ }else if(type==5){
uni.redirectTo({ uni.redirectTo({
url: `/pages/bigredrnvelope/list` url: `/pages/bigredrnvelope/list?type=1`
}) })
} }
} }
...@@ -687,7 +687,7 @@ export default { ...@@ -687,7 +687,7 @@ export default {
} }
// else this.msg.StepNum = 0 // else this.msg.StepNum = 0
// if(this.IsRenewalContract==1) this.msg.ContractId = 0 // if(this.IsRenewalContract==1) this.msg.ContractId = 0
if(this.ContractId) { if(this.ContractId) {
this.msg.ContractId = this.ContractId this.msg.ContractId = this.ContractId
let ContractList = data.ContractList.filter(x=>{ let ContractList = data.ContractList.filter(x=>{
......
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
<slot name="unit"> <slot name="unit">
<view v-if="unit" class="chart-unit">单位:{{ unit ? `(${unit})` : '' }}</view> <view v-if="unit" class="chart-unit">单位:{{ unit ? `(${unit})` : '' }}</view>
</slot> </slot>
<qiun-data-charts :opts="opts" type="column" :chart-data="currentData" background="none" :animation="false" :ontouch="true" /> <qiun-data-charts :opts="opts" type="column"
:chart-data="currentData" background="none"
:animation="false" :ontouch="true"
:inScrollView="inScrollView"
:pageScrollTop="pageScrollTop"/>
</view> </view>
</view> </view>
</template> </template>
...@@ -92,7 +96,15 @@ export default { ...@@ -92,7 +96,15 @@ export default {
height:{ height:{
type: String, type: String,
default: '600px' default: '600px'
} },
inScrollView: {
type: Boolean,
default: false
},
pageScrollTop: {
type: Number,
default: 0
},
}, },
data() { data() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment