From 1405107ba47bf7bf92b341ab56862f339f9ef093 Mon Sep 17 00:00:00 2001 From: mip-platform Date: Fri, 27 Sep 2019 11:08:35 +0800 Subject: [PATCH 1/2] mip-platform auto create Pull Request --- sites/gzpd.com/.editorconfig | 14 + sites/gzpd.com/.eslintignore | 2 + sites/gzpd.com/.eslintrc | 39 ++ sites/gzpd.com/.gitignore | 8 + sites/gzpd.com/common/.gitkeep | 0 .../components/mip-gzpd-alert/README.md | 54 ++ .../mip-gzpd-alert/example/index.html | 34 ++ .../components/mip-gzpd-alert/index.less | 483 ++++++++++++++++++ .../mip-gzpd-alert/mip-gzpd-alert.js | 221 ++++++++ sites/gzpd.com/example/index.html | 34 ++ sites/gzpd.com/mip.config.js | 31 ++ sites/gzpd.com/package.json | 25 + sites/gzpd.com/static/.gitkeep | 0 13 files changed, 945 insertions(+) create mode 100644 sites/gzpd.com/.editorconfig create mode 100644 sites/gzpd.com/.eslintignore create mode 100644 sites/gzpd.com/.eslintrc create mode 100644 sites/gzpd.com/.gitignore create mode 100644 sites/gzpd.com/common/.gitkeep create mode 100644 sites/gzpd.com/components/mip-gzpd-alert/README.md create mode 100644 sites/gzpd.com/components/mip-gzpd-alert/example/index.html create mode 100644 sites/gzpd.com/components/mip-gzpd-alert/index.less create mode 100644 sites/gzpd.com/components/mip-gzpd-alert/mip-gzpd-alert.js create mode 100644 sites/gzpd.com/example/index.html create mode 100644 sites/gzpd.com/mip.config.js create mode 100644 sites/gzpd.com/package.json create mode 100644 sites/gzpd.com/static/.gitkeep diff --git a/sites/gzpd.com/.editorconfig b/sites/gzpd.com/.editorconfig new file mode 100644 index 000000000..cb530eac4 --- /dev/null +++ b/sites/gzpd.com/.editorconfig @@ -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 diff --git a/sites/gzpd.com/.eslintignore b/sites/gzpd.com/.eslintignore new file mode 100644 index 000000000..db4c6d9b6 --- /dev/null +++ b/sites/gzpd.com/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules \ No newline at end of file diff --git a/sites/gzpd.com/.eslintrc b/sites/gzpd.com/.eslintrc new file mode 100644 index 000000000..84a3a2e9c --- /dev/null +++ b/sites/gzpd.com/.eslintrc @@ -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 + } +} diff --git a/sites/gzpd.com/.gitignore b/sites/gzpd.com/.gitignore new file mode 100644 index 000000000..1207415d5 --- /dev/null +++ b/sites/gzpd.com/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +dist/ +.idea/ +*.log +Thumbs.db +.DS_Store +*.swp +*.gz diff --git a/sites/gzpd.com/common/.gitkeep b/sites/gzpd.com/common/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/sites/gzpd.com/components/mip-gzpd-alert/README.md b/sites/gzpd.com/components/mip-gzpd-alert/README.md new file mode 100644 index 000000000..acceb5d10 --- /dev/null +++ b/sites/gzpd.com/components/mip-gzpd-alert/README.md @@ -0,0 +1,54 @@ +# mip-example + +复制弹窗 +----|---- +类型|业务 +支持布局|N/S +所需脚本| [https://c.mipcdn.com/extensions/platform/v2/gzpd.com/mip-gzpd-alert/mip-gzpd-alert.js](https://c.mipcdn.com/extensions/platform/v2/gzpd.com/mip-gzpd-alert/mip-gzpd-alert.js) + +## 说明 + +付费复制或获取验证码复制。复制时会弹窗 + +## 示例 + +```html + + + + + + MIP page + + + + + + +
+

