Commit afe8cef8 authored by mengcuiguang's avatar mengcuiguang

代码优化

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