摘要: 父组件: <sendsms :to="phoneNumber" /> 子组件 <template> <div class="sendsms"> <div class="content"> <button class="button" :disabled="smsdisable" v-text="bu 阅读全文
posted @ 2018-10-18 10:15 凌珊 阅读(533) 评论(0) 推荐(0) 编辑
摘要: { path: '/goodDetail', component:goodDetail } selectGood(){ router.push({ path: 'goodDetail', query:{goodId:this.goodDetail.id}}) } 详情页: export defaul 阅读全文
posted @ 2018-10-18 10:08 凌珊 阅读(943) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import VueClipboard from 'vue-clipboard2' Vue.use(VueClipboard) 法一: <template id="t"> <div class="container"> <input type="text" 阅读全文
posted @ 2018-10-18 10:06 凌珊 阅读(1855) 评论(0) 推荐(0) 编辑
摘要: 使用镜像 阅读全文
posted @ 2018-10-08 14:02 凌珊 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 获取DOM元素 阅读全文
posted @ 2018-08-08 17:46 凌珊 阅读(141) 评论(0) 推荐(0) 编辑
摘要: <div class="type"> <input @click="selectTypeShow =!selectTypeShow" :placeholder="请选择类型" :value="selectedType.type"> <i></i> <ul class="wrap" v-if="sel 阅读全文
posted @ 2018-08-08 14:26 凌珊 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 父组件 <div class="uploadFile"> <uploadFile v-model="uploadImg" uploadImg="uploadFileImg" @change="loadImg"/> </div> loadImg(file){ if(file){ this.upload 阅读全文
posted @ 2018-08-02 19:14 凌珊 阅读(76) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $("#totop").hide(); $(window).scroll(function(){ if ($(window).scrollTop()>1200){ $("#totop").fadeIn(); }else{ $("#totop").fadeOut(); } 阅读全文
posted @ 2018-07-27 18:10 凌珊 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <ul id="tabNav"> <li class="tab_current"></li> <li></li> <li></li> </ul> <ul id="tabList"> <li class="tab_curr"></li> <li></li> <li></li> </ul> <ul id 阅读全文
posted @ 2018-07-27 18:06 凌珊 阅读(70) 评论(0) 推荐(0) 编辑
摘要: HTML <div class="code"> <input @click="selectShow =!selectShow" readonly="readonly" :placeholder="$lang.inputCoin" :value="selected.goods"> <i></i> <u 阅读全文
posted @ 2018-07-27 18:01 凌珊 阅读(97) 评论(0) 推荐(0) 编辑