Kaynağa Gözat

feat(express): 激活虚拟配送选项并添加兑换码验证

- 激活虚拟配送选项(值为3)并移除注释
- 为虚拟配送添加兑换码必填验证规则
- 集成Elm输入组件用于兑换码字段验证
shichen 4 ay önce
ebeveyn
işleme
750ccfb254

+ 4 - 2
app/common/repositories/store/shipping/ExpressRepository.php

@@ -143,7 +143,7 @@ class ExpressRepository extends BaseRepository
143 143
                 ->setOptions([
144 144
                     ['value' => 1, 'label' => '发货'],
145 145
                     // ['value' => 2, 'label' => '送货'],
146
-                    // ['value' => 3, 'label' => '虚拟'],
146
+                    ['value' => 3, 'label' => '虚拟'],
147 147
                 ])->control([
148 148
                     [
149 149
                         'value' => 1,
@@ -163,7 +163,9 @@ class ExpressRepository extends BaseRepository
163 163
                     ],
164 164
                     [
165 165
                         'value' => 3,
166
-                        'rule'=> []
166
+                        'rule'=> [
167
+                            Elm::input('delivery_name', '兑换码')->required(),
168
+                        ]
167 169
                     ],
168 170
 
169 171
                 ]),