From b332bf4bde52627f1259741ed89bb7347153904c Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Mon, 22 Jan 2024 11:43:58 +0800 Subject: [PATCH] 11 --- pages/.DS_Store | Bin 10244 -> 10244 bytes pages/index/feedBack.vue | 65 ++++++++++++++++++++++++------ pages/index/index.vue | 11 ++--- pages/inventory/addGoods.vue | 3 +- pages/rebate/rebateShare.vue | 2 +- pages/staff/clock/clock.vue | 19 +++++---- pages/staff/signRule/signRule.vue | 58 ++++++++++++++++++++------ 7 files changed, 115 insertions(+), 43 deletions(-) diff --git a/pages/.DS_Store b/pages/.DS_Store index 306edbe6ea29f897c4fd802886571d4efed9b2b9..67dd1a480220fe621bc2f0c72ea39b6ba4c29641 100644 GIT binary patch delta 498 zcmZn(XbIS0D5!SXm4ShQogs-KlOYEPGa2$2(sT1&T#|C~lYlZDK+NFYH#uBTfep&6 z6;xtWn7lwRlWE4I$=pIR%nS?-leL5t!L*-{GUJBLMM6@HOtX$p?h}>*>S}n9GI#Pi zVHp_ng0L(Tv%=>0!rqKbVUH(I5EbJ`wXtDxqNqC9xI|Iu$;(9fm^Ltglx;pEs>Udn z0(1u}(5d+h=^*E#YZVZe2Wj1GBp$}dl-e}8O9JEuhQHq@PhKSfas!xoMnaBp!sgc! zR*Wi2jX*Irh9ZVkU??OqlrW^C8p&{2bIN2-DLIf<5HnXwfze@epOhJ+i_cS_7%M|D tP*Wm98bcbY#s*Q%zN3!lDpHVw7NlY_hm0I!!De+CVNTkG#$+S$O8`CZefIzW delta 498 zcmZn(XbIS0D5&;wEdv7sJ3|sfCPNMoW-{b4r03?lxFqG|Cjn(R?zO~TdDu8PTu^}x z%B&SsVsx0iKroYuS9&tHkPP!1_wAFlgcQNFpO7-6z~&+$DMqHK&6E3trP!`d-uL28 z)8uu+GBD-^VOb`o1DoFqdowcm-kUr@RE!_l#`7=sO->Y5XNJ(ylb4C|F)d&KDcgKT zRE<$?HPBhCK&R$2q=TG`tTo`?`^f_0^2|VbvypfhBa=qf - + - - + @@ -19,6 +19,7 @@ 保存 + @@ -26,11 +27,28 @@ export default { data() { return { + fileList1: [], formData: { productPicture: [], productIntro: '' + }, + categoryList: [], + productId:'', + arrtList: [], + arrtChange: [], + dataList:[], + rules: { + productIntro: { + rules: [{ + required: true, + errorMessage: '请简要描述问题', + }, ], + } } } + }, + onLoad(option) { + }, methods: { // 删除图片 @@ -42,7 +60,8 @@ // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 let lists = [].concat(event.file) - if (this.formData.productPicture == undefined) this.formData.productPicture = []; + if (this.formData.productPicture == undefined) this.formData.productPicture = []; + console.log(this[`fileList${event.name}`]) let fileListLen = this[`fileList${event.name}`].length lists.map((item) => { @@ -84,22 +103,22 @@ } }); }) + }, + categoryChange(e) { + }, // 触发提交表单 submit() { let that = this; let url = '' - this.$refs.form.validate().then(res => { - if(that.dataList !=''){ - url = '/app/product/edit' - res.id = that.dataList.id - }else{ - url = '/app/product/save' - } - that.tui.request(url, "post", res, false, false).then((res1) => { + this.$refs.form.validate().then(res => { + that.tui.request('/app/problemFeedback/saveOrUpdateProblemFeedback', "post", { + problemPicture:that.formData.productPicture, + problemContent:that.formData.productIntro + }, false, false).then((res1) => { if (res1.code == 200) { uni.navigateBack({ - delta: 2 + delta: 2 }) } else { uni.showToast({ @@ -123,6 +142,26 @@ border-radius: 14rpx; box-shadow: 0px 1px 10px 2px #e2e2e2; background-color: #fff; + + .uni-data-select { + width: 100%; + } + + .attrs { + text { + display: inline-block; + border: 1px solid $u-primary; + padding: 7px 20rpx; + margin: 20rpx; + background-color: #fff; + color: $u-primary; + } + + .checkedText { + background-color: $u-primary; + color: #fff; + } + } } .upload-img{ width: 160rpx; diff --git a/pages/index/index.vue b/pages/index/index.vue index a08bf2b..d2870e2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -205,13 +205,14 @@ // }, onShow() { this.shopName = uni.getStorageSync('shopName') - this.type = uni.getStorageSync('type') + this.type = uni.getStorageSync('type') + this.getSaleInfo() + this.getServerData(); + this.getOrderInfoList(); + this.getWaitCount() }, onLoad() { - this.getSaleInfo() - this.getServerData(); - this.getOrderInfoList(); - this.getWaitCount() + }, methods: { getWaitCount() { diff --git a/pages/inventory/addGoods.vue b/pages/inventory/addGoods.vue index 3f35176..d54b53f 100644 --- a/pages/inventory/addGoods.vue +++ b/pages/inventory/addGoods.vue @@ -151,7 +151,8 @@ // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式 let lists = [].concat(event.file) - if (this.formData.productPicture == undefined) this.formData.productPicture = []; + if (this.formData.productPicture == undefined) this.formData.productPicture = []; + console.log(this[`fileList${event.name}`]) let fileListLen = this[`fileList${event.name}`].length lists.map((item) => { diff --git a/pages/rebate/rebateShare.vue b/pages/rebate/rebateShare.vue index 4ae3470..bf91034 100644 --- a/pages/rebate/rebateShare.vue +++ b/pages/rebate/rebateShare.vue @@ -43,7 +43,7 @@ .content { width: 100%; height: 100%; - background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/abdc5c897c4f4fe198b74091a708030b.jpg') no-repeat; + background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/352c2490d88b47ac84bf13bfa046abcf.png') no-repeat; background-size: cover; background-position: center; overflow: hidden; diff --git a/pages/staff/clock/clock.vue b/pages/staff/clock/clock.vue index d11e790..39bccd4 100644 --- a/pages/staff/clock/clock.vue +++ b/pages/staff/clock/clock.vue @@ -40,8 +40,7 @@ -