vue移动端设置出生日期

屏幕快照 2018-09-09 09.13.17.png

屏幕快照 2018-09-09 09.14.20.png

使用mobiscroll是个很好用的jquery日期插件,它可以实现在移动端滚动选择日期。
在vue中如何使用插件,在mounted中调用插件

        <a class="db pr con bgw">
          出生日期
            <input type="text" name="USER_AGE" id="USER_AGE" class="r set-input" placeholder="请填写你的出生日期" v-model="birthday"/>
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
data() {
      return {
        birthday: ''
      }
    },
    mounted() {
      require('./jquery.min');
      require('./mobiscroll.core-2.5.2');
      require('./mobiscroll.core-2.5.2-zh');
      require('./mobiscroll.datetime-2.5.1');
      require('./mobiscroll.datetime-2.5.1-zh');
      var currYear = (new Date()).getFullYear();
      var opt = {};
      opt.date = {preset: 'date'};
      opt.datetime = {preset: 'datetime'};
      opt.time = {preset: 'time'};
      opt.default = {
        theme: 'android-ics light', //皮肤样式
        display: 'modal', //显示方式
        mode: 'scroller', //日期选择模式
        dateFormat: 'yyyy-mm-dd',
        lang: 'zh',
        showNow: true,
        nowText: "今天",
        startYear: currYear - 80, //开始年份
        endYear: currYear, //结束年份
        onClose: function (textVale, inst) { //插件效果退出时执行 inst:表示点击的状态反馈:set/cancel
          textVale=new Date(textVale);
          textVale=textVale.getTime()/1000;
          this.birthday= textVale;
          $.ajax({
            type: "GET",
            url: "api/set",
            dataType:"json",
            data:{"birthday":this.birthday},
            success:function (data) {
              if (data.code == 200) {
                this.birthday = data.data.birthday;
              }
            }
          })
        }
      };
      $("#USER_AGE").mobiscroll($.extend(opt['date'], opt['default']));
    }
屏幕快照 2018-09-09 09.39.38.png

全部代码

<template>
  <div class="bgm page">
    <dl class="space me-dl">
      <dd class="me-dd" style="margin-top: 0">
        <a class="db pr con bgw">
          头像
          <span class="r set-head" @click.stop="uploadHeadImg">
              <img class="set-head-icon" :src="avatar" style="width: 40px;height: 40px;">
            </span>
          <input type="file" accept="image/*" @change="handleFile" class="hiddenInput dn"/>
        </a>
        <a class="db pr con bgw">
          昵称
          <input class="r set-input" type="text" v-model="nickname" placeholder="请输入姓名" maxlength="50"/>
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
        <a class="db pr con bgw">
          手机号码
          <span class="r cc" style="padding-right: 1.4em">{{setData.mobile}}</span>
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
        <a class="db pr con bgw" @click="getPopRadio">
          性别
          <popup-radios :value="this.radioShow" @getRadio="getGender"></popup-radios>
          <span class="r cc" style="padding-right: 1.4em" v-if="this.gender">{{this.gender}}</span>
          <span class="r cc" style="padding-right: 1.4em" v-else>{{setData.sex}}</span>
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
        <a class="db pr con bgw">
          出生日期
            <input type="text" name="USER_AGE" id="USER_AGE" class="r set-input" placeholder="请填写你的出生日期" v-model="birthday"/>
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
      </dd>
      <dd class="me-dd">
        <a class="db pr con bgw" href="javascript:;" @click.prevent="jump" data-href="/member/setPassword">
          密码设置
          <svg class="i-right">
            <use xlink:href="#icon-right"/>
          </svg>
        </a>
        <a class="db pr con bgw" href="javascript:;" @click.prevent="doLogout" data-href="/member/setPassword">
          退出登录
        </a>
      </dd>
    </dl>
  </div>
</template>

