|
|
@@ -85,12 +85,20 @@
|
|
|
<input type="text" value="" class="list-input" v-model="concat_address" placeholder="请输入联系地址" placeholder-class="placeholder" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="buttom-ts" ></view>
|
|
|
+ <!-- <view class="buttom-ts" ></view> -->
|
|
|
<view class="buttom" :class="{ action: loding }" @click="!loding ? join() : ''">提交申请</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ mapState,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex';
|
|
|
+ import {
|
|
|
+ saveUrl,
|
|
|
+ interceptor
|
|
|
+ } from '@/utils/loginUtils.js';
|
|
|
import { joinSec,add_company } from '@/api/index.js';
|
|
|
import { upload } from '@/api/ask.js';
|
|
|
export default {
|
|
|
@@ -129,14 +137,34 @@ export default {
|
|
|
concat_address: ''//联系地址
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
- startDate() {
|
|
|
- return this.getDate('start');
|
|
|
- },
|
|
|
- endDate() {
|
|
|
- return this.getDate('end');
|
|
|
+ onShow() {
|
|
|
+ if (this.hasLogin) {
|
|
|
+ // this.loadBaseData();
|
|
|
+ } else {
|
|
|
+ saveUrl();
|
|
|
+ uni.showModal({
|
|
|
+ title: '登录',
|
|
|
+ content: '您未登录,是否马上登陆?',
|
|
|
+ success: e => {
|
|
|
+ if (e.confirm) {
|
|
|
+ interceptor();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: e => {
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapState('user', ['hasLogin', 'userInfo'])
|
|
|
+ // startDate() {
|
|
|
+ // return this.getDate('start');
|
|
|
+ // },
|
|
|
+ // endDate() {
|
|
|
+ // return this.getDate('end');
|
|
|
+ // }
|
|
|
+ },
|
|
|
methods: {
|
|
|
async join() {
|
|
|
let obj = this;
|
|
|
@@ -330,11 +358,12 @@ page {
|
|
|
height: 120rpx;
|
|
|
}
|
|
|
.buttom {
|
|
|
- // margin: 60rpx auto 0;
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- width: 750rpx;
|
|
|
+ margin: 60rpx auto 0;
|
|
|
+ // position: absolute;
|
|
|
+ // bottom: 0;
|
|
|
+ width: 600rpx;
|
|
|
height: 100rpx;
|
|
|
+ border-radius: 50rpx;
|
|
|
background: #FA7E67;
|
|
|
font-size: 34rpx;
|
|
|
font-family: PingFang SC;
|