当前位置:网站首页>瀚升优品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('删除成功!');
}
}
边栏推荐
- Cmake tutorial Step2 (add Library)
- 【PaddleClas】常用命令
- Generate XML schema from class
- How can cluster deployment solve the needs of massive video access and large concurrency?
- Elk log analysis system
- 在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
- Tkinter window preload
- 检查命名空间和类
- About Statistical Power(统计功效)
- IDC report: Tencent cloud database ranks top 2 in the relational database market!
猜你喜欢

mybash

第十届全球云计算大会 | 华云数据荣获“2013-2022十周年特别贡献奖”

ELK日志分析系统

Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀

每日一练:关于日期的一系列

Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!

PMP认证需具备哪些条件啊?费用多少啊?

"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications

RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测

华夏基金:基金行业数字化转型实践成果分享
随机推荐
Zabbix
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
Unicode processing in response of flash interface
Ten capabilities that cyber threat analysts should have
Sophon KG升级3.1:打破数据间壁垒,解放企业生产力
Operation before or after Teamcenter message registration
Elk log analysis system
模拟百囚徒问题
较文心损失一点点性能提升很多
mybash
U-Net: Convolutional Networks for Biomedical Images Segmentation
Why is all (()) true and any (()) false?
Leetcode exercise - 206 Reverse linked list
Can communication of nano
【PaddlePaddle】 PaddleDetection 人脸识别 自定义数据集
Zabbix
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business
Neural network self cognition model
Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
分享:中兴 远航 30 pro root 解锁BL magisk ZTE 7532N 8040N 9041N 刷机 刷面具原厂刷机包 root方法下载