<script>
  import popupRadios from '../../components/popup-radios.vue'
  import user from "../../components/login/user";
  export default {
    data() {
      return {
        checkLogin: true,
        setData: {},
        radioShow: false,
        gender: '',
        nickname: '',
        avatar: '',
        birthday: ''
      }
    },
    computed: {},
    components: {
      popupRadios
    },
    created() {
      this.getSet();
    },
    watch: {
      gender() {
        this.$http.get('api/set', {params: {"sex": this.gender}}).then(res => {
          let j = res.data;
          if (j.code == 200) {
            this.gender = j.data.sex;
          }
        })
      },
      nickname() {
        this.$http.get('api/set', {params: {"nickname": this.nickname}}).then(res => {
          let j = res.data;
          if (j.code == 200) {
            this.nickname = j.data.nickname;
          }
        })
      },
      avatar() {
        this.$http.get('api/set', {params: {"avatar": this.avatar}}).then(res => {
          let j = res.data;
          if (j.code == 200) {
            this.avatar = j.data.avatar;
          }
        })
      }
    },
    mounted() {
      require('./jquery.min');
      require('./mobiscroll.core-2.5.2');
      require('./mobiscroll.core-2.5.2-zh');
      require('./mobiscroll.datetime-2.5.1');
      require('./mobiscroll.datetime-2.5.1-zh');
      var currYear = (new Date()).getFullYear();
      var opt = {};
      opt.date = {preset: 'date'};
      opt.datetime = {preset: 'datetime'};
      opt.time = {preset: 'time'};
      opt.default = {
        theme: 'android-ics light', //皮肤样式
        display: 'modal', //显示方式
        mode: 'scroller', //日期选择模式
        dateFormat: 'yyyy-mm-dd',
        lang: 'zh',
        showNow: true,
        nowText: "今天",
        startYear: currYear - 80, //开始年份
        endYear: currYear, //结束年份
        onClose: function (textVale, inst) { //插件效果退出时执行 inst:表示点击的状态反馈:set/cancel
          textVale=new Date(textVale);
          textVale=textVale.getTime()/1000;
          this.birthday= textVale;
          $.ajax({
            type: "GET",
            url: "api/set",
            dataType:"json",
            data:{"birthday":this.birthday},
            success:function (data) {
              if (data.code == 200) {
                this.birthday = data.data.birthday;
              }
            }
          })
        }
      };
      $("#USER_AGE").mobiscroll($.extend(opt['date'], opt['default']));
    },
    methods: {
      doLogout(){
        user.logout(()=>{
          this.$tip("已退出登录");
          this.$router.push('/login');
        });
      },
      jump(e) {
        e.preventDefault();
        if (this.checkLogin == true) {
          this.$router.push(e.currentTarget.getAttribute("data-href"));
        }
      },
      getSet() {
        this.$http.get('api/getset').then(res => {
          let j = res.data;
          if (j.code == 200) {
            this.setData = j.data;
            this.nickname = j.data.nickname;
            this.avatar = j.data.avatar;
            this.birthday = Date.format("yyyy-MM-dd", j.data.birthday*1000)
          }
        })
      },
      getPopRadio() {
        this.radioShow = !this.radioShow;
      },
      getGender(msg) {
        this.gender = msg;
      },
      // 打开图片上传
      uploadHeadImg: function () {
        this.$el.querySelector('.hiddenInput').click()
      },
      // 将头像显示
      handleFile: function (e) {
        let $target = e.target || e.srcElement;
        let file = $target.files[0];
        let param = new FormData(); //创建form对象
        param.append('file', file, file.name);//通过append向form对象添加数据
        param.append('chunk', '0');//添加form表单中其他数据
        let config = {
          headers: {'Content-Type': 'multipart/form-data'}
        };  //添加请求头
        this.$http.post("api/upload", param, config).then(res => {
          var j = res.data;
          if (j.code === 200) {
            this.avatar = j.data[0];
            this.$tip("头像上传成功!");
          }
        })
      }
    }
  }
