12345678910111213141516171819202122232425262728293031323334353637383940 |
- // pages/tabber/news/index.js
- const app=getApp();
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- selectInfo: {}
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
- },
- saoma:function(){
- wx.scanCode({
- onlyFromCamera: true,
- success (res) {
- console.log( res.result.substr(1));
- var regstr = new RegExp('(^|&|/?)orde_num=([^&|/?]*)', 'i');
- var exp = res.result.match(regstr);
- console.log(exp);
- wx.navigateTo({
- url: '/pages/take/lattice?deviceId='+exp[2],
- })
- }
-
- })
- },
-
- })
|