fix: 🐛 修复几个已知bug
parent
24554a0768
commit
78df54d153
|
@ -38,8 +38,16 @@ Vue.config.devtools = true;
|
|||
Vue.config.productionTip = false
|
||||
const PC_URL = BASE.PC_URL; // 跳转买家端地址 pc端
|
||||
const WAP_URL = BASE.WAP_URL; // 跳转买家端地址 wap端
|
||||
Vue.prototype.linkTo = function (goodsId, skuId) { // 跳转买家端商品
|
||||
window.open(`${PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
|
||||
Vue.prototype.linkTo = function (goodsId, skuId) {
|
||||
// 跳转买家端商品
|
||||
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端二维码
|
||||
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div>
|
||||
<Card>
|
||||
<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">
|
||||
<Input type="text" v-model="searchForm.memberName" placeholder="请输入会员名称" clearable style="width: 200px"/>
|
||||
</Form-item>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
inline
|
||||
style="margin-top:10px"
|
||||
:label-width="70"
|
||||
@submit.native.prevent
|
||||
class="search-form"
|
||||
>
|
||||
<Form-item label="会员名称" prop="username">
|
||||
|
|
Loading…
Reference in New Issue