当前位置:网站首页>瀚升优品app翰林优商系统开发功能介绍
瀚升优品app翰林优商系统开发功能介绍
2022-07-05 17:55:00 【weixin_2047679575】
最近新开发了一套(瀚升优品app)翰林优商系统,其主要功能有商城系统,会员系统,任务系统,支付系统,积分管理系统,在线咨询系统等等。
瀚升优品app特点:
1、精选美服在线特约手机购物软件,实时更新各类活动优惠和福利商品。
2、通过优品软件不断搜索大量低价好物,精选优质商品优惠多多。
3、给消费者带来更多优质的网购体验,丰富好货低价购买省钱又放心。
瀚升优品app优势:
1、商品种类齐全物美价廉,让您放心买到好货。
2、移动社交电商APP,旨在为用户精选高性价比的优质产品。
3、产品涉及食品、美容、服装、母婴、日用品等多个领域。
瀚升优品app亮点:
1、最新最全面的购物体验不会让您失望,大家都可以来试试。
2、每个人都可以买到适合自己的好货,以上折扣和奖励相当全面。
3、放心体验,这么多折扣不会让你空手而归,大家可以一起来。
瀚升优品app小编点评:
1、各种商品的更新还是很及时的,天天都可以看到各种各样的新品信息;
2、直接手机在线下单没有任何的限制,所有的商品都经过了专人的审核;
3、还可以通过这个平台来领取优惠券,只要你下单购物就可以直接的进行抵扣。
瀚升 优品 app系统开发源码分享:
<?php
namespace app\admin\controller\article;
use think\facade\Route as Url;
use app\admin\controller\AuthController;
use app\admin\model\system\SystemAttachment;
use app\admin\model\article\{ArticleCategory as ArticleCategoryModel,Article as ArticleModel};
use crmeb\services\{FormBuilder as Form,UtilService as Util,JsonService as Json};
/**
* 文章分类管理 控制器
* */
class ArticleCategory extends AuthController
{
/**
* 分类管理
* */
public function index()
{
$where = Util::getMore([
['status', ''],
['title', ''],
], $this->request);
$this->assign('where', $where);
$this->assign(ArticleCategoryModel::systemPage($where));
return $this->fetch();
}
/**
* 添加分类管理
* */
public function create()
{
$f = array();
$f[] = Form::select('pid', '父级id')->setOptions(function () {
$list = ArticleCategoryModel::getTierList();
$menus[] = ['value' => 0, 'label' => '顶级分类'];
foreach ($list as $menu) {
$menus[] = ['value' => $menu['id'], 'label' => $menu['html'] . $menu['title']];
}
return $menus;
})->filterable(1);
$f[] = Form::input('title', '分类名称');
$f[] = Form::input('intr', '分类简介')->type('textarea');
$f[] = Form::frameImageOne('image', '分类图片', Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')))->icon('image')->width('100%')->height('500px');
$f[] = Form::number('sort', '排序', 0);
$f[] = Form::radio('status', '状态', 1)->options([['value' => 1, 'label' => '显示'], ['value' => 0, 'label' => '隐藏']]);
$form = Form::make_post_form('添加分类', $f, Url::buildUrl('save'));
$this->assign(compact('form'));
return $this->fetch('public/form-builder');
}
/**
* s上传图片
* */
public function upload()
{
$res = Upload::instance()->setUploadPath('article')->image('file');
if (!is_array($res)) return Json::fail($res);
SystemAttachment::attachmentAdd($res['name'], $res['size'], $res['type'], $res['dir'], $res['thumb_path'], 5, $res['image_type'], $res['time']);
return Json::successful('图片上传成功!', ['name' => $res['name'], 'url' => path_to_url($res['thumb_path'])]);
}
/**
* 保存分类管理
* */
public function save()
{
$data = Util::postMore([
'title',
'pid',
'intr',
['new_id', []],
['image', []],
['sort', 0],
'status',]);
if (!$data['title']) return Json::fail('请输入分类名称');
if (count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张');
if ($data['sort'] < 0) return Json::fail('排序不能是负数');
$data['add_time'] = time();
$data['image'] = $data['image'][0];
$new_id = $data['new_id'];
unset($data['new_id']);
$res = ArticleCategoryModel::create($data);
if (!ArticleModel::saveBatchCid($res['id'], implode(',', $new_id))) return Json::fail('文章列表添加失败');
return Json::successful('添加分类成功!');
}
/**
* 修改分类
* */
public function edit($id)
{
if (!$id) return $this->failed('参数错误');
$article = ArticleCategoryModel::get($id)->getData();
if (!$article) return Json::fail('数据不存在!');
$f = array();
$f[] = Form::select('pid', '父级id', (string)$article['pid'])->setOptions(function () {
$list = ArticleCategoryModel::getTierList();
$menus[] = ['value' => 0, 'label' => '顶级分类'];
foreach ($list as $menu) {
$menus[] = ['value' => $menu['id'], 'label' => $menu['html'] . $menu['title']];
}
return $menus;
})->filterable(1);
$f[] = Form::input('title', '分类名称', $article['title']);
$f[] = Form::input('intr', '分类简介', $article['intr'])->type('textarea');
$f[] = Form::frameImageOne('image', '分类图片', Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')), $article['image'])->icon('image')->width('100%')->height('500px');
$f[] = Form::number('sort', '排序', $article['sort']);
$f[] = Form::radio('status', '状态', $article['status'])->options([['value' => 1, 'label' => '显示'], ['value' => 0, 'label' => '隐藏']]);
$form = Form::make_post_form('编辑分类', $f, Url::buildUrl('update', array('id' => $id)));
$this->assign(compact('form'));
return $this->fetch('public/form-builder');
}
public function update($id)
{
$data = Util::postMore([
'pid',
'title',
'intr',
// ['new_id',[]],
['image', []],
['sort', 0],
'status',]);
if (!$data['title']) return Json::fail('请输入分类名称');
if (count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张');
if ($data['sort'] < 0) return Json::fail('排序不能是负数');
$data['image'] = $data['image'][0];
if (!ArticleCategoryModel::get($id)) return Json::fail('编辑的记录不存在!');
// if(!ArticleModel::saveBatchCid($id,implode(',',$data['new_id']))) return Json::fail('文章列表添加失败');
// unset($data['new_id']);
ArticleCategoryModel::edit($data, $id);
return Json::successful('修改成功!');
}
/**
* 删除分类
* */
public function delete($id)
{
$res = ArticleCategoryModel::delArticleCategory($id);
if (!$res)
return Json::fail(ArticleCategoryModel::getErrorInfo('删除失败,请稍候再试!'));
else
return Json::successful('删除成功!');
}
}
边栏推荐
- Redis基础
- Access the database and use redis as the cache of MySQL (a combination of redis and MySQL)
- 「运维有小邓」用于云应用程序的单点登录解决方案
- How awesome is the architecture of "12306"?
- LeetCode每日一题:合并两个有序数组
- 消除`if()else{ }`写法
- Memory management chapter of Kobayashi coding
- 基于YOLOv3的口罩佩戴检测
- 第十一届中国云计算标准和应用大会 | 华云数据成为全国信标委云计算标准工作组云迁移专题组副组长单位副组长单位
- Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
猜你喜欢
第十一届中国云计算标准和应用大会 | 华云数据成为全国信标委云计算标准工作组云迁移专题组副组长单位副组长单位
mybash
Matlab reference
nano的CAN通信
Leetcode daily question: the first unique character in the string
JVM third talk -- JVM performance tuning practice and high-frequency interview question record
To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
Anaconda中配置PyTorch环境——win10系统(小白包会)
Thesis reading_ Medical NLP model_ EMBERT
nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)
随机推荐
Daily exercise: a series of dates
Career advancement Guide: recommended books for people in big factories
寻找第k小元素 前k小元素 select_k
rsync
[paddlepaddle] paddedetection face recognition custom data set
"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
删除数组中的某几个元素
Tkinter window preload
Le cours d'apprentissage de la machine 2022 de l'équipe Wunda arrive.
Leetcode exercise - 206 Reverse linked list
分享:中兴 远航 30 pro root 解锁BL magisk ZTE 7532N 8040N 9041N 刷机 刷面具原厂刷机包 root方法下载
Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities
Cmake tutorial step5 (add system self-test)
EPM related
“12306” 的架构到底有多牛逼?
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
钉钉开放平台小程序API的缓存接口都有哪些内容?
登录连接 CDB 和 PDB
[BeanShell] there are many ways to write data locally
图片数据不够?我做了一个免费的图像增强软件