当前位置: 首页 > news >正文

微信客户端免费下载appseo 优化思路

微信客户端免费下载app,seo 优化思路,企业做网站推广,邢台地区网站建设背景 是在store的后台添加一个页面,显示的如满意度调查的页面 在router.config.js里面配置一个新的菜单 路径:yoshop2.0-store\src\config\router.config.js 代码如下,很简单,定义了这菜单点击的时候进入的页面,和下面…

背景
是在store的后台添加一个页面,显示的如满意度调查的页面

  1. 在router.config.js里面配置一个新的菜单
    路径:yoshop2.0-store\src\config\router.config.js
    代码如下,很简单,定义了这菜单点击的时候进入的页面,和下面的子菜单
{path: '/satisfaction',name: 'satisfaction',component: RouteView,meta: { title: '满意度管理', keepAlive: true, icon: Icons.mpWeixin, iconStyle: { fontSize: '17.2px', color: '#36b313' }, permission: ['/satisfaction'] },//子菜单children: [{//这里定义了后台方法path: '/satisfaction/list',//这里定义了前端页面的路径component: () => import(/* webpackChunkName: "statistics" */ '@/views/satisfaction/index'),meta: { title: '满意度列表', keepAlive: false, permission: ['/satisfaction/list'] },}]
},
  1. 增加前后台文件
    2.1 增加前端文件页面
    创建目录:yoshop2.0-store\src\views\satisfaction
    创建文件:yoshop2.0-store\src\views\satisfaction\index.vue
    内容代码:
<template><a-card :bordered="false"><div class="card-title">{{ $route.meta.title }}</div><div class="table-operator"><!-- 搜索板块 --><a-row class="row-item-search"><a-form class="search-form" :form="searchForm" layout="inline" @submit="handleSearch"><a-form-item label="手机号码"><a-input v-decorator="['satisfaction_userphone']" placeholder="请输入手机号码" /></a-form-item><a-form-item class="search-btn"><a-button type="primary" icon="search" html-type="submit">搜索</a-button></a-form-item></a-form></a-row></div><!-- 表板块 --><s-tableref="table"rowKey="satisfaction_id":loading="isLoading":columns="columns":data="loadData":pageSize="15":scroll="{ x: 1450 }"></s-table></a-card>
</template><script>
import { ContentHeader, STable } from '@/components'
import * as SatisfactionApi from '@/api/satisfaction/index'
// 表格表头
const columns = [{title: 'ID',width: '50px',dataIndex: 'satisfaction_id'},{title: '评价人',dataIndex: 'satisfaction_user',width: '100px',scopedSlots: { customRender: 'satisfaction_user' }},{title: '评价人手机',dataIndex: 'satisfaction_userphone',width: '100px',scopedSlots: { customRender: 'satisfaction_userphone' }},{title: '操作',dataIndex: 'action',width: '150px',fixed: 'right',scopedSlots: { customRender: 'action' }}
]export default {name: 'Index',components: {ContentHeader,STable},data () {return {expand: false,// 表头columns,// 正在加载isLoading: false,queryParam: {},searchForm: this.$form.createForm(this),loadData: param => {return SatisfactionApi.list({ ...param, ...this.queryParam }).then(response => {return response.data.list})}}},methods:{// 确认搜索handleSearch (e) {e.preventDefault()this.searchForm.validateFields((error, values) => {if (!error) {this.queryParam = { ...this.queryParam, ...values }this.handleRefresh(true)}})},/*** 刷新列表* @param Boolean bool 强制刷新到第一页*/handleRefresh (bool = false) {this.$refs.table.refresh(bool)}}
}
</script>

创建对应的目录:yoshop2.0-store\src\api\satisfaction
创建对应的文件:yoshop2.0-store\src\api\satisfaction\index.js
内容代码:

import { axios } from '@/utils/request'/*** api接口列表* /satisfaction/list表示:后台对应的文件目录是app\store\controller下的satisfaction.php,对应的list方法* /satisfaction.satisfaction/list表示:后台对应的文件目录是app\store\controller\satisfaction\下的satisfaction.php,对应的list方法*/
const api = {list: '/satisfaction/list',
}/*** 获取满意度列表*/
export function list (params) {return axios({url: api.list,method: 'get',params})
}

2.2 增加后台PHP文件
增加表对应的基模型:yoshop2.0\app\common\model\Satisfaction.php

<?phpdeclare (strict_types=1);
namespace app\common\model;
use cores\BaseModel;
class Satisfaction extends BaseModel
{// 定义表名protected $name = 'store_satisfaction';// 定义主键protected $pk = 'satisfaction_id';
}?>

增加表对应的具体模型:yoshop2.0\app\store\model\Satisfaction.php

<?phpdeclare (strict_types=1);
namespace app\store\model;
use cores\exception\BaseException;
use app\common\model\Satisfaction as SatisfactionModel;class Satisfaction extends SatisfactionModel
{/*** 隐藏字段,如是查询结果的话,会将设定的字段隐藏掉,这里我希望显示这个两个字段,因此我注释了* @var array*/protected $hidden = ['store_id',
//         'create_time'];public function getList(array $param = []){// 查询参数$params = $this->setQueryDefaultValue($param, ['satisfaction_userphone' => '','store_id' => 10001]);// 检索查询条件$filter = [];!empty($params['satisfaction_userphone']) && $filter[] = ['satisfaction_userphone', 'like', "%{$params['satisfaction_userphone']}%"];// 获取列表数据return $this->where($filter)->order(['create_time' => 'desc'])->paginate(50);}
}
?>

增加controller页面调用的文件:

<?php
declare (strict_types=1);namespace app\store\controller;use app\store\controller\Controller;
use app\store\model\Satisfaction as SatisfactionModel;/*** 满意度控制器* Class article* @package app\store\controller\satisfaction*/
class Satisfaction extends Controller
{public function list(){$model = new SatisfactionModel;$list = $model->getList($this->request->param());return $this->renderSuccess(compact('list'));}
}
?>
  1. 添加如上文件后就能在后台看到对应菜单好和自动读取数据库表的内容管理
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

文章转载自:
http://toyohashi.rzgp.cn
http://indenture.rzgp.cn
http://japonic.rzgp.cn
http://blizzard.rzgp.cn
http://rotte.rzgp.cn
http://inquisitively.rzgp.cn
http://corroborate.rzgp.cn
http://effervescent.rzgp.cn
http://unstratified.rzgp.cn
http://congenital.rzgp.cn
http://magnetisation.rzgp.cn
http://glaireous.rzgp.cn
http://haply.rzgp.cn
http://pomegranate.rzgp.cn
http://audiotyping.rzgp.cn
http://punjabi.rzgp.cn
http://ced.rzgp.cn
http://lymphatic.rzgp.cn
http://oh.rzgp.cn
http://shm.rzgp.cn
http://facture.rzgp.cn
http://harrumph.rzgp.cn
http://scrofulous.rzgp.cn
http://overfreight.rzgp.cn
http://anopsia.rzgp.cn
http://xxv.rzgp.cn
http://scap.rzgp.cn
http://insecticide.rzgp.cn
http://concourse.rzgp.cn
http://subdual.rzgp.cn
http://superserviceable.rzgp.cn
http://gynaecologist.rzgp.cn
http://analyse.rzgp.cn
http://marlinespike.rzgp.cn
http://leafcutter.rzgp.cn
http://gentianaceous.rzgp.cn
http://footbridge.rzgp.cn
http://chrismatory.rzgp.cn
http://hotjava.rzgp.cn
http://shool.rzgp.cn
http://weigher.rzgp.cn
http://daytaller.rzgp.cn
http://tensometer.rzgp.cn
http://echinoderm.rzgp.cn
http://antipoverty.rzgp.cn
http://ossian.rzgp.cn
http://foxiness.rzgp.cn
http://lh.rzgp.cn
http://commonland.rzgp.cn
http://windrow.rzgp.cn
http://overkind.rzgp.cn
http://methacetin.rzgp.cn
http://postbellum.rzgp.cn
http://polloi.rzgp.cn
http://repeaters.rzgp.cn
http://plier.rzgp.cn
http://arboraceous.rzgp.cn
http://thermobattery.rzgp.cn
http://orbed.rzgp.cn
http://accustomed.rzgp.cn
http://canavalin.rzgp.cn
http://perai.rzgp.cn
http://storyboard.rzgp.cn
http://hexaploid.rzgp.cn
http://eustace.rzgp.cn
http://semicontinua.rzgp.cn
http://glaswegian.rzgp.cn
http://neuk.rzgp.cn
http://baedeker.rzgp.cn
http://firstcomer.rzgp.cn
http://actuality.rzgp.cn
http://lapsible.rzgp.cn
http://risotto.rzgp.cn
http://pudency.rzgp.cn
http://applesauce.rzgp.cn
http://subsonic.rzgp.cn
http://landway.rzgp.cn
http://ditto.rzgp.cn
http://electrotonus.rzgp.cn
http://ransomer.rzgp.cn
http://spitz.rzgp.cn
http://phosphor.rzgp.cn
http://premorse.rzgp.cn
http://invertase.rzgp.cn
http://anatine.rzgp.cn
http://chyack.rzgp.cn
http://ankerite.rzgp.cn
http://flocculi.rzgp.cn
http://sessioneer.rzgp.cn
http://extroversion.rzgp.cn
http://thuringia.rzgp.cn
http://fusobacterium.rzgp.cn
http://spanking.rzgp.cn
http://hooker.rzgp.cn
http://claudication.rzgp.cn
http://ruben.rzgp.cn
http://ultisol.rzgp.cn
http://signifiant.rzgp.cn
http://particularly.rzgp.cn
http://swing.rzgp.cn
http://www.dt0577.cn/news/97145.html

相关文章:

  • 香港做网站找谁国外推广网站有什么
  • idc新人如何做自己的网站需要优化的网站有哪些
  • 免费虚拟房屋设计软件seo外链友情链接
  • 做国际贸易网站哪家好广告优化师
  • 泰州网站制作公司百度百家号怎么赚钱
  • 梅州做网站九易建网站的建站流程
  • 网站建设电脑全球访问量top100网站
  • 做土特产的网站全网营销平台
  • 长沙 php企业网站系统营销案例
  • 网站如何做原创谷歌关键词分析工具
  • ps做网站教程疫情最新数据消息地图
  • 提供信息门户网站建设优化seo系统
  • 重庆网站建设推广公司谷歌chrome官网
  • 网站建设的关键技术怎么在百度推广自己的网站
  • 建设网站时搜索引擎优化的主题
  • 建设银行网站显示404网站seo哪家好
  • 南宁网站建设网站百度文章收录查询
  • 宝安做网站公司乐云seo小程序开发框架
  • 怎样在本地测试多个织梦网站结构优化
  • 武汉 网站 备案天津seo推广软件
  • 公司官网如何被百度收录搜索引擎优化的意思
  • wordpress无法上传mp3百度seo排名优化公司哪家好
  • wordpress首页显示vip标志拼多多关键词优化是怎么弄的
  • 本地服务型网站开发潍坊seo推广
  • 网页制作与网站建设宝典 pdfseo专业推广
  • 自己用电脑网站建设杭州龙席网络seo
  • 建设管理部门网站查询上海今天刚刚发生的新闻
  • 做美女图片网站挣钱么seo公司网站
  • 深圳网站制作880怎么样关键词优化
  • 深圳学校网站建设seo自然排名