rabin 1 år sedan
förälder
incheckning
aaa39b0f59
37 ändrade filer med 606 tillägg och 0 borttagningar
  1. 4 0
      package/excel/index.php
  2. 4 0
      package/manage/api/index.php
  3. 36 0
      package/manage/config.js
  4. BIN
      package/manage/favicon.ico
  5. 5 0
      package/manage/index.html
  6. 0 0
      package/manage/json/china.json
  7. 4 0
      package/manage/static/css/213.89045697.css
  8. 4 0
      package/manage/static/css/654.2abd28b1.css
  9. 6 0
      package/manage/static/css/app.d065fbce.css
  10. 96 0
      package/manage/static/css/loading.css
  11. 4 0
      package/manage/static/css/vab-chunk-c6f52c3a.57a5a92f.css
  12. 4 0
      package/manage/static/css/vab-plugins.e2d56194.css
  13. BIN
      package/manage/static/fonts/remixicon.31d28485.f12fd1a0.eot
  14. BIN
      package/manage/static/fonts/remixicon.881fbc46.1e0fb76b.woff
  15. BIN
      package/manage/static/fonts/remixicon.888e61f0.e313410c.ttf
  16. BIN
      package/manage/static/fonts/remixicon.9915fef9.5400338c.woff2
  17. BIN
      package/manage/static/img/403.d6bd8853.png
  18. BIN
      package/manage/static/img/404.f02775f8.png
  19. BIN
      package/manage/static/img/background-1.31e3a0ac.png
  20. BIN
      package/manage/static/img/background.2f742bae.jpg
  21. BIN
      package/manage/static/img/login_form.242d2e10.png
  22. 153 0
      package/manage/static/img/remixicon.95138f36.2b2ee314.svg
  23. 5 0
      package/manage/static/js/213.54496ab1.js
  24. 5 0
      package/manage/static/js/592.41e25131.js
  25. 5 0
      package/manage/static/js/654.2f4bd32f.js
  26. 5 0
      package/manage/static/js/962.faf0c7f7.js
  27. 4 0
      package/manage/static/js/app.66ad3b12.js
  28. 5 0
      package/manage/static/js/vab-chunk-0b9a05e8.3a2acba3.js
  29. 5 0
      package/manage/static/js/vab-chunk-54e012b3.6818ec02.js
  30. 5 0
      package/manage/static/js/vab-chunk-844ca20f.8fd468cb.js
  31. 5 0
      package/manage/static/js/vab-chunk-b3a4eaa1.509e2c01.js
  32. 5 0
      package/manage/static/js/vab-chunk-c6f52c3a.a0d3ed10.js
  33. 5 0
      package/manage/static/js/vab-plugins.8f940bfc.js
  34. 73 0
      src/dai/channel/table/card.php
  35. 25 0
      src/dai/channel/table/card_upload.php
  36. 101 0
      src/dai/channel/table/manage/card.php
  37. 33 0
      src/dai/channel/table/manage/card_upload.php

+ 4 - 0
package/excel/index.php

@@ -0,0 +1,4 @@
+<?php
+define('DEVER_PACKAGE',  'excel');
+define('DEVER_APP_SETUP', dirname(__FILE__) . DIRECTORY_SEPARATOR);
+include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../../boot.php');

+ 4 - 0
package/manage/api/index.php

@@ -0,0 +1,4 @@
+<?php
+define('DEVER_PACKAGE',  'manage');
+define('DEVER_APP_SETUP', dirname(__FILE__) . DIRECTORY_SEPARATOR);
+include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../../../boot.php');

+ 36 - 0
package/manage/config.js

