fix: 🐛 修复几个已知bug

master
Yer 2023-09-14 09:11:25 +08:00
parent 24554a0768
commit 78df54d153
3 changed files with 15 additions and 6 deletions

View File

@ -38,8 +38,16 @@ Vue.config.devtools = true;
Vue.config.productionTip = false Vue.config.productionTip = false
const PC_URL = BASE.PC_URL; // 跳转买家端地址 pc端 const PC_URL = BASE.PC_URL; // 跳转买家端地址 pc端
const WAP_URL = BASE.WAP_URL; // 跳转买家端地址 wap端 const WAP_URL = BASE.WAP_URL; // 跳转买家端地址 wap端
Vue.prototype.linkTo = function (goodsId, skuId) { // 跳转买家端商品 Vue.prototype.linkTo = function (goodsId, skuId) {
window.open(`${PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank') // 跳转买家端商品
let src;
if (skuId) {
src = `${PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`;
} else {
src = `${PC_URL}/goodsDetail?goodsId=${goodsId}`;
}
window.open(src, "_blank");
}; };
Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码 Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}` return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`

View File

@ -2,7 +2,7 @@
<div> <div>
<Card> <Card>
<Row> <Row>
<Form ref="searchForm" :model="searchForm" @keydown.enter.native="handleSearch" inline :label-width="70" class="search-form"> <Form ref="searchForm" :model="searchForm" @keydown.enter.native="handleSearch" @submit.native.prevent inline :label-width="70" class="search-form">
<Form-item label="会员名称" prop="memberName"> <Form-item label="会员名称" prop="memberName">
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px"/> <Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px"/>
</Form-item> </Form-item>

View File

@ -8,6 +8,7 @@
inline inline
style="margin-top:10px" style="margin-top:10px"
:label-width="70" :label-width="70"
@submit.native.prevent
class="search-form" class="search-form"
> >
<Form-item label="会员名称" prop="username"> <Form-item label="会员名称" prop="username">