新增发现水晶发现更多
This commit is contained in:
44
apis/interfaces/chain.js
Normal file
44
apis/interfaces/chain.js
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 区块链
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 最新区块列表
|
||||
const chain = () => {
|
||||
return request({
|
||||
url: 'chain'
|
||||
})
|
||||
}
|
||||
|
||||
// 发行量概况
|
||||
const situation = () => {
|
||||
return request({
|
||||
url: 'nodes'
|
||||
})
|
||||
}
|
||||
|
||||
// 区块详情
|
||||
const hash = (hash) => {
|
||||
return request({
|
||||
url: 'chain/block/' + hash
|
||||
})
|
||||
}
|
||||
|
||||
// 区块链首页
|
||||
const occ = () => {
|
||||
return request({
|
||||
url: 'occ/index'
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
chain,
|
||||
situation,
|
||||
hash,
|
||||
occ
|
||||
}
|
||||
63
apis/interfaces/crystal.js
Normal file
63
apis/interfaces/crystal.js
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 矿机
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 水晶原石
|
||||
const crystals = () => {
|
||||
return request({
|
||||
url: 'user/account/crystals'
|
||||
})
|
||||
}
|
||||
|
||||
// 领取水晶
|
||||
const thawlog = (data) => {
|
||||
return request({
|
||||
url: 'user/account/thawlog',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 水晶分类
|
||||
const category = () => {
|
||||
return request({
|
||||
url: 'crystal/category'
|
||||
})
|
||||
}
|
||||
|
||||
// 水晶任务
|
||||
const task = () => {
|
||||
return request({
|
||||
url: 'crystal/task'
|
||||
})
|
||||
}
|
||||
|
||||
// 水晶用户签到-信息
|
||||
const sign = () => {
|
||||
return request({
|
||||
url: 'user/sign'
|
||||
})
|
||||
}
|
||||
|
||||
// 水晶用户签到
|
||||
const operateSign = () => {
|
||||
return request({
|
||||
url: 'user/sign',
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
export{
|
||||
crystals,
|
||||
thawlog,
|
||||
category,
|
||||
task,
|
||||
sign,
|
||||
operateSign
|
||||
}
|
||||
123
apis/interfaces/index.js
Normal file
123
apis/interfaces/index.js
Normal file
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Web-zdx
|
||||
* moduleName: 商城首页
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 首页信息
|
||||
const index = () => {
|
||||
return request({
|
||||
url: 'mall',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
// 今日特惠页面 (大于三显示3个 两个显示两个 1个就显示一张图)
|
||||
const indexT = (data) => {
|
||||
return request({
|
||||
url: 'mall/goods',
|
||||
method: 'GET',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
// 获取首页弹窗
|
||||
const popups = () => {
|
||||
return request({
|
||||
url: 'popups/mall',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
const banner = () => {
|
||||
return request({
|
||||
url: 'mall/banners',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 全养头条
|
||||
const cmsArticles = () => {
|
||||
return request({
|
||||
url: 'cms/articles',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 全养头条详情
|
||||
const cmsArticlesDetail = (id) => {
|
||||
return request({
|
||||
url: 'cms/articles/'+id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取是否有未读消息
|
||||
const notifyCounts = () => {
|
||||
return request({
|
||||
url: 'notifications/counts',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 判断是否能跳转到钱包页面
|
||||
const canGoWallet = () => {
|
||||
return request({
|
||||
url: 'user/datas',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 是否设置了激活激活钱包
|
||||
const security = () => {
|
||||
return request({
|
||||
url: 'chain/safe/security',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 是否个人认证成功
|
||||
const certified = () => {
|
||||
return request({
|
||||
url: 'user/certified',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取首页商品列表 taos ='淘宝客' goods/mall (自己商品)
|
||||
const getIndexGoodsList = (name,data) => {
|
||||
return request({
|
||||
url: name,
|
||||
method: 'GET',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
// 获取淘宝客的标签
|
||||
const getTaoCategories = () =>{
|
||||
return request({
|
||||
url: 'tao/categories',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
// 获取自营的标签
|
||||
const getTags = () =>{
|
||||
return request({
|
||||
url: 'mall/tags',
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
index,
|
||||
cmsArticles,
|
||||
notifyCounts,
|
||||
cmsArticlesDetail,
|
||||
canGoWallet,
|
||||
security,
|
||||
certified,
|
||||
getIndexGoodsList,
|
||||
getTaoCategories,
|
||||
getTags,
|
||||
banner,
|
||||
popups,
|
||||
indexT
|
||||
}
|
||||
Reference in New Issue
Block a user