zx 3 years ago
parent 3e29606ba6
commit f5afa8843e

@ -1,5 +1,3 @@
// pages/varComm/pages/addEvent/index.js
import Dialog from '../../miniprogram_npm/@vant/weapp/dialog/dialog';
const app = getApp()
Page({
data: {
@ -63,7 +61,7 @@ Page({
evData: [],
},
getData() {
let eventData = wx.getStorageSync('eventData');
let eventData = wx.getStorageSync('eventData') || [];
let evData = [];
eventData.forEach(ele => {
if(ele) {
@ -72,8 +70,7 @@ Page({
});
this.setData({
evData: evData,
})
});
app.globalData.request({
action: 'getEventList',
token: wx.getStorageSync('token'),
@ -95,9 +92,10 @@ Page({
deleteIndex.push(n);
};
};
if(deleteIndex.length != 0) {
data.splice(deleteIndex[0], 1);
data.splice(deleteIndex[1]-1, 1);
}
this.setData({
eventList: data,
})

@ -9,7 +9,6 @@
<van-dropdown-item value="{{ iTimeType }}" options="{{ option4 }}" bind:change="sortChange" />
</van-dropdown-menu>
<view class="event_recom">
<!-- <view style="font-size: 12px;margin-top: 24rpx;color: #333333;">共{{totalNum}}条</view> -->
<van-checkbox-group value="{{ result }}" bind:change="checkChange">
<view class="event_card" wx:for="{{eventList}}" wx:key="idxa">
<view class="card_head">

@ -36,38 +36,4 @@
</view>
</view>
<!-- </view> -->
<!-- <view class="issue_theme" wx:if="{{active==1}}">
<view class="event_card" wx:for="{{issList}}" wx:key="idxa">
<view class="card_head">
<van-checkbox name="{{filter.stringify(item)}}" shape="square" class="van-checkbox"></van-checkbox>
<view style=" font-size: 24rpx;color: rgba(153, 153, 153, 1); width:240rpx;">
{{item.AddTime}}
</view>
<view class="tag"> 已完成</view>
</view>
<view class="card_title">
<text>{{item.Name}}</text>
</view>
<view class="card_label" style="margin-top: 32rpx;">
<text style="color: rgba(153, 153, 153, 1);">相关报道(条)</text>
<text>{{item.ReportSum}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">开始时间</text>
<text>{{item.StartTime}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">结束时间</text>
<text>{{item.EndTime}}</text>
</view>
<view class="card_label" style="margin-top: 24rpx;">
<text style="color: rgba(153, 153, 153, 1);">传播周期(条)</text>
<text>{{item.events_influence}}</text>
</view>
</view>
</view> -->
</van-checkbox-group>

@ -147,10 +147,4 @@ Page({
sonCom: true
})
},
// handlerBack() {
// this.triggerEvent('hide')
// wx.navigateBack({
// delta: 1
// });
// }
})

@ -49,39 +49,6 @@ Page({
app.globalData.request(obj).then(res => {
if (res && res.length > 0) {
iPageIndex++;
// const arr = []
// const time = []
// const obj = {}
// var totalSum = 0
// var num = 0
// res.forEach(i => {
// totalSum += parseInt(i.salescount)
// // console.log(i.salescount)
// if (!obj[i.sourcetime]) {
// obj[i.sourcetime] = []
// time.push(i.sourcetime)
// num++
// }
// obj[i.sourcetime].push(i)
// })
// for (let j = 0; j < num; j++) {
// var sum = 0
// for (let a = 0; a < obj[time[j]].length; a++) {
// sum += parseInt(obj[time[j]][a].salescount)
// }
// arr.push({
// times: time[j],
// sales: sum,
// share: ((sum / totalSum) * 100).toFixed(2),
// brand: this.data.carName
// })
// }
// if (arr.length == 0) {
// this.data.loadMore = true
// } else {
// this.data.loadMore = false
// }
let arr = this.data.ranking.concat(res);
this.setData({
ranking: arr,
@ -183,7 +150,7 @@ Page({
this.setData({
date: this.data.date,
date2: this.data.date2,
})
});
},
/**
* 生命周期函数--监听页面初次渲染完成

@ -3,13 +3,13 @@
<view class="range-style mar-top">
<!-- 时间段 -->
<view class="picker_group">
<picker mode="date" fields="month" value="{{date}}" bindchange="bindDateChange">
<picker mode="date" fields="month" end="{{date2+'-01'}}" value="{{date}}" bindchange="bindDateChange">
<view class="picker">
{{date}}
</view>
</picker>
<text class="text-style1">-</text>
<picker mode="date" fields="month" value="{{date2}}" bindchange="bindDateChange2">
<picker mode="date" fields="month" end="{{date2+'-01'}}" value="{{date2}}" bindchange="bindDateChange2">
<view class="picker">
{{date2}}
</view>

@ -275,56 +275,5 @@ Page({
onLoad: function (options) {
console.log('111',this.data.sortOpt[0].value1)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
// this.getTabBar().init();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

@ -224,7 +224,6 @@ Page({
app.globalData.request(obj, (database) => {}).then(res => {
const carName = []
const carValue = []
// console.log("这是数据",res)
if (res && res.length > 0) {
iPageIndex++;
//把新请求到的数据添加到列表里
@ -233,8 +232,6 @@ Page({
carName.push(e.seriesname)
carValue.push(e.salescount)
})
// length=(carName.length/carName.length)*100
// console.log(carName.length)
this.setData({
ranking: list, //获取数据数组
loadMore: false, //把"上拉加载"的变量设为false显示
@ -413,7 +410,6 @@ Page({
sStartTime: times(this.data.startDate),
sEndTime: this.data.endDate,
}).then(res => {
// console.log(res)
const dataTime = []
const dataCar = []
res.forEach(e => {
@ -448,12 +444,10 @@ Page({
startDate: wx.getStorageSync('newTime'),
endDate: wx.getStorageSync('newTime')
})
// this.getTabBar().init();
this.getData()
},
changeTab(val) {
let n = val.detail.index;
// console.log(n)
this.setData({
active: n
})

@ -48,18 +48,6 @@ Page({
})
}
app.globalData.request(obj).then(res => {
// console.log(res)
// const arr=[]
// res.forEach(e => {
// let obj={
// models:e.carseries,
// count:e.salescount,
// space:e.specname,
// specm:e.specpm,
// salespm:e.salespm
// }
// arr.push(obj)
// });
if (res && res.length > 0) {
iPageIndex++;
let arr = this.data.content.concat(res);
@ -80,47 +68,7 @@ Page({
});
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
console.log("上拉触底事件")
let that = this
@ -134,11 +82,4 @@ Page({
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -17,26 +17,7 @@ Page({
url: '/subPackages/pages/detail/index?id=' + id
})
}
console.log('000', token)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
sQuDao: wx.getStorageSync('sQuDao') || '',
@ -77,38 +58,4 @@ Page({
wx.hideToast();
}, 500)
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,66 +0,0 @@
// pages/themeList/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,3 +0,0 @@
{
"usingComponents": {}
}

@ -1,2 +0,0 @@
<!--pages/themeList/index.wxml-->
<text>pages/themeList/index.wxml</text>

@ -1 +0,0 @@
/* pages/themeList/index.wxss */

@ -94,7 +94,7 @@ Component({
eventList: res
})
let arr = [];
let x = wx.getStorageSync('eventData');
let x = wx.getStorageSync('eventData') || [];
x.forEach(ele => {
arr.push(JSON.parse(ele))
})

@ -121,7 +121,7 @@ Component({
})
});
let x = wx.getStorageSync('themeData')
let x = wx.getStorageSync('themeData') || [];
let arr = [];
x.forEach(ele => {
arr.push(JSON.stringify(ele))

@ -118,12 +118,6 @@ Page({
weekList: event.detail,
});
},
// onChange3(event) {
// wx.setStorageSync('EmailWeek', event.detail.toString());
// this.setData({
// result: event.detail,
// });
// },
Emailpush() {
if(this.data.checked == false && this.data.checked2 == false) {
let data = {

Loading…
Cancel
Save