12 2017 档案
摘要:// 登录 wx.login({ success: res => { var code = res.code; //返回code // console.log(code) // 小程序appid // wxd751fc845c90fbd8 // 3df95e167161ab74e09ea54eda4
阅读全文
摘要:<image mode='aspectFill' style='width:100%;height:100%' src='../../imgs/index/lovehead.png'></image>
阅读全文
摘要:var str = 'abcadeacf'; var str1 = str.replace('a', 'o'); alert(str1); // 打印结果: obcadeacf var str2 = str.replace(/a/g, 'o'); alert(str2); //打印结果: obcod
阅读全文
摘要:<view class="list"> <form bindsubmit="formSubmit"> <view class="item-addr flexa" bindtap="translate"> <view>所在城市:</view> <view style='color:#666' wx:i
阅读全文
摘要:<view class='hong-contant'> <form bindsubmit="teformSubmit"> <view class='contant-teamwork'> <view class='teamwork-inputs'> <view class='inputs-box fl
阅读全文
摘要:<view class="hong-container"> <!-- 1头部选照片 --> <view class='hong-top'> <view class='top-box flex'> <view class='top-only'> <view class='only-pic'> <vie
阅读全文
摘要:yanZhengInput: function (e) { var that = this; var yanzheng = e.detail.value; var huozheng = this.data.huozheng console.log(e.detail.value) that.setDa
阅读全文
摘要://登录输入密码 userPasswordInput: function (e) { var that = this; this.setData({ userPassword: e.detail.value }) // console.log(e.detail.value.length) // co
阅读全文
摘要:// 登录手机验证 loginPhone: function (e) { var phone = e.detail.value; if (!(/^1[34578]\d{9}$/.test(phone))) { this.setData({ ajxtrue: false }) if (phone.le
阅读全文
摘要:<view class="edition-container"> <view class='edition-content'> <!-- 1分类菜单--> <view class='edition-menu flex'> <block wx:key="edmenu" wx:for="{{edmenu
阅读全文
摘要:let season =‘1,2,3’; // console.log(season.length) if (season){ if (season.length==1){ seasonChe1=season.substr(0); seasonChe1 = parseInt(seasonChe1)
阅读全文
摘要:JS data: { // 初始化滑动条数据 menuIndex:0, // 每个菜单的宽度 onlyWidth: 70, // 右侧的margin marginWidth:10, // 菜单总长 menuWidth:0, lists:[ { list: 'a1' }, { list: 'a2' }
阅读全文