深度合作品牌: 强力巨彩 海佳彩亮 仰邦 利亚德 创维 京东方 海康威视
400-027-0096
LED显示屏专业解决方案服务商
Professional solution service provider

shopxo修改

 火... [复制链接]
王铭 发表于 2024-5-7 20:26:09 | 显示全部楼层 |阅读模式
问答和博文插件头部
改三个文件:
app\plugins\view\blog\index\index\index.html
app\plugins\view\blog\index\index\detail.html
app\plugins\view\blog\index\index\search.html

  1. {{:ModuleInclude('public/header')}}

  2. <!-- header top nav -->
  3. {{:ModuleInclude('public/header_top_nav')}}
复制代码

头部替换为
  1. {{include file="public/header" /}}

  2. <!-- header top nav -->
  3. {{include file="public/header_top_nav" /}}

  4. <!-- search -->
  5. {{include file="public/nav_search" /}}

  6. <!-- header nav -->
  7. {{include file="public/header_nav" /}}

  8. <!-- goods category -->
  9. {{include file="public/goods_category" /}}
复制代码
shopxo修改 LED改博客问答头部统一的方法.docx (54.07 KB, 下载次数: 2)

LED专用_v1.0.0.zip

63.41 KB, 阅读权限: 255, 下载次数: 0, 下载积分: 工资 -1

 楼主| 王铭 发表于 2024-5-7 20:41:55 | 显示全部楼层
问答、博文搜索框样式改变

文件位置/app/plugins/view/ask/index/public/head.html

删除LOGO部份代码
  1.         <a href="{{:PluginsHomeUrl('ask', 'index', 'index')}}" class="logo">
  2.             <img src="{{if empty($header_data['header_logo'])}}{{:AttachmentPathViewHandle(MyC('home_site_logo'))}}{{else /}}{{$header_data.header_logo}}{{/if}}" alt="{{:MyC('home_seo_site_title')}}" />
  3.         </a>
复制代码


搜索框代码
  1. <button class="btn btn-default am-border-0" type="submit">搜索问题</button>
复制代码



 楼主| 王铭 发表于 2024-5-8 10:42:19 | 显示全部楼层

列表显示品牌、型号、参数
pages/goods-category/goods-category.vue

实现分类页,第一行展示品牌+型号


搜索页横排,给你说方法就行:pages/goods-search/goods-search.vue文件中,搜索236行data_show_type_value,改为0


uniapp有改动就必然要重新打包发布
shopxo修改 goods-category.vue (77.91 KB, 下载次数: 0)

 楼主| 王铭 发表于 2024-5-8 11:39:17 | 显示全部楼层

搜索列表页显示样式
components\goods-list\goods-list.vue


  1. <view class="multi-text">品牌:<text style="font-weight: bold;">{{ item.brand_name }}</text>型号:<text style="margin-left:25rpx;">{{ item.model }}</text></view>
复制代码


shopxo修改 goods-list.vue (25.35 KB, 下载次数: 0)

 楼主| 王铭 发表于 3 天前 | 显示全部楼层


列表显示修改,components\goods-list\goods-list.vue,20行左右
  1. <view class="multi-text"><text style="font-weight: bold;">【{{ item.brand_name }}】</text>  <text style="margin-left:25rpx;">{{ item.model }}</text></view>
复制代码
修改后需要重新发布。
 楼主| 王铭 发表于 3 天前 | 显示全部楼层
还有那个搜索页,你要的横排,给你说方法就行:pages/goods-search/goods-search.vue文件中,搜索236行data_show_type_value,改为0

pages/goods-category/goods-category.vue
 楼主| 王铭 发表于 3 天前 | 显示全部楼层
小程序列表显示多规格的价格

components\goods-list\goods-list.vue

找到约254行

  1. // 展示价格字段
  2. propPriceField:{
  3. type: string,
复制代码
给default改为 price


 楼主| 王铭 发表于 3 天前 | 显示全部楼层

缓存文件设置

1、默认使用的文件缓存、使用Redis缓存PHP需要先安装Redis扩展
2、请确保Redis服务稳定性(Session使用缓存后、服务不稳定可能导致后台也无法登录)
3、如遇到Redis服务异常无法登录管理后台、修改配置文件[ config ]目录下[ session.php,cache.php ]文件

PHP版本设置里面,Session配置选择Redis
附件为备用文件

shopxo修改 cache.php (2.18 KB, 下载次数: 0)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系电话
案例展示
产品中心
网上商城
返回顶部