master
tangyi 2022-04-08 09:25:08 +08:00
parent 6629e9b4d5
commit 8ccf1e5860
3 changed files with 28 additions and 22 deletions

View File

@ -1,4 +1,5 @@
<template> <template>
<view class="">
<view class="foot-box" <view class="foot-box"
:style="{ :style="{
background: isGradualChange ? `linear-gradient( to ${direction}, ${colorOne} 0%, ${colorTwo} 20%, ${colorThree} 80%, ${colorFour} 100%)` : `url(${backgroundImage}) ${backgroundColor} `, background: isGradualChange ? `linear-gradient( to ${direction}, ${colorOne} 0%, ${colorTwo} 20%, ${colorThree} 80%, ${colorFour} 100%)` : `url(${backgroundImage}) ${backgroundColor} `,
@ -11,6 +12,8 @@
</view> </view>
<!-- 后台动态改变的icon图 end --> <!-- 后台动态改变的icon图 end -->
</view> </view>
</view>
</template> </template>
<script> <script>
// qrcode.js qrcode.js // qrcode.js qrcode.js

View File

@ -106,15 +106,15 @@
return { return {
data: { data: {
type_id: 1, type_id: 1,
title: "", title: "广场大屏显示器",
brand: "", brand: "苹果",
model: "", model: "IP445152",
width: "", width: 100,
height: "", height: 100,
contact_name: "", contact_name: "张某",
contact_phone: "", contact_phone: "17552525252",
appointment_time: '', appointment_time: '',
addres: "", addres: "上海市闵行区莘浜路421号",
pictures: "", pictures: "",
}, },
imgsrcArr: [], imgsrcArr: [],
@ -226,7 +226,10 @@
this.$toolAll.tools.showToast("请选择现场图片"); this.$toolAll.tools.showToast("请选择现场图片");
return return
} }
this.data.appointment_time = new Date(this.data.appointment_time).getTime() console.log(this.data.appointment_time)
this.data.appointment_time = new Date(this.data.appointment_time).getTime()/1000
this.data.width=this.data.width-0
this.data.height= this.data.height-0
this.$requst.post('/universal/api.vas/vas', this.data).then(res => { this.$requst.post('/universal/api.vas/vas', this.data).then(res => {
if (res.code == 1) { if (res.code == 1) {
console.log(res) console.log(res)

View File

@ -245,7 +245,7 @@
}, },
data() { data() {
return { return {
role: 4, // 1 2: 3: 4 role: 2, // 1 2: 3: 4
role: uni.getStorageSync('type_id'), // 1 2: 3: 4 role: uni.getStorageSync('type_id'), // 1 2: 3: 4
statusHeight: uni.getSystemInfoSync().statusBarHeight + 50, statusHeight: uni.getSystemInfoSync().statusBarHeight + 50,
messageNumber: 16 ,// messageNumber: 16 ,//