Commit a7bddcdd authored by 刘用法's avatar 刘用法
parents 31988a13 a938d021
...@@ -73,17 +73,7 @@ ...@@ -73,17 +73,7 @@
}) })
} }
} }
// if(photo.currentItem){
// photo.currentItem.imageList.unshift(photo.tempPath.mixWater)
// }
// if(photo.productList && photo.productList[photo.topIndex]){
// const topArr = photo.productList[photo.topIndex]
// if(topArr[photo.itemIndex]){
// topArr[photo.itemIndex].imageList.push(photo.tempPath.mixWater)
// }
// }
// photo.
if(photo.tempPath.mixWater){ if(photo.tempPath.mixWater){
// 保存水印处理图片到本地 // 保存水印处理图片到本地
path = photo.tempPath.mixWater path = photo.tempPath.mixWater
...@@ -122,6 +112,7 @@ ...@@ -122,6 +112,7 @@
}, },
finishPhoto(){ finishPhoto(){
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
if (photo.currentItemLength === 10) return
photo.currentItemLength = 10 photo.currentItemLength = 10
this.continuePhoto() this.continuePhoto()
// 完成本项 // 完成本项
...@@ -149,24 +140,7 @@ ...@@ -149,24 +140,7 @@
}else{ }else{
this.$emit('finish') this.$emit('finish')
} }
}, }
downloadImages() {
let self = this;
for (let url of this.images) {
uni.downloadFile({
url: url, //仅为示例,并非真实的资源
success(res) {
// 只要服务器有响应数据,就会把响应内容写入文件并进入 success 回调,业务需要自行判断是否下载到了想要的内容
if (res.statusCode === 200) {
self.files.push(res.tempFilePath)
}
},
fail(e) {
}
})
}
},
} }
} }
</script> </script>
......
...@@ -265,6 +265,7 @@ ...@@ -265,6 +265,7 @@
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
...@@ -206,10 +206,6 @@ ...@@ -206,10 +206,6 @@
}, },
updateTime() { updateTime() {
this.waterInfo.date = this.getTime() this.waterInfo.date = this.getTime()
// let timer = setTimeout(() => {
// clearTimeout(timer);
// this.updateTime()
// }, 1000)
}, },
setCameraInfo(type) { setCameraInfo(type) {
// 设置相机前置后置、闪关灯等 // 设置相机前置后置、闪关灯等
...@@ -261,7 +257,6 @@ ...@@ -261,7 +257,6 @@
const { const {
errMsg errMsg
} = e.detail } = e.detail
// console.log(e.detail, 'e.detail')
if (errMsg !== 'insertCamera:fail auth deny') { if (errMsg !== 'insertCamera:fail auth deny') {
return return
} }
......
...@@ -221,6 +221,13 @@ ...@@ -221,6 +221,13 @@
} }
}, },
{ {
"path":"contract/out",
"style":{
"navigationBarTitleText":""
}
},
{
"path": "customer/index", "path": "customer/index",
"style": { "style": {
"navigationStyle":"custom", "navigationStyle":"custom",
......
This diff is collapsed.
...@@ -8,16 +8,16 @@ ...@@ -8,16 +8,16 @@
></u-navbar> ></u-navbar>
<view class="content"> <view class="content">
<text class="title">合同清单</text> <text class="title">合同清单</text>
<view class="jf-currency-class" v-for="item in res" :key="item.id"> <view
class="jf-currency-class"
v-for="item in res"
:key="item.id"
@click="goBaidu(item.url)"
>
<view class="left">{{ item.name }}</view> <view class="left">{{ item.name }}</view>
<view class="text1">《{{ item.name }}》</view> <view class="text1">《{{ item.name }}》</view>
<view class="text2">下载时间: {{ item.create_at }}</view> <view class="text2">下载时间: {{ item.create_at }}</view>
</view> </view>
<!-- <view class="jf-currency-class">
<view class="left">新风机技工入驻签约合同</view>
<view class="text1">《新风机技工入驻签约合同》</view>
<view class="text2">下载时间: 2021.05.06 15:01:48</view>
</view> -->
</view> </view>
</view> </view>
</template> </template>
...@@ -28,14 +28,6 @@ export default { ...@@ -28,14 +28,6 @@ export default {
return { return {
background: { background: {
backgroundColor: "#F4F5F7", backgroundColor: "#F4F5F7",
// 导航栏背景图
// background: 'url(https://cdn.uviewui.com/uview/swiper/1.jpg) no-repeat',
// 还可以设置背景图size属性
// backgroundSize: 'cover',
// 渐变色
// backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
}, },
res: [], res: [],
type: "充电桩", type: "充电桩",
...@@ -52,50 +44,37 @@ export default { ...@@ -52,50 +44,37 @@ export default {
if (res.data) { if (res.data) {
let length = res.data.length; let length = res.data.length;
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
var re = /[^\u4e00-\u9fa5]/gi;
// res.data.name = res.data.name.replace(re, "");
let data = new Date( let data = new Date(
Number(res.data[i].create_at) * 1000 Number(res.data[i].create_at) * 1000
); );
res.data[i].create_at = moment(data).format( res.data[i].create_at = moment(data).format(
"yyyy.MM.DD HH:mm:ss" "yyyy.MM.DD HH:mm:ss"
); );
res.data[i].name = res.data[i].name.replace(re, "");
} }
this.res = this.res.concat(res.data); this.res = this.res.concat(res.data);
console.log(this.res); console.log(this.res);
} }
} else { } else {
console.log(res.code); //接口请求失败的处理
uni.showToast({
title: res.message,
icon: "none",
});
} }
}); });
}, },
add0(m) { goBaidu(a) {
return m < 10 ? "0" + m : m; getApp().globalData.contractUrl = a;
wx.navigateTo({
url: "./out",
success: function () {}, //成功回调
fail: function () {},
complete: function () {},
});
}, },
// format(shijianchuo) {
// //shijianchuo是整数,否则要parseInt转换
// var time = new Date(shijianchuo * 1000);
// var y = time.getFullYear();
// var m = time.getMonth() + 1;
// var d = time.getDate();
// var h = time.getHours();
// var mm = time.getMinutes();
// var s = time.getSeconds();
// return (
// y +
// "." +
// this.add0(m) +
// "." +
// this.add0(d) +
// " " +
// this.add0(h) +
// ":" +
// this.add0(mm) +
// ":" +
// this.add0(s)
// );
// // },
// gettime(time) {
// moment(new Date(time).format("yyyy.MM.DD HH:mm:ss"));
// },
}, },
}; };
</script> </script>
...@@ -122,7 +101,6 @@ export default { ...@@ -122,7 +101,6 @@ export default {
} }
.jf-currency-class { .jf-currency-class {
width: 100%; width: 100%;
height: 180rpx;
border-radius: 12rpx; border-radius: 12rpx;
padding-top: 40rpx; padding-top: 40rpx;
margin-top: 74rpx; margin-top: 74rpx;
......
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: "",
};
},
onLoad(option) {
this.url = option.url;
var app = getApp();
this.url = app.globalData.contractUrl;
console.log(app.globalData, "这是个标识符");
},
methods: {},
};
</script>
<style>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment