随笔分类 - 前端-前端项目工作
前端-前端项目工作
摘要:putAction("/order/"+this.$parent.$parent.ListId+"/status",{ status:-1, remark: this.remark }).then(res=>{ this.$message({ message: '退回已提交', type: 'suc
阅读全文
摘要:return:{ data:{ account_id: '', BindData: [], RomoteData:[], dialogVisible: false, ff_account_index: '', form:{}, } }, 这种命名报错
阅读全文
摘要:/*绑定id逻辑分析*/ dialog() { /*传给当前的account_id进行接收*/ putAction("/account/" + this.account_id + "/bind_ff_account_id", { remote_account_id: this.BindData[th
阅读全文
摘要:<custom-table v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8
阅读全文
摘要:将时间转换为毫秒数的方法有四个: Date.parse() Date.UTC valueOf() getTime() 1. Date.parse():该方法接受一个表示日期的字符串参数,然后尝试根据这个日期返回日期的毫秒数。ECMA-262没有定义该方法支持哪种日期格式,因此这个方法的行为因为浏览器
阅读全文
摘要:/*3GY歌谣表单验证 通过继续前行*/ this.$refs["form"].validate(valid => { if (valid) { setTimeout(() => { /*声明变量*/ let method = postAction; /*声明url * position() * *
阅读全文
摘要:<el-card v-if="task1.length!=0" style="width: 100%;height: 300px;"> <el-carousel :interval="3000" indicator-position="outside"> <el-carousel-item v-fo
阅读全文
摘要:<template> <view class="u-flex u-flex-wrap u-row-between wrap"> <view class="u-flex u-row-center u-col-center box"> <u-image width="60rpx" height="60r
阅读全文
摘要:第一步 <view v-for="(item,index) in tableData" @click="getDetail(item.id)" class=" box"> <view class="u-line-1 u-m-b-24 u-font-30 color-3">{{item.title}}
阅读全文
摘要:/* 第一步定义onload方法 */ onLoad(){ /* 调用市场信息的接口 分别 vuex获取 其他三项 */ this.$u.api.getpartyList({marketId:this.vuex_user.market_id,type:"通知公告",pageNo:1,pageSize
阅读全文
摘要:marketId:this.vuex_user.market_id
阅读全文
摘要:/*格式化日期:yyyy-MM-dd*/ formatDate(date) { var myyear = date.getFullYear(); var mymonth = date.getMonth() + 1; var myweekday = date.getDate(); if (mymont
阅读全文
摘要:// 创建补0函数 function pZone (s) { return s < 10 ? '0' + s : s } pZone(num)
阅读全文
摘要:filters: { toChangeDate(e) { console.log(new Date(e).getFullYear()) console.log(new Date(e).getMonth()) console.log(new Date(e).getDay()) let dateYear
阅读全文
摘要:let date = new Date(); let dateYear = date.getFullYear(); //获取年 let dateMonth = date.getMonth(); //获取月 let dateDate = date.getDate(); //获取当日 let dateD
阅读全文
摘要:}).then(res=>{ if (res.data.code == 200) { /* 进行合并操作 */ this.tableData = [...this.tableData, ...res.data.data.records] this.pages = res.data.data.page
阅读全文
摘要:const request = (url = '', date = {}, type = 'GET', header = { }) => { return new Promise((resolve, reject) => { uni.request({ method: type, url: base
阅读全文
摘要:<u-loadmore :status="status" /> onReachBottom() { console.log('触底~~~~') if (this.pageNo >= this.pages){ this.status = 'nomore'; return; } this.status
阅读全文
摘要:getData(){ this.$u.api.getInstitution({ marketId: this.vuex_user.market_id, pageNo: this.pageNo, pageSize: this.size, }).then(res => { if (res.data.co
阅读全文
摘要:onLoad() { /* 调用市场信息的接口 分别 vuex获取 其他三项 */ this.$u.api.getTreasureList({ marketId: this.vuex_user.market_id, pageNo: 1, pageSize: 20, type:this.current
阅读全文