Merge branch 'master' into qiuqiu

master
pikachu 2021-06-28 18:46:12 +08:00
commit 75e302bc12
23 changed files with 187 additions and 144 deletions

View File

@ -17,15 +17,15 @@ export default {
* @description api请求基础路径 * @description api请求基础路径
*/ */
api_dev: { api_dev: {
// common: 'http://192.168.0.109:8890', common: 'http://192.168.0.100:8890',
// buyer: 'http://192.168.0.109:8888', buyer: 'http://192.168.0.100:8888',
// seller: 'http://192.168.0.109:8889', seller: 'http://192.168.0.100:8889',
// manager: 'http://192.168.0.109:8887' manager: 'http://192.168.0.100:8887'
common: 'https://common-api.pickmall.cn', // common: 'https://common-api.pickmall.cn',
buyer: 'https://buyer-api.pickmall.cn', // buyer: 'https://buyer-api.pickmall.cn',
seller: 'https://store-api.pickmall.cn', // seller: 'https://store-api.pickmall.cn',
manager: 'https://admin-api.pickmall.cn' // manager: 'https://admin-api.pickmall.cn'
}, },
api_prod: { api_prod: {
common: 'https://common-api.pickmall.cn', common: 'https://common-api.pickmall.cn',

View File

@ -9,10 +9,12 @@
<img :src="storeMsg.storeLogo" height="50" alt=""> <img :src="storeMsg.storeLogo" height="50" alt="">
<div> <div>
<p>{{storeMsg.storeName || 'xx店铺'}}</p> <p>{{storeMsg.storeName || 'xx店铺'}}</p>
<p v-html="storeMsg.storeDesc"></p> <p class="ellipsis" :alt="storeMsg.storeDesc" v-html="storeMsg.storeDesc"></p>
</div>
<div>
<span class="hover-pointer" @click="collect"><Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#fff'" />{{storeCollected?'已收藏店铺':'收藏店铺'}}</span>
<span style="width:80px" class="hover-pointer ml_10" @click="connectCs(storeMsg.yzfSign)"><Icon custom="icomoon icon-customer-service" />联系客服</span>
</div> </div>
<div class="store-collect" @click="collect"><Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#fff'" />{{storeCollected?'已收藏店铺':'收藏店铺'}}</div>
<span class="hover-pointer ml_10" @click="connectCs(storeMsg.yzfSign)"><Icon custom="icomoon icon-customer-service" />联系客服</span>
</div> </div>
</div> </div>
<div class="store-category"> <div class="store-category">
@ -183,15 +185,25 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
background-color: #666; background-color: #666;
padding: 10px; padding: 4px;
color: #fff; color: #fff;
>div{ >div{
display: flex; display: flex;
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
align-items: center; align-items: center;
>div{
img {
width: 80px;
}
>div:nth-child(2){
margin-left: 10px; margin-left: 10px;
flex: 1;
}
>div:nth-child(3){
width: 200px;
} }
} }
img { img {
@ -202,14 +214,11 @@ export default {
} }
p:nth-child(2){ p:nth-child(2){
font-size: 14px; font-size: 14px;
max-height: 40px;
max-width: 400px;
} }
} }
.store-collect{
margin-left: 750px!important;
&:hover{
cursor: pointer;
}
}
.store-category { .store-category {
background-color: #005aa0; background-color: #005aa0;
color: #fff; color: #fff;

View File

@ -1,15 +1,14 @@
<template> <template>
<div class="login"> <div class="login">
<div style="height:50px;"></div>
<!-- 顶部logo --> <!-- 顶部logo -->
<div class="top-content">
<div class="logo-box"> <div class="logo-box">
<img <img
src="../assets/images/logo1.png" :src="logoImg" width='150'
@click="$router.push('/')" @click="$router.push('/')"
/> />
<div>修改密码</div> <div>修改密码</div>
</div> </div>
</div>
<div class="login-container"> <div class="login-container">
<!-- 验证手机号 --> <!-- 验证手机号 -->
<Form <Form
@ -119,6 +118,7 @@ export default {
components: { Verify }, components: { Verify },
data () { data () {
return { return {
logoImg: '', // logo
loading: false, // loading: false, //
loading1: false, // loading1: false, //
formFirst: { // formFirst: { //
@ -242,35 +242,23 @@ export default {
}, },
mounted () { mounted () {
this.$refs.formFirst.resetFields(); this.$refs.formFirst.resetFields();
this.logoImg = this.Cookies.getItem('logo')
}, },
watch: { watch: {
} }
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.login {
height: 100%;
}
.top-content {
width: 100%;
height: 80px;
position: relative;
z-index: 1;
box-shadow: 0 1px 1px #ddd;
background-color: #fff;
.logo-box { .logo-box {
width: 80%; width: 600px;
max-width: 1200px;
height: 80px; height: 80px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;
img { img {
width: 200px; width: 150px;
cursor: pointer; cursor: pointer;
} }
}
div { div {
font-size: 20px; font-size: 20px;
margin-top: 10px; margin-top: 10px;
@ -278,22 +266,23 @@ export default {
} }
.login-container { .login-container {
border-top: 2px solid $theme_color;
position: relative; position: relative;
margin: 10px auto; margin: 0 auto;
width: 1200px; width: 600px;
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px 150px;
.login-btn{ .login-btn{
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 20px; top: -45px;
} }
} }
.verify-con{ .verify-con{
position: absolute; position: absolute;
left: 400px; left: 140px;
top: 50px; top: -30px;
z-index: 10; z-index: 10;
} }

View File

@ -281,7 +281,18 @@ export default {
}, },
{ {
title: '支付方式', title: '支付方式',
key: 'rechargeWay' key: 'rechargeWay',
render: (h, params) => {
if (params.row.rechargeWay === 'ALIPAY') {
return h('div', [h('span', {}, '支付宝')]);
} else if (params.row.rechargeWay === 'WECHAT') {
return h('div', [h('span', {}, '微信')]);
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
return h('div', [h('span', {}, '线下转账')]);
} else {
return h('div', [h('span', {}, '')]);
}
}
}, },
{ {
title: '支付时间', title: '支付时间',

View File

@ -63,6 +63,7 @@ export default {
this.num++; this.num++;
if (this.num >= 7) { if (this.num >= 7) {
clearInterval(this.interval); clearInterval(this.interval);
this.interval = null;
} }
let params = JSON.parse(JSON.stringify(this.$route.query)); let params = JSON.parse(JSON.stringify(this.$route.query));
delete params.paymentMethod; delete params.paymentMethod;
@ -70,6 +71,7 @@ export default {
payCallback(params).then(res => { payCallback(params).then(res => {
if (res.result) { if (res.result) {
clearInterval(this.interval); clearInterval(this.interval);
this.interval = null;
this.$router.push({path: '/payDone', query: {orderType: this.$route.query.orderType}}); this.$router.push({path: '/payDone', query: {orderType: this.$route.query.orderType}});
} }
}); });

View File

@ -10,7 +10,6 @@
/> />
</FormItem> </FormItem>
<FormItem prop="storeAddressIdPath" label="公司所在地"> <FormItem prop="storeAddressIdPath" label="公司所在地">
<!-- <Input type="text" v-model="form.storeAddressIdPath" placeholder="请选择公司所在地" /> -->
<region <region
style="width: 250px" style="width: 250px"
@selected="selectedRegion" @selected="selectedRegion"
@ -32,6 +31,13 @@
><span slot="append"></span> ><span slot="append"></span>
</Input> </Input>
</FormItem> </FormItem>
<FormItem prop="linkPhone" label="公司电话">
<Input
type="text"
v-model="form.companyPhone"
placeholder="请填写公司电话"
></Input>
</FormItem>
<FormItem prop="registeredCapital" label="注册资金"> <FormItem prop="registeredCapital" label="注册资金">
<Input <Input
type="text" type="text"

View File

@ -3,7 +3,7 @@
<div style="height: 20px"></div> <div style="height: 20px"></div>
<div class="content"> <div class="content">
<h3>店铺入驻</h3> <h3>店铺入驻</h3>
<Steps :current="currentIndex" size="small" class="margin"> <Steps :current="currentIndex" class="margin">
<Step title="企业资质信息"></Step> <Step title="企业资质信息"></Step>
<Step title="财务资质信息"></Step> <Step title="财务资质信息"></Step>
<Step title="其他信息"></Step> <Step title="其他信息"></Step>
@ -38,28 +38,27 @@
</div> </div>
</template> </template>
<script> <script>
import { agreement, applyStatus } from "@/api/shopentry"; import { agreement, applyStatus } from '@/api/shopentry';
import firstApply from "./first-apply"; import firstApply from './first-apply';
import secondApply from "./second-apply"; import secondApply from './second-apply';
import thirdApply from "./third-apply"; import thirdApply from './third-apply';
export default { export default {
components: { components: {
firstApply, firstApply,
secondApply, secondApply,
thirdApply, thirdApply
}, },
data () { data () {
return { return {
currentIndex: 0, // currentIndex: 0, //
showAgreement: false, // showAgreement: false, //
agreementCon: "", // agreementCon: '', //
checked: false, // checked: false, //
applyData: {}, //
firstData: {}, // firstData: {}, //
secondData: {}, // secondData: {}, //
thirdData: {}, // thirdData: {}, //
storeDisable: "", // APPLY OPEN CLOSED REFUSED APPLYING storeDisable: '', // APPLY OPEN CLOSED REFUSED APPLYING
dataReview: true, // dataReview: true //
}; };
}, },
methods: { methods: {
@ -69,7 +68,7 @@ export default {
this.agreementCon = res.result.content; this.agreementCon = res.result.content;
}); });
}, },
getData() { getData () { //
applyStatus().then((res) => { applyStatus().then((res) => {
if (res.success) { if (res.success) {
if (!res.result) { if (!res.result) {
@ -78,34 +77,34 @@ export default {
this.dataReview = false; this.dataReview = false;
let data = res.result; let data = res.result;
let first = [ let first = [
"addressIdPath", 'storeAddressIdPath',
"addressPath", 'storeAddressPath',
"companyAddress", 'storeAddressDetail',
"companyEmail", 'companyEmail',
"companyName", 'companyName',
"employeeNum", 'employeeNum',
"legalId", 'legalId',
"legalName", 'legalName',
"licencePhoto", 'licencePhoto',
"legalPhoto", 'legalPhoto',
"licenseNum", 'licenseNum',
"linkName", 'linkName',
"linkPhone", 'linkPhone',
"registeredCapital", 'registeredCapital',
"scope", 'scope'
]; ];
let second = [ let second = [
"settlementBankAccountName", 'settlementBankAccountName',
"settlementBankAccountNum", 'settlementBankAccountNum',
"settlementBankBranchName", 'settlementBankBranchName',
"settlementBankJointName", 'settlementBankJointName'
]; ];
let third = [ let third = [
"goodsManagementCategory", 'goodsManagementCategory',
"storeCenter", 'storeCenter',
"storeDesc", 'storeDesc',
"storeLogo", 'storeLogo',
"storeName", 'storeName'
]; ];
this.storeDisable = data.storeDisable; this.storeDisable = data.storeDisable;
@ -120,25 +119,28 @@ export default {
this.thirdData[e] = data[e]; this.thirdData[e] = data[e];
}); });
if (this.storeDisable === "APPLY") { if (this.storeDisable === 'APPLY') {
this.currentIndex = 0; this.currentIndex = 0;
} else { } else {
this.currentIndex = 3; this.currentIndex = 3;
} }
this.$nextTick(() => {
this.dataReview = true; this.dataReview = true;
this.$forceUpdate(); this.$forceUpdate();
})
} }
console.log(33333333333333);
} }
}); });
}, },
nextPage (step) { nextPage (step) {
this.currentIndex = step; this.currentIndex = step;
}, }
}, },
mounted () { mounted () {
this.getData(); this.getData();
this.getArticle(); this.getArticle();
}, }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -159,7 +161,7 @@ export default {
} }
.margin { .margin {
margin: 10px 0; margin: 30px 0;
} }
.agreeent-con { .agreeent-con {
max-height: 500px; max-height: 500px;

View File

@ -60,17 +60,23 @@
> >
</Select> </Select>
</FormItem> </FormItem>
<FormItem prop="storeCenter" label="经纬度"> <FormItem prop="storeCenter" label="店铺定位">
<Input <!-- <Input
type="text" type="text"
v-model="form.storeCenter" v-model="form.storeCenter"
readonly readonly
placeholder="点击右侧按钮选择店铺位置" placeholder="点击右侧按钮选择店铺位置"
/> /> -->
<Button <Button
icon="ios-locate-outline" type="info"
v-if="!form.storeCenter"
@click="$refs.liliMap.showMap = true" @click="$refs.liliMap.showMap = true"
></Button> >点击获取店铺定位</Button>
<Button
type="success"
v-else
@click="$refs.liliMap.showMap = true"
>已定位</Button>
</FormItem> </FormItem>
<FormItem prop="storeDesc" label="店铺简介"> <FormItem prop="storeDesc" label="店铺简介">
<Input <Input

View File

@ -15,7 +15,8 @@
> >
<div class="user-icon"> <div class="user-icon">
<div class="user-img"> <div class="user-img">
<img :src="userInfo.face" /> <img :src="userInfo.face" v-if="userInfo.face" alt />
<Avatar icon="ios-person" class="mb_10" v-else size="96" />
</div> </div>
<p>{{userInfo.nickName}}</p> <p>{{userInfo.nickName}}</p>
</div> </div>
@ -125,10 +126,6 @@ export default {
align-items: center; align-items: center;
} }
.user-icon span {
font-size: 96px;
}
.user-img { .user-img {
margin-bottom: 15px; margin-bottom: 15px;
width: 96px; width: 96px;
@ -137,10 +134,6 @@ export default {
overflow: hidden; overflow: hidden;
} }
.user-img img {
width: 100%;
}
.layout-footer-center { .layout-footer-center {
padding: 0px 15px; padding: 0px 15px;

View File

@ -116,6 +116,7 @@ async function refresh (error) {
}); });
}, },
onCancel: () => { onCancel: () => {
router.go(0)
Modal.remove(); Modal.remove();
} }
}); });

View File

@ -21,6 +21,10 @@ export default {
buyer: "https://buyer-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn", seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn" manager: "https://admin-api.pickmall.cn"
// common: 'http://192.168.0.109:8890',
// buyer: 'http://192.168.0.109:8888',
// seller: 'http://192.168.0.109:8889',
// manager: 'http://192.168.0.109:8887'
}, },
api_prod: { api_prod: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",

View File

@ -150,7 +150,7 @@
<div class="today-item"> <div class="today-item">
<div>今日交易额</div> <div>今日交易额</div>
<span>{{homeData.todayOrderPrice | unitPrice }}</span> <span>{{homeData.todayOrderPrice ? (homeData.todayOrderPrice | unitPrice) : 0}}</span>
</div> </div>
<div class="today-item"> <div class="today-item">
<div>今日新增店铺</div> <div>今日新增店铺</div>

View File

@ -122,6 +122,17 @@
title: "充值方式", title: "充值方式",
key: "rechargeWay", key: "rechargeWay",
width: 120, width: 120,
render: (h, params) => {
if (params.row.rechargeWay === 'ALIPAY') {
return h('div', [h('span', {}, '支付宝')]);
} else if (params.row.rechargeWay === 'WECHAT') {
return h('div', [h('span', {}, '微信')]);
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
return h('div', [h('span', {}, '线下转账')]);
} else {
return h('div', [h('span', {}, '')]);
}
}
}, },
{ {
title: "支付状态", title: "支付状态",

View File

@ -78,7 +78,7 @@ export default {
color: "red", color: "red",
}, },
}, },
this.$options.filters.unitPrice(params.row.money, "¥") this.$options.filters.unitPrice(-params.row.money, "- ¥")
), ),
]); ]);
} }