文章标题

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+
+
+ + + + + +``` + +## 属性 + +无 \ No newline at end of file diff --git a/sites/gzpd.com/components/mip-gzpd-alert/example/index.html b/sites/gzpd.com/components/mip-gzpd-alert/example/index.html new file mode 100644 index 000000000..15d3bebf2 --- /dev/null +++ b/sites/gzpd.com/components/mip-gzpd-alert/example/index.html @@ -0,0 +1,34 @@ + + + + + + MIP page + + + + + + +
+

文章标题

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+
+
+ + + + + diff --git a/sites/gzpd.com/components/mip-gzpd-alert/index.less b/sites/gzpd.com/components/mip-gzpd-alert/index.less new file mode 100644 index 000000000..857e50f94 --- /dev/null +++ b/sites/gzpd.com/components/mip-gzpd-alert/index.less @@ -0,0 +1,483 @@ +mip-gzpd-alert { + .mip-gzpd-alert-marks .alert-box, + .mip-gzpd-alert-cservice-marks .mip-gzpd-alert-cservice { + overflow: unset; + } + + div.mip-gzpd-alert-marks .claos, + div.mip-gzpd-alert-cservice-marks .claos { + position: absolute; + right: -10px; + background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -149px -31px; + width: 30px; + height: 30px; + text-indent: -9999px; + top: -10px; + cursor: pointer; + } + + div.mip-gzpd-alert-marks .claos:hover, + div.mip-gzpd-alert-cservice-marks .claos:hover { + background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -180px -31px; + } + + div.mip-gzpd-alert-marks { + float: left; + z-index: 10; + width: 100%; + height: 100%; + display: none; + position: fixed; + top: 0; + left: 0; + background: rgba(19, 19, 19, 0.6); + } + + div.mip-gzpd-alert-marks .alert-box { + width: 85%; + position: relative; + margin: auto; + margin-top: 20%; + border-radius: 6px; + background: #fff; + text-align: center; + } + + div.mip-gzpd-alert-marks .alert-box .paybox { + width: 100%; + padding: 6% 0; + border-bottom: 1px solid #ccc; + } + + div.mip-gzpd-alert-marks .paybox .paybox-title { + color: #3c3c3c; + font-size: 22px; + display: inline-block; + font-weight: 700; + line-height: 30px; + height: 30px; + width: 100%; + margin-bottom: 5px; + } + + .mip-gzpd-alert-marks .paybox .paybox-img { + width: 100px; + display: inline-block; + } + + .mip-gzpd-alert-marks .paybox .paybox-img .qrimg { + width: 100% + } + + .mip-gzpd-alert-marks .paybox .paybox-money { + height: 30px; + line-height: 30px; + } + + .mip-gzpd-alert-marks .paybox .paybox-money span:first-child { + color: #ff6600; + font-size: 16px; + font-weight: 400; + } + + .mip-gzpd-alert-marks .paybox .paybox-money span:last-child { + text-decoration: line-through; + color: #949494; + margin-left: 10px; + font-size: 14px; + } + + .mip-gzpd-alert-marks .paybox .paybox-bottom { + cursor: pointer; + background: #44b549; + height: 45px; + line-height: 45px; + border-radius: 6px; + margin: 6px auto; + width: 230px; + } + + .mip-gzpd-alert-marks .paybox .paybox-bottom-a { + font-size: 18px; + color: #fff; + font-weight: 700; + } + + .mip-gzpd-alert-marks .alert-box .freebox { + width: 100%; + padding: 6% 0 5%; + } + + .mip-gzpd-alert-marks .freebox .freebox-description { + text-align: left; + color: #3c3c3c; + margin: 0 3%; + } + + .mip-gzpd-alert-marks .freebox .freebox-title { + color: #3c3c3c; + font-size: 22px; + display: inline-block; + font-weight: 700; + line-height: 30px; + height: 30px; + width: 100%; + margin-bottom: 5px; + } + + .mip-gzpd-alert-marks .freebox .freebox-description p { + margin: 10px; + font-size: 14px; + } + + .mip-gzpd-alert-marks .freebox .freebox-description p .text-focus { + color: #FF5722; + } + + .mip-gzpd-alert-marks .freebox .freebox-code { + display: inline-block; + margin-top: 7px; + width: 80%; + border: 1px solid #44b549; + height: 32px; + line-height: 30px; + } + + .mip-gzpd-alert-marks .freebox .freebox-code .freebox-input { + line-height: 32px; + width: 78%; + font-size: 14px; + float: left; + border: none; + color: #bdbdbd; + padding-left: 3%; + } + + .mip-gzpd-alert-marks .freebox .freebox-code .freebox-btn { + line-height: 32px; + width: 19%; + background: #44b549; + color: #fff; + text-align: center; + font-size: 16px; + border: 0 none; + cursor: pointer; + float: right; + -webkit-appearance: none; + border-radius: 0; + } + + .mip-gzpd-alert-marks .alert-box .paybox-cservice { + font-size: 14px; + padding-bottom: 10px; + cursor: pointer; + color: #a2a2a2; + } + + .mip-gzpd-alert-marks-wxpay { + display: none; + float: left; + z-index: 10; + width: 100%; + height: 100%; + position: fixed; + top: 0; + background: rgba(19, 19, 19, 0.6); + } + + .mip-gzpd-alert-marks-wxpay .block_ad_qr { + display: inline-block; + margin: 30px 50px; + font-size: 19px; + color: #ff0000; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_text .text { + display: block; + font-size: 30px; + color: #44b549; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_text .icon { + padding-top: 30px; + fill: #44b549; + width: 80px; + display: inline-block; + margin-bottom: 10px; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_box { + display: none; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_box button.btn { + font-weight: 700; + background: #38ad3a; + border: none; + width: 230px; + height: 46px; + font-size: 18px; + color: #fff; + border-radius: 6px; + margin-top: 25px; + cursor: pointer; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_box .payqr_success_text span.text { + display: block; + font-size: 30px; + color: #44b549; + margin-bottom: 6px; + } + + .mip-gzpd-alert-marks-wxpay .payqr_success_box .payqr_success_text span.text.small { + color: #999; + font-size: 16px; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay { + width: 100%; + height: 100%; + position: fixed; + margin: auto; + background: rgba(0, 0, 0, 0.6); + cursor: pointer; + visibility: visible; + z-index: 10; + top: 0; + left: 0; + display: none; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .sm { + display: block; + margin-top: 8px; + font-size: 18px; + color: #6d6d6d; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .sm span { + color: #FF7800; + padding: 6px 11px; + font-weight: 700; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .claos { + position: absolute; + right: -10px; + background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -149px -31px; + width: 30px; + height: 30px; + text-indent: -9999px; + top: -10px; + cursor: pointer; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .claos:hover { + background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.2.png) no-repeat -180px -31px; + } + + .mip-gzpd-alert-marks-wxpay .wx_pic_img { + text-align: center; + background: #fff; + z-index: 10; + border-radius: 6px; + width: 75%; + margin: auto; + margin-top: 40%; + height: 360px; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .iconfont { + color: #FFFFFF; + font-size: 16px; + line-height: 28px; + background: #38ad3a; + width: 171px; + margin: auto; + } + + .mip-gzpd-alert-marks-wxpay .my_wxpay .iconfont span { + background: url(https://static.yjbys.com/img/company/pay/zhifu_icon.png) no-repeat 0 center; + padding-left: 28px; + } + + .mip-gzpd-alert-marks-wxpay .cg { + width: 300px; + margin: auto; + height: 250px; + display: none; + } + + .mip-gzpd-alert-marks-wxpay .cg .cg-img { + width: 176px; + margin-top: 50px; + } + + .mip-gzpd-alert-marks-wxpay .wx_top { + background: #38AD3A; + height: 60px; + border-radius: 6px 6px 0 0; + color: #fff; + font-size: 24px; + line-height: 60px; + } + + .mip-gzpd-alert-marks-wxpay .zhifu { + width: 100%; + } + + .mip-gzpd-alert-marks-wxpay .zhifu .sm { + display: block; + margin-top: 8px; + font-size: 18px; + color: #6d6d6d; + } + + .mip-gzpd-alert-marks-wxpay .zhifu .sm span { + color: #FF7800; + padding: 6px 11px; + font-weight: 700; + } + + .mip-gzpd-alert-marks-wxpay .hc { + margin-top: 10px; + } + + .mip-gzpd-alert-marks-wxpay .hc .hc-img { + width: 200px; + margin: auto; + } + + .mip-gzpd-alert-success .icon { + width: 1.8em; + height: 2.5em; + vertical-align: middle; + fill: #00ba9b; + overflow: hidden; + margin-right: 6px; + } + + .mip-gzpd-alert-success { + display: none; + border: 1px solid #d3d4d3; + padding: 4px; + width: 32%; + text-align: center; + color: #333; + font-size: 16px; + background: #fff; + position: fixed; + top: 45%; + left: 34%; + z-index: 100; + } + + .mip-gzpd-alert-bounceIn { + animation-name: mip-gzpd-alert-bounceIn; + animation-duration: .3s; + } + + .mip-gzpd-alert-cservice-marks { + width: 100%; + height: 100%; + position: fixed; + margin: auto; + background: rgba(0, 0, 0, 0.2); + cursor: pointer; + visibility: visible; + z-index: 10; + top: 0; + left: 0; + display: none; + } + + .mip-gzpd-alert-cservice-marks .phone-pic { + width: 90%; + display: inline-block; + } + + .mip-gzpd-alert-cservice-marks .mip-gzpd-alert-cservice { + text-align: center; + background: #fff; + width: 75%; + margin: auto; + margin-top: 40%; + padding: 6% 0; + border-radius: 6px; + position: relative; + height: 350px; + } + + .mip-gzpd-alert-cservice-marks .kefu-name { + color: #44b549; + font-size: 22px; + margin-top: 40px; + font-weight: 700; + } + + .mip-gzpd-alert-cservice-marks .copy-txt-btn { + display: inline-block; + background: #4c84da; + color: #fff; + padding: 12px 40px; + border-radius: 4px; + margin-top: 42px; + } + + .mip-gzpd-alert-cservice-marks .copy-txt-btn a { + color: #fff; + font-size: 16px; + } + + .mip-gzpd-alert-cservice-marks .open-wechat { + width: 100%; + float: left; + height: 60px; + line-height: 60px; + color: #215cb7; + font-size: 16px; + margin-top: 10px; + } + + .mip-gzpd-alert-cservice-marks .phone-art { + text-align: center; + display: inline-block; + font-size: 16px; + line-height: 30px; + margin-top: 40px; + } + + .mip-gzpd-alert-cservice-marks .phone-art span { + display: block; + margin-top: 3px; + color: #666; + } + + .mip-gzpd-alert-cservice-marks #kefu-name-input { + width: 1px; + height: 1px; + border: 0; + color: rgba(255, 255, 255, 0); + background-color: rgba(255, 255, 255, 0); + } + + @-webkit-keyframes mip-gzpd-alert-bounceIn { + 0% { + opacity: 0; + transform: scale(.5); + } + 100% { + opacity: 1; + transform: scale(1); + } + } + + .error-tip { + font-size: 10px; + color: red; + text-align: left; + margin-left: 10%; + visibility: hidden; + } +} \ No newline at end of file diff --git a/sites/gzpd.com/components/mip-gzpd-alert/mip-gzpd-alert.js b/sites/gzpd.com/components/mip-gzpd-alert/mip-gzpd-alert.js new file mode 100644 index 000000000..5e26fc8a6 --- /dev/null +++ b/sites/gzpd.com/components/mip-gzpd-alert/mip-gzpd-alert.js @@ -0,0 +1,221 @@ +import './index.less' + +export default class MipGzpdAlert extends MIP.CustomElement { + build () { + let CustomStorage = MIP.util.customStorage + this.storage = new CustomStorage(0) + this.getJsonDone() + } + hashCode (str) { + let hash = 0 + let len = str.length + let i = 0 + if (len > 0) { + while (i < len) { + hash = (hash << 5) - hash + str.charCodeAt(i++) | 0 + } + } + return hash + } + marksHtml (config) { + let payUrl = `${config.payUrl}?mip&id=${config.id}&rd=${encodeURI(window.location.href.split('?')[0])}` + let freeboxDetail = config.alertFree.detail.map(function (item) { + return `

