提交
This commit is contained in:
1 parent
843e13bce3
commit
7b1d4c8729
629 files changed
+74059
-7929
No files matched your search
@@ -0,0 +1,74 @@
|
||||
<template>
|
||||
<view class="app-safe-header" :style="headerStyle">
|
||||
<view class="app-safe-header__safe" />
|
||||
<view class="app-safe-header__nav">
|
||||
<view class="app-safe-header__left">
|
||||
<slot name="left" />
|
||||
</view>
|
||||
<view class="app-safe-header__title-wrap">
|
||||
<slot>
|
||||
<text class="app-safe-header__title">{{ title }}</text>
|
||||
</slot>
|
||||
</view>
|
||||
<view class="app-safe-header__right" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import { getGlobalSafeArea } from '@/utils/safeArea'
|
||||
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
background: {
|
||||
type: String,
|
||||
default: 'transparent',
|
||||
},
|
||||
})
|
||||
|
||||
const safeArea = getGlobalSafeArea()
|
||||
|
||||
const headerStyle = computed(() => ({
|
||||
'--sq-safe-top': `${safeArea.topSafeHeight}px`,
|
||||
'--sq-nav-height': `${safeArea.navContentHeight}px`,
|
||||
'--sq-capsule-right-safe': `${safeArea.capsuleRightSafeWidth}px`,
|
||||
'--sq-header-background': props.background,
|
||||
}))
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.app-safe-header {
|
||||
background: var(--sq-header-background);
|
||||
}
|
||||
|
||||
.app-safe-header__safe {
|
||||
height: var(--sq-safe-top, 20px);
|
||||
}
|
||||
|
||||
.app-safe-header__nav {
|
||||
height: var(--sq-nav-height, 44px);
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) var(--sq-capsule-right-safe, 96px);
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.app-safe-header__left {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-safe-header__title-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-safe-header__title {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<view class="legal-inner">
|
||||
<template v-if="docType === 'agreement'">
|
||||
<text class="legal-title">陇耘鲜达用户服务协议</text>
|
||||
<text class="legal-updated">更新日期:2026年4月6日</text>
|
||||
<text class="legal-p">欢迎使用陇耘鲜达小程序及相关服务。请您在注册、登录或使用前仔细阅读本协议。您点击同意或实际使用服务,即视为已阅读并同意受本协议约束。</text>
|
||||
|
||||
<text class="legal-h2">一、服务说明</text>
|
||||
<text class="legal-p">1. 陇耘鲜达向用户(含客户、供应商、配送人员等角色)提供生鲜及相关商品的展示、询价、下单、配送协调、结算等线上信息服务与交易辅助功能,具体以小程序实际开放功能为准。</text>
|
||||
<text class="legal-p">2. 部分服务依赖第三方(如支付、地图、物流信息、微信账号体系等),受相应第三方规则约束。</text>
|
||||
|
||||
<text class="legal-h2">二、账号与安全</text>
|
||||
<text class="legal-p">1. 您应使用真实、准确的信息完成注册或绑定,并对账号下的行为负责。</text>
|
||||
<text class="legal-p">2. 请妥善保管登录凭证,勿向他人泄露。如发现盗用,请立即联系平台或修改密码。</text>
|
||||
<text class="legal-p">3. 平台有权在法律法规允许范围内,对违规、异常或高风险账号采取限制登录、冻结等措施。</text>
|
||||
|
||||
<text class="legal-h2">三、用户行为规范</text>
|
||||
<text class="legal-p">您不得利用本服务从事违法违规活动,包括但不限于:发布虚假信息、侵犯他人权益、干扰系统运行、刷单套利、洗钱等。违反者平台可中止服务并配合有权机关处理。</text>
|
||||
|
||||
<text class="legal-h2">四、订单与交易</text>
|
||||
<text class="legal-p">商品价格、库存、配送时效等以页面展示及订单确认为准。订单成立、变更、取消、退款等规则以平台公示及具体订单约定为准。</text>
|
||||
|
||||
<text class="legal-h2">五、知识产权</text>
|
||||
<text class="legal-p">小程序内的界面、文案、标识等知识产权归平台或权利人所有,未经许可不得复制、传播或用于商业用途。</text>
|
||||
|
||||
<text class="legal-h2">六、免责与责任限制</text>
|
||||
<text class="legal-p">因不可抗力、网络故障、第三方服务异常等非平台可控原因导致的服务中断或损失,平台将在法律允许范围内承担责任。本协议未尽事宜,以国家法律法规为准。</text>
|
||||
|
||||
<text class="legal-h2">七、协议变更与终止</text>
|
||||
<text class="legal-p">平台可适时修订本协议,修订后将在小程序内公示。您继续使用服务即视为接受修订。您可随时停止使用服务;平台亦可在合法合规前提下终止或调整服务。</text>
|
||||
|
||||
<text class="legal-h2">八、联系我们</text>
|
||||
<text class="legal-p">如您对本协议有疑问,可通过小程序内公示的客服渠道与我们联系。</text>
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<text class="legal-title">陇耘鲜达隐私政策</text>
|
||||
<text class="legal-updated">更新日期:2026年4月6日</text>
|
||||
<text class="legal-p">陇耘鲜达(以下简称「我们」)重视您的个人信息与隐私保护。本政策说明我们如何收集、使用、存储、共享与保护您的信息,以及您享有的权利。使用我们的小程序服务前,请仔细阅读。</text>
|
||||
|
||||
<text class="legal-h2">一、我们收集的信息</text>
|
||||
<text class="legal-p">1. 账号信息:如微信授权标识、手机号码(若您绑定)、用户名等,用于注册登录与身份核验。</text>
|
||||
<text class="legal-p">2. 业务信息:如收货地址、订单信息、询价与报价记录、配送任务信息、发票与结算相关信息等,用于履行合同与提供服务。</text>
|
||||
<text class="legal-p">3. 设备与日志信息:如设备型号、操作系统、操作日志、IP 大致区域等,用于安全保障、故障排查与统计分析(在合法必要范围内)。</text>
|
||||
|
||||
<text class="legal-h2">二、我们如何使用信息</text>
|
||||
<text class="legal-p">我们仅在实现产品功能、履行法定义务、保障安全所必需的范围内使用您的信息,例如:处理订单与配送、客服沟通、风控与反欺诈、合规审计、经您同意的营销推广(可随时撤回)。</text>
|
||||
|
||||
<text class="legal-h2">三、存储与保护</text>
|
||||
<text class="legal-p">1. 我们采取合理的技术与管理措施保护信息安全,防止未经授权的访问、泄露、篡改或丢失。</text>
|
||||
<text class="legal-p">2. 在法律法规要求的期限内保存您的信息;超出保存期限或目的达成后,我们将删除或匿名化处理。</text>
|
||||
|
||||
<text class="legal-h2">四、共享与披露</text>
|
||||
<text class="legal-p">我们不会向无关第三方出售您的个人信息。仅在以下情形可能共享:经您明确同意;为履行订单必须向合作方(如支付机构、物流方)提供必要信息;法律法规或有权机关要求。</text>
|
||||
|
||||
<text class="legal-h2">五、您的权利</text>
|
||||
<text class="legal-p">在符合适用法律的前提下,您可查询、更正、删除您的部分个人信息,或撤回授权、注销账号(以产品实际支持能力为准)。您可通过小程序内客服或公示渠道联系我们行使权利。</text>
|
||||
|
||||
<text class="legal-h2">六、未成年人保护</text>
|
||||
<text class="legal-p">若您为未成年人,请在监护人指导下阅读本政策并使用服务。我们仅在法律法规允许及监护人同意的情况下处理未成年人信息。</text>
|
||||
|
||||
<text class="legal-h2">七、政策更新</text>
|
||||
<text class="legal-p">我们可能适时修订本政策,并在小程序内公示。重大变更时,我们将通过适当方式提示您。继续使用服务即表示您知悉更新内容。</text>
|
||||
|
||||
<text class="legal-h2">八、联系我们</text>
|
||||
<text class="legal-p">如您对本政策或个人信息处理有任何疑问、投诉或建议,请通过小程序内公示的联系方式与我们联系,我们将尽快答复。</text>
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
docType: {
|
||||
type: String,
|
||||
required: true,
|
||||
validator: (v) => v === 'agreement' || v === 'privacy'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.legal-inner {
|
||||
padding: 32rpx 40rpx 80rpx;
|
||||
}
|
||||
|
||||
.legal-title {
|
||||
display: block;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
text-align: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.legal-updated {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #909399;
|
||||
text-align: center;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
|
||||
.legal-h2 {
|
||||
display: block;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
margin-top: 36rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.legal-p {
|
||||
display: block;
|
||||
font-size: 28rpx;
|
||||
color: #606266;
|
||||
line-height: 1.75;
|
||||
margin-bottom: 16rpx;
|
||||
text-align: justify;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,149 @@
|
||||
<script>
|
||||
export default {
|
||||
options: { virtualHost: true }
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
// #ifdef H5
|
||||
import VanIcon from 'vant/es/icon'
|
||||
import 'vant/es/icon/style'
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
// #endif
|
||||
import { dialPhone, normalizeDialNumber } from '@/utils/phone-dial'
|
||||
|
||||
const props = defineProps({
|
||||
phone: { type: [String, null], default: null },
|
||||
dialPhone: { type: [String, null], default: undefined },
|
||||
emptyText: { type: String, default: '暂无' },
|
||||
/** 仅作用于号码/占位文字;拨号图标固定黑色,见 `dialIconColor` */
|
||||
color: { type: String, default: '' },
|
||||
iconSize: { type: [String, Number], default: 18 },
|
||||
iconOnly: { type: Boolean, default: false },
|
||||
hideIcon: { type: Boolean, default: false },
|
||||
expand: { type: Boolean, default: false },
|
||||
endAlign: { type: Boolean, default: false }
|
||||
})
|
||||
|
||||
const displayLine = computed(() => String(props.phone ?? '').trim())
|
||||
const dialRaw = computed(() =>
|
||||
normalizeDialNumber(props.dialPhone !== undefined && props.dialPhone !== null ? props.dialPhone : props.phone)
|
||||
)
|
||||
const canDial = computed(() => !!dialRaw.value)
|
||||
const displayText = computed(() => {
|
||||
if (props.iconOnly) return ''
|
||||
return displayLine.value || props.emptyText
|
||||
})
|
||||
|
||||
/** 拨号图标颜色(与号码文字 `color` 解耦,统一黑色) */
|
||||
const dialIconColor = '#000000'
|
||||
|
||||
/** 号码文字色:`icon-only` 无文字时不应用 */
|
||||
const textStyle = computed(() => {
|
||||
if (props.iconOnly)
|
||||
return {}
|
||||
const c = String(props.color ?? '').trim()
|
||||
if (!c)
|
||||
return {}
|
||||
return { color: c }
|
||||
})
|
||||
|
||||
/** App 等非 H5、非微信小程序端:Unicode 兜底(小程序用 uni-icons,见模板) */
|
||||
const iconStyle = computed(() => {
|
||||
const n = Number(props.iconSize)
|
||||
const px = Number.isFinite(n) ? n : 18
|
||||
return { color: dialIconColor, fontSize: `${px * 2}rpx`, lineHeight: 1 }
|
||||
})
|
||||
|
||||
function onDial() {
|
||||
dialPhone(props.dialPhone !== undefined && props.dialPhone !== null ? props.dialPhone : props.phone)
|
||||
}
|
||||
|
||||
function onTextClick(e) {
|
||||
if (!props.hideIcon || !canDial.value) return
|
||||
e.stopPropagation()
|
||||
onDial()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view
|
||||
class="phone-dial-inline"
|
||||
:class="{
|
||||
'phone-dial-inline--icon-only': iconOnly,
|
||||
'phone-dial-inline--hide-icon': hideIcon,
|
||||
'phone-dial-inline--expand': expand,
|
||||
'phone-dial-inline--end': endAlign
|
||||
}"
|
||||
>
|
||||
<text v-if="!iconOnly" class="phone-dial-inline__text" :style="textStyle" @click="onTextClick">{{ displayText }}</text>
|
||||
<view v-if="canDial && !hideIcon" class="phone-dial-inline__btn" @click.stop="onDial">
|
||||
<!-- #ifdef H5 -->
|
||||
<VanIcon name="phone-o" :size="iconSize" :color="dialIconColor" />
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<UniIcons type="phone" :color="dialIconColor" :size="iconSize" />
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef H5 -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<text class="phone-dial-inline__icon" :style="iconStyle">☎</text>
|
||||
<!-- #endif -->
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.phone-dial-inline {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.phone-dial-inline--expand {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.phone-dial-inline--icon-only.phone-dial-inline--expand {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.phone-dial-inline--end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.phone-dial-inline--end .phone-dial-inline__text {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.phone-dial-inline__text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
word-break: break-all;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.phone-dial-inline--icon-only .phone-dial-inline__text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.phone-dial-inline__btn {
|
||||
flex-shrink: 0;
|
||||
min-width: 44rpx;
|
||||
min-height: 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.phone-dial-inline__icon {
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,72 @@
|
||||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { staticAssetUrl } from '@/utils/staticAsset';
|
||||
|
||||
const props = defineProps({
|
||||
text: { type: [String, Number, Object], default: '' },
|
||||
label: { type: String, default: '' },
|
||||
iconOnly: { type: Boolean, default: false }
|
||||
});
|
||||
|
||||
const value = computed(() => String(props.text ?? '').trim());
|
||||
const ICON_COPY = staticAssetUrl('copy.svg');
|
||||
|
||||
function onCopy() {
|
||||
const v = value.value;
|
||||
if (!v || v === '—') return;
|
||||
uni.setClipboardData({
|
||||
data: v,
|
||||
success: () => uni.showToast({ title: `${props.label || '内容'}已复制`, icon: 'none' })
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view
|
||||
v-if="value"
|
||||
class="sq-copy-btn"
|
||||
:class="{ 'sq-copy-btn--icon-only': !!iconOnly }"
|
||||
@click.stop="onCopy"
|
||||
>
|
||||
<image class="sq-copy-btn__icon" :src="ICON_COPY" mode="aspectFit" />
|
||||
<text v-if="!iconOnly" class="sq-copy-btn__text">复制</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/* 参考配送员端复制按钮样式:浅绿底 + 绿字 */
|
||||
.sq-copy-btn {
|
||||
flex-shrink: 0;
|
||||
min-height: 36rpx;
|
||||
padding: 0 10rpx;
|
||||
border-radius: 999rpx;
|
||||
background: #eef8f3;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.sq-copy-btn--icon-only {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
padding: 0;
|
||||
justify-content: center;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.sq-copy-btn__icon {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
.sq-copy-btn--icon-only .sq-copy-btn__icon {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
|
||||
.sq-copy-btn__text {
|
||||
font-size: 18rpx;
|
||||
color: #189b65;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in new issue
Block a user