@@ -0,0 +1,36 @@
+/**
+ * @description 通用配置
+ */
+let url = ''
+if (location.port == '15000') {
+  //url = 'http://127.0.0.1/dever2/package/manage'
+  url = 'http://127.0.0.1/api2/package/manage/api'
+} else {
+  url = location.origin + location.pathname + 'api'
+}
+deverConfig = {
+  // 一些基本配置,定义后台title
+  setting: {
+    title: 'API充值系统',
+  },
+  // 网络配置
+  network: {
+    requestTimeout: 10000,
+    baseURL: url, // 配置服务器地址,
+  },
+  // 默认布局
+  theme: {
+    // 布局种类:横向布局horizontal、纵向布局vertical、分栏布局column、综合布局comprehensive、常规布局common、浮动布局float
+    layout: 'column',
+    // 主题名称:默认blue-black、blue-white、green-black、green-white、渐变ocean、red-white、red-black
+    themeName: 'blue-black',
+    // 菜单背景 none、vab-background
+    background: 'none',
+    // 菜单宽度,仅支持px,建议大小:266px、277px、288px,其余尺寸会影响美观
+    menuWidth: '266px',
+    // 分栏风格(仅针对分栏布局column时生效):横向风格horizontal、纵向风格vertical、卡片风格card、箭头风格arrow
+    columnStyle: 'card',
+    // 显示标签页时标签页样式:卡片风格card、灵动风格smart、圆滑风格smooth
+    tabsBarStyle: 'smooth',
+  },
+}

BIN
package/manage/favicon.ico


+ 5 - 0
package/manage/index.html

@@ -0,0 +1,5 @@
+<!doctype html><html lang="zh-cmn-Hans"><head><meta charset="utf-8"/><meta content="IE=edge" http-equiv="X-UA-Compatible"/><meta content="webkit" name="renderer"/><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"/><link href="favicon.ico" rel="icon"/><title>Dever Manage</title><meta content="Dever,PHP,PHP框架,轻量,微服务,组件化,接口,低代码,后台,自定义后台,开发,快速开发,AI,人工智能,文档,轻应用,应用,时空之翼,神秘城" name="keywords"/><meta content="rabin@shemic.com" name="author"/><link href="static/css/loading.css?random=2024-01-11 17:28:26-shemic" rel="stylesheet"/><script>document.write(
+        "<script type='text/javascript' src='config.js?" +
+          Math.random() +
+          "'><\/script>"
+      )</script><script defer="defer" src="static/js/app.66ad3b12.js"></script><script defer="defer" src="static/js/213.54496ab1.js"></script><link href="static/css/app.d065fbce.css" rel="stylesheet"><link href="static/css/213.89045697.css" rel="stylesheet"></head><body><noscript></noscript><div id="app"><div class="first-loading-wrp"><div class="loading-wrp"><span class="dot dot-spin"><i></i> <i></i> <i></i> <i></i></span></div><h1>Dever Manage</h1></div></div></body></html>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
package/manage/json/china.json


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 0
package/manage/static/css/213.89045697.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 0
package/manage/static/css/654.2abd28b1.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 6 - 0
package/manage/static/css/app.d065fbce.css


+ 96 - 0
package/manage/static/css/loading.css

@@ -0,0 +1,96 @@
+.first-loading-wrp {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  height: 90vh;
+  min-height: 90vh;
+}
+
+.first-loading-wrp > h1 {
+  font-size: 28px;
+  font-weight: bolder;
+}
+
+.first-loading-wrp .loading-wrp {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 98px;
+}
+
+.dot {
+  position: relative;
+  box-sizing: border-box;
+  display: inline-block;
+  width: 64px;
+  height: 64px;
+  font-size: 64px;
+  transform: rotate(45deg);
+  animation: antRotate 1.2s infinite linear;
+}
+
+.dot i {
+  position: absolute;
+  display: block;
+  width: 28px;
+  height: 28px;
+  background-color: #1890ff;
+  border-radius: 100%;
+  opacity: 0.3;
+  transform: scale(0.75);
+  transform-origin: 50% 50%;
+  animation: antSpinMove 1s infinite linear alternate;
+}
+
+.dot i:nth-child(1) {
+  top: 0;
+  left: 0;
+}
+
+.dot i:nth-child(2) {
+  top: 0;
+  right: 0;
+  -webkit-animation-delay: 0.4s;
+  animation-delay: 0.4s;
+}
+
+.dot i:nth-child(3) {
+  right: 0;
+  bottom: 0;
+  -webkit-animation-delay: 0.8s;
+  animation-delay: 0.8s;
+}
+
+.dot i:nth-child(4) {
+  bottom: 0;
+  left: 0;
+  -webkit-animation-delay: 1.2s;
+  animation-delay: 1.2s;
+}
+
+@keyframes antRotate {
+  to {
+    -webkit-transform: rotate(405deg);
+    transform: rotate(405deg);
+  }
+}
+
+@-webkit-keyframes antRotate {
+  to {
+    -webkit-transform: rotate(405deg);
+    transform: rotate(405deg);
+  }
+}
+
+@keyframes antSpinMove {
+  to {
+    opacity: 1;
+  }
+}
+
+@-webkit-keyframes antSpinMove {
+  to {
+    opacity: 1;
+  }
+}

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 0
package/manage/static/css/vab-chunk-c6f52c3a.57a5a92f.css


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 0
package/manage/static/css/vab-plugins.e2d56194.css


