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

服务周到的上海网站建设公司微信小程序支付功能开发

服务周到的上海网站建设公司,微信小程序支付功能开发,修改wordpress 表格,个人asp网站模板下载微信小程序input自带数字输入键盘#xff0c;不过是直接调用的系统键盘#xff0c;无法个性化。 代码中使用使用了Vant WeappVant UI小程序版#xff0c;这里就不介绍相关安装说明了#xff0c;大家自行安装Vant Weapp。 json 用到的组件 {usingComponents: …微信小程序input自带数字输入键盘不过是直接调用的系统键盘无法个性化。 代码中使用使用了Vant WeappVant UI小程序版这里就不介绍相关安装说明了大家自行安装Vant Weapp。 json 用到的组件 {usingComponents: {van-cell: vant/weapp/cell/index,van-button: vant/weapp/button/index,van-popup: vant/weapp/popup/index,van-field: vant/weapp/field/index,van-row: vant/weapp/row/index,van-col: vant/weapp/col/index} }wxml 结构 van-cell title分数 value{{score || 点击打分}} bindtaptapScore /!-- 打分键盘 -- van-popupshow{{ keyboardShow }}positionbottomcustom-styleheight: 508rpx;bind:closeonClose view classkeyboradview classinputvan-fieldvalue{{ value }}custom-styleborder: 2prx solid #dcdee0placeholder请选择分数disabled//viewview classnumber-keyboardvan-row classnumber gutter10van-colwx:for{{number}}wx:keyindexdata-key{{item}}custom-classnumber-itemspan{{item 0 ? 16 : 8}}bindtaptapNumberview classnumber-item__key tap-key{{item}}/view/van-col/van-rowview classoperationview classdel tap-key bindtaptapBkspimage classdel-icon src/assets/backspace.png/image/viewview classconfirm tap-key bindtapconfirm确定/view/view/view/view /van-popupjs 内容 Page({data: {score: ,keyboardShow: false,value: ,number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, .]},tapScore() {this.setData({keyboardShow: true})},onClose() {this.setData({keyboardShow: false})},// number点击tapNumber(e) {const { key } e.currentTarget.datasetlet { value } this.datavalue key/*** 限制输入* 开头不能是小数点* 只能有一位小数点* 0开头只能跟小数点* 小数点后限制一位*/value String(value).replace(/^\./g, ).replace(., $#$).replace(/\./g, ).replace($#$, .).replace(/^00$/, 0).replace(/^0(\d)/g, $1).replace(/^(-)*(\d)\.(\d{1}).*$/, $1$2.$3)this.setData({value})},// 退格tapBksp() {let { value } this.datavalue String(value)value value.substr(0, value.length - 1)this.setData({value})},// 确定confirm() {let { value } this.datathis.setData({score: value,keyboardShow: false})}, })wxss 样式 .keyborad .number-keyboard {display: flex;background-color: #ebedf0;padding: 20rpx 20rpx 0 20rpx; } .keyborad .number-keyboard .tap-key:active {opacity: 0.8; } .keyborad .number-keyboard .number {flex: 1; } .keyborad .number-keyboard .number .number-item {margin-bottom: 20rpx; } .keyborad .number-keyboard .number .number-item .number-item__key {background-color: #fff;text-align: center;height: 80rpx;line-height: 80rpx;border-radius: 8rpx;font-size: 32rpx;font-weight: 700; } .keyborad .number-keyboard .operation {width: 200rpx;display: flex;flex-direction: column;margin: 0 0 20rpx 20rpx; } .keyborad .number-keyboard .operation .del {height: 80rpx;text-align: center;margin-bottom: 20rpx;background-color: #fff;border-radius: 8rpx;display: flex;align-items: center;justify-content: center; } .keyborad .number-keyboard .operation .del .del-icon {width: 40rpx;height: 40rpx; } .keyborad .number-keyboard .operation .confirm {flex: 1;display: flex;align-items: center;justify-content: center;background-color: #04943f;border-radius: 8rpx;color: #fff;font-size: 36rpx; } .keyborad .van-field__control--disabled {color: #666 !important; }
http://www.tj-hxxt.cn/news/132774.html

相关文章:

  • 有哪些公司建设网站wordpress 显示多媒体
  • 网站的优势和劣势潍坊企化网站建设
  • 网站前端开发得会什么软件旅游网站经营模式
  • 网站正在建设中威海网站优化
  • 淄博张店网站建设全网搜索
  • 怎么做社交网站宁波外包seo服务
  • 巴中城市建设投资有限公司网站重庆网站制作的网站
  • 阿里云备案网站备案个人门户网站建设流程
  • 高端建设网站公司哪家好企业网站的建立
  • 网站的备案可以管几年贵阳网站设计案例
  • 晋江市住房建设局网站wordpress电脑主题
  • 邢台企业做网站费用泰安招聘信息最新招聘2021
  • 杭州网站建设技术支持河北廊坊建设局网站
  • 图书馆建设网站打不开手机开发网站怎么做
  • 石家庄免费网站制作不用服务器做视频网站吗
  • 代理网站是什么网络营销的方式都有哪些
  • 网络推广员公司网站做优化少钱
  • 网站建设策划书的心得互联网品牌推广
  • 网站建设app小程序开发微网站 留言板
  • 广州市网站公司网站推广计划书怎么做
  • 网站制作小工具学网站建设app
  • 做公司网站有什么猫腻王府井网上商城官网
  • 快照打开是网站网站南乐网站建设公司
  • 网站建设公司中深圳做棋牌网站建设哪家服务好
  • 外贸网站 备案色盲能治好吗
  • 公司网站要什么做青岛网站设计品牌企业
  • 网站封装成app可以做热更新织梦cms网站更新
  • 免费发布信息网站大全注册300元免费开发小程序
  • 做男装比较好的网站有哪些专门做杂志的网站有哪些
  • 广东省网站备案系统软件技术包括哪些