Commit 2d5cdc269641d506939d9b9528e281a687b55455
1 parent
03c98899
暂无开通页面
Showing
4 changed files
with
91 additions
and
1 deletions
package.json
src/main.js
| ... | ... | @@ -10,6 +10,7 @@ import { Rate, Popup, Lazyload, Search, PullRefresh, Picker, Image, ImagePreview |
| 10 | 10 | import App from "./App"; |
| 11 | 11 | import IdCard from './common/IdCard'; |
| 12 | 12 | import VueBus from 'vue-bus'; |
| 13 | +import VueClipboard from 'vue-clipboard2' | |
| 13 | 14 | Vue.use(Vuex); |
| 14 | 15 | Vue.use(VueResource); |
| 15 | 16 | Vue.use(VueHead, { separator: " " }); |
| ... | ... | @@ -20,6 +21,7 @@ Vue.use(PullRefresh); |
| 20 | 21 | Vue.use(Picker); |
| 21 | 22 | Vue.use(Image); |
| 22 | 23 | Vue.use(ImagePreview); |
| 24 | +Vue.use(VueClipboard) | |
| 23 | 25 | Vue.use(Lazyload, { |
| 24 | 26 | preload: 90, |
| 25 | 27 | loading: "static/img/x.jpg", |
| ... | ... | @@ -46,7 +48,7 @@ import 'url-search-params-polyfill'; |
| 46 | 48 | Vue.config.productionTip = false; |
| 47 | 49 | |
| 48 | 50 | // 部署模式设置(开发模式:"dev",测试模式:"test",生产模式:"prod") |
| 49 | -Vue.prototype.mode = "dev"; | |
| 51 | +Vue.prototype.mode = "prod"; | |
| 50 | 52 | |
| 51 | 53 | // 微信JS-SDK对象 |
| 52 | 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> | ... | ... |