10 2023 档案

摘要:直接上代码 在后台写 允许跨域的域名, $allowedDomains = array("https://example1.com", "https://example2.com"); $origin = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP 阅读全文
posted @ 2023-10-30 11:27 79524795 阅读(9) 评论(0) 推荐(0) 编辑
摘要:Uniapp中弹窗 直接上代码 uni.showModal({ title: '提示', content: '这是一个自定义按钮文字的模态对话框', confirmText: '自定义确定', // 自定义确定按钮的文字 cancelText: '自定义取消', // 自定义取消按钮的文字 succ 阅读全文
posted @ 2023-10-27 18:16 79524795 阅读(133) 评论(0) 推荐(0) 编辑
摘要: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) 编辑
摘要:把文件局搜索一下 event中的 在addon文件里面会找到答案 阅读全文
posted @ 2023-10-21 12:22 79524795 阅读(17) 评论(0) 推荐(0) 编辑
摘要:是这个表 local_delivery_package 阅读全文
posted @ 2023-10-19 13:34 79524795 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Uniapp代码页面嵌入HTML链接地址 实现路径规划 Uniapp代码如下 <template> <view> <web-view :src="htmlContent"></web-view> </view> </template> <script> export default { data() 阅读全文
posted @ 2023-10-17 14:50 79524795 阅读(789) 评论(0) 推荐(0) 编辑
摘要:直接上代码 function go(a){ if(a == 'shifu'){ //移除属性 var shop = document.getElementsByClassName("shop")[0]; shop.classList.remove("ns-border-color"); //增加属性 阅读全文
posted @ 2023-10-15 18:25 79524795 阅读(1839) 评论(0) 推荐(1) 编辑
摘要:PHP将一个数字分成若干个数相加 直接上代码 public function pintuan(){ // 示例用法 $number = 10; // 要分成几加几加几 $parts = 3; // 分成3个数相加 $result = $this-> splitNumber($number, $par 阅读全文
posted @ 2023-10-12 14:26 79524795 阅读(73) 评论(0) 推荐(0) 编辑

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