wx.request({url: 'https://l網(wǎng)址er.aspx',data: {openId: wx.getStorageSync('openId'),requestType: "query"},success: function (response) {// //console.log(response)//console.log(response.data)//console.log(response.statusCode)if (response.statusCode == '200') {var count = response.data.indexOf("\r\n\r\n<!DOC");var str = response.data.substring(0, count)var json = JSON.parse(str)//保存信息console.log(str+"長度" + json.length)} else {wx.showToast({title: '信息讀取失敗,請聯(lián)系客服!',icon: 'success',duration: 1500})}}});validatemobile: function (mobile) {if (mobile.length == 0) {wx.showToast({title: '請輸入手機號!',icon: 'success',duration: 1500})return false;}if (mobile.length != 11) {wx.showToast({title: '手機號長度有誤!',icon: 'success',duration: 1500})return false;}var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;if (!myreg.test(mobile)) {wx.showToast({title: '手機號有誤!',icon: 'success',duration: 1500})return false;}return true;}text{overflow:hidden;//超出一行文字自動隱藏text-overflow:ellipsis;//文字隱藏后添加省略號white-space:nowrap;//強制不換行}或者多行的用這些:
display: -webkit-box;word-break: break-all;text-overflow: ellipsis;font-size: 32rpx;overflow: hidden;-webkit-box-orient: vertical;-webkit-line-clamp:2;