Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
de92eb27
提交
de92eb27
authored
7月 28, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新需求
上级
f52e0c11
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
333 行增加
和
124 行删除
+333
-124
searchPupop.vue
src/components/searchPupop.vue
+1
-0
editQuotation.vue
src/pages/order/editQuotation.vue
+184
-33
quotation.vue
src/pages/order/quotation.vue
+1
-1
addSite.vue
src/pages/profile/addSite.vue
+137
-80
config.ts
src/utils/config.ts
+2
-2
vite.config.ts
vite.config.ts
+8
-8
没有找到文件。
src/components/searchPupop.vue
浏览文件 @
de92eb27
...
...
@@ -60,6 +60,7 @@
}
const
close
=
()
=>
{
keyword
.
value
=
''
emits
(
'update:modelValue'
,
false
)
}
</
script
>
...
...
src/pages/order/editQuotation.vue
浏览文件 @
de92eb27
...
...
@@ -22,7 +22,7 @@
下载pdf
</u-button>
</view>
<text
class=
"quotation-details"
@
tap=
"
show = true
"
>
报价详情
</text>
<text
class=
"quotation-details"
@
tap=
"
quotationDetail
"
>
报价详情
</text>
</view>
<view
style=
"display: flex; justify-content: space-between; margin-top: 20rpx"
...
...
@@ -59,13 +59,8 @@
<view
style=
"margin-bottom: 10rpx"
>
单价:¥
{{
Number
(
item
.
price
).
toFixed
(
2
)
}}
</view>
<!--
<view
style=
"margin-bottom: 10rpx;"
>
当前金额:¥
{{
item
.
totalPrice
.
toFixed
(
2
)
}}
</view>
-->
<view>
当前含税金额:¥
{{
item
.
totalPriceTex
.
toFixed
(
2
)
}}
</view>
</view>
<!--
<u-number-box
v-model=
"item.number"
:input-width=
"60"
:input-height=
"30"
:min=
"1"
:index=
"index"
@
change=
"valChange"
></u-number-box>
-->
</view>
<view
style=
"margin-bottom: 10rpx"
>
商品详情:
{{
item
.
remarks
===
'[]'
?
'无'
:
item
.
remarks
}}
...
...
@@ -74,46 +69,100 @@
</view>
</view>
</view>
<u-popup
v-model=
"show"
mode=
"center"
closeable
width=
"80%"
height=
"70%"
>
<u-modal
v-model=
"showModel"
:content=
"content"
@
confirm=
"modelConfirm"
@
cancel=
"modelCancel"
showCancelButton
>
</u-modal>
<u-select
v-model=
"guaranteeShow"
:list=
"guaranteeList"
@
confirm=
"textValue($event, 'guarantee')"
/>
<u-popup
v-model=
"show"
mode=
"center"
closeable
border-radius=
"15"
width=
"90%"
height=
"70%"
@
close=
"close"
>
<h3
style=
"padding: 30rpx; text-align: center"
>
报价详情
</h3>
<u-cell-group>
<block
v-for=
"(item, index) in quotationList"
:key=
"index"
>
<u-cell-item
icon=
"
"
:icon=
"editFields.indexOf(item.type) !== -1 ? 'edit-pen' : ''
"
:title=
"item.title"
:value=
"item.
value
"
:value=
"item.
type !== 'deliveryTime' ? item.value : ''
"
:arrow=
"false"
></u-cell-item>
@
tap=
"tapCellItem(item.type)"
>
<template
#
right-icon
>
<u-input
v-if=
"item.type === 'deliveryTime'"
v-model=
"item.value"
placeholder=
""
clearable
/>
</
template
>
</u-cell-item>
</block>
</u-cell-group>
<view
style=
"display: flex; padding: 30rpx 0"
>
<u-button
type=
"primary"
@
tap=
"save"
>
保存
</u-button>
</view>
</u-popup>
<u-modal
v-model=
"showModel"
:content=
"content"
@
confirm=
"modelConfirm"
@
cancel=
"modelCancel"
showCancelButton
>
</u-modal>
<searchPopup
v-model=
"searchShow"
:type=
"type"
:list=
"searchList"
@
search=
"search"
@
textValue=
"textValue"
/>
</template>
<
script
setup
lang=
"ts"
>
import
{
onLoad
,
onBackPress
}
from
'@dcloudio/uni-app'
import
{
ref
,
computed
,
nextTick
}
from
'vue'
import
{
quotationInitAgain
,
fillQuotation
}
from
'@/api/cart'
import
{
quotationInitAgain
,
fillQuotation
,
getQuotationDelivery
,
getQuotationPayment
,
}
from
'@/api/cart'
import
{
getTax
}
from
'@/api/index'
import
config
from
'@/utils/config'
import
searchPopup
from
'@/components/searchPupop.vue'
let
baseUrl
=
config
.
baseUrl
let
orderId
=
ref
()
let
quotationData
=
ref
()
let
quotationList
=
ref
()
let
quotationListCopy
:
any
=
''
let
quotationDataCopy
:
any
=
''
let
tax
=
ref
()
let
content
=
ref
(
'确认重新报价?'
)
let
show
=
ref
(
false
)
let
searchShow
=
ref
(
false
)
let
guaranteeShow
=
ref
(
false
)
let
isSave
=
ref
(
false
)
let
type
=
ref
()
let
showModel
=
ref
(
false
)
let
oldPrice
=
ref
()
let
searchList
=
ref
()
let
editFields
=
[
'pay'
,
'guarantee'
,
'deliveryTime'
,
'deliveryAddr'
]
let
guaranteeList
=
ref
([
{
value
:
'1年'
,
label
:
'1年'
},
{
value
:
'2年'
,
label
:
'2年'
},
{
value
:
'其他'
,
label
:
'其他'
},
])
onLoad
((
options
:
any
)
=>
{
orderId
.
value
=
options
.
orderId
...
...
@@ -215,31 +264,124 @@
})
}
const
tapCellItem
=
(
item
:
any
)
=>
{
console
.
log
(
item
)
switch
(
item
)
{
case
'deliveryAddr'
:
initQuotationDelivery
()
type
.
value
=
'deliveryAddr'
searchShow
.
value
=
true
break
case
'pay'
:
initQuotationPayment
()
type
.
value
=
'pay'
searchShow
.
value
=
true
break
case
'guarantee'
:
guaranteeShow
.
value
=
true
break
default
:
// initQuotationBank(val)
break
}
}
const
search
=
(
val
:
string
,
type
:
string
)
=>
{
switch
(
type
)
{
case
'deliveryAddr'
:
initQuotationDelivery
(
val
)
break
case
'pay'
:
initQuotationPayment
(
val
)
break
}
}
const
textValue
=
(
val
:
any
,
type
:
string
)
=>
{
console
.
log
(
val
,
type
)
switch
(
type
)
{
case
'deliveryAddr'
:
quotationDataCopy
.
deliveryAddr
=
val
.
textValue
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
.
textValue
break
case
'pay'
:
quotationDataCopy
.
pay
=
val
.
textValue
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
.
textValue
break
case
'guarantee'
:
quotationDataCopy
.
guarantee
=
val
[
0
].
value
quotationList
.
value
.
filter
((
item
:
any
)
=>
item
.
type
==
type
)[
0
].
value
=
val
[
0
].
value
break
default
:
break
}
}
const
close
=
(
e
:
any
)
=>
{
if
(
isSave
.
value
)
return
quotationList
.
value
=
quotationListCopy
}
let
quotationDetail
=
()
=>
{
show
.
value
=
true
isSave
.
value
=
false
quotationListCopy
=
JSON
.
parse
(
JSON
.
stringify
(
quotationList
.
value
))
quotationDataCopy
=
JSON
.
parse
(
JSON
.
stringify
(
quotationData
.
value
.
quotation
))
}
let
save
=
()
=>
{
quotationData
.
value
.
quotation
=
quotationDataCopy
isSave
.
value
=
true
show
.
value
=
false
}
let
init
=
()
=>
{
quotationInitAgain
({
orderId
:
orderId
.
value
}).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
quotationData
.
value
=
res
.
data
.
data
let
data
=
quotationData
.
value
.
quotation
quotationList
.
value
=
[
{
title
:
'发货人'
,
value
:
data
.
attend
},
{
title
:
'发货联系电话'
,
value
:
data
.
tel
},
{
title
:
'发货email'
,
value
:
data
.
email
},
{
title
:
'发货地址'
,
value
:
data
.
addr
},
{
title
:
'收货公司名称'
,
value
:
data
.
toCust
},
{
title
:
'收货人'
,
value
:
data
.
quotationAttend
},
{
title
:
'收货email'
,
value
:
data
.
quotationEmail
},
{
title
:
'收货联系电话'
,
value
:
data
.
quotationTel
},
{
title
:
'交货日期'
,
value
:
data
.
deliveryDate
},
{
title
:
'收货地址'
,
value
:
data
.
deliveryAddr
},
{
title
:
'订单号'
,
value
:
data
.
noOrder
},
{
title
:
'付款方式'
,
value
:
data
.
pay
},
{
title
:
'保修'
,
value
:
data
.
guarantee
},
{
title
:
'备注'
,
value
:
data
.
remarks
},
{
title
:
'发货人'
,
value
:
data
.
attend
,
type
:
'attend'
},
{
title
:
'发货联系电话'
,
value
:
data
.
tel
,
type
:
'tel'
},
{
title
:
'发货email'
,
value
:
data
.
email
,
type
:
'email'
},
{
title
:
'发货地址'
,
value
:
data
.
addr
,
type
:
'addr'
},
{
title
:
'收货公司名称'
,
value
:
data
.
toCust
,
type
:
'toCust'
},
{
title
:
'收货人'
,
value
:
data
.
quotationAttend
,
type
:
'quotationAttend'
},
{
title
:
'收货email'
,
value
:
data
.
quotationEmail
,
type
:
'quotationEmail'
},
{
title
:
'收货联系电话'
,
value
:
data
.
quotationTel
,
type
:
'quotationTel'
},
{
title
:
'订单号'
,
value
:
data
.
noOrder
,
type
:
'noOrder'
},
{
title
:
'预计交货时间'
,
value
:
data
.
deliveryDate
,
type
:
'deliveryDate'
},
{
title
:
'交货期'
,
value
:
data
.
deliveryTime
,
type
:
'deliveryTime'
},
{
title
:
'交货地址'
,
value
:
data
.
deliveryAddr
,
type
:
'deliveryAddr'
},
{
title
:
'付款方式'
,
value
:
data
.
pay
,
type
:
'pay'
},
{
title
:
'保修'
,
value
:
data
.
guarantee
,
type
:
'guarantee'
},
{
title
:
'备注'
,
value
:
data
.
remarks
,
type
:
'remarks'
},
]
}
})
}
// 交货地址
let
initQuotationDelivery
=
(
name
?:
string
)
=>
{
getQuotationDelivery
(
name
).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
searchList
.
value
=
res
.
data
.
data
}
})
}
// 收款条件
let
initQuotationPayment
=
(
name
?:
string
)
=>
{
getQuotationPayment
(
name
).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
searchList
.
value
=
res
.
data
.
data
}
})
}
onBackPress
((
options
:
any
)
=>
{
const
pages
=
getCurrentPages
()
// 当前页面路由
const
currentPageIndex
=
pages
.
length
-
1
...
...
@@ -295,4 +437,13 @@
font-size
:
0
.875rem
;
color
:
rgb
(
192
,
196
,
204
);
}
:deep
(
.u-cell_right
.uni-input-input
)
{
text-align
:
end
;
color
:
#909399
;
}
:deep
(
.u-select
.u-drawer
)
{
z-index
:
10099
!
important
;
}
</
style
>
src/pages/order/quotation.vue
浏览文件 @
de92eb27
...
...
@@ -107,7 +107,7 @@
<!-- 收货地址 -->
<view
class=
"address"
@
tap=
"tapAddresss"
>
<view
class=
"top"
>
<text>
收货
信息
</text>
<text>
客户报价商务
信息
</text>
<u-icon
name=
"arrow-right"
></u-icon>
</view>
<view
class=
"bottom"
>
...
...
src/pages/profile/addSite.vue
浏览文件 @
de92eb27
...
...
@@ -3,21 +3,40 @@
<view
class=
"top"
>
<view
class=
"item"
>
<view
class=
"left"
>
客户名称
</view>
<u-select
v-model=
"showSelect"
:list=
"selectList"
@
confirm=
"onConfirm"
></u-select>
<input
:disabled=
"true"
v-model=
"addressData.name"
placeholder-class=
"line"
placeholder=
"请填写客户名称"
@
tap=
"showSelect = true"
/>
<input
:disabled=
"true"
v-model=
"addressData.name"
placeholder-class=
"line"
placeholder=
"请填写客户名称"
@
tap=
"searchShow = true"
/>
</view>
<view
class=
"item"
>
<view
class=
"left"
>
采购员
</view>
<input
type=
"text"
v-model=
"addressData.contactName"
placeholder-class=
"line"
placeholder=
"请填写采购员"
/>
<input
type=
"text"
v-model=
"addressData.contactName"
placeholder-class=
"line"
placeholder=
"请填写采购员"
/>
</view>
<view
class=
"item"
>
<view
class=
"left"
>
采购手机号
</view>
<input
v-model=
"addressData.tel"
type=
"text"
placeholder-class=
"line"
placeholder=
"请填写采购手机号"
/>
<input
v-model=
"addressData.tel"
type=
"text"
placeholder-class=
"line"
placeholder=
"请填写采购手机号"
/>
</view>
<view
class=
"item"
>
<view
class=
"left"
>
采购邮箱
</view>
<input
v-model=
"addressData.customerEmail"
type=
"text"
placeholder-class=
"line"
placeholder=
"请填写采购邮箱"
/>
<input
v-model=
"addressData.customerEmail"
type=
"text"
placeholder-class=
"line"
placeholder=
"请填写采购邮箱"
/>
</view>
<!--
<view
class=
"item"
@
tap=
"showRegionPicker"
>
<view
class=
"left"
>
所在地址
</view>
...
...
@@ -25,8 +44,12 @@
</view>
-->
<view
class=
"item address"
>
<view
class=
"left"
>
公司所在地址
</view>
<textarea
v-model=
"addressData.addressDetail"
type=
"text"
placeholder-class=
"line"
placeholder=
"街道、楼牌等"
/>
<textarea
v-model=
"addressData.addressDetail"
type=
"text"
placeholder-class=
"line"
placeholder=
"街道、楼牌等"
/>
</view>
</view>
<view
class=
"bottom"
>
...
...
@@ -41,30 +64,47 @@
</view>
</view>
<view
style=
"padding: 6%;
"
>
<view
style=
"padding: 6%
"
>
<u-button
type=
"error"
shape=
"circle"
@
click=
"addressSave"
>
保存
</u-button>
<u-button
v-show=
"editId"
shape=
"circle"
@
click=
"addressDel"
style=
"margin-top: 20rpx;"
>
<u-button
v-show=
"editId"
shape=
"circle"
@
click=
"addressDel"
style=
"margin-top: 20rpx"
>
删除
</u-button>
</view>
<u-picker
mode=
"region"
ref=
"uPicker"
v-model=
"show"
@
confirm=
"confirm"
/>
<u-modal
v-model=
"showModel"
:content=
"content"
show-cancel-button
@
confirm=
"confirmModel"
></u-modal>
<u-modal
v-model=
"showModel"
:content=
"content"
show-cancel-button
@
confirm=
"confirmModel"
></u-modal>
<searchPupop
v-model=
"searchShow"
:list=
"searchList"
@
search=
"search"
@
textValue=
"textValue"
/>
</view>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
computed
}
from
'vue'
;
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
{
deleteAddress
,
saveAddress
,
getAddrList
}
from
'@/api/index'
;
import
{
consigneeList
}
from
'@/api/profile'
;
let
show
=
ref
(
false
);
let
showModel
=
ref
(
false
);
let
showSelect
=
ref
(
false
);
let
content
=
ref
(
'确认删除地址?'
);
let
selectList
=
ref
([]
as
any
)
let
addressData
=
ref
({
import
{
ref
,
computed
}
from
'vue'
import
{
onLoad
}
from
'@dcloudio/uni-app'
import
{
deleteAddress
,
saveAddress
,
getAddrList
}
from
'@/api/index'
import
{
consigneeList
}
from
'@/api/profile'
import
searchPupop
from
'@/components/searchPupop.vue'
let
show
=
ref
(
false
)
let
showModel
=
ref
(
false
)
let
searchShow
=
ref
(
false
)
let
searchList
=
ref
()
let
content
=
ref
(
'确认删除地址?'
)
let
addressData
=
ref
({
addressDetail
:
''
,
areaCode
:
''
,
city
:
''
,
...
...
@@ -78,55 +118,59 @@ let addressData = ref({
postalCode
:
''
,
province
:
''
,
tel
:
''
,
}
as
any
);
// 显示地区
let
addressDetails
=
computed
(()
=>
{
return
addressData
.
value
.
province
+
addressData
.
value
.
city
+
addressData
.
value
.
county
;
});
}
as
any
)
// 显示地区
let
addressDetails
=
computed
(()
=>
{
return
(
addressData
.
value
.
province
+
addressData
.
value
.
city
+
addressData
.
value
.
county
)
})
let
editId
=
ref
()
onLoad
((
options
?:
any
)
=>
{
let
editId
=
ref
()
onLoad
((
options
?:
any
)
=>
{
if
(
JSON
.
stringify
(
options
)
!==
'{}'
)
{
addressData
.
value
=
JSON
.
parse
(
options
.
data
);
addressData
.
value
=
JSON
.
parse
(
options
.
data
)
// 判断是否显示删除
editId
.
value
=
addressData
.
value
?.
id
}
consigneeList
().
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
res
.
data
.
data
.
map
((
item
:
any
)
=>
{
selectList
.
value
.
push
({
label
:
item
.
customerName
,
value
:
item
.
customerCode
})
initConsigneeList
()
})
}
})
});
// 打开地区选择
let
showRegionPicker
=
async
()
=>
{
// 打开地区选择
let
showRegionPicker
=
async
()
=>
{
const
{
data
:
res
}:
any
=
await
getAddrList
()
console
.
log
(
res
);
console
.
log
(
res
)
show
.
value
=
true
}
show
.
value
=
true
;
};
let
search
=
(
val
:
string
)
=>
{
initConsigneeList
(
val
)
}
let
textValue
=
(
val
:
any
)
=>
{
addressData
.
value
.
name
=
val
.
customerName
addressData
.
value
.
customerCode
=
val
.
customerCode
}
let
onConfirm
=
(
data
:
any
)
=>
{
let
onConfirm
=
(
data
:
any
)
=>
{
addressData
.
value
.
name
=
data
[
0
].
label
addressData
.
value
.
customerCode
=
data
[
0
].
value
}
// 设置地区
let
confirm
=
(
data
:
any
)
=>
{
addressData
.
value
.
areaCode
=
data
.
area
.
code
;
addressData
.
value
.
province
=
data
.
province
.
name
;
addressData
.
value
.
city
=
data
.
city
.
name
;
addressData
.
value
.
county
=
data
.
area
.
name
;
};
// 确认删除地址
let
confirmModel
=
()
=>
{
}
// 设置地区
let
confirm
=
(
data
:
any
)
=>
{
addressData
.
value
.
areaCode
=
data
.
area
.
code
addressData
.
value
.
province
=
data
.
province
.
name
addressData
.
value
.
city
=
data
.
city
.
name
addressData
.
value
.
county
=
data
.
area
.
name
}
// 确认删除地址
let
confirmModel
=
()
=>
{
deleteAddress
(
editId
.
value
).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
uni
.
navigateBack
({
...
...
@@ -135,38 +179,39 @@ let confirmModel = () => {
uni
.
$emit
(
'initAddress'
)
uni
.
showToast
({
title
:
'删除地址成功'
,
icon
:
'none'
icon
:
'none'
,
})
},
})
}
});
})
}
});
}
// 保存地址
let
addressSave
=
()
=>
{
// 保存地址
let
addressSave
=
()
=>
{
if
(
!
addressData
.
value
.
name
)
return
uni
.
showToast
({
title
:
'请输入客户名称'
,
icon
:
'none'
,
});
})
if
(
!
addressData
.
value
.
contactName
)
return
uni
.
showToast
({
title
:
'请输入采购员'
,
icon
:
'none'
,
});
})
// let emailReg = /^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/
// if (!emailReg.test(addressData.value.customerEmail))
// return uni.showToast({
// title: '邮箱为空或格式不对',
// icon: 'none',
// });
let
reg
=
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
;
let
reg
=
/^
(
13
[
0-9
]
|14
[
01456879
]
|15
[
0-35-9
]
|16
[
2567
]
|17
[
0-8
]
|18
[
0-9
]
|19
[
0-35-9
])\d{8}
$/
if
(
!
reg
.
test
(
addressData
.
value
.
tel
))
return
uni
.
showToast
({
title
:
'电话号码为空或格式不对'
,
icon
:
'none'
,
});
})
// if (!addressData.value.province)
// return uni.showToast({
// title: '请选择地址',
...
...
@@ -183,25 +228,36 @@ let addressSave = () => {
delta
:
1
,
success
()
{
uni
.
$emit
(
'initAddress'
)
},
})
}
});
})
}
});
};
// 打开删除地址模态框
let
addressDel
=
()
=>
{
// 打开删除地址模态框
let
addressDel
=
()
=>
{
showModel
.
value
=
true
};
}
let
initConsigneeList
=
(
name
?:
string
)
=>
{
consigneeList
({
name
}).
then
((
res
:
any
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
res
.
data
.
data
.
map
((
item
:
any
)
=>
{
item
.
textValue
=
item
.
customerName
})
searchList
.
value
=
res
.
data
.
data
}
})
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.line
{
::v-deep
.line
{
color
:
$u-light-color
;
font-size
:
28rpx
;
}
}
.wrap
{
.wrap
{
background-color
:
#f2f2f2
;
.top
{
...
...
@@ -315,8 +371,9 @@ let addressDel = () => {
font-size
:
24rpx
;
}
.right
{}
.right
{
}
}
}
}
}
</
style
>
src/utils/config.ts
浏览文件 @
de92eb27
...
...
@@ -2,8 +2,8 @@ const CONFIG: any = {
// 开发环境配置
development
:
{
assetsPath
:
'http://192.168.1.158:81'
,
// 静态资源路径
//
baseUrl: 'http://192.168.1.158:81', // 后台接口请求地址
baseUrl
:
'http://192.168.1.27:8089'
,
// 后台接口请求地址
baseUrl
:
'http://192.168.1.158:81'
,
// 后台接口请求地址
//
baseUrl: 'http://192.168.1.27:8089', // 后台接口请求地址
hostUrl
:
'http://192.168.1.158:81'
,
// H5地址(前端运行地址)
websocketUrl
:
''
,
// websocket服务端地址
},
...
...
vite.config.ts
浏览文件 @
de92eb27
import
{
defineConfig
}
from
"vite"
;
import
uni
from
"@dcloudio/vite-plugin-uni"
;
import
{
defineConfig
}
from
'vite'
import
uni
from
'@dcloudio/vite-plugin-uni'
// import pxtovw from 'postcss-px-to-viewport'
import
{
resolve
}
from
'path'
;
import
{
resolve
}
from
'path'
export
default
defineConfig
({
plugins
:
[
uni
()],
resolve
:
{
alias
:
{
'@'
:
resolve
(
__dirname
,
'./src'
)
}
'@'
:
resolve
(
__dirname
,
'./src'
),
},
},
css
:
{
preprocessorOptions
:
{
scss
:
{
additionalData
:
`@import "@/uni.scss";`
additionalData
:
`@import "@/uni.scss";`
,
},
},
postcss
:
{
// plugins: [loder_pxtovw]
}
},
},
assetsInclude
:
'@dcloudio/uni-ui'
,
build
:
{
...
...
@@ -29,4 +29,4 @@ export default defineConfig({
},
},
},
})
;
})
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论