Commit 2d5cdc269641d506939d9b9528e281a687b55455
1 parent
03c98899
暂无开通页面
Showing
4 changed files
with
91 additions
and
1 deletions
package.json
| @@ -22,6 +22,7 @@ | @@ -22,6 +22,7 @@ | ||
| 22 | "vant": "^2.5.8", | 22 | "vant": "^2.5.8", |
| 23 | "vue": "^2.6.11", | 23 | "vue": "^2.6.11", |
| 24 | "vue-bus": "^1.2.1", | 24 | "vue-bus": "^1.2.1", |
| 25 | + "vue-clipboard2": "^0.3.1", | ||
| 25 | "vue-head": "^2.1.0", | 26 | "vue-head": "^2.1.0", |
| 26 | "vue-i18n": "^8.15.5", | 27 | "vue-i18n": "^8.15.5", |
| 27 | "vue-resource": "^1.5.1", | 28 | "vue-resource": "^1.5.1", |
src/main.js
| @@ -10,6 +10,7 @@ import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview | @@ -10,6 +10,7 @@ import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview | ||
| 10 | import App from "./App"; | 10 | import App from "./App"; |
| 11 | import IdCard from './common/IdCard'; | 11 | import IdCard from './common/IdCard'; |
| 12 | import VueBus from 'vue-bus'; | 12 | import VueBus from 'vue-bus'; |
| 13 | +import VueClipboard from 'vue-clipboard2' | ||
| 13 | Vue.use(Vuex); | 14 | Vue.use(Vuex); |
| 14 | Vue.use(VueResource); | 15 | Vue.use(VueResource); |
| 15 | Vue.use(VueHead, { separator: " " }); | 16 | Vue.use(VueHead, { separator: " " }); |
| @@ -20,6 +21,7 @@ Vue.use(PullRefresh); | @@ -20,6 +21,7 @@ Vue.use(PullRefresh); | ||
| 20 | Vue.use(Picker); | 21 | Vue.use(Picker); |
| 21 | Vue.use(Image); | 22 | Vue.use(Image); |
| 22 | Vue.use(ImagePreview); | 23 | Vue.use(ImagePreview); |
| 24 | +Vue.use(VueClipboard) | ||
| 23 | Vue.use(Lazyload, { | 25 | Vue.use(Lazyload, { |
| 24 | preload: 90, | 26 | preload: 90, |
| 25 | loading: "static/img/x.jpg", | 27 | loading: "static/img/x.jpg", |
| @@ -46,7 +48,7 @@ import 'url-search-params-polyfill'; | @@ -46,7 +48,7 @@ import 'url-search-params-polyfill'; | ||
| 46 | Vue.config.productionTip = false; | 48 | Vue.config.productionTip = false; |
| 47 | 49 | ||
| 48 | // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod") | 50 | // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod") |
| 49 | -Vue.prototype.mode = "dev"; | 51 | +Vue.prototype.mode = "prod"; |
| 50 | 52 | ||
| 51 | // 微信JS-SDK对象 | 53 | // 微信JS-SDK对象 |
| 52 | Vue.prototype.jweixin = { | 54 | Vue.prototype.jweixin = { |
src/pages/notYetOpened/notYetOpened.less
0 → 100644
| 1 | +.not_yet_opened{ | ||
| 2 | + height: 100vh; | ||
| 3 | + display: flex; | ||
| 4 | + align-items: center; | ||
| 5 | + .box{ | ||
| 6 | + text-align: center; | ||
| 7 | + margin: 0 auto; | ||
| 8 | + img{ | ||
| 9 | + width: 130px; | ||
| 10 | + height: 130px; | ||
| 11 | + } | ||
| 12 | + .title{ | ||
| 13 | + height:40px; | ||
| 14 | + font-size:28px; | ||
| 15 | + font-weight:400; | ||
| 16 | + color:rgba(102,102,102,1); | ||
| 17 | + line-height:40px; | ||
| 18 | + } | ||
| 19 | + .desc{ | ||
| 20 | + width:500px; | ||
| 21 | + font-size:24px; | ||
| 22 | + font-weight:400; | ||
| 23 | + color:rgba(180,180,180,1); | ||
| 24 | + line-height:33px; | ||
| 25 | + margin: 10px 0 30px 0; | ||
| 26 | + } | ||
| 27 | + .copy{ | ||
| 28 | + font-size: 26px; | ||
| 29 | + margin: auto; | ||
| 30 | + width:140px; | ||
| 31 | + height:48px; | ||
| 32 | + line-height: 48px; | ||
| 33 | + border-radius:26px; | ||
| 34 | + border:1px solid rgba(97,196,100,1); | ||
| 35 | + font-weight:400; | ||
| 36 | + color:rgba(97,196,100,1); | ||
| 37 | + } | ||
| 38 | + } | ||
| 39 | +} |
src/pages/notYetOpened/notYetOpened.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div class="not_yet_opened"> | ||
| 3 | + <div class="box"> | ||
| 4 | + <img src="/static/img/Computer.png" alt=""/> | ||
| 5 | + <div class="title"> | ||
| 6 | + 商城/餐厅入驻手机端尚未开通 | ||
| 7 | + </div> | ||
| 8 | + <div class="desc"> | ||
| 9 | + 请前往网家家电商平台进行入驻申请,网址: <span :title="teamLink" class="invitLink pull-left ellipsis" v-text="teamLink" ></span> | ||
| 10 | + </div> | ||
| 11 | + <div class="copy" type="primary" v-clipboard:error="onError" | ||
| 12 | + v-clipboard:copy="teamLink" v-clipboard:success="onCopy"> | ||
| 13 | + 复制链接 | ||
| 14 | + </div> | ||
| 15 | + </div> | ||
| 16 | + </div> | ||
| 17 | +</template> | ||
| 18 | + | ||
| 19 | +<script> | ||
| 20 | + // 引入组件 | ||
| 21 | + import { Toast } from "mint-ui"; | ||
| 22 | + export default { | ||
| 23 | + name: 'notYetOpened', | ||
| 24 | + data () { | ||
| 25 | + return { | ||
| 26 | + teamLink:'http://seller.mall.cnlive.com' | ||
| 27 | + } | ||
| 28 | + }, | ||
| 29 | + created(){ | ||
| 30 | + | ||
| 31 | + }, | ||
| 32 | + methods: { | ||
| 33 | + // 复制成功 | ||
| 34 | + onCopy(e){ | ||
| 35 | + Toast('复制成功'); | ||
| 36 | + }, | ||
| 37 | + // 复制失败 | ||
| 38 | + onError(e){ | ||
| 39 | + Toast('复制失败'); | ||
| 40 | + }, | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | +</script> | ||
| 44 | + | ||
| 45 | +<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
| 46 | +<style rel="stylesheet/less" lang="less" scoped> | ||
| 47 | + @import "NotYetOpened"; | ||
| 48 | +</style> |