Commit 985f8f73 authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents 35b4040b ace70b4e
...@@ -5,7 +5,7 @@ VITE_APP_ENV = 'development' ...@@ -5,7 +5,7 @@ VITE_APP_ENV = 'development'
VITE_APP_BASE_URL = '/api' VITE_APP_BASE_URL = '/api'
# 照片url路径 (开发环境) # 照片url路径 (开发环境)
# VITE_APP_IMG_URL = 'http://file.rhhzkj.com:8080' VITE_APP_IMG_URL = 'http://file.rhhzkj.com:8080'
# 照片url路径(正式环境) # 照片url路径(正式环境)
VITE_APP_IMG_URL = 'https://file.rddyz.com' # VITE_APP_IMG_URL = 'https://file.rddyz.com'
<template> <template>
<view @tap="toShop(item.shopId)" class="card" v-for="item in cardData" :key="item.shopId"> <view @tap="toShop(item.shopId)" class="card" v-for="item in cardData" :key="item.shopId">
<image class="img" :src="item.shopLogo" mode="aspectFill" /> <image class="img" :src="item.shopLogo" mode="scaleToFill" />
<view class="right"> <view class="right">
<text class="text">{{ item.shopName }}</text> <text class="text">{{ item.shopName }}</text>
<view class="twoBxo"> <view class="twoBxo">
......
<template> <template>
<view class="card"> <view class="card">
<view class="head"> <view class="head">
<image class="imgBg" :src="shopCardData.shopLogo" mode="aspectFill" /> <image class="imgBg" :src="shopCardData.shopLogo" mode="scaleToFill" />
<view class="containerBox"> <view class="containerBox">
<image class="img" :src="shopCardData.shopLogo" mode="aspectFill" /> <image class="img" :src="shopCardData.shopLogo" mode="scaleToFill" />
<view class="right"> <view class="right">
<text class="text">{{ shopCardData.shopName }}</text> <text class="text">{{ shopCardData.shopName }}</text>
<view class="twoBxo"> <view class="twoBxo">
...@@ -159,6 +159,7 @@ const topFoodDetails = (id) => { ...@@ -159,6 +159,7 @@ const topFoodDetails = (id) => {
margin-top: 10rpx; margin-top: 10rpx;
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap;
view { view {
margin-right: 8rpx; margin-right: 8rpx;
display: inline-block; display: inline-block;
...@@ -168,6 +169,8 @@ const topFoodDetails = (id) => { ...@@ -168,6 +169,8 @@ const topFoodDetails = (id) => {
font-size: 18rpx; font-size: 18rpx;
color: #767676; color: #767676;
background: linear-gradient(90deg, #fcdbdb 0%, rgba(255, 255, 255, 0) 98%); background: linear-gradient(90deg, #fcdbdb 0%, rgba(255, 255, 255, 0) 98%);
margin-bottom: 5rpx;
flex-shrink: 0;
} }
} }
} }
......
...@@ -258,7 +258,7 @@ const choice = (index, item) => { ...@@ -258,7 +258,7 @@ const choice = (index, item) => {
// 跳转预售 // 跳转预售
const toPresale = () => { const toPresale = () => {
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/index/presale?categoryId=3273`, url: `/pages/assistingAgriculture/index/presale?categoryId=9`,
}); });
}; };
// 处理content // 处理content
...@@ -290,10 +290,6 @@ function toCart() { ...@@ -290,10 +290,6 @@ function toCart() {
page { page {
background: #f3f3f3; background: #f3f3f3;
} }
.container {
position: relative;
left: 0rpx;
}
.top { .top {
width: 750rpx; width: 750rpx;
height: 128rpx; height: 128rpx;
......
...@@ -34,9 +34,13 @@ ...@@ -34,9 +34,13 @@
height="220" height="220"
imageMode="aspectFill" imageMode="aspectFill"
></wd-swiper> ></wd-swiper>
<view class="env">
<text class="env-info">贵阳市农业农村局 贵阳日报传媒集团联合打造</text>
</view>
</view> </view>
<view class="sort"> <view class="sort">
<view style="display: flex; flex-direction: row"> <view style="display: flex; flex-direction: row">
<scroll-view class="box-red" scroll-x="true" @scroll="scroll">
<view <view
class="borderClass" class="borderClass"
@click="toBuilding(item)" @click="toBuilding(item)"
...@@ -46,6 +50,7 @@ ...@@ -46,6 +50,7 @@
<image mode="aspectFill" :src="item.icon" style="width: 96rpx; height: 96rpx" /> <image mode="aspectFill" :src="item.icon" style="width: 96rpx; height: 96rpx" />
<view class="sort-text">{{ item.categoryName }}</view> <view class="sort-text">{{ item.categoryName }}</view>
</view> </view>
</scroll-view>
</view> </view>
</view> </view>
<view class="product-page" v-for="(item, index) in list" :key="index"> <view class="product-page" v-for="(item, index) in list" :key="index">
...@@ -109,7 +114,7 @@ const getList = () => { ...@@ -109,7 +114,7 @@ const getList = () => {
res.data.forEach((item) => { res.data.forEach((item) => {
item.icon = import.meta.env.VITE_APP_IMG_URL + item.pic; item.icon = import.meta.env.VITE_APP_IMG_URL + item.pic;
}); });
sortList.value = res.data.splice(0, 4); sortList.value = res.data;
}); });
}; };
// 筑农严选首页-分类预售商品列表 // 筑农严选首页-分类预售商品列表
...@@ -145,12 +150,12 @@ const onChange = (e) => { ...@@ -145,12 +150,12 @@ const onChange = (e) => {
// console.log(e); // console.log(e);
}; };
const toBuilding = (item) => { const toBuilding = (item) => {
if (item.categoryName === '筑农严选') { if (item.categoryId === '10') {
// 跳转到筑农严选 // 跳转到筑农严选
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/index/building?categoryId=${item.categoryId}`, url: `/pages/assistingAgriculture/index/building?categoryId=${item.categoryId}`,
}); });
} else if (item.categoryName === '乡村旅居') { } else if (item.categoryId === '8') {
// 跳转到乡村旅居 // 跳转到乡村旅居
xma.navigateTo({ xma.navigateTo({
url: `/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=${item.categoryId}`, url: `/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=${item.categoryId}`,
...@@ -205,11 +210,23 @@ page { ...@@ -205,11 +210,23 @@ page {
height: 186rpx; height: 186rpx;
background: linear-gradient(180deg, #82ce8b -39%, #ffffff 36%); background: linear-gradient(180deg, #82ce8b -39%, #ffffff 36%);
} }
.box-red {
white-space: nowrap;
width: 100%;
::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
background-color: transparent;
}
.borderClass { .borderClass {
width: 96rpx; width: 96rpx;
height: 96rpx; height: 96rpx;
margin-left: 75rpx; margin: 0 36rpx;
margin-top: 22rpx; margin-top: 22rpx;
display: inline-block;
} }
.sort-text { .sort-text {
font-size: 24rpx; font-size: 24rpx;
...@@ -315,4 +332,17 @@ page { ...@@ -315,4 +332,17 @@ page {
color: #ffffff; color: #ffffff;
} }
} }
.env {
width: 750rpx;
height: 48rpx;
background: linear-gradient(94deg, #82ce8b 0%, rgba(255, 255, 255, 0) 97%);
position: absolute;
margin-top: -60rpx;
z-index: 999;
.env-info {
font-size: 28rpx;
color: #ffffff;
margin-left: 20rpx;
}
}
</style> </style>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<view style="display: flex; flex-direction: row"> <view style="display: flex; flex-direction: row">
<view <view
class="borderClass" class="borderClass"
@tap="chooseTab(index, item.categoryId)" @tap="chooseBTab(index, item.categoryId)"
v-for="(item, index) in sortList" v-for="(item, index) in sortList"
:key="index" :key="index"
> >
...@@ -45,19 +45,19 @@ ...@@ -45,19 +45,19 @@
</view> </view>
</view> </view>
<view> <view>
<view> <!-- <view>-->
<scroll-view class="tabs" show-scrollbar="false" scroll-x :scroll-with-animation="true"> <!-- <scroll-view class="tabs" show-scrollbar="false" scroll-x :scroll-with-animation="true">-->
<text <!-- <text-->
@tap="chooseBTab(index, item.categoryId)" <!-- @tap="chooseBTab(index, item.categoryId)"-->
v-for="(item, index) in tabsData" <!-- v-for="(item, index) in tabsData"-->
:key="index" <!-- :key="index"-->
class="text" <!-- class="text"-->
:class="light === index ? 'light' : ''" <!-- :class="light === index ? 'light' : ''"-->
> <!-- >-->
{{ item.categoryName }} <!-- {{ item.categoryName }}-->
</text> <!-- </text>-->
</scroll-view> <!-- </scroll-view>-->
</view> <!-- </view>-->
<view class="tab-list" v-for="(item, index) in buyList" :key="index" @tap="toDetail(item)"> <view class="tab-list" v-for="(item, index) in buyList" :key="index" @tap="toDetail(item)">
<img <img
class="buy-list" class="buy-list"
...@@ -163,6 +163,7 @@ onMounted(async () => { ...@@ -163,6 +163,7 @@ onMounted(async () => {
getPresale(); getPresale();
presaleSortList(); presaleSortList();
getshoppingCartListFn(); getshoppingCartListFn();
chooseBTab(0, '3444');
}); });
// 搜索 // 搜索
const toSearch = () => { const toSearch = () => {
...@@ -224,7 +225,7 @@ const chooseBTab = (index, categoryId) => { ...@@ -224,7 +225,7 @@ const chooseBTab = (index, categoryId) => {
}); });
buyList.value = res.data.records; buyList.value = res.data.records;
}); });
light.value = index; // light.value = index;
}; };
// 筑农首页-分类查询商品列表 // 筑农首页-分类查询商品列表
......
...@@ -38,22 +38,25 @@ ...@@ -38,22 +38,25 @@
<!-- 红包 --> <!-- 红包 -->
<view class="redEnvelope"> <view class="redEnvelope">
<view class="title">今日福利</view> <view class="title">今日福利</view>
<scroll-view class="box-red" scroll-x="true" @scroll="scroll"> <!-- <scroll-view class="box-red" scroll-x="true" @scroll="scroll"> -->
<view class="redBagBox" v-for="(item, index) in coupon" :key="index"> <view class="box-red">
<view class="redBagBox" v-for="(item, index) in coupon" :key="index" @tap="receive(item)">
<view class="content"> <view class="content">
<text class="textO">{{ item.activityName }}</text> <text class="textO">{{ item.activityName }}</text>
<text class="textW">{{ item.discountValue }}</text> <text class="textW">{{ item.discountValue }}</text>
<text class="textO">{{ item.thresholdAmount }}{{ item.discountValue }}</text>
</view> </view>
<view v-if="item.numState === 0" class="textF" @tap="receive(item)">领取</view> <view v-if="item.numState === 0" class="textF">领取</view>
<view v-else class="textF" @tap="toUse(item)">去使用</view> <view v-else class="textF" @tap="toUse(item)">去使用</view>
</view> </view>
</scroll-view> </view>
<image <!-- </scroll-view> -->
<!-- <image
@tap="toCoupon" @tap="toCoupon"
class="discount" class="discount"
src="../../static/index/discount.png" src="../../static/index/discount.png"
mode="widthFix" mode="widthFix"
/> /> -->
</view> </view>
<!-- 贵阳老味道 --> <!-- 贵阳老味道 -->
<!-- <view class="guiyang"></view> --> <!-- <view class="guiyang"></view> -->
...@@ -65,7 +68,7 @@ ...@@ -65,7 +68,7 @@
@change="onChange" @change="onChange"
customClass="guiyang" customClass="guiyang"
height="136rpx" height="136rpx"
imageMode="aspectFit" imageMode="scaleToFill"
></wd-swiper> ></wd-swiper>
<!-- 附近人气美食 --> <!-- 附近人气美食 -->
<view class="nearby"> <view class="nearby">
...@@ -87,7 +90,7 @@ ...@@ -87,7 +90,7 @@
:key="index" :key="index"
> >
<!-- <image class="img" src="../../static/index/eatFood.png" mode="widthFix" /> --> <!-- <image class="img" src="../../static/index/eatFood.png" mode="widthFix" /> -->
<image class="img" :src="item.shopLogo" mode="aspectFill" /> <image class="img" :src="item.shopLogo" mode="scaleToFill" />
<text class="one">{{ item.shopName }}</text> <text class="one">{{ item.shopName }}</text>
<view class="price"> <view class="price">
<text class="two">{{ item.grade }}推荐</text> <text class="two">{{ item.grade }}推荐</text>
...@@ -273,7 +276,7 @@ const toSearch = (res) => { ...@@ -273,7 +276,7 @@ const toSearch = (res) => {
// 获取优惠券 // 获取优惠券
const getCouponMainList = () => { const getCouponMainList = () => {
couponMainList().then((res) => { couponMainList().then((res) => {
coupon.value = res.data.records.slice(0, 10); coupon.value = res.data.records.slice(0, 4);
}); });
}; };
// 领取优惠券 // 领取优惠券
...@@ -281,19 +284,27 @@ const receive = (data) => { ...@@ -281,19 +284,27 @@ const receive = (data) => {
if (data.couponType === 'mch' && data.numState === 0) { if (data.couponType === 'mch' && data.numState === 0) {
receiveCoupon([data.couponYzfId]).then((res) => { receiveCoupon([data.couponYzfId]).then((res) => {
data.numState = 1; data.numState = 1;
xma.navigateTo({
url: `/pages/ticket/detail?shopId=${data.activityCode}`,
});
});
} else if (data.couponType === 'mch' && data.numState === 1) {
xma.navigateTo({
url: `/pages/ticket/detail?shopId=${data.activityCode}`,
});
} else if (data.couponType === 'yzf') {
xma.showToast({ xma.showToast({
title: '领取成功!', title: '请前往或下载翼支付APP领取或使用',
icon: 'none', icon: 'none',
}); });
});
} }
}; };
// TO优惠券详情 // TO优惠券详情
const toCoupon = () => { // const toCoupon = () => {
xma.navigateTo({ // xma.navigateTo({
url: '/pages/index/coupon', // url: '/pages/index/coupon',
}); // });
}; // };
// 获取分类 // 获取分类
const getClassification = () => { const getClassification = () => {
groupBuyList().then((res) => { groupBuyList().then((res) => {
...@@ -654,7 +665,7 @@ page { ...@@ -654,7 +665,7 @@ page {
.title { .title {
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei; font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
font-weight: bold; font-weight: bold;
font-size: 28rpx; font-size: 26rpx;
color: #3d3d3d; color: #3d3d3d;
line-height: 28rpx; line-height: 28rpx;
text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.36); text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.36);
...@@ -664,9 +675,9 @@ page { ...@@ -664,9 +675,9 @@ page {
.box-red { .box-red {
padding: 10rpx 0 0 20rpx; padding: 10rpx 0 0 20rpx;
box-sizing: border-box; box-sizing: border-box;
white-space: nowrap; width: 100%;
width: 80%; display: flex;
z-index: -1; justify-content: space-evenly;
.redBagBox { .redBagBox {
margin-right: 8rpx; margin-right: 8rpx;
width: 124rpx; width: 124rpx;
...@@ -687,7 +698,7 @@ page { ...@@ -687,7 +698,7 @@ page {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.textO { .textO {
width: 124rpx; width: 100rpx;
font-size: 12rpx; font-size: 12rpx;
color: #fa5151; color: #fa5151;
text-align: center; text-align: center;
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
:title="title" :title="title"
:showTitle="true" :showTitle="true"
></search> ></search>
<view class="head"> <!-- <view class="head"> -->
<view class="top" :style="{ backgroundImage: topBg }"></view> <view class="top" :style="{ backgroundImage: topBg }"></view>
<view class="bootom"> <view class="bootom" :style="{ top }">
<view class="bootom-top"> <view class="bootom-top">
<view class="option" @tap="locationFiltering(0)"> <view class="option" @tap="locationFiltering(0)">
<text :class="{ rotate: rotate }">全部烧烤烤肉</text> <text :class="{ rotate: rotate }">全部烧烤烤肉</text>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<!-- 排序筛选 --> <!-- 排序筛选 -->
<Sort v-show="rotate3" @sortParams="sortParams" /> <Sort v-show="rotate3" @sortParams="sortParams" />
</view> </view>
</view> <!-- </view> -->
<FoodDetails :cardData="cardData" /> <FoodDetails :cardData="cardData" />
<wd-status-tip image="content" tip="暂无内容" v-if="cardData.length === 0" /> <wd-status-tip image="content" tip="暂无内容" v-if="cardData.length === 0" />
<view <view
...@@ -98,6 +98,7 @@ const cardData = ref([]); ...@@ -98,6 +98,7 @@ const cardData = ref([]);
const backgroundBox = ref(''); const backgroundBox = ref('');
const backIcon = ref('white'); const backIcon = ref('white');
const title = ref(''); const title = ref('');
const top = ref(null);
let total; let total;
const paramsId = { const paramsId = {
parentId: null, parentId: null,
...@@ -116,11 +117,20 @@ onLoad((options) => { ...@@ -116,11 +117,20 @@ onLoad((options) => {
const { categoryId, place } = options; const { categoryId, place } = options;
paramsId.parentId = categoryId; paramsId.parentId = categoryId;
getByParentIdData(); getByParentIdData();
getTop();
getByType({ place }).then((res) => { getByType({ place }).then((res) => {
topBg.value = `url(${import.meta.env.VITE_APP_IMG_URL + res.data[0].imgUrl})`; topBg.value = `url(${import.meta.env.VITE_APP_IMG_URL + res.data[0].imgUrl})`;
}); });
}); });
// 获取位置板块贴合高度
const getTop = () => {
xma.xh.getMenuButtonBoundingClientRect({
success(res) {
top.value = (res.top + res.bottom) / 2 + 25 + 'px';
},
});
};
const refresh = () => { const refresh = () => {
delete listParams.distance; delete listParams.distance;
delete listParams.area; delete listParams.area;
...@@ -272,11 +282,11 @@ onPullDownRefresh(() => { ...@@ -272,11 +282,11 @@ onPullDownRefresh(() => {
page { page {
background: #f3f3f3; background: #f3f3f3;
} }
.head { // .head {
width: 100%; // width: 100%;
margin-bottom: 10rpx; // margin-bottom: 10rpx;
// height: 480rpx; // height: 480rpx;
.top { .top {
height: 356rpx; height: 356rpx;
// background: url('../../static/index/taste.png'); // background: url('../../static/index/taste.png');
background-size: 100% 100%; background-size: 100% 100%;
...@@ -286,8 +296,8 @@ page { ...@@ -286,8 +296,8 @@ page {
margin-left: 40rpx; margin-left: 40rpx;
color: white; color: white;
} }
} }
.bootom { .bootom {
// height: 124rpx; // height: 124rpx;
height: 80rpx; height: 80rpx;
display: flex; display: flex;
...@@ -295,7 +305,10 @@ page { ...@@ -295,7 +305,10 @@ page {
justify-content: space-around; justify-content: space-around;
border-radius: 6rpx; border-radius: 6rpx;
background: #ffffff; background: #ffffff;
position: relative; position: sticky;
margin-bottom: 10rpx;
z-index: 9999;
// top: 100px;
.bootom-top { .bootom-top {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -341,6 +354,6 @@ page { ...@@ -341,6 +354,6 @@ page {
background: #ffdcbb; background: #ffdcbb;
} }
} }
}
} }
// }
</style> </style>
...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index'; ...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth'; import { getToken } from '../../utils/auth';
onLoad(async (options) => { onLoad(async (options) => {
// await signIn(); await signIn();
if (!getToken()) await signIn2(); // if (!getToken()) await signIn2();
const { type } = options; const { type } = options;
switch (type) { switch (type) {
case '0': case '0':
...@@ -21,11 +21,11 @@ onLoad(async (options) => { ...@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma.reLaunch({ url: '/pages/index/index' }); xma.reLaunch({ url: '/pages/index/index' });
break; break;
case '2': case '2':
xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268' }); xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=8' });
break; break;
case '3': case '3':
xma.reLaunch({ xma.reLaunch({
url: '/pages/assistingAgriculture/index/building?categoryId=3266', url: '/pages/assistingAgriculture/index/building?categoryId=10',
}); });
break; break;
default: default:
......
...@@ -408,10 +408,27 @@ const handleRefund = (item) => { ...@@ -408,10 +408,27 @@ const handleRefund = (item) => {
}); });
}; };
/**
* 再来一单 商品类型,0-普通商品,5-团购,6-套餐,7-预售,8-售券 9-景点,10-旅游路线
*/
const anotherOrder = () => { const anotherOrder = () => {
// xma.navigateTo({
// url: `/pages/shop/confirmOrder?prodId=${orderDetail.value.orderItems[0].prodId}&skuId=${orderDetail.value.orderItems[0].skuId}`,
// });
switch (orderDetail.value.baseOrder.prodType) {
case 5:
xma.navigateTo({ xma.navigateTo({
url: `/pages/shop/confirmOrder?prodId=${orderDetail.value.orderItems[0].prodId}&skuId=${orderDetail.value.orderItems[0].skuId}`, url: `/pages/packageDetails/packageDetails?prodId=${orderDetail.value.orderItems[0].prodId}`,
}); });
break;
case 10:
xma.navigateTo({
url: `/pages/assistingAgriculture/RouteDetails/RouteDetails?prodId=${orderDetail.value.orderItems[0].prodId}&shopId=${orderDetail.value.baseOrder.shopId}`,
});
break;
default:
break;
}
}; };
const toProdDetail = () => { const toProdDetail = () => {
......
...@@ -196,8 +196,8 @@ const fileDomain = import.meta.env.VITE_APP_IMG_URL; ...@@ -196,8 +196,8 @@ const fileDomain = import.meta.env.VITE_APP_IMG_URL;
const stateList = ref({}); const stateList = ref({});
const orderDic = ref(); const orderDic = ref();
onLoad(async (options) => { onLoad(async (options) => {
// await signIn(); await signIn();
if (!getToken()) await signIn2(); // if (!getToken()) await signIn2();
if (!getOrderDic()) await orderStatus(); if (!getOrderDic()) await orderStatus();
orderDic.value = getOrderDic(); orderDic.value = getOrderDic();
orderDic.value.baseOrder[0].value = 'all'; orderDic.value.baseOrder[0].value = 'all';
......
...@@ -161,6 +161,9 @@ ...@@ -161,6 +161,9 @@
label-width="100px" label-width="100px"
v-model="formData.intro" v-model="formData.intro"
prop="intro" prop="intro"
auto-height
show-word-limit
:maxlength="120"
/> />
<wd-button type="error" width="80%" class="submitBTN" @tap="submitData">提交</wd-button> <wd-button type="error" width="80%" class="submitBTN" @tap="submitData">提交</wd-button>
......
...@@ -131,8 +131,8 @@ const fileDomain = import.meta.env.VITE_APP_IMG_URL; ...@@ -131,8 +131,8 @@ const fileDomain = import.meta.env.VITE_APP_IMG_URL;
const contentHeight = ref('88rpx'); const contentHeight = ref('88rpx');
onLoad(async () => { onLoad(async () => {
// await signIn(); await signIn();
if (!getToken()) await signIn2(); // if (!getToken()) await signIn2();
xma.xh.getMenuButtonBoundingClientRect({ xma.xh.getMenuButtonBoundingClientRect({
success(res) { success(res) {
contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
......
...@@ -41,8 +41,8 @@ export default defineConfig({ ...@@ -41,8 +41,8 @@ export default defineConfig({
// 代理配置 // 代理配置
proxy: { proxy: {
'/api': { '/api': {
// target: 'http://test.rhhzkj.com:8080', target: 'http://test.rhhzkj.com:8080',
target: 'https://api.rddyz.com', // target: 'https://api.rddyz.com',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment