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

storage

parent 3300bcff
......@@ -183,6 +183,13 @@
this.params[key] = '';
},
submit() {
let data = null;
uni.getStorage({
key: 'installment',
success: (res) => {
data = res.data;
}
});
if(!this.params.business_street) {
uni.showToast({
title: '请上传所在街道照片',
......@@ -237,7 +244,7 @@
method: 'POST',
data: {
...this.params,
...this.$store.state.installment
...data
},
success: (res) => {
console.log(res)
......
......@@ -159,7 +159,6 @@
<script>
import uniPopup from "@/components/uni-popup/uni-popup.vue";
import { php, go } from '../../common/host.js';
import store from '@/store/store.js';
export default {
data() {
return {
......@@ -227,15 +226,21 @@
uni.navigateBack();
},
buy_now() {
uni.navigateTo({
url: '/pages/apply/choosetype'
})
const data = {
contract_no: this.contract_no,
equipment_id: this.equipment_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) {
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