${item}

` + }).join('') + return `
+
+
+ + +
${config.alert.service}
+
+
` + } + payAlertHtml (config) { + return `
+
+
${config.alertWx.title}
+
+
+
+
+
+
${config.alertWx.detail[0]} + ${config.alertWx.detail[1]}
+
+
+
+
+ + + + + ${config.alertOk.title} + ${config.alertOk.detail[0]} + +
+
+
+
` + } + copySuccessHtml (config) { + return `
+ + + ${config.alertCopy.title} +
` + } + customerServiceHtml (config) { + return `
+
+
+
+

${config.kefu}

+ ${config.kefubt} +
+
+ 付费成功后,若无法使用请联系客服 + 在线时间:周一至周五 + 9:00~12:30 14:00~18:00 + +
+
+
` + } + getJsonDone () { + let copyTimeout = null + let buyInterval = null + fetch('//my.pincai.com/wx_app/miniapp/config/mip.copy.2.json').then(function (res) { + return res.json() + }).then((config) => { + let ele = this.element + if (config.code !== 200) { + return + } + if (!config.cookieKey) { + let pathname = window.location.pathname + config.cookieKey = this.hashCode(pathname.substr(pathname.lastIndexOf('/') + 1)).toString() + } + let marks = this.marksHtml(config) + let payAlert = this.payAlertHtml(config) + let copySuccess = this.copySuccessHtml(config) + let customerService = this.customerServiceHtml(config) + ele.innerHTML += marks + payAlert + copySuccess + customerService + let cserviceMarks = ele.querySelectorAll('.mip-gzpd-alert-cservice-marks')[0] + let cserviceMarksCloseBtn = cserviceMarks.querySelectorAll('.claos')[0] + let alertMarks = ele.querySelectorAll('.mip-gzpd-alert-marks')[0] + let alertMarksCloseBtn = alertMarks.querySelectorAll('.claos')[0] + let alertMarksPayBox = alertMarks.querySelectorAll('.paybox-cservice')[0] + let alertWxpay = ele.querySelectorAll('.mip-gzpd-alert-marks-wxpay')[0] + let alertWxpaySuccessBtn = alertWxpay.querySelectorAll('.payqr_success_text .btn')[0] + let freeboxBtn = ele.querySelectorAll('.freebox-btn')[0] + let freeboxInput = ele.querySelectorAll('.freebox-input')[0] + let errTip = ele.querySelectorAll('.error-tip')[0] + fetch(`//static.yjbys.com/v1/trade/qr/free?title=${document.title}&k=${Math.random()}&m=1`).then(function (res) { + return res.text() + }).then(function (data) { + document.querySelectorAll('.text-focus')[0].innerText = data + }) + document.querySelectorAll('.content')[0].oncopy = e => { + if (!this.storage.get(config.cookieKey)) { + if (getComputedStyle(alertMarks, false)['display'] !== 'block') { + e.clipboardData.setData('text/plain', '') + e.preventDefault() + } + alertMarks.style.display = 'block' + } else { + window.clearTimeout(copyTimeout) + let alertSuccess = ele.querySelectorAll('.mip-gzpd-alert-success')[0] + alertSuccess.style.display = 'block' + copyTimeout = window.setTimeout(function () { + alertSuccess.style.display = 'none' + }, 1000) + } + } + if (window.location.search && window.location.search.indexOf('order=') > -1) { + let payBox = ele.querySelectorAll('.payqr_box')[0] + let payBoxSuccess = ele.querySelectorAll('.payqr_success_box')[0] + let wxTopSpan = ele.querySelectorAll('.wx_top span')[0] + alertWxpay.style.display = 'block' + payBox.style.display = 'block' + payBoxSuccess.style.display = 'none' + buyInterval = window.setInterval(() => { + fetch(`//my.pincai.com/wx_app/wxpay/trade_copy.php${window.location.search}`).then(function (res) { + return res.json() + }).then((data) => { + if (data.state === 'OK') { + alertMarksCloseBtn.style.display = 'none' + payBox.style.display = 'none' + payBoxSuccess.style.display = 'block' + wxTopSpan.style.display = 'block' + wxTopSpan.innerText = '支付成功' + this.storage.set(config.cookieKey, 1, config.cookieTtl * 1000) + window.clearInterval(buyInterval) + } + }) + }, 1500) + } + cserviceMarksCloseBtn.onclick = () => { + cserviceMarks.style.display = 'none' + } + alertMarksCloseBtn.onclick = () => { + alertMarks.style.display = 'none' + errTip.style.visibility = 'hidden' + } + alertMarksPayBox.onclick = () => { + cserviceMarks.style.display = 'none' + } + freeboxBtn.onclick = () => { + let userInput = parseInt(freeboxInput.value, 10) + if (userInput < 1000) { + return + } + + if (userInput > 8000 && userInput < 9999) { + this.storage.set(config.cookieKey, 1, config.cookieTtl * 1000) + alertMarks.style.display = 'none' + errTip.style.visibility = 'hidden' + } else { + errTip.style.visibility = 'visible' + } + } + alertWxpaySuccessBtn.onclick = () => { + location.href = location.href.split('?')[0] + } + }) + } +} diff --git a/sites/gzpd.com/example/index.html b/sites/gzpd.com/example/index.html new file mode 100644 index 000000000..15d3bebf2 --- /dev/null +++ b/sites/gzpd.com/example/index.html @@ -0,0 +1,34 @@ + + + + + + MIP page + + + + + + +
+

