Commit 86f4ed66 authored by Facius's avatar Facius

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents add56d30 65d8b0e4
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
* @property {String} type 编辑类型(默认为修改,add--新增、edit--修改、select--选择) * @property {String} type 编辑类型(默认为修改,add--新增、edit--修改、select--选择)
* @property {String} info 地址信息(json字符串:包含地址信息) * @property {String} info 地址信息(json字符串:包含地址信息)
*/ */
import Utils from '@/utils/callUtils.js'
let r = require('libs/bmap-wx.min.js'); let r = require('libs/bmap-wx.min.js');
let h = new r.BMapWX({ let h = new r.BMapWX({
ak: process.uniEnv.bmapAK, ak: process.uniEnv.bmapAK,
...@@ -270,7 +269,7 @@ export default { ...@@ -270,7 +269,7 @@ export default {
address: address, address: address,
region: this.region region: this.region
} }
Utils.$emit("update-site", site) prevPage.$vm.updateSite(site)
this.$u.route({ type: 'back' }); this.$u.route({ type: 'back' });
} }
} }
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
</template> </template>
<script> <script>
import Utils from '@/utils/callUtils.js'
import SelectParts from '@/components/select-parts/adjust.vue' import SelectParts from '@/components/select-parts/adjust.vue'
export default { export default {
components: { components: {
...@@ -96,11 +95,6 @@ export default { ...@@ -96,11 +95,6 @@ export default {
this.orderId = e && Number(e.orderId) || 0 this.orderId = e && Number(e.orderId) || 0
this.initData() this.initData()
}, },
mounted() {
Utils.$on('update-site',(site)=>{
this.updateSite(site);
})
},
methods: { methods: {
initData() { initData() {
this.loadMineAddress() this.loadMineAddress()
...@@ -144,10 +138,11 @@ export default { ...@@ -144,10 +138,11 @@ export default {
this.order.contactCityText, this.order.contactCityText,
this.order.contactCommunityText, this.order.contactCommunityText,
] ]
let address = region.join("") + (this.order.contactStreetText || '') + this.order.contactAddress
this.customer = { this.customer = {
name: this.order.contactName, name: this.order.contactName,
mobile: this.order.contactPhone, mobile: this.order.contactPhone,
address: region.join("") + this.order.contactStreetText + this.order.contactAddress, address: address,
region: region, region: region,
code: [ code: [
this.order.contactProvince, this.order.contactProvince,
...@@ -192,7 +187,11 @@ export default { ...@@ -192,7 +187,11 @@ export default {
}) })
}, },
updateSite(site) { updateSite(site) {
console.log("updateSite", site) if(this.curType) {
this.customer = site
} else {
this.mine = site
}
}, },
addParts() { addParts() {
this.$u.route({ this.$u.route({
......
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