随笔分类 -  [26]微小程序

1 2 3 4 5 ··· 8 下一页
微信公众平台 微信端开发
摘要:官网如下: https://youzan.github.io/vant-weapp/#/dialog 看效果 1、json中引入 "usingComponents": { "van-dialog": "/miniprogram_npm/@vant/weapp/dialog/index" } 2、js 阅读全文
posted @ 2021-12-22 18:00 TBHacker 阅读(2763) 评论(0) 推荐(0) 编辑
摘要:可以使用AppData实时查看变量值是否变化。 非常的方便。 下面是代码详情: html <view class="container"> <!-- 第一部分 --> <view class="top"> <view class="image-view"> <image src="../../ima 阅读全文
posted @ 2021-12-21 15:30 TBHacker 阅读(433) 评论(0) 推荐(0) 编辑
摘要:我们用微信开发者工具开发小程序的时候,经常遇到文件不自动保存的情况,需要手动Ctrl + S,很烦人。 怎么自动保存呢? 按照如下步骤: 1、设置 2、编辑器设置 3、勾选“修改文件时自动保存” 阅读全文
posted @ 2021-12-21 11:37 TBHacker 阅读(1526) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/422101/202112/422101-20211221105859115-990066879.png) 阅读全文
posted @ 2021-12-21 10:59 TBHacker 阅读(109) 评论(0) 推荐(0) 编辑
摘要:/** * 获取小程序太阳码 */ public function getXcxCodeUrl($access_token,$scene,$page,$check_path = true,$env_version = 'release') { $request_data = [ 'page' => 阅读全文
posted @ 2021-12-18 17:47 TBHacker 阅读(819) 评论(0) 推荐(0) 编辑
摘要:下载 https://github.com/dragonation/wechat-devtools 有点慢,自己想办法 安装deepin-wine wget -O- https://deepin-wine.i-m.dev/setup.sh | sh 解压 sudo mkdir /opt/wxdt & 阅读全文
posted @ 2021-03-06 11:38 TBHacker 阅读(1108) 评论(0) 推荐(0) 编辑
摘要:<button open-type="contact" class="info_type"> <view class="type_left"> <image src="/images/person/contact.png" /> </view> <view class="type_right"> < 阅读全文
posted @ 2020-10-21 16:28 TBHacker 阅读(434) 评论(0) 推荐(0) 编辑
摘要:html <view class="search"> <image class="search_icon" src="/images/search.png" alt=""></image> <input class="search_input" type="text" placeholder="请输 阅读全文
posted @ 2020-10-13 10:50 TBHacker 阅读(266) 评论(0) 推荐(0) 编辑
摘要:<view class="order_list"> <view class="order_top">商品清单</view> <image class="img" src="/images/common/plus.png" bind:tap="addProduct" /> </view> <view 阅读全文
posted @ 2020-09-27 16:49 TBHacker 阅读(287) 评论(0) 推荐(0) 编辑
摘要:<view class="area"> <text class="left" space="ensp">联系地址:</text> <view class="right"> <picker mode="region" bindchange="bindRegionChange" value="{{reg 阅读全文
posted @ 2020-09-24 14:59 TBHacker 阅读(451) 评论(0) 推荐(0) 编辑
摘要:<view> <text space="ensp">你好 啊 哈哈哈(空格是中文字符一半大小)</text> </view> <view> <text space="emsp">你好 啊 哈哈哈(空格是中文字符大小)</text> </view> <view> <text space="nbsp"> 阅读全文
posted @ 2020-09-23 15:40 TBHacker 阅读(810) 评论(0) 推荐(0) 编辑
摘要:基础工具 var Session = { getData: function (key) { return wx.getStorageSync(key) || null; }, setData: function (key,data) { wx.setStorageSync(key, data); 阅读全文
posted @ 2020-09-11 15:29 TBHacker 阅读(227) 评论(0) 推荐(0) 编辑
摘要:如果不处理,很丑。 加上下面的代码,就会好看多了。 <script> // 初始化 wx.config({ debug: false, appId: '{$weixin.appId}', timestamp: '{$weixin.timestamp}', nonceStr: '{$weixin.no 阅读全文
posted @ 2020-08-29 16:01 TBHacker 阅读(1854) 评论(0) 推荐(0) 编辑
摘要:APPID,AppSecret(需要管理员扫码),IP白名单(需要管理员扫码) 业务域名,JS安全接口域名,网页授权域名配置。 设置业务域名后,在微信内访问该域名下页面时,不会被重新排版。用户在该域名上进行输入时,不出现下图所示的安全提示。 设置JS接口安全域名后,公众号开发者可在该域名下调用微信开 阅读全文
posted @ 2020-08-28 11:57 TBHacker 阅读(1781) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-07-16 15:22 TBHacker 阅读(0) 评论(0) 推荐(0) 编辑
摘要:<?php /** * User: Eden * Date: 2019/3/21 * 共有内容 */ namespace Common\Util; use Vendor\Func\Http; class WxUtil extends CommonUtil { public function __co 阅读全文
posted @ 2020-07-03 15:24 TBHacker 阅读(573) 评论(0) 推荐(0) 编辑
摘要:基类 <?php /** * User: Eden * Date: 2019/3/21 * 共有内容 */ namespace Common\Service; use Vendor\Func\Http; class AliService extends CommonService { public 阅读全文
posted @ 2020-06-06 16:07 TBHacker 阅读(1652) 评论(0) 推荐(0) 编辑
摘要:引入 @font-face { font-family: 'huakang'; src:url('https://cdn.caomall.net/huakang_hupin.ttf'); } 使用 .huakang { font-family: 'huakang'; } 少量使用的话,可以用字蛛压缩 阅读全文
posted @ 2020-06-04 11:56 TBHacker 阅读(1404) 评论(0) 推荐(0) 编辑
摘要:字蛛是一个智能 WebFont 压缩工具,它能自动分析出页面使用的 WebFont 并进行按需压缩。 官网 http://font-spider.org/ github https://github.com/aui/font-spider 安装 sudo npm install font-spide 阅读全文
posted @ 2020-06-04 11:37 TBHacker 阅读(597) 评论(0) 推荐(0) 编辑
摘要:html <block wx:if="{{index_info.video != false}}"> <view class="tv"> <view class="head1"> <text class="one">动漫<text >说</text></text> </view> <view cla 阅读全文
posted @ 2020-06-03 21:33 TBHacker 阅读(927) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 8 下一页