Commit 0afa8f4f authored by jyx's avatar jyx

河狸故事汇

parent d93855f0
......@@ -10,6 +10,10 @@
{
"launchtype" : "local"
},
"mp-kuaishou" :
{
"launchtype" : "local"
},
"mp-toutiao" :
{
"launchtype" : "local"
......
......@@ -54,22 +54,6 @@
}
// checkUpdate(this);
// #ifdef H5
if (window.location.host === 'www.baosheji.cn') {
var icp = document.createElement('div');
icp.innerText = '京ICP备18032652号';
icp.style.color = 'white';
icp.style.textAlign = 'center';
icp.style.position = 'fixed';
icp.style.bottom = '0';
icp.style.left = '0';
icp.style.right = '0';
icp.style.zIndex = '100';
document.body.appendChild(icp);
}
// #endif
},
onShow: function(options) {
this.globalData.resetLogin = true
......
......@@ -240,22 +240,6 @@ function logout(callback, exprireOut = false) {
// }
}
const KEY_STORAGE_ACTIVITY = "ACTIVITY"
let LOCAL_ACTIVITY;
function saveActivity(activity) {
LOCAL_ACTIVITY = activity;
saveStorage(KEY_STORAGE_ACTIVITY, activity);
}
function readaActivity() {
if (!LOCAL_ACTIVITY) {
LOCAL_ACTIVITY = readStorage(KEY_STORAGE_ACTIVITY)
}
return LOCAL_ACTIVITY;
}
const KEY_STORAGE_TOKEN = "TOKEN"
let LOCAL_TOKEN;
......@@ -355,6 +339,4 @@ module.exports = {
removeUserInfoChangeWatch,
saveToken,
readToken,
saveActivity,
readaActivity
}
\ No newline at end of file
......@@ -20,7 +20,7 @@
props: {
title: {
type: String,
default: "河狸小故事"
default: "河狸故事汇"
}
},
data() {
......
......@@ -6,7 +6,7 @@
border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" />
</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>
......
This diff is collapsed.
......@@ -124,7 +124,7 @@ export default {
})
} else {
fail(_data)
message.notify(res.data.message);
message.notify(_data);
}
}
})
......
......@@ -62,8 +62,7 @@
watchUserInfoChange,
removeUserInfoChangeWatch,
refreshUserInfo,
postPhone,
readaActivity
postPhone
} from "../../../common/services/userServices.js"
import {
noticeCollectionListChange,
......@@ -248,17 +247,12 @@
// 文章数据刷新
refreshBookData(bookId) {
getBookDetailData(bookId, (success, data) => {
// setTimeout(() => {
// uni.stopPullDownRefresh();
if (success) {
if (readaActivity() != 1) {
data.isUnlock = 1
}
data.isUnlock = 1
this.bookData = new BookDetail(data);
// console.log('bookData=' + JSON.stringify(this.bookData));
}
// }, 100)
})
},
paySuccess() {
......
......@@ -21,7 +21,7 @@
{
"path": "pages/home",
"style": {
"navigationBarTitleText": "河狸小故事",
"navigationBarTitleText": "河狸故事汇",
"navigationStyle": "default",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
......
<template>
<view v-if="localActiviteFlag==1" class="body">
<view class="body">
<view style="height: 92%;">
<bookshelf v-show="currentPage==0" ref="shelf" v-on:showEditBarH="showEditBarH" />
<bookcity v-show="currentPage==1" ref="city" />
......@@ -51,21 +51,7 @@
</view>
</view>
<view v-else class="body">
<view
:style="'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'">
<image class="avatar" src="@/static/images/logo.png"></image>
<view>
<view style="font-size: 34rpx;color: black;margin-left: 30rpx;">用户ID:{{localIdcode}}</view>
<view style="font-size: 26rpx;color: #b5b5b5;margin-left: 30rpx;margin-top: 10rpx;">
书中自有颜如玉,书中自有黄金屋,书中自有千钟黍</view>
</view>
</view>
<view style="height: 92%;">
<warehouse ref="recommend2" />
</view>
</view>
</template>
<script>
......@@ -93,7 +79,6 @@
data() {
return {
currentPage: 1,
localActiviteFlag: 0,
localIdcode: 0,
showEditBar: false,
isFullChoice: false,
......@@ -101,7 +86,6 @@
},
onLoad(options) {
let index = options.index ?? ''
this.localActiviteFlag = options.activiteFlag;
this.localIdcode = options.idcode;
if (index != '' && index != undefined) {
this.currentPage = index
......@@ -131,13 +115,6 @@
mounted() {
// 渲染完成 初始化首页数据
this.loadComponentData();
let that = this
if (this.localActiviteFlag == 1) {
uni.$on('goWareHouse', function(data) {
that.tabChange(1)
})
}
},
methods: {
tabChange(index) {
......@@ -146,18 +123,14 @@
this.loadComponentData();
},
loadComponentData() {
if (this.localActiviteFlag == 1) {
if (this.currentPage == 0) {
this.$refs.shelf.show();
} else if (this.currentPage == 1) {
this.$refs.city.show();
} else if (this.currentPage == 2) {
this.$refs.recommend.show();
} else if (this.currentPage == 3) {
this.$refs.user.show();
}
} else {
this.$refs.recommend2.show();
if (this.currentPage == 0) {
this.$refs.shelf.show();
} else if (this.currentPage == 1) {
this.$refs.city.show();
} else if (this.currentPage == 2) {
this.$refs.recommend.show();
} else if (this.currentPage == 3) {
this.$refs.user.show();
}
},
showEditBarH(b) {
......
......@@ -38,8 +38,7 @@
<script>
import {
saveToken,
saveActivity
saveToken
} from '../common/services/userServices.js'
import {
......@@ -61,7 +60,7 @@
sourceType: '',
slotParam: '',
vipList: [],
appName: '河狸小故事',
appName: '河狸故事汇',
isVip: false,
localToken: ''
}
......@@ -130,21 +129,10 @@
app.globalData.userId = data.idcode;
that.localToken = data.token
saveToken(data.token)
saveActivity(data.activiteFlag)
// saveToken(
// 'A5CFAE67AF32E71D10CA6127546E82C20A8DE7C0EAAA5697BEEC2AC2E333F9945F433703067DF5142735505C42F58997'
// )
// that.handlePay()
if (data.activiteFlag == 101) {
that.handlePay()
} else {
setTimeout(() => {
redirectTo('home?activiteFlag=' + data
.activiteFlag + "&idcode=" + data.idcode);
}, 1000);
}
setTimeout(() => {
redirectTo('home?activiteFlag=' + "&idcode=" + data
.idcode);
}, 500);
}
});
},
......
vedio/static/images/logo.png

13.9 KB | W: | H:

vedio/static/images/logo.png

20.1 KB | W: | H:

vedio/static/images/logo.png
vedio/static/images/logo.png
vedio/static/images/logo.png
vedio/static/images/logo.png
  • 2-up
  • Swipe
  • Onion skin
export const PAKEAGE_NAME = 'com.mingce.wxhelibook'
export const PAKEAGE_NAME = 'com.mints.wxhelistory'
export const VERSION_CODE = '1.0.5'
// export const PAKEAGE_NAME = 'com.test.test'
......
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