Commit 6590a0539e6080abf15b6b51107041c53ceea35a

Authored by 后端研发-倪永富
1 parent cfe045e0

分享好友和生成海报

components/share/share.js 0 → 100644
  1 +Component({
  2 + properties: {
  3 +
  4 + },
  5 + /*** 页面的初始数据***/
  6 + data: {
  7 + },
  8 +
  9 + methods: {
  10 +
  11 + }
  12 +})
0 13 \ No newline at end of file
... ...
components/share/share.json 0 → 100644
  1 +{
  2 + "component": true,
  3 + "usingComponents": {}
  4 +}
0 5 \ No newline at end of file
... ...
components/share/share.wxml 0 → 100644
  1 +<view class="container animated slideInUp">
  2 + <view class="btn">
  3 + <view class="icon-container bg-green"><view class="iconfont icon-weixin"></view></view>
  4 + <view class="title">发送给好友</view>
  5 + </view>
  6 + <view class="btn">
  7 + <view class="icon-container bg-red"><view class="iconfont icon-pic"></view></view>
  8 + <view class="title">生成海报分享</view>
  9 + </view>
  10 +</view>
0 11 \ No newline at end of file
... ...
components/share/share.wxss 0 → 100644
  1 +@font-face {
  2 + font-family: 'iconfont';
  3 + /* project id 2125414 */
  4 + src: url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.eot');
  5 + src: url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.eot?#iefix') format('embedded-opentype'),
  6 + url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.woff2') format('woff2'),
  7 + url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.woff') format('woff'),
  8 + url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.ttf') format('truetype'),
  9 + url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.svg#iconfont') format('svg');
  10 +}
  11 +
  12 +.iconfont {
  13 + font-family: "iconfont" !important;
  14 + font-size: 32rpx;
  15 + font-style: normal;
  16 + -webkit-font-smoothing: antialiased;
  17 + -moz-osx-font-smoothing: grayscale;
  18 +}
  19 +
  20 +.icon-weixin:before {
  21 + content: "\e677";
  22 +}
  23 +
  24 +.icon-pic:before {
  25 + content: "\e620";
  26 +}
  27 +
  28 +.container {
  29 + background-color: white;
  30 + position: fixed;
  31 + width: 100%;
  32 + left: 0;
  33 + bottom: 0;
  34 + display: flex;
  35 +}
  36 +
  37 +.btn {
  38 + box-sizing: border-box;
  39 + width: 50%;
  40 + padding: 20rpx;
  41 + text-align: center;
  42 +}
  43 +
  44 +.icon-container {
  45 + width: 80rpx;
  46 + height: 80rpx;
  47 + line-height: 80rpx;
  48 + color: white;
  49 + border-radius: 50%;
  50 + text-align: center;
  51 + margin: 0 auto;
  52 +}
  53 +
  54 +.iconfont {
  55 + font-size: 40rpx;
  56 +}
  57 +
  58 +.bg-green {
  59 + background-color: #2ECB38;
  60 +}
  61 +
  62 +.bg-red {
  63 + background-color: #F86C6C;
  64 +}
  65 +
  66 +.title {
  67 + font-size: 28rpx;
  68 + color: #7b7b7b;
  69 + padding-top: 10rpx;
  70 +}
  71 +
  72 +
  73 +
  74 +
  75 +
  76 +
  77 +@charset "UTF-8";
  78 +
  79 +/*!
  80 +Animate.css - http://daneden.me/animate
  81 +Licensed under the MIT license
  82 +
  83 +Copyright (c) 2013 Daniel Eden
  84 +
  85 +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  86 +
  87 +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  88 +
  89 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  90 +*/
  91 +.animated {
  92 + -webkit-animation-duration: .5s;
  93 + animation-duration: .5s;
  94 + -webkit-animation-fill-mode: both;
  95 + animation-fill-mode: both
  96 +}
  97 +
  98 +.animated.infinite {
  99 + -webkit-animation-iteration-count: infinite;
  100 + animation-iteration-count: infinite
  101 +}
  102 +
  103 +.animated.hinge {
  104 + -webkit-animation-duration: 2s;
  105 + animation-duration: 2s
  106 +}
  107 +
  108 +@-webkit-keyframes slideInUp {
  109 + 0% {
  110 + opacity: 0;
  111 + -webkit-transform: translateY(2000px);
  112 + transform: translateY(2000px)
  113 + }
  114 +
  115 + 100% {
  116 + opacity: 1;
  117 + -webkit-transform: translateY(0);
  118 + transform: translateY(0)
  119 + }
  120 +}
  121 +
  122 +@keyframes slideInUp {
  123 + 0% {
  124 + opacity: 0;
  125 + -webkit-transform: translateY(100px);
  126 + -ms-transform: translateY(100px);
  127 + transform: translateY(100px)
  128 + }
  129 +
  130 + 100% {
  131 + opacity: 1;
  132 + -webkit-transform: translateY(0);
  133 + -ms-transform: translateY(0);
  134 + transform: translateY(0)
  135 + }
  136 +}
  137 +
  138 +.slideInUp {
  139 + -webkit-animation-name: slideInUp;
  140 + animation-name: slideInUp
  141 +}
0 142 \ No newline at end of file
... ...