Skip to content

Commit 9fdc61e

Browse files
committed
feat: grid sm,lg,xl size gap, file util download optimized
1 parent a27f28a commit 9fdc61e

File tree

50 files changed

+617
-28817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+617
-28817
lines changed

module/AdminManager/Asset/entry/upgrade.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

module/AdminManager/resources/asset/src/pages/Upgrade.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ export default {
344344
}
345345
},
346346
doMemberLoginSubmit() {
347+
if (!this.memberLoginInfo.username || !this.memberLoginInfo.password || !this.memberLoginInfo.captcha) {
348+
return
349+
}
347350
if (!this.memberLoginInfo.agree) {
348351
this.$dialog.tipError('请先同意使用协议')
349352
return

module/Cms/Docs/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 3.5.0
1+
## 3.5.0 新增:内容页面支持模板自定义功能
22

33
- 新增:内容页面支持模板自定义功能
44

module/Member/Util/MemberVipUtil.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,18 @@ public static function get($vipId, $key = null)
175175
return null;
176176
}
177177

178+
public static function calcExpire($oldExpire, $newVipId)
179+
{
180+
$newVip = self::get($newVipId);
181+
$newDays = ($newVip ? $newVip['vipDays'] : 0);
182+
$oldExpireTimestamp = (strtotime($oldExpire) > 0 ? strtotime($oldExpire) : 0);
183+
$timestamp = time();
184+
if ($oldExpireTimestamp > time()) {
185+
$timestamp = $oldExpireTimestamp;
186+
}
187+
return date('Y-m-d', $oldExpireTimestamp + $newDays * 24 * 3600);
188+
}
189+
178190
/**
179191
* 会员卡升级差价计算
180192
*

module/Member/View/pc/memberVip/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class="vip-button">
196196
<div class="row">
197197
@foreach($memberVipRights as $r)
198198
<div class="col-md-2 col-6" style="display:none;" data-vip-right="{{join(',',$r['vipIds'])}}">
199-
<div class="tw-flex tw-items-center ub-text-small">
199+
<div class="tw-flex tw-items-center ub-text-sm">
200200
<div class="tw-pr-2">
201201
<img class="tw-w-8 tw-h-8 tw-object-cover tw-rounded-full" src="{{$r['image']}}" />
202202
</div>

module/Member/View/pc/memberVip/indexDialog.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class="vip-button">
196196
<div class="row">
197197
@foreach($memberVipRights as $r)
198198
<div class="col-lg-2 col-md-3 col-6" style="display:none;" data-vip-right="{{join(',',$r['vipIds'])}}">
199-
<div class="tw-flex tw-items-center ub-text-small">
199+
<div class="tw-flex tw-items-center ub-text-sm">
200200
<div class="tw-pr-2">
201201
<img class="tw-w-8 tw-h-8 tw-object-cover tw-rounded-full" src="{{$r['image']}}" />
202202
</div>

module/ModuleStore/Asset/entry/moduleStore.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

module/ModuleStore/Util/ModuleStoreUtil.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
class ModuleStoreUtil
1919
{
2020
const REMOTE_BASE = 'https://modstart.com';
21+
// const REMOTE_BASE = 'http://org.demo.soft.host';
2122

2223
public static function remoteModuleData()
2324
{

module/ModuleStore/resources/asset/src/pages/ModuleStore.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ export default {
611611
}
612612
},
613613
doMemberLoginSubmit() {
614+
if (!this.memberLoginInfo.username || !this.memberLoginInfo.password || !this.memberLoginInfo.captcha) {
615+
return
616+
}
614617
if (!this.memberLoginInfo.agree) {
615618
this.$dialog.tipError('请先同意使用协议')
616619
return
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
4+
namespace Module\Vendor\Api\Controller;
5+
6+
use Illuminate\Routing\Controller;
7+
use ModStart\Core\Input\Response;
8+
use ModStart\Misc\Captcha\CaptchaFacade;
9+
10+
class CaptchaController extends Controller
11+
{
12+
public function image()
13+
{
14+
$captcha = CaptchaFacade::create('default');
15+
return Response::generate(0, 'ok', [
16+
'image' => 'data:image/png;base64,' . base64_encode($captcha->getOriginalContent()),
17+
]);
18+
}
19+
}

0 commit comments

Comments
 (0)