刘翔宇-旅管家 2 years ago
parent 3071ce8853
commit 4435e8b98a

@ -222,7 +222,9 @@
{{currentNotice.title}}
</view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<rich-text :nodes="currentNotice.content"></rich-text>
<rich-text :nodes="currentNotice.content"></rich-text>
<view @click="downLoad" style="color:#EF9525 ;" v-if="currentNotice.isTemplate"></view>
<view style="margin-top: 80px;"></view>
<u-button type="primary" @click="closeInfo"></u-button>
</view>
@ -397,7 +399,32 @@
clearInterval(this.t)
clearTimeout(this.timer)
},
methods: {
methods: {
downLoad() {
const downloadTask = uni.downloadFile({
url: 'https://leyitest.ali251.langye.net/Template.xlsx', //
success: (res) => {
var filePath = res.tempFilePath
if (res.statusCode === 200) {
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
console.log('打开文档成功')
}
})
}
}
});
downloadTask.onProgressUpdate((res) => {
console.log('下载进度' + res.progress);
console.log('已经下载的数据长度' + res.totalBytesWritten);
console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
});
},
closePhone() {
this.showAuthorization = false
},

@ -226,7 +226,8 @@
that.list = res;
let numberArr = []
let nowTime = that.getNowTime();
var i = 0;
var i = 0;
var chkMod=null
for (var m of res.numbers) {
m.label = m.name;
m.time = that.timeFormat(m.start_time, "yyyy年MM月DD日") + " " + that
@ -242,13 +243,14 @@
}
numberArr.push(m);
if (!m.disabled) {
m.checked = i == 0;
m.checked = i == 0;
chkMod=m;
i++;
}
}
console.log("numberArr[0].id", numberArr[0].id);
if (numberArr.length > 0)
that.activity_number_id = numberArr[0].id
//console.log("numberArr[0].id", numberArr[0].id);
if (chkMod)
that.activity_number_id = chkMod.id
that.numbers = numberArr
wx.setStorage({
key: 'activityinfo',

@ -8,8 +8,9 @@
<u--form labelPosition="top" labelWidth="120px" :model="form" ref="form">
<u-form-item label="预约入场时间" labelPosition="top" borderBottom>
<view style="color: #EF9525;font-size: 24rpx;">
{{(form.time?timeFormat(_formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}}
<view style="color: #EF9525;font-size: 24rpx;">
{{selectInfo}}
<!--{{(form.time?timeFormat(_formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}}-->
</view>
<u-datetime-picker :show="showSelecttime" closeOnClickOverlay @close="cancelTime"
@cancel="cancelTime" @confirm="confirmTime" v-model="form.time" mode="datetime">

@ -290,6 +290,7 @@
<!-- <rich-text :nodes="currentNotice.content"></rich-text> -->
<view class="htmls" style="line-height: 50rpx;text-indent: 2em;" v-html="currentNotice.content">
</view>
<view @click="downLoad" style="color:#EF9525 ;" v-if="currentNotice.isTemplate"></view>
</scroll-view>
<view style="margin-top: 40rpx;"></view>
@ -352,10 +353,12 @@
scrollheight: "",
notice: [{
title: "预约须知",
content: "预约须知的内容"
content: "预约须知的内容",
isTemplate:false
}, {
title: "批量上传帮助",
content: "<p>1.批量上传EXCEL的以xlsx结尾</p><p>2.第一行为标题行 姓名 手机号 证件号 行动不便者</p><p>3.文件是从微信聊天记录中选取或者微信文件传输助手</p><img src='@host@/export.png?v=1.1' style='width:100%'/>"
content: "<p>1.批量上传EXCEL的以xlsx结尾</p><p>2.第一行为标题行 姓名 手机号 证件号 行动不便者</p><p>3.文件是从微信聊天记录中选取或者微信文件传输助手</p><img src='@host@/export.png?v=1.1' style='width:100%'/>",
isTemplate:true
}],
specialtype: false,
specialid: 0,
@ -610,6 +613,30 @@
this.form.total = this.form.details_list.length;
},
downLoad() {
const downloadTask = uni.downloadFile({
url: 'https://leyitest.ali251.langye.net/Template.xlsx', //
success: (res) => {
var filePath = res.tempFilePath
if (res.statusCode === 200) {
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
console.log('打开文档成功')
}
})
}
}
});
downloadTask.onProgressUpdate((res) => {
console.log('下载进度' + res.progress);
console.log('已经下载的数据长度' + res.totalBytesWritten);
console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
});
},
loadConfig() {

@ -1,6 +1,6 @@
import md5 from "./md5.min";
const HOSTARR = {
'development':'https://leyitest.ali251.langye.net',//'https://leyiyuyue.szgmbwg.org.cn',//
'development':'https://leyiyuyue.szgmbwg.org.cn',//'https://leyitest.ali251.langye.net',//
'production': 'https://leyiyuyue.szgmbwg.org.cn'
}; // 审核状态

Loading…
Cancel
Save