View File

@ -324,7 +324,7 @@ export default {
// //
selectedList: { selectedList: {
type: null, type: null,
default: "", default: [],
}, },
}, },
watch: { watch: {

View File

@ -18,7 +18,7 @@
import { getVerifyImg, postVerifyImg } from './verify.js'; import { getVerifyImg, postVerifyImg } from './verify.js';
export default { export default {
props: { props: {
verifyType: { verifyType: { //
defalut: 'LOGIN', defalut: 'LOGIN',
type: String type: String
} }
@ -97,9 +97,6 @@ export default {
}); });
} }
}, },
created () {
// this.getImg();
},
watch: { watch: {
verifyType: { verifyType: {
immediate: true, immediate: true,

View File

@ -98,8 +98,8 @@
</p> </p>
<p class="item"> <p class="item">
<span class="label">店铺经纬度</span> <span class="label">店铺定位</span>
<span class="info">{{storeInfo.storeCenter?storeInfo.storeCenter:'暂未完善'}}</span> <span class="info">{{storeInfo.storeCenter?'已定位':'未定位'}}</span>
</p> </p>
<p class="item"> <p class="item">
<span class="label">经营范围</span> <span class="label">经营范围</span>

View File

@ -27,8 +27,18 @@
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
<FormItem label="店铺经纬度" prop="shopCenter"> <FormItem label="店铺定位" prop="shopCenter">
<Input v-model="shopForm.storeCenter" @on-focus="$refs.liliMap.showMap = true" clearable style="width: 350px" /> <!-- <Input v-model="shopForm.storeCenter" @on-focus="$refs.liliMap.showMap = true" clearable style="width: 350px" /> -->
<Button
type="info"
v-if="!shopForm.storeCenter"
@click="$refs.liliMap.showMap = true"
>点击获取店铺定位</Button>
<Button
type="success"
v-else
@click="$refs.liliMap.showMap = true"
>已定位</Button>
</FormItem> </FormItem>
<FormItem label="店铺所在地" prop="storeAddressPath"> <FormItem label="店铺所在地" prop="storeAddressPath">
@ -267,7 +277,7 @@ export default {
{ required: true, message: "店铺简介不能为空", trigger: "blur" }, { required: true, message: "店铺简介不能为空", trigger: "blur" },
], ],
storeCenter: [ storeCenter: [
{ required: true, message: "店铺经纬度不能为空", trigger: "change" }, { required: true, message: "店铺未定位", trigger: "change" },
], ],
companyName: [ companyName: [
{ required: true, message: "公司名称不能为空", trigger: "blur" }, { required: true, message: "公司名称不能为空", trigger: "blur" },

View File

@ -18,14 +18,14 @@ export default {
* @description api请求基础路径 * @description api请求基础路径
*/ */
api_dev: { api_dev: {
// common: 'https://common-api.pickmall.cn', common: 'https://common-api.pickmall.cn',
// buyer: 'https://buyer-api.pickmall.cn', buyer: 'https://buyer-api.pickmall.cn',
// seller: 'https://store-api.pickmall.cn', seller: 'https://store-api.pickmall.cn',
// manager: 'https://admin-api.pickmall.cn', manager: 'https://admin-api.pickmall.cn',
common: 'http://192.168.0.109:8890', // common: 'http://192.168.0.100:8890',
buyer: 'http://192.168.0.109:8888', // buyer: 'http://192.168.0.100:8888',
seller: 'http://192.168.0.109:8889', // seller: 'http://192.168.0.100:8889',
manager: 'http://192.168.0.109:8887' // manager: 'http://192.168.0.100:8887'
}, },
api_prod: { api_prod: {
common: 'https://common-api.pickmall.cn', common: 'https://common-api.pickmall.cn',

View File

@ -36,7 +36,7 @@
<DropdownItem name="uppers">批量上架</DropdownItem> <DropdownItem name="uppers">批量上架</DropdownItem>
<DropdownItem name="lowers">批量下架</DropdownItem> <DropdownItem name="lowers">批量下架</DropdownItem>
<DropdownItem name="deleteAll">批量删除</DropdownItem> <DropdownItem name="deleteAll">批量删除</DropdownItem>
<!-- <DropdownItem name="batchShipTemplate">批量设置运费模板</DropdownItem> --> <DropdownItem name="batchShipTemplate">批量设置运费模板</DropdownItem>
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
</Row> </Row>

View File

@ -621,7 +621,7 @@ export default {
/** 是否重新生成sku */ /** 是否重新生成sku */
regeneratorSkuFlag: false, regeneratorSkuFlag: false,
/** 运费模板id **/ /** 运费模板id **/
templateId: 0, templateId: '',
/** 参数组*/ /** 参数组*/
goodsParamsDTOList: [], goodsParamsDTOList: [],
}, },
@ -685,6 +685,7 @@ export default {
{required: true, message: "请输入物流参数"}, {required: true, message: "请输入物流参数"},
{validator: checkWeight}, {validator: checkWeight},
], ],
templateId: [{required: true, message: '请选择物流模板'}],
sellingPoint: [{required: true, message: "请输入商品卖点"}], sellingPoint: [{required: true, message: "请输入商品卖点"}],
goodsUnit: [{required: true, message: "请选择计量单位"}], goodsUnit: [{required: true, message: "请选择计量单位"}],
}, },
@ -763,7 +764,7 @@ export default {
mobileIntro: "", mobileIntro: "",
updateSku: true, updateSku: true,
regeneratorSkuFlag: false, regeneratorSkuFlag: false,
templateId: 0, templateId: '',
goodsParamsDTOList: [], goodsParamsDTOList: [],
}; };
this.activestep = 0; this.activestep = 0;
@ -1548,6 +1549,7 @@ export default {
this.$Message.error("请上传商品图片"); this.$Message.error("请上传商品图片");
return; return;
} }
if (this.baseInfoForm.templateId === '') this.baseInfoForm.templateId = 0;
let flag = false; let flag = false;
let paramValue = ""; let paramValue = "";
// // // //

View File

@ -121,7 +121,7 @@
</div> </div>
<div class="detail-item"> <div class="detail-item">
<div> <div @click="navigateTo('seckill')">
<span>{{homeData.seckillNum || 0}}</span> <span>{{homeData.seckillNum || 0}}</span>
<div>待参加活动</div> <div>待参加活动</div>
</div> </div>

View File

@ -48,7 +48,7 @@
</div> </div>
<div class="card-item"> <div class="card-item">
<div class="card-item-label">下单金额</div> <div class="card-item-label">下单金额</div>
<div class="card-item-value">{{overViewList.orderAmount| unitPrice('¥') }}</div> <div class="card-item-value">{{overViewList.orderAmount ? ($options.filters.unitPrice(overViewList.orderAmount )) : 0 }}</div>
</div> </div>
<div class="card-item"> <div class="card-item">
<div class="card-item-label">付款笔数</div> <div class="card-item-label">付款笔数</div>
@ -56,7 +56,7 @@
</div> </div>
<div class="card-item"> <div class="card-item">
<div class="card-item-label">付款金额</div> <div class="card-item-label">付款金额</div>
<div class="card-item-value">{{overViewList.paymentAmount | unitPrice('¥')}}</div> <div class="card-item-value">{{ overViewList.paymentAmount ? ($options.filters.unitPrice(overViewList.paymentAmount)) : 0 }}</div>
</div> </div>
</div> </div>