123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- import $http from "./request/requestConfig"
- import {
- BASE_URI
- } from "../pages/utils/constant.js";
- const pubCommunity = '/wx/PubCommunity'
- const auth = '/wx/homeActivity'
- const controller = '/wx/periphery'
- export function list(data) {
- return $http.post(
- BASE_URI + auth + '/list',
- data, {}
- )
- }
- export function searchAllInfo(data) {
- return $http.post(
- BASE_URI + auth + '/searchAllInfo',
- data, {}
- )
- }
- export function getCommunityActivityById(id, createdBy) {
- return $http.post(
- BASE_URI + auth + '/getCommunityActivityById?id=' + id + '&createdBy=' + createdBy,
- {}, {}
- )
- }
- export function clickCollect(data) {
- return $http.post(
- BASE_URI + auth + '/clickCollect',
- data, {}
- )
- }
- export function listPubCommunity(data) {
- return $http.post(
- BASE_URI + pubCommunity + '/listPubCommunity',
- data, {}
- )
- }
- export function listPubCommunityByFrameUser(data) {
- return $http.post(
- BASE_URI + pubCommunity + '/listPubCommunityByFrameUser',
- data, {}
- )
- }
- export function selectStreetCommunityByFrameUser(data) {
- return $http.post(
- BASE_URI + pubCommunity + '/selectStreetCommunityByFrameUser',
- data, {}
- )
- }
- export function selectCommunityEstateByFrameUser(data) {
- return $http.post(
- BASE_URI + pubCommunity + '/selectCommunityEstateByFrameUser',
- data, {}
- )
- }
- export function updateRegistration(data) {
- return $http.post(
- BASE_URI + auth + '/updateRegistration',
- data, {}
- )
- }
- export function updateSignIn(data) {
- return $http.post(
- BASE_URI + auth + '/updateSignIn',
- data, {}
- )
- }
- export function getListByUserId(data) {
- return $http.post(
- BASE_URI + auth + '/getListByUserId',
- data, {}
- )
- }
- export function getBmListByUserId(data) {
- return $http.post(
- BASE_URI + auth + '/getBmListByUserId',
- data, {}
- )
- }
- export function updateSignInEvaluate(data) {
- return $http.post(
- BASE_URI + auth + '/updateSignInEvaluate',
- data, {}
- )
- }
- export function insertHomeCommunityActivity(data) {
- return $http.post(
- BASE_URI + auth + '/insertHomeCommunityActivity',
- data, {}
- )
- }
- export function getHomeCommunityActivityIsValid(data) {
- return $http.post(
- BASE_URI + auth + '/getHomeCommunityActivityIsValid',
- data, {}
- )
- }
- export function getHomeCommunityActivityById(data) {
- return $http.post(
- BASE_URI + auth + '/getHomeCommunityActivityById',
- data, {}
- )
- }
- export function editHomeCommunityActivity(data) {
- return $http.post(
- BASE_URI + auth + '/editHomeCommunityActivity',
- data, {}
- )
- }
- export function listHomeCommunityActivity(data) {
- return $http.post(
- BASE_URI + auth + '/listHomeCommunityActivity',
- data, {}
- )
- }
- export function compareDate(start, end) {
- const startDate = new Date(start)
- const endDate = new Date(end)
- if (startDate.getTime() > endDate.getTime()) {
- return true
- } else {
- return false
- }
- }
|