Commit dde7f096 authored by 张娇(东信)'s avatar 张娇(东信)

Merge remote-tracking branch 'origin/master'

parents a34e129d 20681a88
......@@ -26,7 +26,11 @@
</view>
<view class="custom-button" @click="go('/pages/storeEntry/index')">
<image class="fab-icon" src="../../static/index/coupon.png"></image>
<text class="fab-text">商家入驻</text>
<text class="fab-text">商家</text>
</view>
<view class="custom-button" @click="go('/pages/assistingAgriculture/index/index')">
<image class="fab-icon" src="../../static/index/coupon.png"></image>
<text class="fab-text">助农</text>
</view>
</view>
<!-- 预售主页 -->
......
......@@ -62,7 +62,8 @@ onLoad(() => {
// console.log('右边界坐标', res.right); // 右边界坐标,单位:px
// console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px
// console.log('左边界坐标', res.left);
contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
contentHeight.value = (res.top + res.bottom) / 2 + 25 + 'px';
// contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
},
});
});
......@@ -81,7 +82,7 @@ const back = () => {
top: 0;
z-index: 999999;
transition: background-color 0.5s;
box-sizing: border-box;
// box-sizing: border-box;
.search {
position: absolute;
bottom: 10rpx;
......@@ -90,7 +91,7 @@ const back = () => {
width: 710rpx;
height: 80rpx;
// background: rgba(255, 255, 255, 0.8);
// border-radius: 16rpx 16rpx 16rpx 16rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 0.8;
margin: 0 auto;
// margin-top: 44rpx;
......
<template>
<view class="container">
<Search
:showTitle="true"
:title="newAddressFlag ? '新增收货地址' : '编辑收货地址'"
backgroundBox="white"
></Search>
<template v-if="showNavBar">
<Search
:showTitle="true"
:title="newAddressFlag ? '新增收货地址' : '编辑收货地址'"
backgroundBox="white"
></Search>
</template>
<view class="content">
<wd-form ref="reForm" :model="forMData" id="form">
<wd-cell-group>
......@@ -83,6 +86,7 @@ const forMData = ref({
commonAddr: false,
});
const content = ref([]);
const showNavBar = ref(true);
onLoad((options) => {
newAddressFlag.value = options.new;
content.value = JSON.parse(options.content);
......@@ -140,6 +144,7 @@ function handleSubmit() {
// 重新定位收货地址
async function changeLocation() {
showNavBar.value = false;
uni.chooseLocation({
success: function (res) {
// forMData.value.city = res.address;
......@@ -162,6 +167,9 @@ async function changeLocation() {
},
});
},
complete: (res) => {
showNavBar.value = true;
},
});
}
</script>
......
......@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth';
onLoad(async (options) => {
// await signIn();
if (!getToken()) await signIn2();
await signIn();
// if (!getToken()) await signIn2();
const { type } = options;
switch (type) {
case '0':
......@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma.reLaunch({ url: '/pages/index/index' });
break;
case '2':
xma.reLaunch({ url: '/pages/assistingAgriculture/index/building?categoryId=3266' });
xma.reLaunch({ url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268' });
break;
case '3':
xma.reLaunch({
url: '/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268',
url: '/pages/assistingAgriculture/index/building?categoryId=3266',
});
break;
default:
......
......@@ -20,22 +20,36 @@
></wd-icon>
<view class="status-text">{{ statusList[orderDetail.orderStore.status] }}</view>
</view>
<view class="detail" v-if="orderDetail.orderStore.status == 3">
<view
class="detail"
v-if="orderDetail.orderStore.status == 3 && orderDetail.baseOrder.prodType === 5"
>
请在{{ orderDetail.orderStore.writeOffEnd.slice(0, 4) }}{{
orderDetail.orderStore.writeOffEnd.slice(5, 7)
}}{{ orderDetail.orderStore.writeOffEnd.slice(8, 10) }}前到店消费
</view>
<view
class="detail"
v-if="orderDetail.orderStore.status == 3 && orderDetail.baseOrder.prodType === 9"
>
预约时间:{{ orderDetail.orderStore.receiverTime.slice(0, 4) }}{{
orderDetail.orderStore.receiverTime.slice(5, 7)
}}{{ orderDetail.orderStore.receiverTime.slice(8, 10) }}
</view>
</view>
<!-- 券码信息 -->
<view class="info">
<view class="box">
<view class="box" @tap="toProdDetail()">
<view class="left">
<image mode="aspectFill" :src="fileDomain + orderDetail.orderItems[0].pic" />
<view class="left-box">
<text class="title">{{ orderDetail.orderItems[0].prodName }}</text>
<!-- <text class="detail">周一至周日 到店吃</text>
<text class="detail">随时退·过期自动退·免预约</text> -->
<text class="detail" v-if="orderDetail.baseOrder.prodType === 9">
预约时间:{{ orderDetail.orderStore.receiverTime }}
</text>
<text class="detail">购买数量:{{ orderDetail.orderItems[0].prodCount }}</text>
<view class="price-box">
<text class="icon"></text>
......@@ -43,7 +57,12 @@
</view>
</view>
</view>
<!-- <wd-icon name="chevron-right" size="22px" color="#333"></wd-icon> -->
<wd-icon
name="chevron-right"
size="22px"
color="#333"
v-if="orderDetail.baseOrder.prodType === 9"
></wd-icon>
</view>
<view class="rectangle-with-semicircles"></view>
......@@ -59,7 +78,7 @@
>
<view class="column">
<text class="title">券码信息(1张可用)</text>
<text class="text">{{ orderDetail.orderStore.writeOffEnd }} 到期</text>
<text class="text">{{ orderDetail.orderStore.writeOffEnd.slice(0, 16) }} 到期</text>
</view>
<view class="btn" @tap="handleRefund(orderDetail.orderStore.orderNumber)">
申请退款
......@@ -385,7 +404,7 @@ function copyTextToClipboard(text) {
const handleRefund = (item) => {
xma.navigateTo({
url: `/pages/order/refund?orderNumber=${item.orderNumber}`,
url: `/pages/order/refund?orderNumber=${item}`,
});
};
......@@ -394,6 +413,13 @@ const anotherOrder = () => {
url: `/pages/shop/confirmOrder?prodId=${orderDetail.value.orderItems[0].prodId}&skuId=${orderDetail.value.orderItems[0].skuId}`,
});
};
const toProdDetail = () => {
if (orderDetail.value.baseOrder.prodType === 5) return;
xma.navigateTo({
url: `/pages/assistingAgriculture/RouteDetails/RouteDetails?shopId=${orderDetail.value.baseOrder.shopId}&prodId=${orderDetail.value.orderItems[0].prodId}`,
});
};
</script>
<style scoped lang="scss">
......
......@@ -58,10 +58,10 @@
<image mode="aspectFill" :src="fileDomain + item.orderItems[0].pic" />
<view class="info-box">
<view class="text">下单时间:{{ item.createTime.slice(0, 16) }}</view>
<view class="text" v-if="item.prodType === 6">
预约时间:{{ item.receiverTime }}
<view class="text" v-if="item.prodType === 9">
预约时间:{{ item.subOrder.receiverTime }}
</view>
<view class="text" v-else>数量:{{ item.orderItems[0].prodCount }}</view>
<view class="text">数量:{{ item.orderItems[0].prodCount }}</view>
<view class="text">实付:¥{{ item.actualTotal }}</view>
</view>
</view>
......@@ -545,7 +545,7 @@ function callShopPhone(phoneNumber) {
}
/**
* 再来一单 商品类型,0-普通商品,5-团购,6-套餐,7-预售,8-售券
* 再来一单 商品类型,0-普通商品,5-团购,6-套餐,7-预售,8-售券 9-景点,10-旅游路线
*/
const anotherOrder = (item) => {
// 清空查询待付款状态
......
<template>
<view class="container">
<Search :showTitle="true" title="商家入驻" backgroundBox="white"></Search>
<template v-if="showNavBar">
<Search :showTitle="true" title="商家入驻" backgroundBox="white"></Search>
</template>
<view class="content">
<view class="formmain">
......@@ -237,6 +239,7 @@ const token = getToken();
const action = ref(import.meta.env.VITE_APP_BASE_URL + '/sgyrdd/file/update');
const headers = ref('');
const fileDomain = import.meta.env.VITE_APP_IMG_URL;
const showNavBar = ref(true);
// 店铺logo图片组
const fileListShopLogo = ref([]);
// 身份证正面图片组
......@@ -706,6 +709,7 @@ const submitData = () => {
// 重新定位收货地址
async function changeLocation() {
showNavBar.value = false;
uni.chooseLocation({
success: function (res) {
// forMData.value.city = res.address;
......@@ -728,10 +732,14 @@ async function changeLocation() {
formData.area = res.data.result.address_component.district;
ssq.value = formData.province + formData.city + formData.area;
// showNavBar.value = true;
}
},
});
},
complete: (res) => {
showNavBar.value = true;
},
});
}
</script>
......
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