sadjv3_user/pages/cooperate/hehuo.vue

452 lines
9.9 KiB
Vue
Raw Normal View History

2024-07-09 13:57:23 +08:00
<template>
<view class="hehuo_view">
2024-07-09 14:51:42 +08:00
<view class="advantage-title">门店入驻</view>
2024-07-09 13:57:23 +08:00
<view class="advantage-bor"></view>
<view class="adv_text_view">
2024-07-09 14:51:42 +08:00
<view class="adv_lines">
<view >1您的门店经营多久了?</view>
<radio-group @change="radioChangeJ">
<label class="uni-list-cell uni-list-cell-pd adv_lines-view" v-for="(item, index) in jingying" :key="item.value">
<view>
<radio :value="item.value" :checked="index === currentJ" />
</view>
<view class="radio-title">{{item.name}}</view>
</label>
</radio-group>
2024-07-09 13:57:23 +08:00
</view>
2024-07-09 14:51:42 +08:00
<view class="adv_lines">
<view >2您的门店面积</view>
<radio-group @change="radioChangeM">
<label class="uni-list-cell uni-list-cell-pd adv_lines-view" v-for="(item, index) in mianji" :key="item.value">
<view>
<radio :value="item.value" :checked="index === currentM" />
</view>
<view class="radio-title">{{item.name}}</view>
</label>
</radio-group>
2024-07-09 13:57:23 +08:00
</view>
2024-07-09 14:51:42 +08:00
<view class="adv_lines">
<view >3您的门店团队有队少人?</view>
<radio-group @change="radioChangeT">
<label class="uni-list-cell uni-list-cell-pd adv_lines-view" v-for="(item, index) in tuandui" :key="item.value">
<view>
<radio :value="item.value" :checked="index === currentT" />
</view>
<view class="radio-title">{{item.name}}</view>
</label>
</radio-group>
</view>
<view class="adv_lines">
<view >4门店提供的项目有哪些?</view>
<radio-group @change="radioChangeX">
<label class="uni-list-cell uni-list-cell-pd adv_lines-view" v-for="(item, index) in xiangmu" :key="item.value">
<view>
<radio :value="item.value" :checked="index === currentX" />
</view>
<view class="radio-title">{{item.name}}</view>
</label>
</radio-group>
2024-07-09 13:57:23 +08:00
</view>
2024-07-09 14:51:42 +08:00
</view>
<view class="adv_text_view">
2024-07-09 16:13:01 +08:00
<view class="adv_lines">
2024-07-09 13:57:23 +08:00
<view >姓名</view>
2024-07-09 16:13:01 +08:00
<input type="text" v-model="userName" maxlength="11" placeholder="请输入真实姓名" />
2024-07-09 13:57:23 +08:00
</view>
2024-07-09 16:13:01 +08:00
<view class="adv-xian"></view>
<view class="adv_lines">
2024-07-09 13:57:23 +08:00
<view >手机号</view>
2024-07-09 16:13:01 +08:00
<input type="number" v-model="phone" maxlength="11" placeholder="请输入手机号" />
2024-07-09 13:57:23 +08:00
</view>
2024-07-09 16:13:01 +08:00
<view class="adv-xian"></view>
<view class="adv_lines">
2024-07-09 14:07:54 +08:00
<view>备注</view>
2024-07-10 15:32:28 +08:00
<textarea style="height: 100px;" v-model="beizhu" name="" maxlength="100" id="" cols="30" rows="10" placeholder="请输入备注~~~~"></textarea>
2024-07-09 13:57:23 +08:00
</view>
2024-07-10 15:32:28 +08:00
<view class="adv-xian"></view>
2024-07-09 13:57:23 +08:00
</view>
2024-07-17 10:43:18 +08:00
<view class="push-button">
<view class="que-btn" @tap="save">提交申请</view>
</view>
2024-07-09 13:57:23 +08:00
</view>
</template>
<script>
export default {
data() {
return {
2024-07-09 14:51:42 +08:00
beizhu:'',
phone:'',
userName:'',
jingying: [{
value: '一年',
name: '一年',
checked: 'true'
},
{
value: '一到三年',
name: '一到三年'
},
{
value: '三年以上',
name: '三年以上'
},
],
currentJ: 0,
mianji: [{
2024-07-10 17:58:14 +08:00
value: '50平米一下',
2024-07-09 14:51:42 +08:00
name: '50平米一下',
checked: 'true'
},
{
2024-07-10 15:32:28 +08:00
value: '50到200平米',
2024-07-09 14:51:42 +08:00
name: '50到200平米'
},
{
2024-07-10 15:32:28 +08:00
value: '200平米以上',
2024-07-09 14:51:42 +08:00
name: '200平米以上'
},
],
currentM: 0,
tuandui: [{
value: '5-10人',
name: '5-10人',
checked: 'true'
},
{
value: '10-15人',
name: '10-15人'
},
{
value: '15-20人',
name: '15-20人'
},
{
2024-07-10 15:32:28 +08:00
value: '20人以上',
2024-07-09 14:51:42 +08:00
name: '20人以上'
},
],
currentT: 0,
xiangmu: [{
value: '推荐按摩',
name: '推荐按摩',
checked: 'true'
},
{
value: 'SPA',
name: 'SPA'
},
{
value: '足浴',
name: '足浴'
},
],
currentX: 0,
mendianData:'',
mianjiData:'',
tuanduiData:'',
xiangmuData:'',
2024-07-09 13:57:23 +08:00
}
},
2024-07-10 15:32:28 +08:00
mounted() {
},
2024-07-09 13:57:23 +08:00
methods: {
save() {
2024-07-10 15:32:28 +08:00
if(!this.mendianData){
this.mendianData=this.jingying[0].value
}
if(!this.mianjiData){
this.mianjiData=this.mianji[0].value
}
if(!this.tuanduiData){
this.tuanduiData=this.tuandui[0].value
}
if(!this.xiangmuData){
this.xiangmuData=this.xiangmu[0].value
}
2024-07-09 13:57:23 +08:00
if (this.userName === '') {
this.$queue.showToast('请输入姓名')
return;
}
if (this.phone === '' || this.phone.length != 11) {
this.$queue.showToast('请输入正确的手机号!')
return;
}
2024-07-09 14:51:42 +08:00
2024-07-09 13:57:23 +08:00
let userId = this.$queue.getData('userId');
let data = {
userId: userId,
name: this.userName,
phone: this.phone,
2024-07-10 17:58:14 +08:00
remark:this.beizhu,
queone:this.mendianData,
quetwo:this.mianjiData,
quethree:this.tuanduiData,
queforu:this.xiangmuData,
2024-07-09 13:57:23 +08:00
}
2024-07-10 17:58:14 +08:00
this.$Request.postJson('/app/dlssqjl/insertDlssqjl', data).then(res => {
2024-07-09 13:57:23 +08:00
if (res.code == 0) {
uni.hideLoading();
this.$queue.showToast('提交成功!');
setTimeout(d => {
2024-07-09 14:51:42 +08:00
uni.switchTab({
url:'/pages/index/index'
})
2024-07-09 13:57:23 +08:00
}, 1000);
} else {
uni.hideLoading();
this.$queue.showToast(res.msg);
}
});
},
2024-07-09 14:51:42 +08:00
radioChangeX: function(evt) {//门店提供的项目有哪些
for (let i = 0; i < this.xiangmu.length; i++) {
if (this.xiangmu[i].value === evt.detail.value) {
this.currentX = i;
break;
2024-07-09 13:57:23 +08:00
}
2024-07-09 14:51:42 +08:00
}
this.xiangmuData=evt.detail.value
},
radioChangeT: function(evt) {//您的门店团队有多少人
for (let i = 0; i < this.tuandui.length; i++) {
if (this.tuandui[i].value === evt.detail.value) {
this.currentT = i;
break;
}
}
this.tuanduiData=evt.detail.value
},
radioChangeM: function(evt) {//您的门店面积
for (let i = 0; i < this.mianji.length; i++) {
if (this.mianji[i].value === evt.detail.value) {
this.currentM = i;
break;
}
}
this.mianjiData=evt.detail.value
},
radioChangeJ: function(evt) {//您的门店经营多久了
for (let i = 0; i < this.jingying.length; i++) {
if (this.jingying[i].value === evt.detail.value) {
this.currentJ = i;
break;
}
}
this.mendianData=evt.detail.value
2024-07-09 13:57:23 +08:00
},
}
}
</script>
<style lang="less">
@import '../../static/less/index.less';
@import '../../static/css/index.css';
2024-07-09 14:51:42 +08:00
/deep/.uni-radio-input{
2024-07-09 16:27:50 +08:00
width: 20px;
height: 20px;
2024-07-09 14:51:42 +08:00
}
2024-07-09 16:13:01 +08:00
2024-07-09 14:51:42 +08:00
/deep/uni-radio::before{
2024-07-09 16:27:50 +08:00
margin-right: -1px;
2024-07-09 14:51:42 +08:00
}
2024-07-17 10:43:18 +08:00
.push-button{
width: 100%;
height: 48px;
position: fixed;
bottom: 0px;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
}
.que-btn{
display: inline-block;
width: 90%;
2024-07-09 13:57:23 +08:00
text-align: center;
2024-07-17 10:43:18 +08:00
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
2024-07-17 17:47:41 +08:00
height: 40px;
2024-07-17 10:43:18 +08:00
border-radius: 28px;
color: #ffffff;
2024-07-17 17:47:41 +08:00
line-height: 40px;
2024-07-17 10:43:18 +08:00
margin-top: 4px;
font-size: 34rpx;
2024-07-09 13:57:23 +08:00
}
2024-07-10 15:32:28 +08:00
.uni-textarea-compute{
2024-07-09 16:13:01 +08:00
2024-07-10 15:32:28 +08:00
}
/deep/.uni-textarea-textarea{
2024-07-09 16:13:01 +08:00
border-radius: 8rpx;
margin-top: 20rpx;
}
2024-07-09 13:57:23 +08:00
.margin-top-view{
width: 150upx;
height: 150upx;
background: #f7f7f7;
}
.advantage-title{
font-size: 32rpx;
font-weight: bold;
margin-top: 60rpx;
margin-left: 30rpx;
}
.advantage-bor{
width: 64px;
height: 6px;
border-radius: 3px;
bottom: 0;
background: linear-gradient(90deg, rgba(234, 248, 245, 0.7), rgba(132, 211, 196, 0.7));
margin-bottom: 80rpx;
}
2024-07-09 16:13:01 +08:00
.adv-xian{
height: 2rpx;
border-bottom: 1px solid #e5e5e5;
}
2024-07-09 14:51:42 +08:00
.radio-title{
margin-left: 5px;
}
.adv_lines-view{
display: flex;
flex-direction: row;
align-items: center;
margin-top: 10px;
}
.adv_lines{
display: flex;
justify-content: space-between;
2024-07-09 16:13:01 +08:00
margin: 20rpx 0;
2024-07-09 14:51:42 +08:00
font-size: 28rpx;
flex-direction: column;
}
2024-07-09 16:13:01 +08:00
.adv_lines
2024-07-09 13:57:23 +08:00
.adv_line{
display: flex;
justify-content: space-between;
height: 50rpx;
line-height: 50rpx;
margin-bottom: 40rpx;
font-size: 28rpx;
}
.adv_input_text{
text-align: right;
2024-07-09 16:13:01 +08:00
line-height: 50rpx;
font-size: 28rpx;
2024-07-09 13:57:23 +08:00
}
.adv_item_view{
display: flex;
justify-content: space-between;
}
.adv_text_view {
width: 95%;
margin-left: 2.5%;
background-color: #fff;
border-radius: 10px;
padding: 20px;
2024-07-09 16:13:01 +08:00
margin-top: 20rpx;
2024-07-09 13:57:23 +08:00
}
.send-msg{
padding: 0 30rpx;
color: #fff;
height: 55rpx;
line-height: 54rpx;
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
border-radius: 30rpx;
}
.usermain-btn{
background: linear-gradient(to right, #029d88, #1fb38f);
color: #FFFFFF;
margin: 8px 16px;
position: fixed;
bottom: 0px;
width: 90%;
border-radius: 27px;
height: 43px;
line-height: 43px;
font-size: 17px;
text-align: center;
}
2024-07-09 14:07:54 +08:00
.adv_beizhu{
background-color: #f7f7f7;
height: 80rpx;
border-radius: 8rpx;
color: #999;
}
2024-07-09 13:57:23 +08:00
.adv_item_title{
width: 300rpx;
}
.adv_xian {
width: 100%;
border-bottom: 1rpx solid #f7f7f7;
margin-top: 10rpx;
}
.hehuo_view {
width: 100%;
padding-top: 10px;
2024-07-09 16:13:01 +08:00
background-image: url('../../static/cooperate/cooperate5.png');
2024-07-09 13:57:23 +08:00
background-repeat: no-repeat;
background-size: 100% 550rpx;
//display: flex;
//flex-direction: column;
//align-items: center;}
.text_view {
width: 95%;
margin-left: 2.5%;
background-color: #fff;
border-radius: 10px;
padding: 20px;
.audit_message {
color: red;
width: 650rpx;
height: 50rpx;
}
.save_btn1 {
margin: 10rpx;
width: 650rpx;
height: 88rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin-top: 100rpx;
text-align: center;
line-height: 88rpx;
}
.item_view {
margin-top: 30rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.item_title {
font-size: 32rpx;
font-family: PingFang SC Heavy, PingFang SC Heavy-Heavy;
color: #333333;
}
input {
margin-top: 20rpx;
height: 40rpx;
font-size: 24rpx;
font-family: PingFang SC Regular, PingFang SC Regular-Regular;
font-weight: 400;
color: #333333;
}
.xian {
width: 100%;
border-bottom: 1rpx solid #f7f7f7;
margin-top: 10rpx;
}
}
}
}
</style>