随笔分类 -  niushop

摘要:Niushop中弹窗确定取消 直接上代码 uni.showModal({ title: '提示', content: '必须先购买VIP商品?', success: res => { if (res.confirm) { } }, }) 阅读全文
posted @ 2023-10-23 18:25 79524795 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Niushop中uniapp的访问接口 直接上代码 this.$api.sendRequest({ url: '/pintuan/api/order/isbuy', success: res => { console.log(res) if(res.code == 1){ //跳转VIP } }, 阅读全文
posted @ 2023-10-23 18:24 79524795 阅读(50) 评论(0) 推荐(0) 编辑
摘要:# Niushop改短信教程 ## 1.打开控制器 `https://www.****.com//api/login/mobileCode` `https://www.****.com//api/register/mobileCode` ## 2.新增代码 点击查看代码 ``` public fun 阅读全文
posted @ 2023-09-05 19:49 79524795 阅读(28) 评论(0) 推荐(0) 编辑
摘要:就在这里: 还有一处 diy组件 阅读全文
posted @ 2023-09-05 18:12 79524795 阅读(9) 评论(0) 推荐(0) 编辑
摘要:## 注意压缩 ![](https://img2023.cnblogs.com/blog/1805284/202308/1805284-20230822033928513-462550981.png) ## 删除代码 `找到这个文件 注释掉` ![image](https://img2023.cnb 阅读全文
posted @ 2023-08-22 03:39 79524795 阅读(75) 评论(0) 推荐(0) 编辑
摘要:路径错误的话,看图,如果是网页正常打开,但是刷新就出错,那么配置文件没配置好 location /web{ try_files $uri $uri/web/ /web/index.html; } 阅读全文
posted @ 2023-06-13 21:13 79524795 阅读(206) 评论(0) 推荐(0) 编辑
摘要:uniapp JSON.stringify JSON.parse 阅读全文
posted @ 2023-04-28 17:53 79524795 阅读(607) 评论(0) 推荐(0) 编辑
摘要:这几天修改niusop,遇到niushop APP端头像无法上传问题,以下是解决方案; niushop版本 4.1.12 后台修改: . /app/api/controller/Member.php中 modifyheadimg()方法 修改成: /** * 修改会员头像 * @return str 阅读全文
posted @ 2023-04-19 16:20 79524795 阅读(18) 评论(0) 推荐(0) 编辑
摘要:## 如图所示 ![image](https://img2023.cnblogs.com/blog/1805284/202302/1805284-20230216180957005-1524088686.png) 明明勾选选中,保存了,但是却不生效,解决方案如下 打开数据表`site_diy_vie 阅读全文
posted @ 2023-02-16 18:14 79524795 阅读(36) 评论(0) 推荐(0) 编辑
摘要:#部署ssl 强制https 还有就是修改完了之后,切换浏览器试 ## 多商户 ``` ``` ## 单商户 ``` 配置好后台 设置-地图设置-腾讯地图key 找到页面代码,然后打开三个js的注释就行, ``` 阅读全文
posted @ 2022-08-05 16:42 79524795 阅读(262) 评论(0) 推荐(0) 编辑
摘要:<diy-bottom-nav type="shop"></diy-bottom-nav> 阅读全文
posted @ 2022-06-20 16:34 79524795 阅读(20) 评论(0) 推荐(0) 编辑
摘要:menu表里面,这几个字段弄成不一样的即可 阅读全文
posted @ 2022-04-19 18:14 79524795 阅读(82) 评论(0) 推荐(0) 编辑
摘要:设置为0即可 阅读全文
posted @ 2022-04-06 11:49 79524795 阅读(59) 评论(0) 推荐(0) 编辑
摘要:niushop后台 设置 -缓存管理 数据缓存 : 在方法里面直接写 use think\facade\Cache; Cache::clear(); //清除缓存 数据表缓存 if (is_dir('runtime/schema')) { //清除缓存 rmdirs("schema"); } 在操作 阅读全文
posted @ 2022-03-31 17:44 79524795 阅读(55) 评论(0) 推荐(0) 编辑
摘要:niushop接口都会 继承一个父类 BaseApi去验证。把接口后面加上 ?app_type=pc 即可; 阅读全文
posted @ 2022-03-30 10:57 79524795 阅读(73) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示