增加分销页面,订单增加会员折扣

This commit is contained in:
2025-10-25 16:31:38 +08:00
parent 26532150b5
commit 845d9f7b40
39 changed files with 5988 additions and 43 deletions

View File

@@ -242,9 +242,7 @@
</view>
<!-- 生成公众号二维码 -->
<we-qrcode
@generate="(e) => qrcodeResult(e)"
></we-qrcode>
<we-qrcode @generate="(e) => qrcodeResult(e)"></we-qrcode>
</view>
</template>
@@ -258,10 +256,8 @@ import * as vipApi from "@/common/api/market/vip.js";
import * as rechargeApi from "@/common/api/market/recharge.js";
import { pointsShopList } from "@/common/api/account/points.js";
function qrcodeResult(res) {
qrcode.value = res
qrcode.value = res;
}
const store = productStore();
@@ -277,6 +273,11 @@ const myFunList = ref([
type: "my_coupon",
icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/my_coupon.png",
},
{
name: "分销",
type: "fenxiao",
icon: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/my/my_coupon.png",
},
// {
// name: "我的订单",
// type: "my_order",
@@ -414,6 +415,11 @@ const clickTo = (item, index) => {
shopId: uni.cache.get("shopId") || "",
});
break;
case "fenxiao": //优惠券
uni.navigateTo({
url: "/distribution/index",
});
break;
case "myself": //内部页面
uni.pro.navigateTo("user/myself");
break;
@@ -470,9 +476,8 @@ onShow(() => {
const qrcode = ref("");
const showQrcode = computed(() => {
const followIndex = uni.cache.get("followIndex");
if ( followIndex == "mine" && qrcode.value) {
if (followIndex == "mine" && qrcode.value) {
return true;
}
});