Commit afe8cef8 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent a232325f
......@@ -136,6 +136,9 @@
initHeight() {
const query = uni.createSelectorQuery().in(this);
query.select("#count").boundingClientRect();
},
onShow(){
},
show() {
// 更新阅读时间统计
......
......@@ -3,8 +3,8 @@ export default {
return {
share: {
title: '更多小说,等你来看',
imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png',
path: '/pages/loading?shareId='
imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/book_bg_splash.png',
path: '/pages/loading?shareId='+getApp().globalData.userId
}
}
},
......
......@@ -48,20 +48,15 @@
ttLoging() {
var that = this;
var obj = tt.getLaunchOptionsSync()
var tips2 = ''; // 投放测试
var remark1 = ''; // 预留
var remark2 = ''; // 预留
var remark3 = ''; // 预留
var thirdParam = "";
var bookId = '';
bookId = obj.query.book_id ?? ''
bookId = obj.query.vedio_id ?? ''
tips2 = obj.query.tips2 ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
remark3 = obj.query.remark3 ?? ''
thirdParam = JSON.stringify(obj.query);
// 打印渠道参数
if (this.tips1 == 'mints_vedio' || tips2 == 'mints_vedio') {
if (this.tips1 == 'mints_book' || tips2 == 'mints_book') {
this.slotParam = JSON.stringify(obj.query);
this.$refs.select.open('center');
}
......@@ -80,19 +75,16 @@
that.post({
url: '/user/ttLogin',
data: {
bookId: bookId,
channel: 'douyin',
vedioId: bookId,
code: res.code,
anonymousCode: res.anonymousCode,
remark1: remark1,
remark2: remark2,
remark3: remark3,
thirdParam: thirdParam
},
showLoading: false,
success: ({
data
}) => {
app.globalData.userId = data.idcode;
uni.setStorage({
key: 'token',
data: data.token
......@@ -116,7 +108,6 @@
<style lang="scss">
.body {
background-color: white;
// background: linear-gradient(to bottom, #F2F1FF, #FBFBFF);
display: flex;
flex-direction: column;
align-items: center;
......
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