123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- import { get,post } from "../../common/request.js"
- import pathmap from "../../common/pathmap"
- import stylemap from "../../common/stylemap"
- import { retCartData } from "../../data/car"
- const app = getApp();
- Page({
-
- data: {
-
-
- },
-
- onLoad: function (options) {
- this.setData(Object.assign({id:options.id},stylemap));
- this.getOrder();
- },
-
- onReady: function () {
-
- },
-
- onShow: function () {
-
- },
-
- onHide: function () {
-
- },
-
- onUnload: function () {
-
- },
-
- onPullDownRefresh: function () {
-
- },
-
- onReachBottom: function () {
-
- },
-
- onShareAppMessage: function () {
-
- },
- getOrder:function(){
- var _self=this;
- get(pathmap.orderdetail,{
- order_id:this.data.id
- },function(json){
- if(json.statusCode==200){
- _self.setData(json.data);
- }else{
- if(json.data.message){
- wx.showToast({
- title:json.data.message,
- icon:"none",
- duration:2000
- })
- }
- }
- })
- },
- showPic:function(e){
- var url = e.target.dataset.url;
- wx.previewImage({
- current: url,
- urls: [url]
- })
- }
- })
|