| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <template>
- <view class="flex-common-css iPhone-bottom box-border-box">
- <Nav title="商务合作" titleColor="#333" bgckgroundBox='#fff'></Nav>
- <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
- <view class="content-box box-border-box">
- <view class="bgc-f p-24 b-rad-20 mb-20 box-sizing-border">
- <view class="fs-32 fw-600 fc-3 mb-8">
- 请描述你想合作的想法
- </view>
- <view class="textarea-box">
- <textarea class="textarea-box" v-model="formData.content" placeholder-style="color:#ccc" maxlength='100' placeholder="请在这里输入您的想法" />
- </view>
- </view>
- <view class="bgc-f b-rad-20 box-sizing-border phone-box">
- <view class="fs-32 fc-3 mb-20 fw-600">
- 联系方式
- </view>
- <input v-model="formData.name" class="uni-input mb-20" focus placeholder="请输入姓名" type="text" />
- <input v-model="formData.phone" class="uni-input" focus placeholder="请输入手机号" type="number" />
- </view>
- </view>
- </scroll-view>
- <view class="bot-box bgc-f" @click="save()">
- <view class="bot-but fc-f fs-32 text-align-center b-rad-200 bgc-4FB3EF">
- 提交合作
- </view>
- </view>
- </view>
- </template>
- <script>
- import {setCooperation} from '@/api/common.js'
- import tools from '@/service/tools';
- export default {
- components: {},
- data() {
- return {
- formData: {
- phone:'',
- content: '',
- name: '',
- },
- isAJAX:false,
- };
- },
- methods: {
- save(){
- if(this.isAJAX){
- return
- }
- this.isAJAX = true;
- setCooperation(this.formData).then((res)=>{
- if(res.code === 1){
- this.isAJAX = false;
- tools.success('提交成功');
- setTimeout(()=>{
- uni.reLaunch({
- url:'/pages/me/index'
- })
- },1500)
-
- }else{
- this.isAJAX = false;
- tools.error(res.msg);
- }
- })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .content-box {
- padding: 26rpx 24rpx 0;
- }
- .textarea-box {
- width: 100%;
- height: 200rpx;
- }
- .up-img {
- width: 152rpx;
- height: 152rpx;
- margin: 0 0 10rpx 0;
- position: relative;
- .img {
- width: 100%;
- height: 100%;
- border-radius: 4rpx;
- }
- .delete-icons {
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- .add-img-box {
- width: 152rpx;
- height: 152rpx;
- border: 1px dashed #ccc;
- border-radius: 4rpx;
- .add-img {
- width: 56rpx;
- height: 56rpx;
- }
- }
- .phone-box {
- padding: 32rpx 24rpx;
- }
- .uni-input {
- // width: 100%;
- height: 92rpx;
- line-height: 92rpx;
- background: #F6F6F6;
- border-radius: 12rpx;
- padding: 0 0 0 26rpx;
- }
- .bot-box {
- width: 100%;
- padding: 12rpx 32rpx;
- box-sizing: border-box;
- .bot-but {
- width: 100%;
- height: 92rpx;
- line-height: 92rpx;
- }
- }
- </style>
|