BIN
package/manage/static/fonts/remixicon.31d28485.f12fd1a0.eot


BIN
package/manage/static/fonts/remixicon.881fbc46.1e0fb76b.woff


BIN
package/manage/static/fonts/remixicon.888e61f0.e313410c.ttf


BIN
package/manage/static/fonts/remixicon.9915fef9.5400338c.woff2


BIN
package/manage/static/img/403.d6bd8853.png


BIN
package/manage/static/img/404.f02775f8.png


BIN
package/manage/static/img/background-1.31e3a0ac.png


BIN
package/manage/static/img/background.2f742bae.jpg


BIN
package/manage/static/img/login_form.242d2e10.png


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 153 - 0
package/manage/static/img/remixicon.95138f36.2b2ee314.svg


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/213.54496ab1.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/592.41e25131.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/654.2f4bd32f.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/962.faf0c7f7.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4 - 0
package/manage/static/js/app.66ad3b12.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-chunk-0b9a05e8.3a2acba3.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-chunk-54e012b3.6818ec02.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-chunk-844ca20f.8fd468cb.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-chunk-b3a4eaa1.509e2c01.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-chunk-c6f52c3a.a0d3ed10.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 5 - 0
package/manage/static/js/vab-plugins.8f940bfc.js


+ 73 - 0
src/dai/channel/table/card.php

@@ -0,0 +1,73 @@
+<?php
+return array
+(
+    'name' => '渠道卡密表',
+    'struct' => array
+    (
+        'channel_id' => array
+        (
+            'name'      => '渠道id',
+            'type'      => 'int(11)',
+        ),
+
+        'number' => array
+        (
+            'name'      => '卡号',
+            'type'      => 'varchar(200)',
+        ),
+
+        'pwd' => array
+        (
+            'name'      => '密码',
+            'type'      => 'varchar(200)',
+        ),
+
+        'goods' => array
+        (
+            'name'      => '商品分类+商品id',
+            'type'      => 'varchar(100)',
+        ),
+
+        'goods_id' => array
+        (
+            'name'      => '商品id',
+            'type'      => 'int(11)',
+        ),
+
+        'sku_id' => array
+        (
+            'name'      => 'SKUid',
+            'type'      => 'int(11)',
+        ),
+
+        'order_id' => array
+        (
+            'name'      => '订单id',
+            'type'      => 'int(11)',
+        ),
+
+        'status' => array
+        (
+            'name'      => '状态',
+            'type'      => 'tinyint(1)',
+            'default'   => 1,
+            'value'     => array
+            (
+                1 => '可用',
+                2 => '禁用',
+            ),
+        ),
+
+        'use_status' => array
+        (
+            'name'      => '使用状态',
+            'type'      => 'tinyint(1)',
+            'default'   => 1,
+            'value'     => array
+            (
+                1 => '未使用',
+                2 => '已使用',
+            ),
+        ),
+    ),
+);

+ 25 - 0
src/dai/channel/table/card_upload.php

