From 8868f4204ca58904426951fd3237ab270a6c0f09 Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Wed, 27 Nov 2024 18:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chatbubble/ChatbubbleManageView.vue | 77 +++++++++++-------- src/views/headwear/HeadwearAdminView.vue | 2 +- 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/src/views/chatbubble/ChatbubbleManageView.vue b/src/views/chatbubble/ChatbubbleManageView.vue index 13f76c7..0e2a336 100644 --- a/src/views/chatbubble/ChatbubbleManageView.vue +++ b/src/views/chatbubble/ChatbubbleManageView.vue @@ -100,28 +100,32 @@ -
- -
- - - - +
+
+ +
+ + + + +
-
-
- -
- - - - + +
+
+ +
+ + + + +
-
+
@@ -422,28 +426,39 @@ export default { }); - $("[name='uploadBtn']").on('click', function () { - let id = $(this).attr('id'); - let b = id.split("_"); - let imageId = b[0]; - let inputId = b[1]; - console.log(imageId) - console.log(inputId) + $("#addAndroidIconPicUrl_androidUrl").on('click', function () { var options = { type: 'post', url: '/admin/upload/img', dataType: 'json', success: function (json) { if (json.path) { - $("#" + inputId).val(json.path); - $("#" + imageId).attr("src", json.path); + $("#addAndroidIconPicUrl").val(json.path); + $("#addAndroidIconPicUrl").attr("src", json.path); } else { $("#tipMsg").text(json.msg); $("#tipModal").modal('show'); } } }; - $("#addForm").ajaxSubmit(options); + $("#addForm1").ajaxSubmit(options); + }); + $("#addIosIconPicUrl_iosUrl").on('click', function () { + var options = { + type: 'post', + url: '/admin/upload/img', + dataType: 'json', + success: function (json) { + if (json.path) { + $("#addIosIconPicUrl").val(json.path); + $("#addIosIconPicUrl").attr("src", json.path); + } else { + $("#tipMsg").text(json.msg); + $("#tipModal").modal('show'); + } + } + }; + $("#addForm2").ajaxSubmit(options); }); @@ -484,6 +499,8 @@ export default { partitionFlag |= partitionFlagArray[i].value; } formData.partitionFlag = partitionFlag; + formData.androidUrl = $('#addAndroidIconPicUrl').attr('src'); + formData.iosUrl = $('#addIosIconPicUrl').attr('src'); // 将修改后的对象转换回序列化字符串 let newSerializeStr = $.param(formData); //做下数据校验 diff --git a/src/views/headwear/HeadwearAdminView.vue b/src/views/headwear/HeadwearAdminView.vue index a633325..892c93a 100644 --- a/src/views/headwear/HeadwearAdminView.vue +++ b/src/views/headwear/HeadwearAdminView.vue @@ -448,7 +448,7 @@ export default { { field: 'originalPrice', title: '原价(钻石)', align: 'center', width: '5%' }, { field: 'price', title: '购买价格(钻石)', align: 'center', width: '5%' }, { field: 'renewPrice', title: '续费价格(钻石)', align: 'center', width: '5%' }, - { field: 'radishOriginalPrice', title: '原价(萝卜)', align: 'center', width: '5%' }, + { field: 'radishOriginalPrice', title: '原价(萝卜1)', align: 'center', width: '5%' }, { field: 'radishPrice', title: '购买价格(萝卜)', align: 'center', width: '5%' }, { field: 'radishRenewPrice', title: '续费价格(萝卜)', align: 'center', width: '5%' }, { field: 'days', title: '有效期', align: 'center', width: '5%' },