|
|
|
|
@ -6,8 +6,8 @@
|
|
|
|
|
预约的活动
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box-card-content activityBox-content">
|
|
|
|
|
<view class="activityBox-row flex-row justify-between">
|
|
|
|
|
<text class="activityBox-title">{{list.name}}</text>
|
|
|
|
|
<view class="activityBox-row ">
|
|
|
|
|
<view class="activityBox-title">{{list.name}}</view>
|
|
|
|
|
<view class="tag tag_green activityBox_btn">
|
|
|
|
|
<text>{{numberlist.name}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
@ -31,7 +31,7 @@
|
|
|
|
|
|
|
|
|
|
<view class="activityBox-row">
|
|
|
|
|
<text class="icon-renshu iconfont"></text>
|
|
|
|
|
<text>人数限制:{{numberlist.total==0?'不限':numberlist.total}}</text>
|
|
|
|
|
<text>人数限制:{{(list.form==2?10 : (numberlist.total==0?'不限':numberlist.total))}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="activityBox-row flex-row align-center" @click="tothere">
|
|
|
|
|
<text class="icon-ditu-dibiao iconfont"></text>
|
|
|
|
|
@ -62,7 +62,7 @@
|
|
|
|
|
<text class="box-tips-txt"
|
|
|
|
|
v-if="type=='user'">每单限购{{list.person_max_count}}张,同一身份证当天限购1张</text>
|
|
|
|
|
<text class="box-tips-txt"
|
|
|
|
|
v-if="type=='team'">{{list.team_min_count}}人以上可团体预约<!-- ,一个团体最多{{list.team_max_count}}人 --></text>
|
|
|
|
|
v-if="type=='team'">{{list.form==2?10:list.team_min_count}}人以上可团体预约<!-- ,一个团体最多{{list.team_max_count}}人 --></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="box-card-content">
|
|
|
|
|
@ -222,8 +222,8 @@
|
|
|
|
|
{{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>
|
|
|
|
|
@ -352,43 +352,43 @@
|
|
|
|
|
this.form.type = (options.type == 'user' ? 2 : 1);
|
|
|
|
|
this.form.activity_id = parseInt(options.activity_id);
|
|
|
|
|
this.form.activity_number_id = parseInt(options.activity_number_id);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow(){
|
|
|
|
|
var that = this;
|
|
|
|
|
that.numberlist={};
|
|
|
|
|
wx.getStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
success(res) {
|
|
|
|
|
that.list = res.data;
|
|
|
|
|
for (var m of that.list.numbers) {
|
|
|
|
|
if (that.form.activity_number_id == m.id) {
|
|
|
|
|
that.numberlist = m
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (that.form.type == 2) {
|
|
|
|
|
that.form.total = 1
|
|
|
|
|
} else if (that.form.type == 1) {
|
|
|
|
|
that.form.total = 1;//res.data.team_min_count;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//先登录
|
|
|
|
|
that.util.getOpenidInfo(function(res) {
|
|
|
|
|
//手机号
|
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
|
//如果手机号为空 需要先授权手机号
|
|
|
|
|
if (that.util.isNull(r.mobile)) {
|
|
|
|
|
that.showAuthorization = true;
|
|
|
|
|
} else {
|
|
|
|
|
that.showAuthorization = false;
|
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
}
|
|
|
|
|
}, true);
|
|
|
|
|
that.loadCommonUser()
|
|
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
var that = this;
|
|
|
|
|
that.numberlist = {};
|
|
|
|
|
wx.getStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
success(res) {
|
|
|
|
|
that.list = res.data;
|
|
|
|
|
for (var m of that.list.numbers) {
|
|
|
|
|
if (that.form.activity_number_id == m.id) {
|
|
|
|
|
that.numberlist = m
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (that.form.type == 2) {
|
|
|
|
|
that.form.total = 1
|
|
|
|
|
} else if (that.form.type == 1) {
|
|
|
|
|
that.form.total = 1; //res.data.team_min_count;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//先登录
|
|
|
|
|
that.util.getOpenidInfo(function(res) {
|
|
|
|
|
//手机号
|
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
|
//如果手机号为空 需要先授权手机号
|
|
|
|
|
if (that.util.isNull(r.mobile)) {
|
|
|
|
|
that.showAuthorization = true;
|
|
|
|
|
} else {
|
|
|
|
|
that.showAuthorization = false;
|
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
}
|
|
|
|
|
}, true);
|
|
|
|
|
that.loadCommonUser()
|
|
|
|
|
|
|
|
|
|
}, true);
|
|
|
|
|
},
|
|
|
|
|
onHide() {
|
|
|
|
|
clearInterval(this.t)
|
|
|
|
|
@ -399,31 +399,31 @@
|
|
|
|
|
clearInterval(this.t)
|
|
|
|
|
clearTimeout(this.timer)
|
|
|
|
|
},
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
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
|
|
|
|
|
|