diff --git a/api/mock.js b/api/mock.js
index 51fa818..a5c8865 100644
--- a/api/mock.js
+++ b/api/mock.js
@@ -45,7 +45,9 @@ export async function createCreditOrder(payload) {
creditBorrowOrderId: `ZM${now}`,
itemName: payload.itemName,
depositAmount: payload.depositAmount,
- // CREDIT=信用免押,PAID=现场付押金
+ // 收货信息:线上租赁由快递发货
+ address: payload.address || null,
+ // CREDIT=信用免押,PAID=支付押金
depositMode: 'CREDIT',
// PENDING=授权中,ACTIVE=免押生效,RELEASED=已解除
status: 'PENDING',
diff --git a/components/credit-header/credit-header.vue b/components/credit-header/credit-header.vue
index a0b78e8..bc059d3 100644
--- a/components/credit-header/credit-header.vue
+++ b/components/credit-header/credit-header.vue
@@ -6,10 +6,6 @@
-
- 芝
- 芝麻信用
-
///
{{ title }}
@@ -27,11 +23,6 @@
type: String,
default: ''
},
- // 是否显示「芝麻信用」标识(押金页不显示)
- showBadge: {
- type: Boolean,
- default: false
- },
showBack: {
type: Boolean,
default: true
@@ -49,7 +40,7 @@
onMounted(() => {
statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight || 0
- // 支付宝端用透明原生导航栏自带的返回按钮(pages.json 里 navigationBarTextStyle 已设为白色),
+ // 支付宝端用透明原生导航栏自带的返回按钮(pages.json 里 navigationBarTextStyle 已设为白色)
// 这里不再画第二个箭头;其他端没有原生导航栏,自己画。
// #ifdef MP-ALIPAY
canBack.value = false
@@ -104,35 +95,6 @@
transform: rotate(45deg);
}
- .zm-badge {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 8rpx;
- }
-
- .zm-logo {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background: #ffffff;
- }
-
- .zm-logo-text {
- font-size: 22rpx;
- font-weight: 600;
- color: #1e6bff;
- }
-
- .zm-text {
- margin-left: 12rpx;
- font-size: 26rpx;
- color: rgba(255, 255, 255, 0.95);
- }
-
.hero-title {
display: flex;
align-items: center;
diff --git a/config/index.js b/config/index.js
index 6eb8421..45545b8 100644
--- a/config/index.js
+++ b/config/index.js
@@ -8,12 +8,34 @@
const config = {
// 品牌信息
brandName: '宠物智能项圈',
- brandLogo: '/static/logo.png',
+ brandLogo: '/static/app_icon.png',
- // 租赁物品与押金,仅用于页面展示,真实金额以服务端下单结果为准
+ // 租赁商品与押金,仅用于页面展示,真实金额以服务端下单结果为准
itemName: '宠物智能项圈',
+ // 商品实拍图:芝麻审核要求承接页展示真实商品内容
+ itemImage: '/static/xiangquan.png',
+ // 商品卖点,按实际产品填写
+ itemDesc: '智能定位 · 健康监测 · 防水防丢,适合日常佩戴',
+ // 租金与租期
+ rentPrice: 69,
+ rentPeriod: '月',
depositAmount: 69,
+ // 线上实物租赁:商品以快递方式发出,租期结束后寄回
+ delivery: {
+ // 发货时效
+ shipTime: '下单后 48 小时内发货',
+ // 运费说明
+ shipFee: '全国包邮',
+ // 计租起点
+ rentStart: '签收后开始计算租期'
+ },
+
+ // 免押能力所属信用服务品牌,用于承接页的免押说明文案
+ creditBrand: '芝麻信用',
+ // 服务提供方(公司/门店名称),留空则不展示
+ serviceProvider: '',
+
// 服务端接口
apiBaseUrl: 'https://api.example.com',
// 服务端未就绪时用本地 mock 跑通前端流程,联调时改成 false
@@ -27,7 +49,7 @@ const config = {
downloadUrl: ''
},
- // 协议页面(当前是本地占位页,正式文本请替换为芝麻信用官方协议地址)
+ // 协议页面(如换成芝麻信用官方协议地址,直接替换这里的路径即可)
agreements: {
credit: '/pages/agreement/agreement'
}
diff --git a/manifest.json b/manifest.json
index b395b5c..c9acd46 100644
--- a/manifest.json
+++ b/manifest.json
@@ -58,7 +58,7 @@
},
"mp-alipay" : {
/* 在支付宝开放平台创建小程序后,把 appid 填到这里 */
- "appid" : "",
+ "appid" : "2021007112698339",
"usingComponents" : true
},
"mp-baidu" : {
diff --git a/pages.json b/pages.json
index 1947f29..d5b7cf6 100644
--- a/pages.json
+++ b/pages.json
@@ -33,10 +33,16 @@
"navigationBarTextStyle": "white"
}
},
+ {
+ "path": "pages/address/address",
+ "style": {
+ "navigationBarTitleText": "收货信息"
+ }
+ },
{
"path": "pages/agreement/agreement",
"style": {
- "navigationBarTitleText": "芝麻信用协议及授权条款"
+ "navigationBarTitleText": "信用服务授权条款"
}
}
],
diff --git a/pages/address/address.vue b/pages/address/address.vue
new file mode 100644
index 0000000..e853569
--- /dev/null
+++ b/pages/address/address.vue
@@ -0,0 +1,149 @@
+
+
+
+
+ 收货人
+
+
+
+ 手机号
+
+
+
+ 所在地区
+
+
+
+ 详细地址
+
+
+
+
+
+ 商品将通过快递寄送,请确保收货信息准确。租期自签收后开始计算,租期结束前需按指引寄回。
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/agreement/agreement.vue b/pages/agreement/agreement.vue
index bbef51a..6edee13 100644
--- a/pages/agreement/agreement.vue
+++ b/pages/agreement/agreement.vue
@@ -1,36 +1,78 @@
- 芝麻信用协议及授权条款
- 更新日期:2026-10-27
+ 信用服务授权条款
+ 更新日期:2026-11-11
- 一、授权范围
+ 一、服务说明
- 用户同意本小程序在办理宠物智能项圈租赁免押时,向芝麻信用查询用户的信用评估结果,
- 用于判断是否免除押金。用户可随时在支付宝「芝麻信用 - 我的 - 信用管理」中查看或解除授权。
+ 本小程序提供线上实物租赁服务,出租商品为「{{ itemName }}」。用户在租赁时选择信用免押方式,
+ 经信用评估通过后可免交 {{ depositAmount }} 元押金;评估未通过时,按租赁规则支付押金后办理租赁。
+ 商品由服务提供方以快递方式送达,租期结束前由用户按指引寄回。
- 二、免押与履约
+ 二、信用评估授权
- 免押租赁期间,用户应按约定时间归还设备并保证设备完好。逾期未归还或设备损坏的,
- 按门店租赁规则处理,并可能影响用户的芝麻信用记录。
+ 用户同意本小程序在办理本次免押时,向{{ creditBrand }}查询用户的信用评估结果,仅用于判断是否免除本次押金。
+ 用户可随时在支付宝「芝麻信用 - 我的 - 信用管理」中查看或解除授权;解除授权后,本次免押服务将不再有效。
- 三、信息使用
+ 三、免押与押金
- 本小程序仅将信用评估结果用于本次免押判断,不会用于与租赁无关的用途,
- 相关信息的存储与保护遵循法律法规及芝麻信用平台规则。
+ 免押金额为 {{ depositAmount }} 元,仅免除本次租赁押金,不免除租金及用户应履行的其他义务。
+ 以押金方式办理的用户,在商品验收无损归还后按租赁规则退还押金。
- 注:以上为占位文本,正式上线前需替换为经法务/芝麻信用确认的协议全文。
+
+ 四、租赁与归还
+
+ 商品签收后开始计算租期。用户应按订单约定的租期使用商品,并在租期届满前按小程序内归还指引寄回。
+ 归还时商品应保持可正常使用状态,因人为损坏、丢失或配件缺失造成的损失,按租赁规则处理。
+
+
+
+
+ 五、逾期与违约
+
+ 逾期未归还的,按租赁规则收取相应费用;经催告仍未归还或存在其他违约行为的,服务提供方可依法维权,
+ 相关违约记录可能影响用户的信用记录。
+
+
+
+
+ 六、信息使用与保护
+
+ 本小程序仅将信用评估结果用于本次免押判断,不会用于与本次租赁无关的用途。
+ 用户信息的收集、存储与使用遵循法律法规及{{ creditBrand }}平台规则,
+ 未经用户同意不会向无关第三方提供。
+
+
+
+
+ 七、其他
+
+ 本条款由{{ provider }}提供并解释。条款内容如有变更,将在小程序内公示;
+ 用户继续使用服务即视为接受变更后的条款。如对条款有疑问,可通过小程序内客服入口联系我们。
+
+
+
+
diff --git a/pages/deposit/deposit.vue b/pages/deposit/deposit.vue
index f35f6f8..4f5c7e5 100644
--- a/pages/deposit/deposit.vue
+++ b/pages/deposit/deposit.vue
@@ -1,6 +1,6 @@
-
+
{
diff --git a/pages/index/index.vue b/pages/index/index.vue
index eeb9386..0e987d9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,33 +1,74 @@
-
+
-
-
+
+
+
+
+ {{ itemName }}
+ {{ itemDesc }}
+
+ ¥
+ {{ rentPrice }}
+ /{{ rentPeriod }}
+
+
- {{ brandName }}
-
+
+
+ 免押说明
+
+ 本服务为线上实物租赁,使用{{ creditBrand }}免押能力:{{ creditBrand }}评估通过后,可免交 {{ depositAmount }} 元押金租用「{{ itemName }}」,
+ 商品以快递方式发出,{{ delivery.rentStart }}。评估未通过时,需支付押金后租用;租期结束寄回商品、租约结束后,免押服务随之解除。
+
+
+
+
+
+ 服务流程
+
+
+ {{ index + 1 }}
+
+ {{ step.title }}
+ {{ step.desc }}
+
+
+
+
+
+
+
+ 租赁与归还
+ 服务提供方:{{ serviceProvider }}
+
+
+
+ {{ rule }}
+
+
+
+
我已阅读并同意
- 《芝麻信用协议及授权条款》
+ 《信用服务授权条款》
注:请记得归还物品哦,以免对你的信用产生影响
-
+
@@ -35,16 +76,36 @@
@@ -96,36 +132,167 @@
background: #ffffff;
}
- /* 卡片压在蓝色头部与白色内容交界处,对应截图里的悬浮效果 */
- .brand-card {
+ /* 商品卡片压在蓝色头部与白色内容交界处,对应截图里的悬浮效果 */
+ .product-card {
position: relative;
z-index: 2;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 200rpx;
- height: 200rpx;
- margin: -120rpx auto 0;
- border-radius: 32rpx;
+ margin: -120rpx 40rpx 0;
+ overflow: hidden;
+ border-radius: 24rpx;
background: #ffffff;
box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.12);
}
- .brand-logo {
- width: 140rpx;
- height: 140rpx;
+ .product-img {
+ display: block;
+ width: 100%;
+ /* 商品实拍图为横版(约 1.9:1),满版展示才能看清项圈全貌 */
+ height: 340rpx;
+ background: #f7f8fa;
}
- .brand-name {
- margin-top: 32rpx;
- text-align: center;
- font-size: 36rpx;
+ .product-info {
+ padding: 24rpx;
+ }
+
+ .product-name {
+ font-size: 32rpx;
font-weight: 600;
color: #1a1a1a;
}
+ .product-desc {
+ margin-top: 12rpx;
+ font-size: 24rpx;
+ line-height: 1.5;
+ color: #888888;
+ }
+
+ .product-price {
+ display: flex;
+ align-items: baseline;
+ margin-top: 16rpx;
+ color: #1e6bff;
+ }
+
+ .price-symbol {
+ font-size: 24rpx;
+ }
+
+ .price-num {
+ font-size: 38rpx;
+ font-weight: 700;
+ }
+
+ .price-unit {
+ margin-left: 4rpx;
+ font-size: 24rpx;
+ color: #999999;
+ }
+
.info-section {
- margin-top: 72rpx;
+ margin-top: 40rpx;
+ }
+
+ .section {
+ margin: 48rpx 40rpx 0;
+ }
+
+ .section-title {
+ display: flex;
+ align-items: center;
+ font-size: 30rpx;
+ font-weight: 600;
+ color: #1a1a1a;
+ }
+
+ .section-title::before {
+ content: '';
+ width: 6rpx;
+ height: 28rpx;
+ margin-right: 12rpx;
+ border-radius: 6rpx;
+ background: #1e6bff;
+ }
+
+ .section-text {
+ margin-top: 16rpx;
+ font-size: 26rpx;
+ line-height: 1.7;
+ color: #555555;
+ }
+
+ .step-list {
+ margin-top: 24rpx;
+ }
+
+ .step-item {
+ display: flex;
+ margin-bottom: 24rpx;
+ }
+
+ .step-item:last-child {
+ margin-bottom: 0;
+ }
+
+ .step-index {
+ display: flex;
+ flex-shrink: 0;
+ align-items: center;
+ justify-content: center;
+ width: 40rpx;
+ height: 40rpx;
+ margin-right: 16rpx;
+ border-radius: 50%;
+ background: rgba(30, 107, 255, 0.1);
+ font-size: 24rpx;
+ font-weight: 600;
+ color: #1e6bff;
+ }
+
+ .step-body {
+ flex: 1;
+ }
+
+ .step-title {
+ font-size: 28rpx;
+ color: #1a1a1a;
+ }
+
+ .step-desc {
+ margin-top: 6rpx;
+ font-size: 24rpx;
+ line-height: 1.5;
+ color: #999999;
+ }
+
+ .rule-list {
+ margin-top: 16rpx;
+ }
+
+ .rule-item {
+ display: flex;
+ margin-top: 14rpx;
+ }
+
+ .rule-item:first-child {
+ margin-top: 0;
+ }
+
+ .rule-dot {
+ flex-shrink: 0;
+ width: 8rpx;
+ height: 8rpx;
+ margin: 16rpx 14rpx 0 4rpx;
+ border-radius: 50%;
+ background: #c9cdd4;
+ }
+
+ .rule-text {
+ flex: 1;
+ font-size: 26rpx;
+ line-height: 1.6;
+ color: #555555;
}
.agreement {
diff --git a/pages/result/result.vue b/pages/result/result.vue
index b508d7a..776f9bd 100644
--- a/pages/result/result.vue
+++ b/pages/result/result.vue
@@ -1,6 +1,6 @@
-
+
@@ -12,7 +12,7 @@
-
+
@@ -21,7 +21,6 @@
import { ref } from 'vue'
import { onLoad, onUnload } from '@dcloudio/uni-app'
import { getOrder } from '@/api/order'
- import { openPetApp } from '@/utils/pet-app'
const orderId = ref('')
const confirmed = ref(false)
@@ -57,9 +56,9 @@
}
}
- // 添加设备在宠物 App 内完成,小程序只做交接
- function goAddDevice() {
- openPetApp()
+ // 免押流程到此结束,回到首页
+ function handleDone() {
+ uni.reLaunch({ url: '/pages/index/index' })
}
diff --git a/static/app_icon.png b/static/app_icon.png
new file mode 100644
index 0000000..4f4b433
Binary files /dev/null and b/static/app_icon.png differ
diff --git a/static/logo.png b/static/logo.png
deleted file mode 100644
index 2876961..0000000
Binary files a/static/logo.png and /dev/null differ
diff --git a/static/xiangquan.png b/static/xiangquan.png
new file mode 100644
index 0000000..6792276
Binary files /dev/null and b/static/xiangquan.png differ