Commit 0afa8f4f authored by jyx's avatar jyx

河狸故事汇

parent d93855f0
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
{ {
"launchtype" : "local" "launchtype" : "local"
}, },
"mp-kuaishou" :
{
"launchtype" : "local"
},
"mp-toutiao" : "mp-toutiao" :
{ {
"launchtype" : "local" "launchtype" : "local"
......
...@@ -54,22 +54,6 @@ ...@@ -54,22 +54,6 @@
} }
// checkUpdate(this); // 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) { onShow: function(options) {
this.globalData.resetLogin = true this.globalData.resetLogin = true
......
...@@ -240,22 +240,6 @@ function logout(callback, exprireOut = false) { ...@@ -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" const KEY_STORAGE_TOKEN = "TOKEN"
let LOCAL_TOKEN; let LOCAL_TOKEN;
...@@ -355,6 +339,4 @@ module.exports = { ...@@ -355,6 +339,4 @@ module.exports = {
removeUserInfoChangeWatch, removeUserInfoChangeWatch,
saveToken, saveToken,
readToken, readToken,
saveActivity,
readaActivity
} }
\ No newline at end of file
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
props: { props: {
title: { title: {
type: String, type: String,
default: "河狸小故事" default: "河狸故事汇"
} }
}, },
data() { data() {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" /> border-radius: 40rpx;border: 2px solid darkgray;" src="@/static/index/ic_quit_white.png" />
</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>
......
This diff is collapsed.
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
}) })
} else { } else {
fail(_data) fail(_data)
message.notify(res.data.message); message.notify(_data);
} }
} }
}) })
......
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
watchUserInfoChange, watchUserInfoChange,
removeUserInfoChangeWatch, removeUserInfoChangeWatch,
refreshUserInfo, refreshUserInfo,
postPhone, postPhone
readaActivity
} from "../../../common/services/userServices.js" } from "../../../common/services/userServices.js"
import { import {
noticeCollectionListChange, noticeCollectionListChange,
...@@ -248,17 +247,12 @@ ...@@ -248,17 +247,12 @@
// 文章数据刷新 // 文章数据刷新
refreshBookData(bookId) { refreshBookData(bookId) {
getBookDetailData(bookId, (success, data) => { getBookDetailData(bookId, (success, data) => {
// setTimeout(() => {
// uni.stopPullDownRefresh(); // uni.stopPullDownRefresh();
if (success) { if (success) {
if (readaActivity() != 1) { data.isUnlock = 1
data.isUnlock = 1
}
this.bookData = new BookDetail(data); this.bookData = new BookDetail(data);
// console.log('bookData=' + JSON.stringify(this.bookData)); // console.log('bookData=' + JSON.stringify(this.bookData));
} }
// }, 100)
}) })
}, },
paySuccess() { paySuccess() {
......
...@@ -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"
......
<template> <template>
<view v-if="localActiviteFlag==1" class="body"> <view class="body">
<view style="height: 92%;"> <view style="height: 92%;">
<bookshelf v-show="currentPage==0" ref="shelf" v-on:showEditBarH="showEditBarH" /> <bookshelf v-show="currentPage==0" ref="shelf" v-on:showEditBarH="showEditBarH" />
<bookcity v-show="currentPage==1" ref="city" /> <bookcity v-show="currentPage==1" ref="city" />
...@@ -51,21 +51,7 @@ ...@@ -51,21 +51,7 @@
</view> </view>
</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> </template>
<script> <script>
...@@ -93,7 +79,6 @@ ...@@ -93,7 +79,6 @@
data() { data() {
return { return {
currentPage: 1, currentPage: 1,
localActiviteFlag: 0,
localIdcode: 0, localIdcode: 0,
showEditBar: false, showEditBar: false,
isFullChoice: false, isFullChoice: false,
...@@ -101,7 +86,6 @@ ...@@ -101,7 +86,6 @@
}, },
onLoad(options) { onLoad(options) {
let index = options.index ?? '' let index = options.index ?? ''
this.localActiviteFlag = options.activiteFlag;
this.localIdcode = options.idcode; this.localIdcode = options.idcode;
if (index != '' && index != undefined) { if (index != '' && index != undefined) {
this.currentPage = index this.currentPage = index
...@@ -131,13 +115,6 @@ ...@@ -131,13 +115,6 @@
mounted() { mounted() {
// 渲染完成 初始化首页数据 // 渲染完成 初始化首页数据
this.loadComponentData(); this.loadComponentData();
let that = this
if (this.localActiviteFlag == 1) {
uni.$on('goWareHouse', function(data) {
that.tabChange(1)
})
}
}, },
methods: { methods: {
tabChange(index) { tabChange(index) {
...@@ -146,18 +123,14 @@ ...@@ -146,18 +123,14 @@
this.loadComponentData(); this.loadComponentData();
}, },
loadComponentData() { loadComponentData() {
if (this.localActiviteFlag == 1) { if (this.currentPage == 0) {
if (this.currentPage == 0) { this.$refs.shelf.show();
this.$refs.shelf.show(); } else if (this.currentPage == 1) {
} else if (this.currentPage == 1) { this.$refs.city.show();
this.$refs.city.show(); } else if (this.currentPage == 2) {
} else if (this.currentPage == 2) { this.$refs.recommend.show();
this.$refs.recommend.show(); } else if (this.currentPage == 3) {
} else if (this.currentPage == 3) { this.$refs.user.show();
this.$refs.user.show();
}
} else {
this.$refs.recommend2.show();
} }
}, },
showEditBarH(b) { showEditBarH(b) {
......
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,7 @@
<script> <script>
import { import {
saveToken, saveToken
saveActivity
} from '../common/services/userServices.js' } from '../common/services/userServices.js'
import { import {
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
sourceType: '', sourceType: '',
slotParam: '', slotParam: '',
vipList: [], vipList: [],
appName: '河狸小故事', appName: '河狸故事汇',
isVip: false, isVip: false,
localToken: '' localToken: ''
} }
...@@ -130,21 +129,10 @@ ...@@ -130,21 +129,10 @@
app.globalData.userId = data.idcode; app.globalData.userId = data.idcode;
that.localToken = data.token that.localToken = data.token
saveToken(data.token) saveToken(data.token)
saveActivity(data.activiteFlag) setTimeout(() => {
// saveToken( redirectTo('home?activiteFlag=' + "&idcode=" + data
// 'A5CFAE67AF32E71D10CA6127546E82C20A8DE7C0EAAA5697BEEC2AC2E333F9945F433703067DF5142735505C42F58997' .idcode);
// ) }, 500);
// that.handlePay()
if (data.activiteFlag == 101) {
that.handlePay()
} else {
setTimeout(() => {
redirectTo('home?activiteFlag=' + data
.activiteFlag + "&idcode=" + data.idcode);
}, 1000);
}
} }
}); });
}, },
......
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 VERSION_CODE = '1.0.5'
// export const PAKEAGE_NAME = 'com.test.test' // 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