zengyuehua 2 лет назад
Родитель
Сommit
58ceb389e0

+ 80
- 30
pages/index/index.vue Просмотреть файл

@@ -12,8 +12,11 @@
<view class="notice">
<image class="icon" :src="fileURL + 'image/index/icon-notice.png'" lazy-load="false">
</image>
<text class="notice-text">贵州高速最新施工,请注意昆明西...</text>
<!-- <text class="notice-text">{{state.notice}}</text> -->
<uni-notice-bar style="width: 100%;" scrollable single :text="state.notice">
</uni-notice-bar>
</view>
</view>
<!-- 按钮导航 -->
@@ -24,13 +27,13 @@
</view>
<view class="text">储值卡充值</view>
</view>
<view class="item-box" @click="$util.navTo('/service/search/select-car',true)">
<view class="item-box" @click="$util.msg('该功能正在开发中,敬请期待!')">
<view class="item item-2">
<image :src="fileURL + 'image/index/item-2.png'" />
</view>
<view class="text">账单查询</view>
</view>
<view class="item-box" @click="$util.navTo('/invoice/Invoice-mannager',true)">
<view class="item-box" @click="$util.msg('该功能正在开发中,敬请期待!')">
<view class="item item-3">
<image :src="fileURL + 'image/index/item-3.png'" />
</view>
@@ -43,14 +46,14 @@
<view class="text">设备激活</view>
</view>
<view class="item-box" @click="$util.navTo('/after-sale/card-loss-reporting/select-car',true)">
<view class="item-box" @click="$util.msg('该功能正在开发中,敬请期待!')">
<view class="item item-5">
<image :src="fileURL + 'image/index/item-5.png'" />
</view>
<view class="text">设备遗失</view>
</view>
<!-- <view class="item-box" @click="$util.navTo('/after-sale/rescind-carId/rescind-carId-select',true)"> -->
<view class="item-box" @click="$util.navTo(`/after-sale/rescind-carId/rescind-carId-select`,true)">
<view class="item-box" @click="$util.navTo('/after-sale/rescind-carId/rescind-carId-select',true)">
<view class="item item-6">
<image :src="fileURL + 'image/index/item-6.png'" />
</view>
@@ -168,6 +171,9 @@
</view>
</view>
</view>
<!-- ETC选择弹窗 -->
<view class="mask" v-if="isShowMask">
<view class="mask-content">
@@ -195,7 +201,8 @@
ref
} from "vue";
import {
onPageScroll
onPageScroll,
onLoad
} from "@dcloudio/uni-app";
import flowPathList from "./components/flow-path-list.vue";
import {
@@ -217,6 +224,9 @@
import {
fileURL
} from "@/datas/fileURL.js";
import {
infoQuery
} from "@/utils/network/api.js"
import {
navTo,
confirm
@@ -224,10 +234,11 @@
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`;
const bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
const list = reactive(["您有一条待办事项,还未办理完成"])
const state = reactive({
type: 0,
userType: 0,
notice: "",
noticeList: [
//公告栏列表
{
@@ -292,7 +303,42 @@
isShowBar.value = false;
}
});
onLoad(() => {
getInfo()
})
onMounted(() => {
uni.getSystemInfo({
success: (e: any) => {
console.log(e.statusBarHeight);
statusBarHeight.value = e.statusBarHeight;
}
})
// console.log(credentialType);
//参数说明
// let code = "30" //请求编码
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
opId: getItem("openId"),
source: "WECHAT",
tabIndex: "0",
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};
//调用方式
// request(searchOrder, options)
// .then((res) => {
// console.log(stringToJson(res.bizContent));
// // stringToJson(res.bizContent)
// })
// .catch((err) => {
// console.log(err);
// });
});
//办理流程tab选择
const flowPathTabHandle = (tab) => {
state.tabActive = tab;
@@ -347,39 +393,33 @@
const closeMask = () => {
isShowMask.value = false;
};
onMounted(() => {
uni.getSystemInfo({
success: (e: any) => {
console.log(e.statusBarHeight);
statusBarHeight.value = e.statusBarHeight;
}
})
// console.log(credentialType);
// 获取文本信息----用户协议
const getInfo = () => {
//参数说明
// let code = "30" //请求编码
let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: {
opId: getItem("openId"),
source: "WECHAT",
tabIndex: "0",
businessType: 'BROADCAST' //广播栏信息
}, //请求参数
method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示)
};
//调用方式
// request(searchOrder, options)
// .then((res) => {
// console.log(stringToJson(res.bizContent));
// // stringToJson(res.bizContent)
// })
// .catch((err) => {
// console.log(err);
// });
});
request(infoQuery, options)
.then((res) => {
let data = stringToJson(res.bizContent)
console.log(data);
state.notice = data.text
})
.catch((err) => {
console.log(err);
});
}
</script>
<style>
@@ -422,6 +462,16 @@
align-items: center;
padding: 0 20rpx;
box-sizing: border-box;
::v-deep .uni-noticebar {
background: none !important;
margin-bottom: 0;
text {
font-size: 24rpx !important;
color: #ffffff !important;
}
}
}
.banner .notice .icon {
@@ -795,4 +845,4 @@
padding: 55rpx 30rpx 30rpx;
}
}
</style>
</style>

+ 3
- 3
personal-center/setting/personal-information/user-change.vue Просмотреть файл

@@ -19,12 +19,12 @@
<u-field required labelWidth="180" :borderTop="true" v-model="state.ocrData.tel" input-align='right'
label="联系方式" :fieldStyle="fieldStyle" disabled>
</u-field>
</view>
</view>

<!-- <view class="subBtn">
<view class="subBtn">
<submit-button title="去修改" form-type="submit" @submit="formSubmit">
</submit-button>
</view> -->
</view>
</template>
<script setup lang="ts">
import {

+ 4
- 4
utils/util/fileData.js Просмотреть файл

@@ -1,7 +1,7 @@
import {
TextEncoder,
TextDecoder
} from "text-decoding";
// import {
// TextEncoder,
// TextDecoder
// } from "text-decoding";


export function IntegerToHexString(num, nLen) {

Загрузка…
Отмена
Сохранить