refactor: 移动端升级 Vue3 + uView Plus

将 lilishop-uniapp 从 Vue2/uView 1.6 迁移到 Vue3/uview-plus,优先支持 H5/微商城与微信小程序;移除 vendored uview-ui,改用 npm 依赖、Vuex4 与迁移脚本/补丁,并补充 VUE3_MIGRATION.md 回归清单。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pikachu1995@126.com
2026-06-30 18:50:38 +08:00
parent c290c7a329
commit dc2bef455a
299 changed files with 5507 additions and 43811 deletions

View File

@@ -2,7 +2,7 @@
<view>
<!-- 楼层装修店铺信息 -->
<div>
<u-navbar :border-bottom="false">
<u-navbar :border="false">
<u-search
v-model="keyword"
@search="search"
@@ -74,7 +74,7 @@
<view class="xian"></view>
<view class="text">
<text>{{ "领取优惠券" }}</text>
<text>{{ item.consumeThreshold | unitPrice }}元可用</text>
<text>{{unitPrice(item.consumeThreshold) }}元可用</text>
</view>
</view>
</view>
@@ -113,7 +113,7 @@
<u-navbar
class="navbar"
v-if="item.type == 'search'"
:is-fixed="index === 1 ? false : true"
:fixed="index === 1 ? false : true"
>
<div class="navbar-right"></div>
@@ -293,7 +293,7 @@ export default {
methods: {
talk(){
this.$options.filters.talkIm(this.storeInfo.storeId)
this.talkIm(this.storeInfo.storeId)
},
back() {
uni.navigateBack();
@@ -325,7 +325,7 @@ export default {
this.categoryList = [];
this.couponList = [];
this.goodsParams.pageNumber = 1;
if (this.$options.filters.isLogin("auth")) {
if (this.isLogin("auth")) {
this.enableGoodsIsCollect();
}
// 店铺信息
@@ -482,14 +482,14 @@ export default {
* 领取
*/
getCoupon(item) {
if (!this.$options.filters.isLogin("auth")) {
if (!this.isLogin("auth")) {
uni.showToast({
icon: "none",
duration: 3000,
title: "请先登录!",
});
this.$options.filters.navigateToLogin("redirectTo");
this.navigateToLogin("redirectTo");
return false;
}
receiveCoupons(item.id).then((res) => {