Commit 9cf7f819 authored by jyx's avatar jyx

河狸故事汇改版

parent 104f9c49
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
{ {
"launchtype" : "local" "launchtype" : "local"
}, },
"mp-kuaishou" :
{
"launchtype" : "local"
},
"mp-toutiao" : "mp-toutiao" :
{ {
"launchtype" : "local" "launchtype" : "local"
......
...@@ -17,7 +17,7 @@ var systemInfoMixin = { ...@@ -17,7 +17,7 @@ var systemInfoMixin = {
} }
}, },
mounted() { mounted() {
const systemInfo = tt.getSystemInfoSync(); const systemInfo = uni.getSystemInfoSync();
this.sdkVersion = systemInfo.hostSDKVersion; this.sdkVersion = systemInfo.hostSDKVersion;
this.windowWidth = this.dataCheck(systemInfo.windowWidth); this.windowWidth = this.dataCheck(systemInfo.windowWidth);
this.windowHeight = this.dataCheck(systemInfo.windowHeight); this.windowHeight = this.dataCheck(systemInfo.windowHeight);
...@@ -29,7 +29,7 @@ var systemInfoMixin = { ...@@ -29,7 +29,7 @@ var systemInfoMixin = {
this.bottomSafeHeight = BOTTOM_SAFE_HEIGHT; this.bottomSafeHeight = BOTTOM_SAFE_HEIGHT;
if (!NAVI_BAR_HEIGHT || !NAVI_HEIGHT) { if (!NAVI_BAR_HEIGHT || !NAVI_HEIGHT) {
const custom = tt.getMenuButtonBoundingClientRect(); const custom = uni.getMenuButtonBoundingClientRect();
NAVI_BAR_HEIGHT = custom.height + (custom.top - this.statusBarHeight) * 2; NAVI_BAR_HEIGHT = custom.height + (custom.top - this.statusBarHeight) * 2;
NAVI_HEIGHT = NAVI_BAR_HEIGHT + this.statusBarHeight; NAVI_HEIGHT = NAVI_BAR_HEIGHT + this.statusBarHeight;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
}, },
statusBarStyle: function() { statusBarStyle: function() {
return { return {
// height: tt.getSystemInfoSync().statusBarHeight + 'px' // height: uni.getSystemInfoSync().statusBarHeight + 'px'
height: `10px` height: `10px`
} }
}, },
......
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
</view> </view>
<view style="display: flex;flex-direction: column;align-items: center;"> <view style="display: flex;flex-direction: column;align-items: center;">
<text style="font-size: 28rpx;color: gray;margin-left: 30rpx;margin-right: 30rpx;margin-bottom: 20rpx;"> <text
style="font-size: 28rpx;color: gray;margin-left: 30rpx;margin-right: 30rpx;margin-bottom: 20rpx;">
1、会员属于虚拟商品,一经购买不可退换; 1、会员属于虚拟商品,一经购买不可退换;
2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作; 2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;
3、充值一般5分钟内到账,如未到账请在“我的”页面联系客服; 3、充值一般5分钟内到账,如未到账请在“我的”页面联系客服;
...@@ -84,14 +85,14 @@ ...@@ -84,14 +85,14 @@
default: 0 default: 0
} }
}, },
watch: { watch: {
vipPopRefresh: { vipPopRefresh: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
if (newVal) { if (newVal) {
this.handleShow(); this.handleShow();
} }
}, },
immediate: true immediate: true
}, },
show: { show: {
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
...@@ -363,8 +364,7 @@ ...@@ -363,8 +364,7 @@
background-image: url(https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_none.png); background-image: url(https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_none.png);
.row { .row {
margin: 8rpx 15rpx; margin: 8rpx 15rpx 0 15rpx;
marign-bottom: 0;
} }
.row:last-child { .row:last-child {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<image style="width: 30rpx;height: 30rpx;" src="@/static/index/ic_quit_white.png" mode="widthFix" /> <image style="width: 30rpx;height: 30rpx;" src="@/static/index/ic_quit_white.png" mode="widthFix" />
</view> </view>
<text class="mt-10" style="font-size: 46rpx;">如何继续使用?</text> <text class="mt-10" style="font-size: 46rpx;">如何继续使用?</text>
<text class="m-10">找到“逸想小说阁”小程序</text> <text class="m-10">找到“河狸故事汇”小程序</text>
<image class="mt-30" mode="widthFix" :src="maskImage1"></image> <image class="mt-30" mode="widthFix" :src="maskImage1"></image>
<image :src="maskImage2" mode="widthFix"></image> <image :src="maskImage2" mode="widthFix"></image>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
}, },
tapMakePhoneCall() { tapMakePhoneCall() {
let that = this let that = this
tt.makePhoneCall({ uni.makePhoneCall({
phoneNumber: "4000969950", phoneNumber: "4000969950",
success(res) { success(res) {
// 调用成功 makePhoneCall:ok // 调用成功 makePhoneCall:ok
......
...@@ -46,14 +46,14 @@ ...@@ -46,14 +46,14 @@
}, },
vipBean: { vipBean: {
type: Object, type: Object,
default: function() { default: function() {
return {} return {}
} }
} }
}, },
data() { data() {
return { return {
os: 'android' os: 'android'
}; };
}, },
watch: { watch: {
......
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
}, },
watch: {}, watch: {},
methods: { methods: {
initRefresh() { initRefresh() {
console.log('YYYYYYY')
if (isEmpty(this.dataList)) { if (isEmpty(this.dataList)) {
this.refreshList(); this.refreshList();
} }
......
...@@ -76,18 +76,34 @@ ...@@ -76,18 +76,34 @@
watch: { watch: {
categroyChange: { categroyChange: {
handler: function(n, o) { handler: function(n, o) {
if (this.$refs[`bookList${n.currentIndex}`]) { // if (this.$refs[`bookList${n.currentIndex}`]) {
this.$refs[`bookList${n.currentIndex}`][0].initRefresh(); // this.$refs[`bookList${n.currentIndex}`][0].initRefresh();
} // }
this.$nextTick(() => {
let ref = this.$refs.bookList;
if (ref) {
console.log('TTTTTTT')
ref[n.currentIndex].initRefresh();
}
})
}, },
deep: true deep: true
} }
}, },
methods: { methods: {
show() { show() {
if (this.$refs[`bookList${this.currentIndex}`][0].isEmpty()) { // if (this.$refs[`bookList${this.currentIndex}`][0].isEmpty()) {
this.$refs[`bookList${this.currentIndex}`][0].initRefresh(); // this.$refs[`bookList${this.currentIndex}`][0].initRefresh();
} // }
this.$nextTick(() => {
let ref = this.$refs.bookList;
if (ref) {
console.log('TTTTTTT')
ref[n.currentIndex].initRefresh();
}
})
}, },
hide() {}, hide() {},
readyCategory() { readyCategory() {
...@@ -98,7 +114,7 @@ ...@@ -98,7 +114,7 @@
getCategoryData() { getCategoryData() {
getCategorys((success, data) => { getCategorys((success, data) => {
if (success) { if (success) {
let result = data.records ? data.records.map(item => { var result = data.records ? data.records.map(item => {
return new Category(item) return new Category(item)
}).sort((a, b) => { }).sort((a, b) => {
return a.sort - b.sort return a.sort - b.sort
...@@ -107,7 +123,10 @@ ...@@ -107,7 +123,10 @@
name: "全部", name: "全部",
id: "" id: ""
})) }))
console.log('KKKKKKKKKKKKKKK', result)
this.categorys = result; this.categorys = result;
console.log('KKKKKKKKKKKKKKK', this.categorys)
} }
}) })
}, },
......
{ {
"name" : "reader", "name" : "reader",
"appid" : "__UNI__2C695AC", "appid" : "__UNI__F7F50FF",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 1000, "versionCode" : 1000,
...@@ -193,7 +193,8 @@ ...@@ -193,7 +193,8 @@
"mp-kuaishou" : { "mp-kuaishou" : {
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
} },
"appid" : "ks701435642108212394"
}, },
"mp-lark" : { "mp-lark" : {
"uniStatistics" : { "uniStatistics" : {
......
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detail-content { .detail-content {
paading: 20rpx 30rpx; padding: 20rpx 30rpx;
margin: 20rpx 30rpx; margin: 20rpx 30rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
"path": "pages/home", "path": "pages/home",
"style": { "style": {
"navigationBarTitleText": "逸想小说阁", "navigationBarTitleText": "河狸故事汇",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
......
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
return { return {
tips1: '', tips1: '',
slotParam: '', slotParam: '',
appName: '逸想小说阁' appName: '河狸故事汇'
} }
}, },
onLoad(options) { onLoad(options) {
this.tips1 = options.tips1 this.tips1 = options.tips1
}, },
onShow(options) { onShow(options) {
this.ttLoging() this.ksLoging()
}, },
methods: { methods: {
ttLoging() { ksLoging() {
var that = this; var that = this;
var obj = tt.getLaunchOptionsSync() var obj = ks.getLaunchOptionsSync()
var tips2 = ''; // 投放测试 var tips2 = ''; // 投放测试
var thirdParam = ""; var thirdParam = "";
...@@ -73,15 +73,13 @@ ...@@ -73,15 +73,13 @@
}); });
} }
tt.login({ ks.login({
force: true,
success(res) { success(res) {
that.post({ that.post({
url: '/user/ttLogin', url: '/user/ksLogin',
data: { data: {
vedioId: bookId, vedioId: bookId,
code: res.code, code: res.code,
anonymousCode: res.anonymousCode,
thirdParam: thirdParam thirdParam: thirdParam
}, },
showLoading: false, showLoading: false,
...@@ -91,8 +89,8 @@ ...@@ -91,8 +89,8 @@
app.globalData.userId = data.idcode; app.globalData.userId = data.idcode;
saveToken(data.token) saveToken(data.token)
setTimeout(() => { setTimeout(() => {
redirectTo('home'); redirectTo('home?&idcode=' + data.idcode);
}, 1000); }, 500);
} }
}); });
}, },
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
.search-bar { .search-bar {
border-radius: 60rpx; border-radius: 60rpx;
margin: 10rpx 15rpx; margin: 10rpx 15rpx;
padding: 15rpx 30rpx; padding: 10rpx 30rpx;
width: 80%; width: 80%;
background-color: white; background-color: white;
display: flex; display: flex;
......
export const PAKEAGE_NAME = 'com.mingce.kshelibook'
export const PAKEAGE_NAME = 'com.duben.dybookyx' export const VERSION_CODE = '1.0.0'
export const VERSION_CODE = '1.2.0'
// export const PAKEAGE_NAME = 'com.test.test'
export function trim(str) { export function trim(str) {
return str ? str.replace(/(^\s*)|(\s*$)/g, "") : '' return str ? str.replace(/(^\s*)|(\s*$)/g, "") : ''
......
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