|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// pages/setting/paper-detial/index.js
|
|
|
|
import Scene from '../../index/scene' |
|
|
|
import Dialog from '../../../components/dialog/dialog' |
|
|
|
import { getCarInfo, saveCar, editCar, deleteCar } from "../../../api/saas" |
|
|
|
import { getCarInfo, saveCar, deleteCar } from "../../../api/saas" |
|
|
|
const event = require('../../../utils/event') |
|
|
|
const util = require('../../../utils/util') |
|
|
|
const app = getApp() |
|
|
|
@ -85,7 +85,7 @@ Scene({ |
|
|
|
util.showToast(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
editCar(this.data.form).then(result => { |
|
|
|
saveCar(this.data.form).then(result => { |
|
|
|
wx.hideLoading() |
|
|
|
util.showBackToast('修改成功') |
|
|
|
event.emit('OrderMessage', { what: 202, detail: this.data.form }) |
|
|
|
|