Commit d7363f84 authored by wangxuelai's avatar wangxuelai

'海报生成的方式修改'

parent 1d034654
......@@ -3,9 +3,9 @@ text, view {
font-size: 28rpx;
/* line-height: 1; */
}
page{
/* page{
position: relative;
}
} */
.container {
box-sizing: border-box;
height: auto;
......
......@@ -32,14 +32,14 @@
<view class="content-topbox">
<view class="tab-box">
<view class="tab-item {{item.themeStatus == themeStatus?'active':''}}" data-themestatus="{{item.themeStatus}}" wx:for="{{themeTab}}" bindtap="subjectStatusShift" wx:key="">
<view class="tab-item {{item.themeStatus == themeStatus?'active':''}}" data-themestatus="{{item.themeStatus}}" wx:for="{{themeTab}}" bindtap="subjectStatusShift" wx:key="index">
<view class="tab-itemname">{{item.tabname}}</view>
</view>
</view>
</view>
<view class="theme-list" wx:if="{{!emptyPage}}">
<block wx:for="{{mixedthemeList}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="{{listIndex}}">
<block wx:for="{{mixedthemeList}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="listIndex">
<view class="circle-item mb24 {{item.subject_type==2?'rili':''}}" wx:for="{{listItem}}" wx:for-item="item" data-theme="{{item}}" wx:key="index" catchtap="goThemeIndex">
<block wx:if="{{item.subject_type == 1}}">
<image class="taskbg assignmentbg" src="{{imageRoot}}2b/circleindex/assignment.png?{{imageVersion}}"></image>
......
小程序海报修改
1.作业主题海报日签 scene
page: src/pages/clockdetail/newindex
修改前 `c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
修改后 `${clockDetail.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`,
2.作业主题分享海报 scene
page: `src/pages/beforeinvitation/index`;
修改前 `ctd=${visitor && visitor.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
修改后 `0_${visitor && visitor.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
2.闯关主题海报日签 scene
page: src/pages/clockdetail/newindex
修改前`c=${clockDetail[0].id}&t=${this.data.themeSelect.id}&w=${app.globalData.currentSchoolStudentId}`,
修改后 `${clockDetail[0].id}_${this.data.themeSelect.id}_${app.globalData.currentSchoolStudentId}`,
2.闯关分享海报 scene
page: src/pages/sharemoretheme/index
修改前 `t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
修改后 `${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
3.日历主题海报日签 scene
page: src/pages/clockdetail/newindex
修改前`c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
修改后 `${clockDetail.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`,
4.日历打卡分享按钮生成的海报
page: src/pages/beforeinvitation/index
修改前 `ctd=${visitor && visitor.id}&t=${this.data.tid}&p=1&w=${app.globalData.currentSchoolStudentId}`;
修改后 `1_${visitor && visitor.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
5.成长记录分享按钮生成的海报
page: src/pages/growthrecord/index
修改前 `i=${this.data.id}&ctd=${this.data.consumerId}&p=4&s=${this.data.sid}&w=${app.globalData.currentSchoolStudentId}`
修改后 `4_${this.data.id}_${this.data.consumerId}_${app.globalData.currentSchoolStudentId}`,
6.结业证书生成荣誉海报
page: src/pages/calendarthemeindex/index
修改前 `i=${certificateInfo.subject.class_id}&t=${certificateInfo.subject.id}&w=${app.globalData.currentSchoolStudentId}`,
修改后 `${certificateInfo.subject.class_id}_${certificateInfo.subject.id}_${app.globalData.currentSchoolStudentId}`,
7.分享打卡详情海报长图
page: src/pages/clockdetail/newindex
修改前 `t=${tid}&c=${clockId}&w=${app.globalData.currentSchoolStudentId}`,
修改后 `${clockId}_${tid}_${app.globalData.currentSchoolStudentId}`,
\ No newline at end of file
......@@ -2087,7 +2087,8 @@ Page({
title: '日签生成中...'
})
generateCustomerQrcode({
scene: `c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
// scene: `c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
scene: `${clockDetail.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`,
page: `src/pages/clockdetail/newindex`
// scene: `ctd=${visitor && visitor.id}&t=${this.data.tid}`,
// page: `src/pages/beforeinvitation/index`
......
......@@ -59,7 +59,7 @@ Page({
source_id: this.data.clockId,
source_type: 1,
}).then(() => {
this.initPost(`t=${tid}&c=${clockId}&w=${app.globalData.currentSchoolStudentId}`, 'src/pages/clockdetail/newindex', clockId,tid);
this.initPost(`${clockId}_${tid}_${app.globalData.currentSchoolStudentId}`, 'src/pages/clockdetail/newindex', clockId,tid);
this.clockDetail()
})
// this.initPost(`t=${tid}&c=${clockId}`, page, clockId,tid);
......
......@@ -1645,7 +1645,7 @@ Page({
let qrcode = '';
generateCustomerQrcode({
scene: `i=${this.data.id}&ctd=${this.data.consumerId}&p=4&s=${this.data.sid}&w=${app.globalData.currentSchoolStudentId}`,
scene: `4_${this.data.id}_${this.data.consumerId}_${app.globalData.currentSchoolStudentId}`,
page: `src/pages/growthrecord/index`
}).then((res) => {
const {code, data} = res;
......
......@@ -243,11 +243,14 @@ Page({
generateCustomerQrcode () {
const visitor = LocalStorage.getItem('visitor');
let page = `src/pages/beforeinvitation/index`;
let scene = `ctd=${visitor && visitor.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
// let scene = `ctd=${visitor && visitor.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
let scene = `0_${visitor && visitor.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
if(this.data.pagefrom=="morethemeindex"){
scene = `ctd=${visitor && visitor.id}&t=${this.data.tid}&p=1&w=${app.globalData.currentSchoolStudentId}`;
// scene = `ctd=${visitor && visitor.id}&t=${this.data.tid}&p=1&w=${app.globalData.currentSchoolStudentId}`;
scene = `1_${visitor && visitor.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
} else if (this.data.pagefrom=="sharermorethemeindex") {
scene = `t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
// scene = `t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`;
scene = `${this.data.tid}_${app.globalData.currentSchoolStudentId}`;
page = `src/pages/sharemoretheme/index`;
}
generateCustomerQrcode({
......
......@@ -1447,9 +1447,9 @@ Page({
title: '日签生成中...'
})
console.log(this.data.themeSelect,'主题')
generateCustomerQrcode({
scene: `c=${clockDetail[0].id}&t=${this.data.themeSelect.id}&w=${app.globalData.currentSchoolStudentId}`,
// scene: `c=${clockDetail[0].id}&t=${this.data.themeSelect.id}&w=${app.globalData.currentSchoolStudentId}`,
scene: `${clockDetail[0].id}_${this.data.themeSelect.id}_${app.globalData.currentSchoolStudentId}`,
page: `src/pages/clockdetail/newindex`
// scene: `ctd=${visitor && visitor.id}&t=${this.data.tid}`,
// page: `src/pages/beforeinvitation/index`
......
<wxs src="./../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="theme-index-container clearfix">
<!-- <view class="container-top-box" >
<view class="yellow-box" >
<view class="title-box" >{{moreTheme.title}}</view>
<view class="step-box" >闯关进度:
{{moreTheme.my_clock_count}}/{{moreTheme.subject_count}}</view>
</view>
<view class="nav-box" >
<view class="nav-item" bindtap="goInviteFriend">
<view class="icon" >
<image class="icon1" src="{{imageRoot}}2c/themeindex/friend-icon.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
<view class="text">
邀请好友
</view>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
<view class="nav-item" bindtap="generateNewPoster">
<view class="icon" >
<image class="icon2" src="{{imageRoot}}2c/themeindex/img-iocn.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
</view>
<view class="text" >
生成日签
</view>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
<view class="nav-item" bindtap="goRankList">
<view class="icon" >
<image class="icon3" src="{{imageRoot}}2c/themeindex/rank-icon.png"
mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror=""></image>
</view>
<view class="text" >
排行榜
</view>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
</view>
<view class="card-box" >
<view class="title" >
<view class="text" >全部关卡</view>
<view class="detail-text" bindtap="goAllsubjects">
查看全部
<image binderror="" bindload="" class="right-icon" lazy-load=""
src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"></image>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
</view>
<view class="scroll-view-box"
wx:if="{{moreTheme.unlock_rule_type==1}}">
<scroll-view scroll-x style="height:88rpx; text-align: left;" scroll-left="{{scrollLeft}}" class="card-wrapper">
<view
class="card-item {{item.my_clock_count>0?'over-bg':''}} {{item.my_unlock_count>0&&item.my_clock_count<=0?'noclock-bg':''}} {{item.id==themeSelect.id&&item.my_clock_count>0?'act-bg':''}} {{item.id==themeSelect.id&&item.my_unlock_count>0&&item.my_clock_count<=0?'act-border':''}}"
wx:for="{{subjectsList}}"
wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="handleOrder">{{index+1}}<image binderror="" bindload="" class="" lazy-load=""
src="{{imageRoot}}morethemeindex/clock-bg.png?{{imageVersion}}"
wx:if="{{item.my_unlock_count==0 || !item}}"></image>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
</scroll-view>
</view>
<view class="arbitrarily-box"
wx:if="{{moreTheme.unlock_rule_type==2}}">
<swiper indicator-dots="{{arbitrarilyList.length<=1?false:true}}" indicator-color="#CFCFCF" current="{{currentSwiper}}"
indicator-active-color="rgba(255,209,70,1)" style="{{arbitrarilyList.length<=1&&arbitrarilyList[0].length<6?'height:100rpx':''}}">
<block class="card-box" wx:for="{{arbitrarilyList}}" wx:for-item="listItem"
wx:for-index="listIndex" wx:key="{{listIndex}}">
<swiper-item style="display:flex; flex-wrap:wrap;">
<view class="card-item {{item.id==themeSelect.id&&item.my_clock_count<=0?'act-border':''}}"
bindtap="handleArbitrarily" wx:for="{{listItem}}"
wx:key="index" data-item="{{item}}">
<image binderror="" bindload="" class="" lazy-load=""
wx:if="{{item.my_clock_count>0&&item.id!=themeSelect.id}}"
src="{{imageRoot}}morethemeindex/f-done.png?{{imageVersion}}"></image>
<image binderror="" bindload="" class="" lazy-load=""
wx:if="{{item.my_clock_count>0&&item.id==themeSelect.id}}"
src="{{imageRoot}}morethemeindex/f-act-done.png?{{imageVersion}}"></image>
<image binderror="" bindload="" class="" lazy-load=""
wx:if="{{item.my_unlock_count>0&&item.my_clock_count<=0}}"
src="{{imageRoot}}morethemeindex/f-notclock.png?{{imageVersion}}"></image>
<image binderror="" bindload="" class="" lazy-load=""
wx:if="{{item.my_unlock_count<=0}}"
src="{{imageRoot}}morethemeindex/f-clock.png?{{imageVersion}}"></image>
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
</form>
</view>
</swiper-item>
</block>
</swiper>
</view>
</view>
</view> -->
<view class="container-top-box">
<view class="mask"></view>
<image class="img-mask" src="{{moreTheme.banner ? filter.imagify(moreTheme.banner) : 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/2c/sharemoretheme/newunlockbg.png'}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
......
......@@ -255,7 +255,8 @@ Page({
title: '结课证书生成中...'
})
generateCustomerQrcode({
scene: `i=${certificateInfo.subject.class_id}&t=${certificateInfo.subject.id}&w=${app.globalData.currentSchoolStudentId}`,
scene: `${certificateInfo.subject.class_id}_${certificateInfo.subject.id}_${app.globalData.currentSchoolStudentId}`,
// scene: `i=${certificateInfo.subject.class_id}&t=${certificateInfo.subject.id}&w=${app.globalData.currentSchoolStudentId}`,
page: `src/pages/calendarthemeindex/index`
}).then((res) => {
const {
......
......@@ -3,7 +3,7 @@
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="nav-custombox">
<view class="nav-title-box">
<view class="item {{item.statusType == statusType?'active':''}}" wx:for="{{statusTab}}" wx:key="" bindtap="subjectStatusShift" data-statustype="{{item.statusType}}">
<view class="item {{item.statusType == statusType?'active':''}}" wx:for="{{statusTab}}" wx:key="index" bindtap="subjectStatusShift" data-statustype="{{item.statusType}}">
{{item.tabname}}
<form report-submit="true" bindsubmit="formIdCreate" class="createidform">
<button form-type="submit" class="createidbutton">生成form</button>
......
......@@ -1519,7 +1519,8 @@ Page({
title: '日签生成中...'
})
generateCustomerQrcode({
scene: `c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
// scene: `c=${clockDetail.id}&t=${this.data.tid}&w=${app.globalData.currentSchoolStudentId}`,
scene: `${clockDetail.id}_${this.data.tid}_${app.globalData.currentSchoolStudentId}`,
page: `src/pages/clockdetail/newindex`
}).then((res) => {
const {
......
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