|
@@ -83,6 +83,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ mapState
|
|
|
+ } from 'vuex';
|
|
|
import upload from '@/components/upload.vue';
|
|
|
export default {
|
|
|
components: {
|
|
@@ -124,6 +127,9 @@
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['hasLogin', 'userInfo'])
|
|
|
+ },
|
|
|
methods: {
|
|
|
getImgUrl(res){
|
|
|
console.log(res)
|
|
@@ -159,7 +165,7 @@
|
|
|
navBack() {
|
|
|
this.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',this.deptList).then(res => {
|
|
|
if(res.data.code==200){
|
|
|
- uni.navigateBack(1)
|
|
|
+ uni.navigateBack(-1)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -184,13 +190,14 @@
|
|
|
this.deptList.mainBusinessType=this.mainBusinessType.toString()
|
|
|
this.deptList.longitude='40.22077'
|
|
|
this.deptList.latitude='116.23128'
|
|
|
+ this.deptList.createPhone=this.userInfo.phone
|
|
|
uni.showModal({
|
|
|
content: "确定提交企业信息??",
|
|
|
showCancel: true,
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
- this.show = true
|
|
|
+ that.show = true
|
|
|
// that.$api.doRequest('post','/settledCompanyInfo/api/addSettledCompanyInfo',that.deptList).then(res => {
|
|
|
// if(res.data.code==200){
|
|
|
|