Browse Source

修改刮奖背景图片和首页的显示图

master
liaoxinyu 2 years ago
parent
commit
d758c10728
  1. 3
      common/js/api.js
  2. 24
      pages/home/home.vue
  3. 4
      pages/scratchCard/scratchCard.vue

3
common/js/api.js

@ -1,10 +1,11 @@
// let baseUrl = 'http://192.168.66.221:8000'
let baseUrl = 'http://192.168.66.16:8084'
// let baseUrl = 'http://192.168.66.16:8084'
// let baseUrl = 'https://ggl.xingtongworld.com'
// baseUrl = 'https://ggl.dingguagua.vip'
// baseUrl = 'https://apps.dingguagua.vip'
// let baseUrl = 'https://apps.dingguagua.vip'
let baseUrl = 'https://app.dingguagua.vip'
let API = {
baseUrl: baseUrl,

24
pages/home/home.vue

@ -166,6 +166,7 @@
isPlay: false,
nomore: false,
page: 1,
intervalId: null,
needInfo: {
update_time: '2023/08/30 19:00',
down_scores_quota: {
@ -355,10 +356,10 @@
changeChartIndex(type){
this.chartIndex = type;
this.getUpDownSta(type);
setTimeout(()=>{
this.myChart.clear();
this.renderChart();
}, 200)
// setTimeout(()=>{
// this.myChart.clear();
// this.renderChart();
// }, 200)
},
renderChart(){
let option = {
@ -511,6 +512,7 @@
getUserSta(){
API.request('/adminStatistics/userStatistics', {}, res=>{
this.userStatistics = res.data;
this.renderPie(); //
})
},
/*总后台上下分统计数据*/
@ -523,6 +525,11 @@
this.UpDownSta.data = this.UpDownSta.histogram.map(item=>{
return item.value;
})
//
this.$nextTick(() => {
this.myChart.clear();
this.renderChart();
});
})
},
/**/
@ -557,6 +564,9 @@
}
// this.userType='background';
if(this.userType=='background'){
this.intervalId = setInterval(() => {
this.getUserSta();
}, 2000);
// console.log(this.$refs, 'this.$refs----');
// console.log(this.$refs.piechart, 'this.$refs.piechart----');
}
@ -591,7 +601,6 @@
// this.pieChart = echarts.init(this.$refs.piechart);
// this.myChart = echarts.init(this.$refs.mychart);
// #endif
setTimeout(()=>{
this.renderPie();
this.renderChart();
@ -601,10 +610,13 @@
},
onHide() {
clearInterval(this.intervalId);
},
created() {
this.userType = uni.getStorageSync('userType');
// if(this.userType=='background'){
// this.getUpDownSta();
// }
},
onReachBottom() {
if(this.userType!=='background' && !this.nomore){

4
pages/scratchCard/scratchCard.vue

@ -409,8 +409,8 @@ export default {
<style lang="scss" scoped>
.prizePage{
width: 750rpx;
// min-height: calc(100vh - 88rpx - var(--status-bar-height));
height: calc(100vh - 88rpx - var(--status-bar-height));
min-height: calc(100vh - 88rpx - var(--status-bar-height));
// height: calc(100vh - 88rpx - var(--status-bar-height));
overflow: hidden;
&.type8{

Loading…
Cancel
Save