tem_component

0.1.0 • Public • Published

mid-module

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

环境配置

App.vue

上线的url

let publicU = ''; if (process.env.VUE_APP_PROJECT_ENV == 'test') { if (process.env.VUE_APP_PROJECT_ID == 'undefined') { publicU = 'https://costest-hlihui-1259470100.cos.ap-beijing.myqcloud.com/h5_template/assets/x/preview/data/' + this.id + '.json?sign=' + this.sign this.openConsole() } else { publicU = this.url } } else { if (process.env.VUE_APP_PROJECT_ID == 'undefined') { publicU = 'https://sapi.yangshipin.cn/assets/x/preview/data/' + this.id + '.json?sign=' + this.sign this.openConsole() } else { publicU = this.url } } const url = publicU

本地的url

const url = 'http://62.234.218.125:8081/test/project/data.json?projectId=' + this.id;

vue.config.js

上线的路径

publicPath: publicU,

本地的路径

publicPath: '/',

ThumbUp.vue

本地环境区分

let test = false if (!test) { url = this.host + this.id + '/rank/like.json?v=' + ts } else { url = 'http://62.234.218.125:8081/test/project/rank/like.json?projectId=' + this.id; }

0713 更新限播逻辑

Readme

Keywords

none

Package Sidebar

Install

npm i tem_component

Weekly Downloads

3

Version

0.1.0

License

none

Unpacked Size

1.06 MB

Total Files

48

Last publish

Collaborators

  • cuiy