文章标题

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+

bala bala bala... bala bala bala... bala bala bala...

+
+
+ + + + + diff --git a/sites/gzpd.com/mip.config.js b/sites/gzpd.com/mip.config.js new file mode 100644 index 000000000..d5457bef4 --- /dev/null +++ b/sites/gzpd.com/mip.config.js @@ -0,0 +1,31 @@ +/** + * @file mip页面项目配置项 + * @author + */ + +module.exports = { + dev: { + /** + * 启动mip server调试的端口号 + * + * @type {number} + */ + port: 8111, + + /** + * 启用调试页面自动刷新 + * + * @type {boolean} + */ + livereload: true, + + /** + * server 启动自动打开页面,false 为关闭 + * 如: + * autoopen: '/example/index.html' + * + * @type {string|boolean} + */ + autoopen: false + } +} diff --git a/sites/gzpd.com/package.json b/sites/gzpd.com/package.json new file mode 100644 index 000000000..c20425822 --- /dev/null +++ b/sites/gzpd.com/package.json @@ -0,0 +1,25 @@ +{ + "name": "gzpd.com", + "version": "0.0.1", + "description": "复制功能", + "scripts": { + "dev": "mip2 dev", + "build": "mip2 build", + "lint": "npm run lint:js", + "lint:js": "eslint --ext .vue,.js .", + "fix": "npm run fix:js", + "fix:js": "eslint --ext .vue,.js . --fix" + }, + "author": "lyb765428743 (765428742@qq.com)", + "dependencies": {}, + "devDependencies": { + "eslint": "^4.19.1", + "eslint-config-standard": "^11.0.0", + "eslint-plugin-import": "^2.12.0", + "eslint-plugin-jsdoc": "^3.7.1", + "eslint-plugin-node": "^6.0.1", + "eslint-plugin-promise": "^3.8.0", + "eslint-plugin-standard": "^3.1.0", + "eslint-plugin-vue": "^4.5.0" + } +} diff --git a/sites/gzpd.com/static/.gitkeep b/sites/gzpd.com/static/.gitkeep new file mode 100644 index 000000000..e69de29bb From 13e3a12d5d08f705302ed20647eeed96b0eb9e57 Mon Sep 17 00:00:00 2001 From: mip-platform Date: Sat, 28 Sep 2019 12:10:27 +0800 Subject: [PATCH 2/2] mip-platform auto create Pull Request --- sites/gzpd.com/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/gzpd.com/package.json b/sites/gzpd.com/package.json index c20425822..cde808548 100644 --- a/sites/gzpd.com/package.json +++ b/sites/gzpd.com/package.json @@ -1,6 +1,6 @@ { "name": "gzpd.com", - "version": "0.0.1", + "version": "0.0.2", "description": "复制功能", "scripts": { "dev": "mip2 dev",