修改订单接口

parent fdbfb1a4
...@@ -61,3 +61,11 @@ export function repaymentApi(data) { ...@@ -61,3 +61,11 @@ export function repaymentApi(data) {
data, data,
}); });
} }
// 查询各类订单状态
export function sgyOrderGetStatus(data) {
return request({
url: '/sgyrdd/sgyOrder/getStatus',
method: 'GET',
data,
});
}
...@@ -3,12 +3,22 @@ ...@@ -3,12 +3,22 @@
<view class="bg-img"></view> <view class="bg-img"></view>
<view class="top"> <view class="top">
<!-- 搜索 --> <!-- 搜索 -->
<Search> <Search @toSearch="toSearch">
<image class="food" :src="pics" mode="widthFix" /> <image class="food" :src="pics" mode="widthFix" />
</Search> </Search>
<!-- 类别选择 --> <!-- 类别选择 -->
<scroll-view class="scroll-x" scroll-x="true" @scroll="scroll"> <scroll-view
<view class="foodCard" v-for="(item, index) in topDiscountedProducts" :key="index"> v-if="topDiscountedProducts.length > 0"
class="scroll-x"
scroll-x="true"
@scroll="scroll"
>
<view
@click="jumpProductDetails(item.prodId)"
class="foodCard"
v-for="(item, index) in topDiscountedProducts"
:key="index"
>
<view class="test5"> <view class="test5">
<image class="img1" :src="imgUrl + item.pic" /> <image class="img1" :src="imgUrl + item.pic" />
<image class="img2" src="../../static/index/icon-tab.png" /> <image class="img2" src="../../static/index/icon-tab.png" />
...@@ -83,11 +93,11 @@ ...@@ -83,11 +93,11 @@
<!-- 附近筛选 --> <!-- 附近筛选 -->
<Position v-show="rotate2" @nearby="nearby" @popular="popular" @region="region" /> <Position v-show="rotate2" @nearby="nearby" @popular="popular" @region="region" />
<!-- 排序筛选 --> <!-- 排序筛选 -->
<Sort v-show="rotate3" /> <Sort v-show="rotate3" @sortParams="sortParams" />
</view> </view>
<FoodDetails :cardData="cardData" /> <FoodDetails :cardData="cardData" />
<view <view
style="width: 100%; text-align: center; font-size: 24rpx; margin-top: 10rpx" style="width: 100%; text-align: center; font-size: 24rpx; margin-top: 10rpx; color: #888989"
v-if="params.isEnd" v-if="params.isEnd"
> >
没有更多啦~ 没有更多啦~
...@@ -158,6 +168,22 @@ const popular = (communityName) => { ...@@ -158,6 +168,22 @@ const popular = (communityName) => {
getMerchantList(); getMerchantList();
}); });
}; };
// 搜索
const toSearch = (keyword) => {
params.value.keyword = keyword;
refresh().then(() => {
getMerchantList();
});
};
// 排序参数来源
const sortParams = (sortType) => {
const { sortName, sortMode } = sortType;
params.value.sortName = sortName;
params.value.sortMode = sortMode;
refresh().then(() => {
getMerchantList();
});
};
// area参数来源 // area参数来源
const region = (area) => { const region = (area) => {
console.log('area', area); console.log('area', area);
...@@ -201,6 +227,14 @@ const query = (parentId) => { ...@@ -201,6 +227,14 @@ const query = (parentId) => {
categoryData.value = res.data; categoryData.value = res.data;
}); });
}; };
function jumpProductDetails(prodId) {
xma.navigateTo({
url: `/pages/packageDetails/packageDetails?prodId=${prodId}`,
params: {
productId: 123,
},
});
}
const prodSpecialFn = () => { const prodSpecialFn = () => {
prodSpecial({ categoryId: categoryId.value }).then((res) => { prodSpecial({ categoryId: categoryId.value }).then((res) => {
res.data.data = res.data.data.map((el) => { res.data.data = res.data.data.map((el) => {
...@@ -302,7 +336,7 @@ page { ...@@ -302,7 +336,7 @@ page {
} }
.top { .top {
width: 100%; width: 100%;
height: 666rpx; min-height: 420rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
overflow: hidden; overflow: hidden;
.food { .food {
......
...@@ -76,7 +76,12 @@ ...@@ -76,7 +76,12 @@
</view> </view>
</view> </view>
<view class="nearby-bootom"> <view class="nearby-bootom">
<view class="contentBox" v-for="(item, index) in foodNearbyData" :key="index"> <view
@click="jumpProductDetails(item)"
class="contentBox"
v-for="(item, index) in foodNearbyData"
: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="aspectFill" />
<text class="one">{{ item.shopName }}</text> <text class="one">{{ item.shopName }}</text>
...@@ -201,6 +206,11 @@ onMounted(() => { ...@@ -201,6 +206,11 @@ onMounted(() => {
getMerchantList(); getMerchantList();
getCouponMainList(); getCouponMainList();
}); });
function jumpProductDetails(item) {
xma.navigateTo({
url: '/pages/shop/shop?shopId=' + item.shopId,
});
}
// 登录 // 登录
// const signIn = () => { // const signIn = () => {
// getTokenUser(testJson).then((res) => { // getTokenUser(testJson).then((res) => {
......
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