Git Product home page Git Product logo

ironinfoweapp's Introduction

铜陵钢材信息小程序整体系统

服务暂时停止, 后续再看

铜陵钢材, 我选铜陵回归物资有限公司

项目出现原因

铜陵已是资源枯竭型城市, 在这互联网寒冬, 我们钢材厂继续跟上工业互联网的发展, 用工业互联网点燃寒冬下的火柴, 让火柴点燃我们的激情, 让激情温暖寒冬

项目时间线

  • 2018.07 见面, 了解需求
  • 2018.08 后端技术选型(EggJS, MySQL)
  • 2018.09 管理后台前端技术选型(Vue, ElementUI)
  • 2018.10 需求整理完成, 小程序技术选型(UniApp)
  • 2018.10 - 2019.03 开发, 上线, 迭代
  • 2019.06 管理后台添加权限
  • 2019.07 小程序登录位置调整, 广告位添加
  • 2019.09 管理后台手机端
  • 2019.10 小程序钢材搜索添加语音识别
  • 2019.10 后端添加数据库初始化, 创建初始管理员相关脚本
  • 2019.11 后端添加钢材价格爬虫定时任务
  • 2019.12 小程序图表改为ucharts
  • 2020.01 后端添加钢材价格汇总文章定时发布任务
  • 2020.01 小程序添加钢材重量计算器
  • 2020.03 高层视察数据大屏
  • 2020.04 支付宝支付流程
  • 2020.04 小程序搜索添加敏感词判断
  • 2020.07 小程序扫码登录

项目目录

开源计划

  • API服务端
  • 管理后台PC端
  • 管理后台手机端
  • 小程序与H5
  • 文档: 需求文档
  • 文档: API文档
  • 文档: 开发文档
  • 文档: 程序对应文档

小程序码

高层视察数据大屏

https://klren0312.github.io/ironInfoWeapp/

管理后台

http://admin.zzes1314.cn (用户名: tour, 密码: tour520)

管理后台手机端

界面截图

  • 第七版, 钢材计算器, 图表样式修改, 底部tabbar图标修改

  • 第六版, UI错误修改, 钢材搜索添加语音识别, 删除影响渲染的广告位

  • 第五版, UI调整

  • 第四版, UI调整

  • 第三版,添加首页

  • 第二版, 修改样式和添加联想搜索

  • 第一版

Stargazers over time

Stargazers over time

ironinfoweapp's People

Contributors

dependabot[bot] avatar klren0312 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ironinfoweapp's Issues

埋点问题

上报用户的搜索记录:

  • 每次登录的时候上报
  • or 每次搜索上报(可以记录每种钢材搜索次数)

添加首页

