|
@@ -1,4 +1,5 @@
|
|
// pages/my/cleanReport/cleanReport.js
|
|
// pages/my/cleanReport/cleanReport.js
|
|
|
|
+var app = getApp()
|
|
Page({
|
|
Page({
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -12,14 +13,40 @@ Page({
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
'http://bpic.588ku.com/element_origin_min_pic/16/10/31/c7167fcfb4ebcd12621c05b0c852e98e.jpg',
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ id: ''
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ this.setData({id:options.id})
|
|
|
|
+ },
|
|
|
|
+ onShow(){
|
|
|
|
+ this.detail()
|
|
|
|
+ },
|
|
|
|
+ detail() {
|
|
|
|
+ var that = this;
|
|
|
|
+ app.api.useApi(app.globalData.baseAppUrl + "api/CleaningReport", {
|
|
|
|
+ order_id: that.data.id,
|
|
|
|
+ }, "get").then(function (res) {
|
|
|
|
+ if (res.code != 200) {
|
|
|
|
+ wx.showLoading({
|
|
|
|
+ title: res.message.msg,
|
|
|
|
+ })
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ wx.hideLoading({
|
|
|
|
+ success: (res) => { },
|
|
|
|
+ })
|
|
|
|
+ }, 2000);
|
|
|
|
+ } else {
|
|
|
|
+ console.log(res.message.data);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
|
+ console.log(222);
|
|
|
|
+ })
|
|
},
|
|
},
|
|
previewImg(e){
|
|
previewImg(e){
|
|
console.log(e.currentTarget.dataset.src);
|
|
console.log(e.currentTarget.dataset.src);
|