pages/InformationPage/InformationPage.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
let api = require("../../utils/api")
let newApi = require("../../utils/NewApi")
let CommonMethod = require("../../utils/CommonMethod")
let fun = require("../../utils/function")
import Notify from '../../miniprogram/miniprogram_npm/@vant/weapp/notify/notify';
Page({
/**
* 页面的初始数据
*/
data: {
fileList: [],
example: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
let that = this;
if (options.class == "taxi") {
CommonMethod.identityTaxi().then(function(res){
that.setData({
isClass: 'taxi'
})
that.query()
})
} else if (options.class == "recovery") {
this.recoveryQuery()
} else if (options.class == "repair") {
this.repairQuery()
}
},
// 维修
async repairQuery(){
let that = this;
const one = await CommonMethod.MaintenanceMan()
const two = await that.MaintenanceManInformation(one)
},
//回收
async recoveryQuery(){
let that = this;
const one = await CommonMethod.RecyclingMan()
const two = await that.RecyclingManData(one)
},
// 请求出租车资料
query() {
let that = this;
newApi.get({
data: {
busstype: 'taxi_demail',
taxiid: wx.getStorageSync('isTaxi')
},
success(res) {
console.log(res)
// 返回参数
if (res.returnCode == undefined) {
// let data = res;
// 更改匹配返回的数据 /改为"
后面还有 237 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
