Commit 9341882d authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 64ac8765
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
.search-wrap { .search-wrap {
height: 80rpx; height: 80rpx;
margin: 10rpx 12rpx; margin: 10rpx 0;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
......
...@@ -94,11 +94,11 @@ ...@@ -94,11 +94,11 @@
我的订单 我的订单
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view v-if="false" class="item arrow" @click="handleDotRecord"> <view v-if="false" class="item arrow" @click="handleCoupon">
优惠券 优惠券
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
<view class="item arrow" @click="handleUseDotRecord"> <view class="item arrow" @click="handleDotRecord">
看点记录 看点记录
<view class="item_bd ellipsis" style="margin-left: 58rpx;"></view> <view class="item_bd ellipsis" style="margin-left: 58rpx;"></view>
</view> </view>
......
<template> <template>
<view class="body"> <view class="body">
<view style="height: 92%;"> <view style="height: 94%;">
<indexPage v-show="currentPage==0" ref="index" /> <indexPage v-show="currentPage==0" ref="index" />
<recommendPage v-show="currentPage==1" ref="recommend" /> <recommendPage v-show="currentPage==1" ref="recommend" />
<followPage v-on:showEditBarH="showEditBarH" v-on:goRecommend="goRecommend" v-show="currentPage==2" <followPage v-on:showEditBarH="showEditBarH" v-on:goRecommend="goRecommend" v-show="currentPage==2"
......
...@@ -179,7 +179,8 @@ ...@@ -179,7 +179,8 @@
success: ({ success: ({
data data
}) => { }) => {
this.showAdForServer = data.douyinAdTipOpen; // this.showAdForServer = data.douyinAdTipOpen;
this.showAdForServer = true;
} }
}); });
......
<template> <template>
<view class="body"> <view class="body">
<z-paging style="height: 88%;"> <z-paging style="height: 92%;">
<view class="pageclass"> <view class="pageclass">
<image style="width: 750rpx; height: 476rpx" <image style="width: 750rpx; height: 476rpx"
src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_invite0.png" mode="scaleToFill"> src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_invite0.png" mode="scaleToFill">
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<button open-type="share" style=" <button open-type="share" style="
display: flex; display: flex;
color: #9d3c13; color: #9d3c13;
font-size: 26rpx; font-size: 26rpx;
background-color: #fdbd3d; background-color: #fdbd3d;
height: 80rpx; height: 80rpx;
justify-content: center; justify-content: center;
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
邀请好友 邀请好友
</button> </button>
</view> </view>
</view> </view>
</view> </view>
...@@ -65,25 +65,57 @@ ...@@ -65,25 +65,57 @@
</template> </template>
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
const app = getApp(); const app = getApp();
import { import {
formateTime formateTime
} from "@/utils/utils.js" } from "@/utils/utils.js"
import {
navigateTo,
message,
loading
} from '@/utils/fun.js';
export default { export default {
name: 'invite', name: 'invite',
mixins: [common], mixins: [common],
data() { data() {
return { return {
inviteData: {}, inviteData: {},
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/ic_movie.png',
path: '/pages/loading?shareId=' path: '/pages/loading?shareId='
} }
}; };
}, },
methods: { methods: {
async onShareAppMessage(option) {
const title = '更多好剧,等你来看';
return {
title, // 这是要转发的小程序标题
desc: "",
path: this.share.path + getApp().globalData.userId, // ?后面的参数会在转发页面打开时传入onLoad方法
imageUrl: this.share.imageUrl, // 支持本地或远程图片,默认是小程序 icon
templateId: "这是开发者后台设置的分享素材模板id",
success() {
message.notify('分享成功22222123');
console.log(
"转发发布器已调起,并不意味着用户转发成功,微头条不提供这个时机的回调"
);
},
fail() {
message.notify('分享失败1111321');
console.log("转发发布器调起失败");
},
};
},
getTitle() {
return new Promise((resolve) => {
setTimeout(() => {
resolve("This is a mock title");
}, 2000);
});
},
loadData() { loadData() {
this.post({ this.post({
url: '/vTask/share/pageMsg', url: '/vTask/share/pageMsg',
...@@ -93,25 +125,25 @@ const app = getApp(); ...@@ -93,25 +125,25 @@ const app = getApp();
}) => { }) => {
this.inviteData = data; this.inviteData = data;
} }
}); });
}, },
onShareAppMessage(res) { //发送给朋友 // onShareAppMessage(res) { //发送给朋友
return { // return {
title: this.share.title, // title: this.share.title,
imageUrl: this.share.imageUrl, // imageUrl: this.share.imageUrl,
path: this.share.path+getApp().globalData.userId, // path: this.share.path + getApp().globalData.userId,
} // }
}, // },
handleRule(){ handleRule() {
uni.showModal({ uni.showModal({
title: '邀请好友规则', title: '邀请好友规则',
content: '1、本周邀请新用户活动!邀请好友越多,获得奖励越高,邀请达到页面展示的人数时,系统发放对应档位的奖励看点,各档位可累积获得。邀请第8人及以上,每多邀请1位新用户可得120看点,上不封顶。\n\n2、本活动为限时活动,用户需要在活动页面展示的时间内邀请成功,可获得本活动页面展示的奖励看点。注意:通过签到分享、早中晚任务分享的奖励不计入此活动奖励。\n\n3、被邀请的好友必须是没有使用过河狸刷剧的新用户。好友点击你分享的链接,进入本软件内播放剧集,算邀请成功。\n\n4、本页面的邀请记录明细中只展示通过当前活动页面邀请到的用户。在之前活动期内邀请成功的用户不计入此活动,获得的奖励请到【我的-看点记录】里查看。\n\n5、郑重声明,为了保障广大用户的利益,对于非正常邀请用户,平台将取消其参加活动资格,并扣除相应奖励。', content: '1、本周邀请新用户活动!邀请好友越多,获得奖励越高,邀请达到页面展示的人数时,系统发放对应档位的奖励看点,各档位可累积获得。邀请第8人及以上,每多邀请1位新用户可得120看点,上不封顶。\n\n2、本活动为限时活动,用户需要在活动页面展示的时间内邀请成功,可获得本活动页面展示的奖励看点。注意:通过签到分享、早中晚任务分享的奖励不计入此活动奖励。\n\n3、被邀请的好友必须是没有使用过河狸刷剧的新用户。好友点击你分享的链接,进入本软件内播放剧集,算邀请成功。\n\n4、本页面的邀请记录明细中只展示通过当前活动页面邀请到的用户。在之前活动期内邀请成功的用户不计入此活动,获得的奖励请到【我的-看点记录】里查看。\n\n5、郑重声明,为了保障广大用户的利益,对于非正常邀请用户,平台将取消其参加活动资格,并扣除相应奖励。',
showCancel: false, showCancel: false,
confirmColor: '#33dd44', confirmColor: '#33dd44',
confirmText: '确定' confirmText: '确定'
}) })
} }
} }
}; };
......
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