修改地址

msb_beta
ch 3 years ago
parent a0d40a2e50
commit 4ec1f192f1

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-20 14:14:53
* @LastEditors: ch
* @LastEditTime: 2022-05-07 17:32:23
* @LastEditTime: 2022-05-07 17:49:18
* @Description: file content
-->
<template>
@ -93,12 +93,21 @@ export default {
onShow(){
//
if(!this.address.id){
this.address = this.$store.state.address.find(i => i.isDefault) || {};
this.getAddressList()
}
this.getBeforeOrder();
},
methods:{
async getAddressList(){
const {error, result} = await ApiGetAddress();
if(error){
uni.$u.toast(error.message);
return false;
}
this.address = result.find(i => i.isDefault) || {};
this.$store.commit('SET_ADDRESS', result);
},
/**
* 获取预订单信息将要提交的订单信息
*/

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>马士兵严选</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.b5602bf5.js></script><script src=/static/js/index.0c419f29.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.b5602bf5.js></script><script src=/static/js/index.9de50bd9.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save