feat: 一键分享按钮展示调整
This commit is contained in:
@@ -206,6 +206,9 @@
|
||||
sheep.$helper.toast('请选择余额支付');
|
||||
return;
|
||||
}
|
||||
if (state.orderType === 'aiGoods') {
|
||||
uni.setStorageSync('pay_return_to', 'aiStore_myshop');
|
||||
}
|
||||
if (state.payment === 'wallet') {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
@@ -102,7 +102,12 @@
|
||||
// payOrderId: res.data.payOrderId,
|
||||
// });
|
||||
uni.redirectTo({
|
||||
url: '/pages/AI/cashierDesk?id=' + res.data.id + '&payOrderId=' + res.data.payOrderId,
|
||||
url:
|
||||
'/pages/AI/cashierDesk?id=' +
|
||||
res.data.id +
|
||||
'&payOrderId=' +
|
||||
res.data.payOrderId +
|
||||
'&from=aiStore',
|
||||
});
|
||||
}, 1000);
|
||||
} else {
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<template>
|
||||
<s-pages title="列表记录" navPreset="light">
|
||||
<template #navRight>
|
||||
<view class="share-btn" @tap="onShare">一键分享</view>
|
||||
</template>
|
||||
<view class="list-record-page">
|
||||
<view class="share-btn" :style="{ top: shareTop }" @tap="onShare">
|
||||
一键分享
|
||||
</view>
|
||||
|
||||
<view class="hero">
|
||||
<image class="hero-img" :src="cover || '/static/home/bc.png'" mode="aspectFill" />
|
||||
</view>
|
||||
@@ -13,7 +12,7 @@
|
||||
<view class="record-card" v-for="(item, i) in recordList" :key="item.id || i">
|
||||
<view class="record-head flex-between">
|
||||
<view class="record-title lineOne">{{ item.title }}</view>
|
||||
<view class="record-status">{{ item.statusText }}</view>
|
||||
<!-- <view class="record-status">{{ item.statusText }}</view> -->
|
||||
</view>
|
||||
|
||||
<view class="record-progress">
|
||||
@@ -47,9 +46,6 @@
|
||||
import { getAiShopPage } from '@/sheep/api/ai';
|
||||
import { formatOrderStatus } from '@/sheep/hooks/useGoods';
|
||||
|
||||
const statusBarHeight = uni.getSystemInfoSync()?.statusBarHeight || 0;
|
||||
const shareTop = `${statusBarHeight + 8}px`;
|
||||
|
||||
const skuId = ref('');
|
||||
const cover = ref('');
|
||||
|
||||
@@ -161,9 +157,6 @@
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
position: fixed;
|
||||
right: 24rpx;
|
||||
z-index: 99;
|
||||
height: 56rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 18rpx;
|
||||
@@ -173,6 +166,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2rpx;
|
||||
}
|
||||
|
||||
.hero {
|
||||
|
||||
+19
-2
@@ -121,9 +121,26 @@
|
||||
}
|
||||
});
|
||||
|
||||
const goAiStoreMyShopTab = () => {
|
||||
const url = '/pages/index/aiStore?tab=1';
|
||||
uni.redirectTo({
|
||||
url,
|
||||
fail: () => {
|
||||
uni.reLaunch({ url });
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const onBackHome = () => {
|
||||
if (state.orderType === 'aiGoods') {
|
||||
uni.reLaunch({ url: '/pages/index/aiStore?tab=1' });
|
||||
const returnTo = uni.getStorageSync('pay_return_to');
|
||||
if (returnTo === 'aiStore_myshop') {
|
||||
uni.removeStorageSync('pay_return_to');
|
||||
goAiStoreMyShopTab();
|
||||
return;
|
||||
}
|
||||
const orderType = String(state.orderType || '').trim();
|
||||
if (orderType === 'aiGoods') {
|
||||
goAiStoreMyShopTab();
|
||||
return;
|
||||
}
|
||||
sheep.$router.redirect('/pages/index/index');
|
||||
|
||||
Reference in New Issue
Block a user