-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bandengtechs插件 #817
Open
givemelie
wants to merge
10
commits into
mipengine:master
Choose a base branch
from
givemelie:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
bandengtechs插件 #817
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f5b7a77
first
givemelie 2ff21bc
底部悬浮组件的修改
givemelie dd310d3
新增功能组件
givemelie c8b7e35
Merge branch 'master' into master
givemelie 244eb68
组件说明,js部分的修改
givemelie 61f7af2
组件修改
givemelie 94b3b53
Merge branch 'master' of https://github.com/givemelie/mip2-extensions…
givemelie 73ffb37
说明提交
givemelie 7312d53
Merge branch 'master' into master
givemelie 688f624
Merge branch 'master' into master
MiyaPan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,6 @@ | |
"execa": "^0.11.0", | ||
"fs-extra": "^7.0.1", | ||
"glob": "^7.1.3", | ||
"husky": "^1.0.0-rc.8", | ||
"mip2": "^1.5.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
UTF-8 | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
root = true | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
[*.{js,styl,html,json,vue}] | ||
indent_size = 2 | ||
indent_style = space | ||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parser": "vue-eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 8, | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": false | ||
}, | ||
"extends": [ | ||
"standard", | ||
"plugin:vue/recommended" | ||
], | ||
"plugins": [ | ||
"jsdoc" | ||
], | ||
"globals": { | ||
"MIP": true | ||
}, | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"jsdoc/check-param-names": 1, | ||
"jsdoc/check-tag-names": 1, | ||
"jsdoc/check-types": 1, | ||
"jsdoc/newline-after-description": 1, | ||
"jsdoc/no-undefined-types": 1, | ||
"jsdoc/require-description-complete-sentence": 0, | ||
"jsdoc/require-example": 0, | ||
"jsdoc/require-hyphen-before-param-description": 0, | ||
"jsdoc/require-param": 1, | ||
"jsdoc/require-param-description": 1, | ||
"jsdoc/require-param-name": 1, | ||
"jsdoc/require-param-type": 1, | ||
"jsdoc/require-returns-description": 1, | ||
"jsdoc/require-returns-type": 1, | ||
"jsdoc/valid-types": 1, | ||
"no-var": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules/ | ||
dist/ | ||
.idea/ | ||
*.log | ||
Thumbs.db | ||
.DS_Store | ||
*.swp | ||
*.gz |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# mip-company | ||
|
||
标题|内容 | ||
----|---- | ||
类型| | ||
支持布局| | ||
所需脚本| [https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-company/mip-company.js](https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-company/mip-company.js) | ||
|
||
## 说明 | ||
主要是对请求并在首页储存的json文件数据提取和数据分类处理,再循环遍历出来 | ||
|
||
## 示例 | ||
|
||
示例说明 | ||
|
||
``` | ||
// 代码示例 | ||
``` | ||
|
||
## 属性 | ||
|
||
### url | ||
|
||
**说明**: | ||
获取动态的图片地址 | ||
**必选项**: | ||
|
||
**单位**: | ||
|
||
**默认值**: |
20 changes: 20 additions & 0 deletions
20
sites/bandtechs.com/components/mip-company/example/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html mip> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=no"> | ||
<title>MIP page</title> | ||
<link rel="canonical" href="对应的原页面地址"> | ||
<link rel="stylesheet" href="https://c.mipcdn.com/static/v2/mip.css"> | ||
<style mip-custom> | ||
/* 自定义样式 */ | ||
</style> | ||
</head> | ||
<body> | ||
<div > | ||
<mip-company></mip-company> | ||
</div> | ||
<script src="https://c.mipcdn.com/static/v2/mip.js"></script> | ||
<script src="/mip-company/mip-company.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
mip-company { | ||
.wrapper { | ||
|
||
} | ||
.ox{ | ||
display: flex; | ||
flex-direction:row; | ||
align-items: center; | ||
justify-content: space-around; | ||
margin-top:15px; | ||
} | ||
.right-box{ | ||
width: auto; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: space-between; | ||
height:90px; | ||
width:70%; | ||
margin-left:10px; | ||
} | ||
.bar-title{ | ||
color:#333333; | ||
font-size: 15px; | ||
font-family:PingFang SC; | ||
font-weight:bold; | ||
} | ||
a{ | ||
color:#3D97FE; | ||
font-size:12px; | ||
margin-left: -7px; | ||
padding: 0; | ||
border: none; | ||
} | ||
.see{ | ||
color:#999999; | ||
font-size:12px; | ||
margin-left: 10px; | ||
} | ||
.see-div{ | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
.creat-time{ | ||
color:#999999; | ||
font-size:12px; | ||
} | ||
.see-num{ | ||
display: flex; | ||
align-items: center; | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import './index.less' | ||
|
||
export default class MIPCompany extends MIP.CustomElement { | ||
build () { | ||
let wrapper = document.createElement('div') | ||
let url = this.element.getAttribute('url') | ||
wrapper.classList.add('wrapper') | ||
let dataList = sessionStorage.getItem('dataList') | ||
dataList = JSON.parse(dataList) | ||
let arr = [] | ||
dataList.newsList.forEach((item) => { | ||
if (item.group === 4) { | ||
arr.push(item) | ||
} | ||
}) | ||
for (let i = 0; i < arr.length; i++) { | ||
wrapper.innerHTML += ` | ||
<div class="ox"> | ||
<mip-img src="` + arr[i].imageUrl + `" width="100" height="100"></mip-img> | ||
<div class="right-box"> | ||
<span class="bar-title">` + arr[i].title + `</span> | ||
<span class="creat-time">发布时间` + arr[i].createTime + `</span> | ||
<div class="see-div"> | ||
<a href="companyDetail.html?index=` + i + `" mip-link>【查看详情】</a> | ||
<div class="see-num"> | ||
<mip-img src="` + url + `/bandeng/查看@2x.png" width="17" height="16"></mip-img> | ||
<span class="see">9654</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
` | ||
} | ||
|
||
this.element.appendChild(wrapper) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# mip-news | ||
|
||
标题|内容 | ||
----|---- | ||
类型| | ||
支持布局| | ||
所需脚本| [https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-news/mip-news.js](https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-news/mip-news.js) | ||
|
||
## 说明 | ||
|
||
新闻中心通用组件,用于展示页面的各个新闻条目 | ||
|
||
## 示例 | ||
|
||
示例说明 | ||
|
||
``` | ||
// 代码示例 | ||
``` | ||
|
||
## 属性 | ||
|
||
### 属性1 | ||
|
||
**说明**: | ||
|
||
**必选项**: | ||
|
||
**单位**: | ||
|
||
**默认值**: |
20 changes: 20 additions & 0 deletions
20
sites/bandtechs.com/components/mip-news/example/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html mip> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=no"> | ||
<title>MIP page</title> | ||
<link rel="canonical" href="对应的原页面地址"> | ||
<link rel="stylesheet" href="https://c.mipcdn.com/static/v2/mip.css"> | ||
<style mip-custom> | ||
/* 自定义样式 */ | ||
</style> | ||
</head> | ||
<body> | ||
<div> | ||
<mip-news></mip-news> | ||
</div> | ||
<script src="https://c.mipcdn.com/static/v2/mip.js"></script> | ||
<script src="/mip-news/mip-news.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
mip-news { | ||
|
||
.img{ | ||
width: 100%; | ||
height:140px; | ||
border-radius:5px; | ||
//background: url('../../static/images/about.png'); | ||
} | ||
.news-box{ | ||
margin-bottom: 20px; | ||
} | ||
.article-title{ | ||
font-size:15px; | ||
font-family:PingFang SC; | ||
font-weight:bold; | ||
margin-top: 10px; | ||
color:rgba(51,51,51,1); | ||
} | ||
.time{ | ||
color:#999999; | ||
font-size: 12px; | ||
font-family:PingFang SC; | ||
font-weight:500; | ||
margin-top: 10px; | ||
color:rgba(153,153,153,1); | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.watch{ | ||
display: flex; | ||
align-items: center; | ||
} | ||
.left-1{ | ||
margin-left: 20px; | ||
margin-right: 9px; | ||
} | ||
.left-2{ | ||
margin-right: 9px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import './index.less' | ||
export default class MIPNews extends MIP.CustomElement { | ||
build () { | ||
let wrapper = document.createElement('div') | ||
let dataList = sessionStorage.getItem('dataList') | ||
dataList = JSON.parse(dataList) | ||
let url = this.element.getAttribute('url') | ||
let arr = [] | ||
dataList.newsList.forEach((item) => { | ||
if (item.group !== 4) { | ||
arr.push(item) | ||
} | ||
}) | ||
for (let i = 0; i < arr.length; i++) { | ||
wrapper.innerHTML += ` | ||
<div class="news-box"> | ||
<div class="img"> | ||
<mip-img class="img" src="` + arr[i].imageUrl + `" width="690" height="280" layout="responsive"></mip-img> | ||
</div> | ||
<div class="article-title"><a href="newsDetail.html?index=` + i + `" mip-link>` + arr[i].title + `</a></div> | ||
<div class="time"> | ||
<span>发布时间:<span>` + arr[i].createTime + `</span></span> | ||
<div class="watch"> | ||
<mip-img src="` + url + `/bandeng/查看@2x.png" class="left-2" width="17" height="16"></mip-img> | ||
<span>9888</span> | ||
<mip-img src="` + url + `/bandeng/点赞数@2x.png" class="left-1" width="17" height="16"></mip-img> | ||
<span>88676</span> | ||
</div> | ||
</div> | ||
</div> | ||
` | ||
} | ||
this.element.appendChild(wrapper) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# mip-success | ||
|
||
标题|内容 | ||
----|---- | ||
类型| | ||
支持布局| | ||
所需脚本| [https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-success/mip-success.js](https://c.mipcdn.com/extensions/platform/v2/mipWebsite/mip-success/mip-success.js) | ||
|
||
## 说明 | ||
案列中心通用组件,用于展示各个案列的条目。简化页面 | ||
|
||
|
||
## 示例 | ||
|
||
示例说明 | ||
|
||
``` | ||
// 代码示例 | ||
``` | ||
|
||
## 属性 | ||
|
||
### 属性1 | ||
|
||
**说明**: | ||
|
||
**必选项**: | ||
|
||
**单位**: | ||
|
||
**默认值**: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不允许修改根目录下的 package.json