@@ -0,0 +1,25 @@
+<?php
+return array
+(
+    'name' => '渠道卡密上传记录表',
+    'struct' => array
+    (
+        'channel_id' => array
+        (
+            'name'      => '渠道id',
+            'type'      => 'int(11)',
+        ),
+
+        'goods' => array
+        (
+            'name'      => '商品分类+商品id',
+            'type'      => 'varchar(100)',
+        ),
+
+        'file' => array
+        (
+            'name'      => '卡密文件',
+            'type'      => 'varchar(150)',
+        ),
+    ),
+);

+ 101 - 0
src/dai/channel/table/manage/card.php

@@ -0,0 +1,101 @@
+<?php
+$channel_id = Dever::input('set')['channel_id'] ?? 0;
+return array
+(
+    'list' => array
+    (
+        'where' => array('channel_id' => $channel_id),
+        'field'      => array
+        (
+            'id',
+            'goods' => array
+            (
+                'name' => '商品',
+                'show' => 'Dever::load("manage", "goods")->showGoodsInfo("{goods}", "{goods_id}", "{sku_id}")',
+            ),
+            'number',
+            'use_status',
+            'status' => array
+            (
+                'type' => 'switch',
+                'show'  => '{status}',
+                'active_value' => 1,
+                'inactive_value' => 2,
+            ),
+        ),
+        'data_button' => array
+        (
+            '编辑' => 'fastedit',
+        ),
+        'button' => array
+        (
+            '新增' => array('fastadd', array
+            (
+                'channel_id' => $channel_id,
+            )),
+            '上传卡密文件' => array('fastadd', array
+            (
+                'path' => 'supplier/card_upload',
+                'param' => array
+                (
+                    'set' => array('channel_id' => $channel_id),
+                ),
+            ), 'ChatLineSquare'),
+            '下载卡密模板' => array('link', Dever::host() . 'data/card.xlsx'),
+        ),
+        'search' => array
+        (
+            'channel_id' => 'hidden',
+            'sku_id' => array
+            (
+                'name' => '商品',
+                'placeholder' => '请选择商品',
+                'type' => 'cascader',
+                'option'    => 'Dever::load("goods/manage")->getGoodsSku("km")',
+                'search' => function($key, $type, $value) {
+                    $value = end($value);
+                    return $value;
+                }
+            ),
+            'number',
+            'pwd',
+            'use_status',
+            'status',
+        ),
+    ),
+    'update' => array
+    (
+        'check' => 'number',
+        'field'    => array
+        (
+            'channel_id' => array
+            (
+                'type' => 'hidden',
+            ),
+            'goods' => array
+            (
+                # 数据来源
+                'name' => '商品',
+                'type' => 'cascader',
+                'option'    => 'Dever::load("goods/manage")->getGoods("km")',
+                'remote' => 'goods/manage.getSku',
+                # 无需默认值
+                //'remote_default' => false,
+                'rules' => true,
+            ),
+            'goods_id' => array
+            (
+                'name' => '商品',
+                'type' => 'hidden',
+                'rules' => true,
+            ),
+            'sku_id' => array
+            (
+                'name' => '规格',
+                'type' => 'select',
+            ),
+            'number',
+            'pwd',
+        ),
+    ),
+);

+ 33 - 0
src/dai/channel/table/manage/card_upload.php

@@ -0,0 +1,33 @@
+<?php
+return array
+(
+    'update' => array
+    (
+        'field'    => array
+        (
+            'channel_id' => array
+            (
+                'type' => 'hidden',
+            ),
+            'goods' => array
+            (
+                # 数据来源
+                'name' => '商品',
+                'type' => 'cascader',
+                'option'    => 'Dever::load("goods/manage")->getGoods("km")',
+                'rules' => true,
+            ),
+            'file' => array
+            (
+                'type' => 'upload',
+                # 这里传入上传规则id
+                'upload' => '4',
+                # 如果上传规则是上传到云端,配置了这个将直接上传至云端,不做本地上传
+                'yun' => false,
+                # 是否支持多选
+                'multiple' => false,
+            ),
+        ),
+        'start' => 'channel/manage.uploadCard',
+    ),
+);

Vissa filer visades inte eftersom för många filer har ändrats