From b942abfd529796785dc28dad3f79ff9391090ea5 Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 7 Jun 2022 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=8B=8D=E5=8D=96=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=80=BB=E8=BE=91=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=BF=AB?= =?UTF-8?q?=E8=AF=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ratingQueryDetail/ratingQueryDetail.vue | 7 +- pages/index/index.vue | 4 +- pages/write/baseInfo.vue | 72 +++++++++++++++++-- 3 files changed, 75 insertions(+), 8 deletions(-) diff --git a/packages/ratingQueryDetail/ratingQueryDetail.vue b/packages/ratingQueryDetail/ratingQueryDetail.vue index 8a47598..da542ba 100644 --- a/packages/ratingQueryDetail/ratingQueryDetail.vue +++ b/packages/ratingQueryDetail/ratingQueryDetail.vue @@ -57,9 +57,9 @@ - + @@ -104,8 +104,9 @@ methods: { // 复制拍卖链接 todo 暂时不用 setClipboardData(){ + let that = this; uni.setClipboardData({ - data: '测试' + data: that.details.sub_order.pm_url }) } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 182881a..b6326d5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -214,7 +214,9 @@ async getSysInfo(){ let res = await sysInfo(); - console.log("getSysInfo res",res) + //console.log("getSysInfo res",res) + let sysInfoDatas = res.data.datas; + uni.setStorageSync('qxk_sysinfo',sysInfoDatas); let datas = res.data.datas.tips; this.tipsDatas = datas; this.tips = datas.map((item)=>{ diff --git a/pages/write/baseInfo.vue b/pages/write/baseInfo.vue index 90f55d5..c2c4312 100644 --- a/pages/write/baseInfo.vue +++ b/pages/write/baseInfo.vue @@ -83,13 +83,31 @@ - + 是否快评: (价格翻倍) - + + + + {{columnsData[columnsIndex].title}} + + + + + + + + + + {{columnsData[columnsIndex].desc}} + + 打包照片 @@ -120,6 +138,7 @@ + @@ -130,7 +149,7 @@ data() { return { address: {}, - isQuickReview: false, + isQuickReview: 0, sonpingInfo: { name: '', phone: '', @@ -139,11 +158,31 @@ fileList: [], remarks: '', rateIndex: 0, - coupon: '' + coupon: '', + show:false, + columns:[], + columnsData:null, + columnsIndex:0, }; }, + // computed:{ + // columns:()=>{ + // return ['1','2']; + // }, + // }, onLoad(options){ this.rateIndex = options.rate_index || 0; + let d = uni.getStorageSync('qxk_sysinfo') + if(d){ + let options = d.fast_options + this.columnsData =[{id:0,title:'否'},...options] + let texts = this.columnsData.map((item)=>{ + return item.title + }) + //t = [...t,...texts]; + this.columns.push(texts) + + } }, methods: { async afterRead(event){ @@ -154,6 +193,16 @@ deletePic(event){ this.fileList.splice(event.index, 1); }, + pickerShow(v){ + this.show = v + }, + confirmPicker(e){ + console.log("confirmPicker",e) + this.columnsIndex = e.indexs[0] + this.isQuickReview = e.indexs[0] + //e. + this.pickerShow(false) + }, next(){ let sonpingInfo = this.sonpingInfo; if(!this.$isRight(this.address)) return this.$msg('请选择收货地址'); @@ -167,6 +216,21 @@