From 01d0b357c96bd01082ec257d37bd287701c1ab4f Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Thu, 3 Jul 2025 15:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/register/card_pay.png | Bin 0 -> 413 bytes src/components/paymentMethod.vue | 56 +-- src/views/agent/siteServiceAdd.vue | 4 +- src/views/agent/siteServiceEdit.vue | 760 ++++++++++++++++-------------------- src/views/agent/siteServiceList.vue | 71 +++- 5 files changed, 431 insertions(+), 460 deletions(-) create mode 100644 src/assets/register/card_pay.png diff --git a/src/assets/register/card_pay.png b/src/assets/register/card_pay.png new file mode 100644 index 0000000000000000000000000000000000000000..20fefd64b2bbfeb1a88a06b4ac826bc30f342a6c GIT binary patch literal 413 zcmV;O0b>4%P)Px#1am@3R0s$N2z&@+hyVZqM@d9MR9J=Wm_bg$Kp2JJ8zHfY3yy#{;0PRn1*qNW z35+KYPN19sT&dW^-oSc;dV?N;g$Xg3J{KTS7IsR~3^nsDrSUR(>=pe2sY>KN1mHhE(J zbzFXzj7%b#kq71eB(s|*k@xoQ(g{#I3S52ef z`BY1c!Z^r&E>3!C1%HgYRo6-W@>4MeK;~Ma z1epPty0)-~snJqa?Pwp6G&W%zWObPSP#A_$knnq
-
-
-
- - - - -
+
+
+ + + +
-

{{ item.name }}

-

{{ item.account }}

+

{{ item.name }}

+
@@ -86,33 +84,39 @@ export default { \ No newline at end of file diff --git a/src/views/agent/siteServiceList.vue b/src/views/agent/siteServiceList.vue index fa774f3..9697f1a 100644 --- a/src/views/agent/siteServiceList.vue +++ b/src/views/agent/siteServiceList.vue @@ -112,14 +112,14 @@ @@ -127,7 +127,11 @@ + @cancel="handleCancel" type="center" > +
+ + 按住左侧图标,上下拖动可进行排序,平台卡券只能放到最后。 +
@@ -371,7 +375,7 @@ export default { saveEdit(row, type) { row[type + 'PopoverVisible'] = false; // 关闭弹框 if(type == 'price') this.savePrice(row) - if(type == 'sort') this.saveSort(row) + if(type == 'sort') this.saveUpdateInfo(row, true) }, // 取消编辑 cancelEdit(row, type) { @@ -403,23 +407,21 @@ export default { this.saveRequest('/agentnew/ajax_set_service_price', obj, row) }, - saveSort(row){ - let obj = {} - obj.uid = this.uid - obj.type = row.type - obj.sort_num = row.sort_id - this.saveRequest('/agentnew/ajax_set_service_sort', obj, row) - }, onSwitchChange(row){ - row.is_display = row.is_display == "1" ? "0" : "1" - + row.is_index_display = row.is_index_display == "1" ? "0" : "1" + this.saveUpdateInfo(row) + }, + saveUpdateInfo(row, resort = false){ let obj = {} obj.uid = this.uid obj.type = row.type - obj.is_display = row.is_display - this.saveRequest('/agentnew/ajax_set_service_display_index', obj, row) + obj.sort_id = row.sort_id + obj.is_index_display = row.is_index_display + obj.is_display_price = row.is_display_price + obj.is_recommend = row.is_recommend + this.saveRequest('/agentnew/ajax_update_service_show', obj, row, resort) }, - saveRequest(url, obj, row){ + saveRequest(url, obj, row, resort = false){ const that = this this.$http('POST', url, obj,{ headers:{ @@ -430,6 +432,9 @@ export default { that.$message.success('保存成功'); this.$nextTick(() => { that.$set(that.serviceList, row) + if(resort){ + this.sortServiceList() + } }) return true; } @@ -438,6 +443,20 @@ export default { console.error(error, 'error') }) }, + sortServiceList() { + const sortable = this.serviceList + .map((row, i) => ({ row, i })) + .filter(item => item.row.sort_id > 0) + .sort((a, b) => a.row.sort_id - b.row.sort_id); + + let i = 0; + this.serviceList = this.serviceList.map(row => { + if (row.sort_id > 0) { + return sortable[i++].row; + } + return row; + }); + }, popPayMentModal(row){ this.dialogVisible = true; this.dialogTitle = row.type_desc + '-收款方式' @@ -555,6 +574,26 @@ export default { letter-spacing: 0.08em; } } +.notice-text{ + display: flex; + align-items: center; + padding: 8px 13px; + align-self: stretch; + z-index: 1; + border-radius: 4px; + background: #F2F7FF; + border: 1px solid #BFDAFF; + margin: 12px 0 24px 0; + .notice-icon{ + width: 16px; + height: 16px;; + margin-right: 8px; + } + span{ + color: #1E2226; + letter-spacing: 0.08em; + } +} .pageheader { display: flex; justify-content: space-between; /* 关键属性 */