Commit 9cf7f819 authored by jyx's avatar jyx

河狸故事汇改版

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