首页内容

  • 热门钢材 (九宫格?
  • 相关资讯 (价格更改通知, 趋势分析)

应该可以打包成iOS或者Android的App吧?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

登录框添加去除前后空格

看后台日志, 有些人登录在 tour前多了一个空格, 并登录多次无法成功...

需要在登录时去除一下前后空格, 防止部分多余空格, 导致无法登陆
image

每天爬取价格汇总, 截图上传七牛云

const puppeteer = require('puppeteer')
const path = require('path')
puppeteer.launch({
  headless: true,
  args: [ // 禁用一些功能
    '--no-sandbox', // 沙盒模式
    '--disable-setuid-sandbox', // uid沙盒
    '--disable-dev-shm-usage', // 创建临时文件共享内存
    '--disable-accelerated-2d-canvas', // canvas渲染
    '--disable-gpu' // GPU硬件加速
  ],
  ignoreDefaultArgs: ["--enable-automation"]
}).then(async browser => {
  const page = await browser.newPage()
  page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36')
  await page.goto('http://hq.zgw.com/huizong/jiancai.html')
  sleep(2000)
  const time = await page.$eval('.lm_list > ul:nth-child(2) > li:nth-child(1) > span', a => a.innerHTML)
  console.log(getToday())
  if (time === getToday()) {
    const url = await page.$eval('.fl.lm_left >.lm_list > ul:nth-child(2) > li:nth-child(1) > a', a => a.href)
    await page.goto(url)
    sleep(2000)
    let clip = await page.evaluate(() => {
      let {
        x,
        y,
        width,
        height
      } = document.querySelector('.neirong > table').getBoundingClientRect()
      return {
        x,
        y,
        width,
        height
      }
    })
    const title = await page.$eval('body > div.wrap > div.cslm_tit > div.hq_con > div.fl.lm_left > div > div.lm_m > div.lm_mt > div.time', a => {
      return a.innerHTML
    })
    const date = title.match(/\d+-\d+-\d+/)
    await page.screenshot({
      path: `${date}.png`,
      clip: clip
    })
    save(path.resolve(`${date}.png`), `${date}`)
  }
  await browser.close()
}).then(() => {

}).catch(e => {
  console.log(e)
})

/**
 * 获取今日日期字符串
 */
function getToday () {
  const month = new Date().getMonth() + 1
  const day = new Date().getDate()
  let today = ''
  if (month < 10) {
    today += `0${month}`
  } else {
    today += month + ''
  }

  if (day < 10) {
    today += `-0${day}`
  } else {
    today += `-${day}`
  }

  return today
}

/**
 * 延时
 * @param {Number} time 
 */
function sleep(time) {
  return new Promise((resolve, reject) => {
    setTimeout(() => resolve(), time)
  })
}

/**
 * 上传截图
 * @param {String} path 文件路径
 * @param {String} name 文件名称
 */
function save (path, name) {
  const qiniu = require('qiniu')
  const accessKey = ''
  const secretKey = ''
  const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
  const options = {
    scope: 'zzestlgc',
    returnBody: '{"key":"$(key)","hash":"$(etag)","fsize":$(fsize),"bucket":"$(bucket)","name":"$(x:name)"}'
  }

  const putPolicy = new qiniu.rs.PutPolicy(options)
  const uploadToken=putPolicy.uploadToken(mac)

  const config = new qiniu.conf.Config()
  // 空间对应的机房
  config.zone = qiniu.zone.Zone_z2

  const formUploader = new qiniu.form_up.FormUploader(config)
  const putExtra = new qiniu.form_up.PutExtra()
  const key = name

  formUploader.putFile(uploadToken, key, path, putExtra, (err, body, info) => {
    if (err) throw err
    if (info.statusCode === 200) {
      console.log(body)
    } else {
      console.log(info.statusCode)
      console.log(body)
    }
  })
}

Weekly Digest (9 June, 2019 - 16 June, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there was 1 commit.
🛠️ 添加electon端 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there was 1 stargazer.
yzh979
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (26 May, 2019 - 2 June, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week 2 issues were created.
Of these, 1 issues have been closed and 1 issues are still open.

OPEN ISSUES

💚 #23 埋点问题, by klren0312

CLOSED ISSUES

❤️ #22 管理后台相关接口错误, by klren0312


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 4 commits.
🛠️ fix: #22 首页图表错误 by klren0312
🛠️ fix: #22 登录接口错误 by klren0312
🛠️ 文章时间改为创建时间, 修复热门钢材swiper高度错误问题, 用户访问小程序计数 by klren0312
🛠️ UI修改, 首页热门钢材添加右滑个人关注钢材(采用历史搜索) by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (26 March, 2019 - 2 April, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 2 commits.
🛠️ fix: #17 结束把 by klren0312
🛠️ doc: api文档 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were 2 stagazers.
ynwshy
shenyin2017
You all are the stars! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (13 October, 2019 - 20 October, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 2 stagazers.
yoruponder
omvmo
You all are the stars! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

钢材价格爬虫

后期整合进定时服务

image

const cheerio = require('cheerio')
const tableParser = require('cheerio-tableparser')
const rp = require('request-promise')
const url = 'http://hq.zgw.com/hefei/jiancai/2343364.html'

rp({
  uri: url
}).then(body => {
  const $ = cheerio.load(body)
  const priceCol = spiderTable($, false)[4]
  priceCol.shift()
  const pricesFormat = priceCol.map(v => $(v).data().type)
  const otherData = spiderTable($, true)
  const nameCol = otherData[0]
  const sizeCol = otherData[1]
  nameCol.shift()
  sizeCol.shift()
  const ironArr = []
  for (let i = 0, len = nameCol.length; i < len; i++) {
    ironArr.push({
      name: nameCol[i],
      size: sizeCol[i],
      price: pricesFormat[i]
    })
  }
  console.log(ironArr)
})

function spiderTable ($, hasHtml) {
  tableParser($)
  return $('body > div.wrap > div.cslm_tit > div.hq_con > div.fl.lm_left > div > div.lm_m > div.lm_mt > div.article > table').parsetable(false, false, hasHtml)
}

h5条件编译

  • 解决echarts在h5上显示问题
  • 解决markdown在h5上解析

UI调整

  • 卡片之类样式
  • 顶部相关修改
  • 天气页

PC端管理后台报错 Error: Loading chunk chunk-c09d450e failed.

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
导航切换出现这类问题, 直接访问路由却可以访问

Expected behavior
尽快解决啊

Desktop (please complete the following information):

  • OS: Win10
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 77

Weekly Digest (2 June, 2019 - 9 June, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there was 1 commit.
🛠️ Update EggJSDevelop.md 文档显示格式修正 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were 2 stagazers.
PrideMe
renzehui
You all are the stars! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (29 September, 2019 - 6 October, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there was 1 commit.
🛠️ fix: 文章启用禁用问题修复 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there was 1 stargazer.
greatbakebake
You are the star! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (6 October, 2019 - 13 October, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 2 commits.
🛠️ fix: 修改IP归属地查询接口 淘宝的经常500 by klren0312
🛠️ fix: #39, 添加sequelize-cli同步数据库命令和创建用户命令 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were 2 stagazers.
Twany
luhix
You all are the stars! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (22 September, 2019 - 29 September, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week 2 issues were created.
Of these, 1 issues have been closed and 1 issues are still open.

OPEN ISSUES

💚 #39 服务端初始化没有配置用户名密码, by klren0312

CLOSED ISSUES

❤️ #40 PC端管理后台报错 Error: Loading chunk chunk-c09d450e failed., by klren0312

NOISY ISSUE

🔈 #40 PC端管理后台报错 Error: Loading chunk chunk-c09d450e failed., by klren0312
It received 3 comments.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 4 commits.
🛠️ fix: #34, 钢材搜索添加语音识别 by klren0312
🛠️ fix: #40, 删除天气组件, 解决报错问题 by klren0312
🛠️ delete old project by klren0312
🛠️ fix: #32, 管理后台手机端 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were 4 stagazers.
arthur5987
15116446660
ltian7
z00285034
You all are the stars! 🌟


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (16 June, 2019 - 23 June, 2019)

Here's the Weekly Digest for klren0312/ironInfoWeapp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 2 commits.
🛠️ 管理后台地址 by klren0312
🛠️ 更新管理后台地址 by klren0312


CONTRIBUTORS

Last week there was 1 contributor.
👤 klren0312


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository klren0312/ironInfoWeapp to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.