Commit db3bafaf authored by 王建威's avatar 王建威

storage

parent 3300bcff
...@@ -183,6 +183,13 @@ ...@@ -183,6 +183,13 @@
this.params[key] = ''; this.params[key] = '';
}, },
submit() { submit() {
let data = null;
uni.getStorage({
key: 'installment',
success: (res) => {
data = res.data;
}
});
if(!this.params.business_street) { if(!this.params.business_street) {
uni.showToast({ uni.showToast({
title: '请上传所在街道照片', title: '请上传所在街道照片',
...@@ -237,7 +244,7 @@ ...@@ -237,7 +244,7 @@
method: 'POST', method: 'POST',
data: { data: {
...this.params, ...this.params,
...this.$store.state.installment ...data
}, },
success: (res) => { success: (res) => {
console.log(res) console.log(res)
......
...@@ -159,7 +159,6 @@ ...@@ -159,7 +159,6 @@
<script> <script>
import uniPopup from "@/components/uni-popup/uni-popup.vue"; import uniPopup from "@/components/uni-popup/uni-popup.vue";
import { php, go } from '../../common/host.js'; import { php, go } from '../../common/host.js';
import store from '@/store/store.js';
export default { export default {
data() { data() {
return { return {
...@@ -227,15 +226,21 @@ ...@@ -227,15 +226,21 @@
uni.navigateBack(); uni.navigateBack();
}, },
buy_now() { buy_now() {
uni.navigateTo({
url: '/pages/apply/choosetype'
})
const data = { const data = {
contract_no: this.contract_no, contract_no: this.contract_no,
equipment_id: this.equipment_id, equipment_id: this.equipment_id,
property_id: this.e_info.property_id property_id: this.e_info.property_id
} }
store.dispatch('changeInstallment', data); uni.setStorage({
key: 'installment',
data: data,
success: () => {
uni.navigateTo({
url: '/pages/apply/choosetype'
});
}
});
}, },
collectGoods(id, type) { collectGoods(id, type) {
uni.request({ uni.request({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment