修改接口地址

This commit is contained in:
duan
2024-05-15 16:56:29 +08:00
parent 8b3dd745ac
commit 9c25679656
8 changed files with 51 additions and 19 deletions

View File

@@ -58,7 +58,7 @@ export default {
}, },
// 支付 // 支付
payOrderPay(data){ payOrderPay(data){
return uni.api.post("/pay/orderPay", data); return uni.api.post("/pay/groupOrderPay", data);
}, },
paymodfiyOrderInfo(data) { //查询订单支付状态 paymodfiyOrderInfo(data) { //查询订单支付状态
return uni.api.post("/pay/modfiyOrderInfo", data); return uni.api.post("/pay/modfiyOrderInfo", data);

View File

@@ -11,7 +11,7 @@
</view> </view>
<view class="rightStyle" v-for="(ele,index) in item.goods" :key="index"> <view class="rightStyle" v-for="(ele,index) in item.goods" :key="index">
<view> <view>
{{ele.name}} <text>({{ele.unitName}})</text> {{ele.name}} <text>({{ele.groupNum}}{{ele.unitName}})</text>
</view> </view>
<text>{{ele.lowPrice}}</text> <text>{{ele.lowPrice}}</text>
</view> </view>

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="onecontent flex-between"> <view class="onecontent flex-between">
<view class="onecontentleft"> <view class="onecontentleft">
现有{{bannervo.coupons}}免单 现有{{bannervo.coupons==null?116:bannervo.coupons}}免单
</view> </view>
<view class="onecontentright flex-start"> <view class="onecontentright flex-start">

View File

@@ -38,7 +38,7 @@
}); });
break; break;
case 'relative': case 'relative':
uni.pro.navigateTo(item.absUrl, item); uni.pro.navigateTo(item.absUrl, JSON.stringify(item));
break; break;
case 'scan': case 'scan':
if (!uni.utils.pluschooseImage()) { if (!uni.utils.pluschooseImage()) {

View File

@@ -14,7 +14,8 @@
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/mrmd2.png" mode="aspectFill"> src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/mrmd2.png" mode="aspectFill">
</image> </image>
<view class="towcontentoneboxswiper"> <view class="towcontentoneboxswiper">
<swiper class="swiper" circular :autoplay='true' :vertical='true' display-multiple-items="4" :interval="'3000'"> <swiper class="swiper" circular :autoplay='true' :vertical='true' display-multiple-items="4"
:interval="'3000'">
<swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist" <swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
:key="index"> :key="index">
<view class="swiper-item">{{item.userName}}* 免单{{item.orderAmount}}元订单号{{item.orderNo}} <view class="swiper-item">{{item.userName}}* 免单{{item.orderAmount}}元订单号{{item.orderNo}}
@@ -42,8 +43,25 @@
免单状态 免单状态
</view> </view>
</view> </view>
<swiper class="swiper" circular :autoplay='true' :vertical='true' interval="3000" display-multiple-items="4"> <view class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
<swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist" :key="index"> :key="index">
<view class="swiper-item" style="margin-top: 32rpx;">
<view class="swiper_itemone">
{{item.orderAmount}}
</view>
<view class="swiper_itemtow">
{{item.orderNo}}
</view>
<view class="swiper_itemthere">
{{item.isRefund == true ? '已免单':'待免单'}}
</view>
</view>
</view
>
<!-- <swiper class="swiper" circular :autoplay='true' :vertical='true' interval="3000"
display-multiple-items="4">
<swiper-item class="swiperitem" v-for="(item,index) in orderfindWiningUserlist"
:key="index">
<view class="swiper-item"> <view class="swiper-item">
<view class="swiper_itemone"> <view class="swiper_itemone">
{{item.orderAmount}} {{item.orderAmount}}
@@ -57,7 +75,7 @@
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper> -->
</view> </view>
</view> </view>
</view> </view>
@@ -91,9 +109,9 @@
}; };
}, },
onLoad(e) { onLoad(e) {
console.log(e)
this.orderfindWiningUser() this.orderfindWiningUser()
this.titlename = e.name let data = JSON.parse(e)
this.titlename = data.name
}, },
onPageScroll(e) { onPageScroll(e) {
if (e.scrollTop <= 44) { //搜索导航栏 if (e.scrollTop <= 44) { //搜索导航栏
@@ -268,7 +286,7 @@
.towcontentoneboxswiper { .towcontentoneboxswiper {
width: 100%; width: 100%;
height: 242rpx; // height: 242rpx;
padding-top: 24rpx; padding-top: 24rpx;
overflow: hidden; overflow: hidden;

View File

@@ -60,7 +60,8 @@
</view> </view>
</view> </view>
<view class="fivecontent" :style="{'height':seighT + 'px'}"> <view class="fivecontent" >
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore" <!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
scroll-with-animation> --> scroll-with-animation> -->
<view class="fivecontent_item" v-for="(item,index) in homelist" :key="index" <view class="fivecontent_item" v-for="(item,index) in homelist" :key="index"

View File

@@ -20,11 +20,11 @@
{{item.shopName}} {{item.shopName}}
</view> </view>
</view> </view>
<view class="fivecontent_itemoneboxtow flex-start"> <view class="fivecontent_itemoneboxtow flex-start" @click="goMap">
<image class="fivecontent_itemoneboxtowimage" <image class="fivecontent_itemoneboxtowimage"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/dw.png" mode="widthFix"></image> src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/dw.png" mode="widthFix"></image>
<view class="fivecontent_itemoneboxtow_o"> <view class="fivecontent_itemoneboxtow_o">
{{item.address}} {{item.address.length>7?item.address.substring(0,7)+'...':item.address}}
</view> </view>
<view class="fivecontent_itemoneboxtow_t"> <view class="fivecontent_itemoneboxtow_t">
{{item.distances}}km {{item.distances}}km
@@ -81,6 +81,12 @@
this.distiricttopCommon() this.distiricttopCommon()
}, },
methods: { methods: {
goMap() {
uni.openLocation({
longitude: uni.cache.get('getLocationstorage').lng,
latitude: uni.cache.get('getLocationstorage').lat
})
},
init_fn(e) { init_fn(e) {
this.list = [] this.list = []
this.form.page = 1 //页数 this.form.page = 1 //页数
@@ -98,13 +104,13 @@
type: 'subShop', //团购卷品类Id/subShop-预约到店 type: 'subShop', //团购卷品类Id/subShop-预约到店
orderBy: '' orderBy: ''
}) })
if (res.code == 0) { if (res.code == 0) {
this.toplist = res.data.carousel[0] this.toplist = res.data.carousel[0]
} }
}, },
async distirictsubShopList() { async distirictsubShopList() {
let res = await this.api.distirictsubShopList({ let res = await this.api.distirictsubShopList({
address:uni.cache.get('getLocationstorage').address, //地址 address: uni.cache.get('getLocationstorage').address, //地址
lng: uni.cache.get('getLocationstorage').lng, lng: uni.cache.get('getLocationstorage').lng,
lat: uni.cache.get('getLocationstorage').lat, lat: uni.cache.get('getLocationstorage').lat,
distanceInKm: '10', //默认10 以经纬度为中心 多大范围以内 单位km distanceInKm: '10', //默认10 以经纬度为中心 多大范围以内 单位km
@@ -119,7 +125,7 @@
this.form.status = 'loading'; this.form.status = 'loading';
this.form.page = ++this.form.page; this.form.page = ++this.form.page;
setTimeout(() => { setTimeout(() => {
this.list = [...this.list,...res.data.list] this.list = [...this.list, ...res.data.list]
this.form.status = 'loading'; this.form.status = 'loading';
if (res.data.pageNum == res.data.pages) { if (res.data.pageNum == res.data.pages) {
this.form.status = 'nomore'; this.form.status = 'nomore';

View File

@@ -64,7 +64,7 @@
<view class="theretherecontent"> <view class="theretherecontent">
营业时间{{listdata.businessTime}} 营业时间{{listdata.businessTime}}
</view> </view>
<view class="fourtherecontent flex-start"> <view class="fourtherecontent flex-start" @click="goMap">
<image class="fourtherecontentimage" <image class="fourtherecontentimage"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/product/d.png" mode="aspectFill"></image> src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/product/d.png" mode="aspectFill"></image>
<view class="fourtherecontent_o"> <view class="fourtherecontent_o">
@@ -95,7 +95,7 @@
</view> </view>
<view class="fourcontent_th_tow flex-start"> <view class="fourcontent_th_tow flex-start">
<view class="fourcontent_th_towo"> <view class="fourcontent_th_towo">
{{item1.unitName}} {{item1.groupNum}}{{item1.unitName}}
</view> </view>
<view class="fourcontent_th_towt"> <view class="fourcontent_th_towt">
{{item1.lowPrice}} {{item1.lowPrice}}
@@ -403,6 +403,13 @@
name name
}) })
}, },
goMap(){
uni.openLocation({
longitude: uni.cache.get('getLocationstorage').lng,
latitude: uni.cache.get('getLocationstorage').lat
})
},
// 跳转
async onLoadInfo() { //详情接口 async onLoadInfo() { //详情接口
let res = await this.api.productproductInfo({ let res = await this.api.productproductInfo({
productId: this.indexform, productId: this.indexform,