Browse Source

服务超市表单

master
lucky 5 years ago
parent
commit
d364d5d3ce
  1. 2
      src/common/portrait.styl
  2. 8
      src/components/Introduce/DeriveEnterprise.vue
  3. 17
      src/components/Introduce/Pter.vue
  4. 18
      src/views/User/Login.vue

2
src/common/portrait.styl

@ -572,7 +572,7 @@ h2{
.ant-btn-link:hover, .ant-btn-link:focus{ .ant-btn-link:hover, .ant-btn-link:focus{
color: #E77816; color: #E77816;
background-color: #E77816 // background-color: #E77816
} }
.ant-btn-link{ .ant-btn-link{

8
src/components/Introduce/DeriveEnterprise.vue

@ -16,9 +16,7 @@
> >
<img :src="item.logoUrl" class="enterprise-pic my-2" v-if="item.logoUrl" /> <img :src="item.logoUrl" class="enterprise-pic my-2" v-if="item.logoUrl" />
<div class="font-bold-24 title-color my-2">{{ item.name }}</div> <div class="font-bold-24 title-color my-2">{{ item.name }}</div>
<div <div class="font-16 textColor d-flex flex-wrap align-start fill-width enterprise-txt">{{ item.description }}</div>
class="font-16 textColor d-flex flex-wrap align-start fill-width enterprise-txt"
>{{ item.description }}</div>
<div class="d-flex flex-nowrap fill-width py-5 enterprise-more"> <div class="d-flex flex-nowrap fill-width py-5 enterprise-more">
<div class="flex-1"></div> <div class="flex-1"></div>
<span class="font-16 baseColor pointer"> <span class="font-16 baseColor pointer">
@ -66,9 +64,7 @@ export default {
}; };
}, },
computed: { computed: mapState('home', ['partners', 'profile']),
...mapState('home', ['partners', 'profile']),
},
async created() { async created() {
this.setPartners([]); this.setPartners([]);

17
src/components/Introduce/Pter.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-01-13 18:36:52 * @Date: 2021-01-13 18:36:52
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-01-13 18:39:16 * @LastEditTime: 2021-01-15 22:47:27
--> -->
<template> <template>
<div> <div>
@ -12,17 +12,9 @@
<p class="title-en">Partners</p> <p class="title-en">Partners</p>
</div> </div>
<div v-if="partners && partners.length > 0"> <div v-if="partners && partners.length > 0">
<div :key="index" v-for="(item,index) in partners"> <div :key="index" v-for="(item, index) in partners">
<div <div class="partner-content-box d-flex flex-wrap" v-if="item.backendSearchList && item.backendSearchList.length > 0">
class="partner-content-box d-flex flex-wrap" <div :class="(i + 1) % 4 === 0 ? 'mr0' : ''" :key="i" class="item-box" v-for="(list, i) in item.backendSearchList">
v-if="item.backendSearchList && item.backendSearchList.length > 0"
>
<div
:class="(i + 1) % 4 === 0 ? 'mr0' : ''"
:key="i"
class="item-box"
v-for="(list,i) in item.backendSearchList"
>
<img :src="list.logoUrl" class="fill-height" v-if="list.logoUrl" /> <img :src="list.logoUrl" class="fill-height" v-if="list.logoUrl" />
</div> </div>
</div> </div>
@ -48,6 +40,7 @@ export default {
}, },
data() { data() {
return { return {
str: '',
lists: [], lists: [],
}; };
}, },

18
src/views/User/Login.vue

@ -82,7 +82,7 @@
>获取验证码</a-button> >获取验证码</a-button>
</div> </div>
</a-form-item> </a-form-item>
<a-form-item <!-- <a-form-item
:label-col="formItemLayout.labelCol" :label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol" :wrapper-col="formItemLayout.wrapperCol"
label="来源" label="来源"
@ -90,7 +90,7 @@
<a-select placeholder="请选择来源" v-decorator="['source']"> <a-select placeholder="请选择来源" v-decorator="['source']">
<a-select-option value="1">绿谷</a-select-option> <a-select-option value="1">绿谷</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>-->
<div class="d-flex flex-row-reverse"> <div class="d-flex flex-row-reverse">
<a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button> <a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button>
@ -139,15 +139,11 @@
v-decorator="['credential', { rules: passwordRules }]" v-decorator="['credential', { rules: passwordRules }]"
/> />
</a-form-item> </a-form-item>
<a-form-item <!-- <a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="来源">
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="来源"
>
<a-select placeholder="请选择来源" v-decorator="['source']"> <a-select placeholder="请选择来源" v-decorator="['source']">
<a-select-option value="1">绿谷</a-select-option> <a-select-option value="1">绿谷</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>-->
<div class="d-flex flex-row-reverse"> <div class="d-flex flex-row-reverse">
<a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button> <a-button block class="my-5" html-type="submit" style="width: 75%" type="primary">现在登录</a-button>
</div> </div>
@ -240,11 +236,11 @@ export default {
e.preventDefault(); e.preventDefault();
this.form.validateFields(async (err, values) => { this.form.validateFields(async (err, values) => {
if (!err) { if (!err) {
console.log('Received values of form: ', values); // console.log('Received values of form: ', values);
try { try {
const { identifier, credential, source } = values; const { identifier, credential } = values;
const { type } = this; const { type } = this;
const params = { data: { identifier, credential, source }, type, client: SIGN_IN_CLIENTS.h5 }; const params = { data: { identifier, credential, source: 2 }, type, client: SIGN_IN_CLIENTS.h5 };
console.log('params: ', params); console.log('params: ', params);
await this.signIn(params); await this.signIn(params);
// //

Loading…
Cancel
Save