zengyuehua 2 lat temu
rodzic
commit
58ceb389e0

+ 80
- 30
pages/index/index.vue Wyświetl plik

<view class="notice"> <view class="notice">
<image class="icon" :src="fileURL + 'image/index/icon-notice.png'" lazy-load="false"> <image class="icon" :src="fileURL + 'image/index/icon-notice.png'" lazy-load="false">
</image> </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>
</view> </view>
<!-- 按钮导航 --> <!-- 按钮导航 -->
</view> </view>
<view class="text">储值卡充值</view> <view class="text">储值卡充值</view>
</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"> <view class="item item-2">
<image :src="fileURL + 'image/index/item-2.png'" /> <image :src="fileURL + 'image/index/item-2.png'" />
</view> </view>
<view class="text">账单查询</view> <view class="text">账单查询</view>
</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"> <view class="item item-3">
<image :src="fileURL + 'image/index/item-3.png'" /> <image :src="fileURL + 'image/index/item-3.png'" />
</view> </view>
<view class="text">设备激活</view> <view class="text">设备激活</view>
</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"> <view class="item item-5">
<image :src="fileURL + 'image/index/item-5.png'" /> <image :src="fileURL + 'image/index/item-5.png'" />
</view> </view>
<view class="text">设备遗失</view> <view class="text">设备遗失</view>
</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-box" @click="$util.navTo('/after-sale/rescind-carId/rescind-carId-select',true)">
<view class="item item-6"> <view class="item item-6">
<image :src="fileURL + 'image/index/item-6.png'" /> <image :src="fileURL + 'image/index/item-6.png'" />
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- ETC选择弹窗 --> <!-- ETC选择弹窗 -->
<view class="mask" v-if="isShowMask"> <view class="mask" v-if="isShowMask">
<view class="mask-content"> <view class="mask-content">
ref ref
} from "vue"; } from "vue";
import { import {
onPageScroll
onPageScroll,
onLoad
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
import flowPathList from "./components/flow-path-list.vue"; import flowPathList from "./components/flow-path-list.vue";
import { import {
import { import {
fileURL fileURL
} from "@/datas/fileURL.js"; } from "@/datas/fileURL.js";
import {
infoQuery
} from "@/utils/network/api.js"
import { import {
navTo, navTo,
confirm confirm
const bgOrange = `url(${fileURL}image/index/bg-orange.png) center center no-repeat`; 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 bgBlue = `url(${fileURL}image/index/bg-blue.png) center center no-repeat`;
const list = reactive(["您有一条待办事项,还未办理完成"])
const state = reactive({ const state = reactive({
type: 0, type: 0,
userType: 0, userType: 0,
notice: "",
noticeList: [ noticeList: [
//公告栏列表 //公告栏列表
{ {
isShowBar.value = false; 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选择 //办理流程tab选择
const flowPathTabHandle = (tab) => { const flowPathTabHandle = (tab) => {
state.tabActive = tab; state.tabActive = tab;
const closeMask = () => { const closeMask = () => {
isShowMask.value = false; 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 = { let options = {
type: 2, //type: 2,JSON格式提交数据(默认表单形式提交) type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
data: { data: {
opId: getItem("openId"),
source: "WECHAT",
tabIndex: "0",
businessType: 'BROADCAST' //广播栏信息
}, //请求参数 }, //请求参数
method: "POST", //提交方式(默认POST) method: "POST", //提交方式(默认POST)
showLoading: true, //是否显示加载中(默认显示) 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> </script>
<style> <style>
align-items: center; align-items: center;
padding: 0 20rpx; padding: 0 20rpx;
box-sizing: border-box; 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 { .banner .notice .icon {
padding: 55rpx 30rpx 30rpx; padding: 55rpx 30rpx 30rpx;
} }
} }
</style>
</style>

+ 3
- 3
personal-center/setting/personal-information/user-change.vue Wyświetl plik

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


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

+ 4
- 4
utils/util/fileData.js Wyświetl plik

import {
TextEncoder,
TextDecoder
} from "text-decoding";
// import {
// TextEncoder,
// TextDecoder
// } from "text-decoding";




export function IntegerToHexString(num, nLen) { export function IntegerToHexString(num, nLen) {

Ładowanie…
Anuluj
Zapisz