From 9bb4c9aeeb6165c08e6be165640f177f2c193627 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 22 May 2025 16:09:52 +0800
Subject: [PATCH] feat(mall): 添加微信小店功能
---
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
index b8e6881..5094d99 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
@@ -107,8 +107,25 @@
<select name="isNormal" class="goods-type"
lay-filter="goods-type-select">
<option value="1">普通商品区</option>
+ <option value="3">微信小店</option>
<!-- <option value="2">套餐区</option>-->
</select>
+ </div>
+ </div>
+ <blockquote class="layui-elem-quote blue-border febs-hide tc-set">微信小店设置</blockquote>
+ <div class="layui-form-item febs-hide tc-set">
+ <div class="layui-col-lg6">
+ <label class="layui-form-label">APP_ID:</label>
+ <div class="layui-input-block">
+ <input type="text" name="storeAppId" placeholder="请输入" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ <div class="layui-col-lg6">
+ <label class="layui-form-label">商品ID:</label>
+ <div class="layui-input-block">
+ <input type="text" name="storeGoodsId" placeholder="请输入" autocomplete="off" class="layui-input">
+ <div class="layui-form-mid layui-word-aux">不填写商品ID,则跳转到微信小店首页。</div>
+ </div>
</div>
</div>
@@ -849,6 +866,8 @@
var thumbs = images.join(",");
form.val("goods-update-form", {
"id": goodsInfo.id,
+ "storeAppId": goodsInfo.storeAppId,
+ "storeGoodsId": goodsInfo.storeGoodsId,
"goodsName": goodsInfo.goodsName,
"goodsNo": goodsInfo.goodsNo,
"unit": goodsInfo.unit,
@@ -886,7 +905,7 @@
couponRule.setValue(goodsInfo.couponIds);
- if (goodsInfo.isNormal == 2) {
+ if (goodsInfo.isNormal == 3) {
$(".tc-set").show();
}
@@ -981,7 +1000,7 @@
form.on('select(goods-type-select)', function (data) {
$('.tc-set').each(function () {
- if (data.value == 2) {
+ if (data.value == 3) {
$(this).show();
} else {
$(this).hide();
--
Gitblit v1.9.1