admin 管理员组

文章数量: 1184232


2024年2月4日发(作者:html5测试网页)

// pages/index/t app = getApp()Page({ data: { token:'' }, onGotUserInfo: function (e) { var that = this if ( != 'ok' && != 'ok') { ting({ success: (res) => { //箭头函数为了处理this的指向问题

if (tting["fo"]) { ({ success: function (data) { ('获取登录 Code:' + ) var postData = { code: }; t({ url: '/?mod=xcxlogin&code=' + + '&nickname=' + me, data: {}, header: { 'content-type': 'application/json' }, success: function (res) { (); ='ok'; rage({ key: "unionid", data: d }) teTo({ url: }) }, fail: function () { ('1'); } }) }, fail: function () { ('登录获取Code失败!'); } }) } } }) } else{ teTo({ url: }) } }})六、发送请求

goitem:function (e) { teTo({ url: '/pages/item/item?url=' + }) },B页: 详情 产检 建档 分娩 onLoad: function (options) { var that = this; () if ( === 'cj') { a({ currentTab: '0', btn: '产检', set: 'cj' }); } else if ( === 'jd') { a({ currentTab: '1', btn: '建档', set: 'jd' }); } else { a({ currentTab: '2', btn: '分娩', set: 'fm' }); } }未完待续……


本文标签: 处理 获取 登录 网页 请求