暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
+14 -29
View File
@@ -1,5 +1,6 @@
<template>
<view class="address_add_warp">
<Header :leftTitle="$t('address.add.title')" left-path-type="navigateTo" :leftPath="leftPath"/>
<view class="address_form">
<view class="add_form_item add_form_item_but">
<view class="add_form_title">收货人</view>
@@ -21,6 +22,7 @@
:customStyle="{
'border':'0rpx',
}"
type="number"
></up-input>
</view>
<view class="add_form_item add_form_item_but" >
@@ -65,6 +67,8 @@
@change="regionChange"
keyName="label"
itemHeight="34"
@cancel="regionShow=false"
@close="regionShow=false"
></up-picker>
</view>
</template>
@@ -72,8 +76,10 @@
<script>
import { editAddress,getAddressDetail } from '@/api/address.js'
import { getCascadeRegion } from '@/api/common.js'
import Header from '@/components/header.vue';
export default {
components:{Header},
data() {
return {
form:{
@@ -90,6 +96,7 @@
regionShow:false,
regionColumns:[],
regionLoading:false,
leftPath:"/pages/mine_address/mine_address",
}
},
onLoad(option) {
@@ -97,6 +104,10 @@
if(id && id!==0){
this.getById(id);
}
const ids = option.ids;
if(ids && ids!==0){
this.leftPath = "/pages/order_submit/order_submit?ids="+ids+"&addressShow = true";
}
},
methods: {
/**
@@ -258,9 +269,10 @@
type: 'success',
message: params.id && params.id !==0 ? '修改成功':"添加成功",
});
const leftPath = this.leftPath;
setTimeout(()=>{
uni.navigateTo({
url:'/pages/mine_address/mine_address',
url:leftPath,
})
},2000)
}
@@ -273,32 +285,5 @@
</script>
<style lang="scss" scoped>
.address_add_warp{
height: calc(100vh - 58rpx);
background-color: $app-bj;
padding: 30rpx;
}
.address_form{
background: #FFFFFF;
border-radius: 24rpx;
padding: 0 30rpx 30rpx;
}
.region_warp{
display: flex;
justify-content: space-between;
width: calc(100% - 160rpx);
}
.address_default{
background: #FFFFFF;
border-radius: 24rpx;
padding: 30rpx;
display: flex;
justify-content: space-between;
margin-top: 30rpx;
.title{
font-weight: bold;
font-size: 28rpx;
color: #222222;
}
}
</style>