</script>
<style>
  .set-head {
    position: relative;
    top: .7em;
  }

  .set-head-icon {
    width: 2em;
    border-radius: 50%;
  }

  .me-dl {
    margin-top: 1px;
    font-size: .448rem;
  }

  .me-dd {
    margin: 10px 0;
  }

  .me-dd > .db {
    margin: 1px 0;
    line-height: 4;
  }

  .me-dd > .db > .i-right {
    position: absolute;
    width: .8em;
    height: .8em;
    right: 3%;
    top: 50%;
    margin-top: -0.4em;
  }

  .set-input {
    width: calc(100% - 6em);
    font-size: 1em;
    text-align: right;
    margin: 0;
    margin-top: 1.4em;
    padding-right: 1.4em;
    border: 0;
    outline: none;
  }

  /* Datewheel overlay */
  .dw {
    position: absolute;
    top: 5%;
    left: 0;
    z-index: 1001;
    color: #000;
    font-family: arial, verdana, sans-serif;
    font-size: 12px;
    text-shadow: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-touch-action: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .dwi {
    position: static;
    margin: 5px;
    display: inline-block;
  }

  .dwwr {
    min-width: 170px;
    zoom: 1;
    padding: 0 10px;
    text-align: center;
  }

  /* Datewheel overlay background */
  .dw-persp, .dwo {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
  }

  .dwo {
    background: #000;
    opacity: .7;
    filter: Alpha(Opacity=70);
  }

  /* Bubble positionings */
  .dw-bubble .dw {
    margin: 20px 0;
  }

  .dw-bubble .dw-arrw {
    position: absolute;
    left: 0;
    width: 100%;
  }

  .dw-bubble-top .dw-arrw {
    bottom: -36px;
  }

  .dw-bubble-bottom .dw-arrw {
    top: -36px;
  }

  .dw-bubble .dw-arrw-i {
    margin: 0 30px;
    position: relative;
    height: 36px;
  }

  .dw-bubble .dw-arr {
    display: block;
  }

  .dw-arr {
    display: none;
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    border-width: 18px 18px;
    border-style: solid;
    margin-left: -18px;
  }

  .dw-bubble-bottom .dw-arr {
    top: 0;
    border-color: transparent transparent #fff transparent;
  }

  .dw-bubble-top .dw-arr {
    bottom: 0;
    border-color: #fff transparent transparent transparent;
  }

  /* Datewheel wheel container wrapper */
  .dwc {
    float: none;
    margin: 0 2px 5px 2px;
    padding-top: 30px;
    display: inline-block;
  }

  .dwcc {
    clear: both;
  }

  /* Datewheel label */
  .dwl {
    text-align: center;
    line-height: 30px;
    height: 30px;
    white-space: nowrap;
    position: absolute;
    top: -30px;
    width: 100%;
  }

  /* Datewheel value */
  .dwv {
    padding: 10px 0;
    border-bottom: 1px solid #000;
  }

  /* Datewheel wheel container */
  .dwrc {
    -webkit-border-radius: 3px;
    border-radius: 3px;
  }

  .dwwc {
    margin: 0;
    padding: 0 2px;
    position: relative;
    background: #000;
    zoom: 1;
  }

  /* Datewheel wheels */
  .dwwl {
    margin: 4px 2px;
    position: relative;
    z-index: 5;
  }

  .dww {
    margin: 0 2px;
    overflow: hidden;
    position: relative;
  }

  .dwsc .dwwl {
    background: #888;
    background: linear-gradient(#000 0%, #333 35%, #888 50%, #333 65%, #000 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(#000), color-stop(0.35, #333), color-stop(0.50, #888), color-stop(0.65, #333), to(#000));
    background: -moz-linear-gradient(#000 0%, #333 35%, #888 50%, #333 65%, #000 100%);
    background: -o-linear-gradient(#000 0%, #333 35%, #888 50%, #333 65%, #000 100%);
  }

  .dwsc .dww {
    color: #fff;
    background: #444;
    background: linear-gradient(#000 0%, #444 45%, #444 55%, #000 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(#000), color-stop(0.45, #444), color-stop(0.55, #444), to(#000));
    background: -moz-linear-gradient(#000 0%, #444 45%, #444 55%, #000 100%);
    background: -o-linear-gradient(#000 0%, #444 45%, #444 55%, #000 100%);
  }

  .dw-bf {
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;
  }

  .dw-ul {
    position: relative;
    z-index: 2;
  }

  .dw-li {
    padding: 0 5px;
    display: block;
    text-align: center;
    line-height: 40px;
    font-size: 26px;
    white-space: nowrap;
    text-shadow: 0 1px 1px #000;
    vertical-align: bottom;
    opacity: .3;
    filter: Alpha(Opacity=30);
  }

  /* Higlighted */
  .dw-li.dw-hl {
    background: #fff;
    background: rgba(255, 255, 255, .3);
  }

  /* Valid entry */
  .dw-li.dw-v {
    opacity: 1;
    filter: Alpha(Opacity=100);
  }

  /* Hidden entry */
  .dw-li.dw-h {
    visibility: hidden;
  }

  .dw-i {
    position: relative;
    height: 100%;
  }

  /* Wheel +/- buttons */
  .dwwb {
    position: absolute;
    z-index: 4;
    left: 0;
    cursor: pointer;
    width: 100%;
    height: 40px;
    text-align: center;
    opacity: 1;
    transition: opacity .2s linear;
    -webkit-transition: opacity .2s linear;
  }

  .dwa .dwwb {
    opacity: 0;
  }

  .dwwbp {
    top: 0;
    -webkit-border-radius: 3px 3px 0 0;
    border-radius: 3px 3px 0 0;
    font-size: 40px;
  }

  .dwwbm {
    bottom: 0;
    -webkit-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
    font-size: 32px;
    font-weight: bold;
  }

  .dwpm .dwwc {
    background: transparent;
  }

  .dwpm .dww {
    margin: 0;
  }

  .dwpm .dw-li {
    text-shadow: none;
  }

  .dwpm .dwwol {
    display: none;
  }

  /* Datewheel wheel overlay */
  .dwwo {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000 0%, rgba(44, 44, 44, 0) 52%, rgba(44, 44, 44, 0) 48%, #000 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(#000), color-stop(0.52, rgba(44, 44, 44, 0)), color-stop(0.48, rgba(44, 44, 44, 0)), to(#000));
    background: -moz-linear-gradient(#000 0%, rgba(44, 44, 44, 0) 52%, rgba(44, 44, 44, 0) 48%, #000 100%);
    background: -o-linear-gradient(#000 0%, rgba(44, 44, 44, 0) 52%, rgba(44, 44, 44, 0) 48%, #000 100%);
  }

  /* Background line */
  .dwwol {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    margin-top: -1px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #555;
  }

  /* Datewheel button */
  .dwbg .dwb {
    cursor: pointer;
    overflow: hidden;
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    margin: 0 2px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 -1px 1px #000;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: #fff;
    background: #000;
    background: linear-gradient(#6e6e6e 50%, #000 50%);
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0.5, #000), color-stop(0.5, #6e6e6e));
    background: -moz-linear-gradient(#6e6e6e 50%, #000 50%);
    background: -o-linear-gradient(#6e6e6e 50%, #000 50%);
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-border-radius: 5px;
  }

  /* Datewheel button container */
  .dwbc {
    padding: 5px 0;
    text-align: center;
    clear: both;
  }

  .dwbc:after {
    content: '';
    display: block;
    clear: both;
  }

  /* Datewheel button wrapper */
  .dwbw {
    display: inline-block;
    float: left;
    width: 50%;
    position: relative;
    z-index: 5;
  }

  .dwbc-p .dwbw {
    width: 33.33%;
  }

  /* Hidden label */
  .dwhl {
    padding-top: 10px;
  }

  .dwhl .dwl {
    display: none;
  }

  /* Multiple selection */
  .dwms .dwwms .dw-li {
    padding: 0 40px;
    position: relative;
  }

  .dwms .dw-msel:after {
    width: 40px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    content: '?';
  }

  /* Backgrounds */
  .dwbg {
    background: #fff;
    border-radius: 3px;
    -webkit-border-radius: 3px;
  }

  .dwbg .dwpm .dwwl {
    border: 1px solid #aaa;
  }

  .dwbg .dwpm .dww {
    color: #000;
    background: #fff;
    -webkit-border-radius: 3px;
  }

  .dwbg .dwwb {
    background: #ccc;
    color: #888;
    text-shadow: 0 -1px 1px #333;
    box-shadow: 0 0 5px #333;
    -webkit-box-shadow: 0 0 5px #333;
  }

  .dwbg .dwwbp {
    background: linear-gradient(#f7f7f7, #bdbdbd);
    background: -webkit-gradient(linear, left bottom, left top, from(#bdbdbd), to(#f7f7f7));
    background: -moz-linear-gradient(#f7f7f7, #bdbdbd);
    background: -o-linear-gradient(#f7f7f7, #bdbdbd);
  }

  .dwbg .dwwbm {
    background: linear-gradient(#bdbdbd, #f7f7f7);
    background: -webkit-gradient(linear, left bottom, left top, from(#f7f7f7), to(#bdbdbd));
    background: -moz-linear-gradient(#bdbdbd, #f7f7f7);
    background: -o-linear-gradient(#bdbdbd, #f7f7f7);
  }

  .dwbg .dwb-a {
    background: #3c7500;
    background: linear-gradient(#94c840 50%, #3c7500 50%);
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0.5, #3c7500), color-stop(0.5, #94c840));
    background: -moz-linear-gradient(#94c840 50%, #3c7500 50%);
    background: -o-linear-gradient(#94c840 50%, #3c7500 50%);
  }

  .dwbg .dwwl .dwb-a {
    background: #3c7500;
    background: linear-gradient(#94c840, #3c7500);
    background: -webkit-gradient(linear, left bottom, left top, from(#3c7500), to(#94c840));
    background: -moz-linear-gradient(#94c840, #3c7500);
    background: -o-linear-gradient(#94c840, #3c7500);
  }

  /* Android ICS skin */
  .android-ics .dw {
    padding: 0;
    color: #31b6e7;
    background: #292829;
  }

  .android-ics .dw .dwwc,
  .android-ics .dw .dwwl,
  .android-ics .dw .dww,
  .android-ics .dw .dwb,
  .android-ics .dw .dwpm .dww {
    background: none;
  }

  .android-ics .dwwr {
    padding: 0;
  }

  .android-ics .dwc {
    margin: 0;
    padding: 30px 10px 1px 10px;
  }

  .android-ics .dwhl {
    padding: 1px 10px;
  }

  .android-ics .dwv {
    height: 36px;
    line-height: 36px;
    padding: 0;
    border-bottom: 2px solid #31b6e7;
    font-size: 18px;
  }

  .android-ics .dwwl {
    margin: 0 2px;
  }

  .android-ics .dww,
  .android-ics .dw .dwpm .dwwl,
  .android-ics .dw .dwpm .dww {
    border: 0;
  }

  .android-ics .dww .dw-li {
    color: #fff;
    font-size: 18px;
    text-shadow: none;
  }

  .android-ics .dww .dw-li.dw-hl {
    background: #31b6e7;
    background: rgba(49, 182, 231, .5);
  }

  .android-ics .dwwo {
    background: linear-gradient(#282828 0%, rgba(40, 40, 40, 0) 52%, rgba(40, 40, 40, 0) 48%, #282828 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(#282828), color-stop(0.52, rgba(40, 40, 40, 0)), color-stop(0.48, rgba(40, 40, 40, 0)), to(#282828));
    background: -moz-linear-gradient(#282828 0%, rgba(40, 40, 40, 0) 52%, rgba(40, 40, 40, 0) 48%, #282828 100%);
    background: -o-linear-gradient(#282828 0%, rgba(40, 40, 40, 0) 52%, rgba(40, 40, 40, 0) 48%, #282828 100%);
  }

  .android-ics .dw .dwwb {
    background: #292829;
    box-shadow: none;
    -webkit-box-shadow: none;
  }

  .android-ics .dwwb span {
    display: none;
  }

  .android-ics .dwwb:after {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    color: #7e7e7e;
    width: 0;
    height: 0;
    border-width: 8px;
    border-style: solid;
    content: '';
  }

  .android-ics .dwwbm {
    top: 0;
    bottom: auto;
  }

  .android-ics .dwwbp {
    bottom: 0;
    top: auto;
  }

  .android-ics .dwwbm:after {
    border-color: transparent transparent #7e7e7e transparent;
  }

  .android-ics .dwwbp:after {
    border-color: #7e7e7e transparent transparent transparent;
  }

  .android-ics .dw .dwwl .dwb-a {
    background: #292829;
  }

  .android-ics .dwwbm.dwb-a:after {
    border-color: transparent transparent #319abd transparent;
  }

  .android-ics .dwwbp.dwb-a:after {
    border-color: #319abd transparent transparent transparent;
  }

  .android-ics .dw .dwwol {
    width: 60%;
    left: 20%;
    height: 36px;
    border-top: 2px solid #31b6e7;
    border-bottom: 2px solid #31b6e7;
    margin-top: -20px;
    display: block;
  }

  .android-ics .dwbc {
    border-top: 1px solid #424542;
    padding: 0;
  }

  .android-ics .dw .dwb {
    height: 36px;
    line-height: 36px;
    padding: 0;
    margin: 0;
    font-weight: normal;
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -webkit-box-shadow: none;
  }

  .android-ics .dw .dwb-a {
    background: #29799c;
  }

  .android-ics .dwb-s .dwb, .android-ics .dwb-n .dwb {
    border-right: 1px solid #424542;
  }

  /* Docked */
  .android-ics.dw-bottom .dw, .android-ics.dw-top .dw {
    border-radius: 0;
    -webkit-border-radius: 0;
  }

  /* Multiple select */
  .android-ics .dwwms .dwwol {
    display: none;
  }

  .android-ics .dwwms .dw-li {
    padding-left: 5px;
    padding-right: 36px;
  }

  .android-ics .dwwms .dw-li:after {
    content: '';
    position: absolute;
    top: 50%;
    left: auto;
    right: 10px;
    width: 14px;
    height: 14px;
    margin-top: -9px;
    color: #31b6e7;
    line-height: 14px;
    border: 1px solid #424542;
    text-shadow: 0 0 5px #29799c;
  }

  .android-ics .dwwms .dw-msel:after {
    content: '?';
  }

  /* Light version */
  .android-ics.light .dw {
    background: #f5f5f5;
  }

  .android-ics.light .dww .dw-li {
    color: #000;
  }

  .android-ics.light .dwwo {
    background: linear-gradient(#f5f5f5 0%, rgba(245, 245, 245, 0) 52%, rgba(245, 245, 245, 0) 48%, #f5f5f5 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(#f5f5f5), color-stop(0.52, rgba(245, 245, 245, 0)), color-stop(0.48, rgba(245, 245, 245, 0)), to(#f5f5f5));
    background: -moz-linear-gradient(#f5f5f5 0%, rgba(245, 245, 245, 0) 52%, rgba(245, 245, 245, 0) 48%, #f5f5f5 100%);
    background: -o-linear-gradient(#f5f5f5 0%, rgba(245, 245, 245, 0) 52%, rgba(245, 245, 245, 0) 48%, #f5f5f5 100%);
  }

  .android-ics.light .dw .dwwb {
    background: #f5f5f5;
    color: #f5f5f5;
  }

  .android-ics.light .dwbc {
    border-top: 1px solid #dbdbdb;
  }

  .android-ics.light .dwb {
    color: #000;
  }

  .android-ics.light .dwb-a {
    color: #fff;
  }

  .android-ics.light .dwb-s .dwb, .android-ics.light .dwb-n .dwb {
    border-right: 1px solid #dbdbdb;
  }

  /* Bubble positioning */
  .android-ics .dw-bubble-bottom .dw-arr {
    border-color: transparent transparent #292829 transparent;
  }

  .android-ics .dw-bubble-top .dw-arr {
    border-color: #292829 transparent transparent transparent;
  }

  /* Bubble positioning */
  .android-ics.light .dw-bubble-bottom .dw-arr {
    border-color: transparent transparent #f5f5f5 transparent;
  }

  .android-ics.light .dw-bubble-top .dw-arr {
    border-color: #f5f5f5 transparent transparent transparent;
  }

  /* Multiple select */
  .android-ics.light .dwwms .dw-li:after {
    text-shadow: 0 0 5px #31b6e7;
  }

</style>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 159,015评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,262评论 1 292
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,727评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,986评论 0 205
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,363评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,610评论 1 219
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,871评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,582评论 0 198
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,297评论 1 242
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,551评论 2 246
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,053评论 1 260
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,385评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,035评论 3 236
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,079评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,841评论 0 195
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,648评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,550评论 2 270

推荐阅读更多精彩内容

  • 基于Vue的一些资料 内容 UI组件 开发框架 实用库 服务端 辅助工具 应用实例 Demo示例 element★...
    尝了又尝阅读 1,119评论 0 1
  • 生活不仅仅有苟且,还有远方和诗。 一条长长的贯穿了大半个中国的河流,把二者切割开来。 一边是绵延数百公里的腹地,为...
    朱东波阅读 313评论 2 4
  • 2018年9月2日 星期日 天气阴 亲子日记第117篇 明天开学了,早晨起来提醒大宝收拾明天上学的东西。以前...
    最爱奇毅阅读 95评论 0 1
  • 大概是在一片白山茶中遇到的她 大概是在一束白山茶中失去的她 大概是在春天 大概是在夏天 这才发现原来我们的故事那么...
    陈七友阅读 633评论 0 8
  • 瘦子居酒屋阅读 146评论 0 0