去除unicloud空间绑定,修复已知错误

This commit is contained in:
fm453
2025-07-16 03:39:53 +08:00
parent c62d15b288
commit b5b8cc5cbb
412 changed files with 507 additions and 40065 deletions

View File

@ -1,3 +1,11 @@
<!--
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2021-09-06 11:48:18
* @FilePath: pages/ctms/tabbar/index/index.vue
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
-->
<template>
<view class="content">
<!-- 轮播图 -->
@ -11,13 +19,21 @@
</swiper>
</view>
<image class="logo" src="@/static/logo.png"></image>
<!--计数器 -->
<uni-notice-bar color="#2979FF" background-color="#EAF2FF" :text="h5Data.welcomeTip" />
<view class="text-area">
<text class="title">安邮车联</text>
</view>
<view class="text-area">
<text class="title">运车助手</text>
<view class="numCounter">
<view class="div title">累计运单:</view>
<view class="div" v-for="(num, index) in totalOrdersNum" :key="index">
<text :data-value="num" class="text">{{num}}</text>
</view>
</view>
</view>
<uni-section title="近期热门" subTitle="最近咨询、下单的路段及车型信息" type="line" class="recent">
<uni-notice-bar show-icon='false' scrollable v-for="(str, index) in h5Data.recent" :key="index"
:text="str" />
</uni-section>
</view>
</template>
@ -32,7 +48,13 @@
banner: [{
image: '/static/img/banner/banner.jpg',
link: ""
}]
}],
h5Data: {
welcomeTip: '安邮车联汽车托运平台致力于为客户提供多样化、专业化的优质托运服务承运商信息,让客户省心、省钱地找到合适的汽车托运服务。',
orderTotal: 1234567,
recent: ['王女士,三亚=>哈尔滨一台比亚迪宋新能源车型日期6月15日', '刘先生,万宁=>常德路虎揽胜日期6月18日']
},
totalOrdersNum: [1, 2, 3, 4, 5, 6]
}
},
methods: {
@ -55,6 +77,24 @@
}
});
},
getH5datas() {
ctms.datas.h5().then((res) => {
var _data = res;
if (!_data) {
return false;
}
console.log(_data);
if (_data.welcomeTip) {
this.h5Data.welcomeTip = _data.welcomeTip;
}
if (_data.orderTotal) {
this.h5Data.orderTotal = _data.orderTotal;
}
if (_data.recent) {
this.h5Data.recent = _data.recent;
}
});
},
checkSplash() {
var ls = "splashShowed";
var a = uni.getStorageSync(ls);
@ -63,13 +103,23 @@
url: "/pages/index/index"
})
}
},
numToArr(num) {
var _num = num ?? this.h5Data.orderTotal;
_num = _num.toString();
var arr = Array.from(_num);
return arr;
}
},
onLoad: function() {
this.checkSplash();
this.getH5datas();
this.totalOrdersNum = this.numToArr();
},
onShow: function() {
this.getBanner();
this.getH5datas();
this.totalOrdersNum = this.numToArr();
}
}
</script>
@ -102,15 +152,12 @@
}
</style>
<style lang="scss">
@import url("../../index/counter.css");
.uni-margin-wrap {
width: 100%;
}
.uni-padding-wrap {
width: 550rpx;
padding: 0 100rpx;
}
/*轮播幻灯*/
.swiper {
height: 300rpx;
@ -145,4 +192,10 @@
.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal {
padding-bottom: 10rpx;
}
</style>
/*最近热门*/
.recent {
margin-top: 1rem;
width: 100%;
}
</style>

View File

@ -1,3 +1,11 @@
<!--
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2021-09-06 11:48:18
* @FilePath: pages/ctms/tabbar/me/index.vue
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
-->
<template>
<view class="container">
<view class="about">

View File

@ -1,3 +1,11 @@
<!--
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2021-09-06 11:48:18
* @FilePath: pages/ctms/tabbar/notice/index.vue
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
-->
<template>
<view class="container">
<view v-if="!totalCount" class="content">

View File

@ -1,3 +1,11 @@
<!--
* @Author: 嗨噜客(三亚)<fm453>
* @Date: 2022-04-22 13:22:50
* @FilePath: pages/ctms/tabbar/order/index.vue
* @Description:
* @Email: 393213759@qq.com
* Copyright (c) 2025 by www.hiluker.cn, All Rights Reserved.
-->
<template>
<view class="content">
<view class="uni-common-mt uni-form">