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>
......
{ {
"name" : "reader", "name": "reader",
"appid" : "__UNI__C390C5A", "appid": "__UNI__C390C5A",
"description" : "", "description": "",
"versionName" : "1.0.0", "versionName": "1.0.0",
"versionCode" : 1000, "versionCode": 1000,
"transformPx" : false, "transformPx": false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus": {
"compatible" : { "compatible": {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 "ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
}, },
"usingComponents" : true, "usingComponents": true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion" : 3, "compilerVersion": 3,
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : false, "waiting": false,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules" : { "modules": {
"Payment" : {} "Payment": {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute": {
/* android打包配置 */ /* android打包配置 */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>", "<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>" "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>"
], ],
"permissionExternalStorage" : { "permissionExternalStorage": {
"request" : "none", "request": "none",
"prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" "prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
}, },
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
"autoSdkPermissions" : true, "autoSdkPermissions": true,
"schemes" : "" "schemes": ""
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios": {
"idfa" : false, "idfa": false,
"privacyDescription" : { "privacyDescription": {
"NSPhotoLibraryUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。", "NSPhotoLibraryUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。", "NSCameraUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription" : "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。" "NSPhotoLibraryAddUsageDescription": "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
}, },
"urltypes" : "twofiveone" "urltypes": "twofiveone"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs": {
"share" : { "share": {
"weixin" : { "weixin": {
"appid" : "", "appid": "",
"UniversalLinks" : "" "UniversalLinks": ""
} }
}, },
"oauth" : {}, "oauth": {},
"ad" : {}, "ad": {},
"payment" : { "payment": {
"weixin" : { "weixin": {
"__platform__" : [ "ios", "android" ], "__platform__": ["ios", "android"],
"appid" : "wxaa277a94b5a33c63", "appid": "wxaa277a94b5a33c63",
"UniversalLinks" : "" "UniversalLinks": ""
} }
}, },
"speech" : {} "speech": {}
}, },
"icons" : { "icons": {
"android" : { "android": {
"hdpi" : "", "hdpi": "",
"xhdpi" : "", "xhdpi": "",
"xxhdpi" : "", "xxhdpi": "",
"xxxhdpi" : "" "xxxhdpi": ""
}, },
"ios" : { "ios": {
"appstore" : "", "appstore": "",
"ipad" : { "ipad": {
"app" : "", "app": "",
"app@2x" : "", "app@2x": "",
"notification" : "", "notification": "",
"notification@2x" : "", "notification@2x": "",
"proapp@2x" : "", "proapp@2x": "",
"settings" : "", "settings": "",
"settings@2x" : "", "settings@2x": "",
"spotlight" : "", "spotlight": "",
"spotlight@2x" : "" "spotlight@2x": ""
}, },
"iphone" : { "iphone": {
"app@2x" : "", "app@2x": "",
"app@3x" : "", "app@3x": "",
"notification@2x" : "", "notification@2x": "",
"notification@3x" : "", "notification@3x": "",
"settings@2x" : "", "settings@2x": "",
"settings@3x" : "", "settings@3x": "",
"spotlight@2x" : "", "spotlight@2x": "",
"spotlight@3x" : "" "spotlight@3x": ""
} }
} }
}, },
"splashscreen" : { "splashscreen": {
"androidStyle" : "default", "androidStyle": "default",
"useOriginalMsgbox" : true, "useOriginalMsgbox": true,
"alwaysShowBeforeRender" : false, "alwaysShowBeforeRender": false,
"autoclose" : false, "autoclose": false,
"waiting" : false, "waiting": false,
"delay" : 0, "delay": 0,
"iosStyle" : "common", "iosStyle": "common",
"android" : { "android": {
"hdpi" : "", "hdpi": "",
"xhdpi" : "", "xhdpi": "",
"xxhdpi" : "" "xxhdpi": ""
}, },
"ios" : { "ios": {
"storyboard" : "unpackage/res/splash/LaunchScreen.storyboard_.zip" "storyboard": "unpackage/res/splash/LaunchScreen.storyboard_.zip"
} }
} }
}, },
"uniStatistics" : { "uniStatistics": {
"enable" : true "enable": true
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp" : {}, "quickapp": {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin": {
"appid" : "wx17fe9416bd3f1244", "appid": "wxa2aadd56bb72a6d9",
"setting" : { "setting": {
"urlCheck" : false, "urlCheck": false,
"es6" : false, "es6": false,
"postcss" : true, "postcss": true,
"minified" : true "minified": true
}, },
"usingComponents" : true, "usingComponents": true,
"uniStatistics" : { "uniStatistics": {
"enable" : true "enable": true
}, },
"optimization" : { "optimization": {
"subPackages" : true "subPackages": true
}, },
"navigateToMiniProgramAppldList" : [ "wxbd687630cd02ce1d" ], "lazyCodeLoading": "requiredComponents" // 依赖按需注入
"lazyCodeLoading" : "requiredComponents" // 依赖按需注入 },
}, "mp-alipay": {
"mp-alipay" : { "usingComponents": true,
"usingComponents" : true, "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "mp-baidu": {
"mp-baidu" : { "usingComponents": true,
"usingComponents" : true, "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "mp-toutiao": {
"mp-toutiao" : { "usingComponents": true,
"usingComponents" : true, "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false },
}, "appid": "ttd50ba3b64a3c2deb01"
"appid" : "ttd50ba3b64a3c2deb01" },
}, "uniStatistics": {
"uniStatistics" : { "enable": false,
"enable" : false, "version": "2"
"version" : "2" },
}, "vueVersion": "2",
"vueVersion" : "2", "h5": {
"h5" : { "optimization": {
"optimization" : { "treeShaking": {
"treeShaking" : { "enable": true
"enable" : true }
} },
}, "title": "小说",
"title" : "小说", "router": {
"router" : { "base": "./"
"base" : "./" },
}, "uniStatistics": {
"uniStatistics" : { "enable": true
"enable" : true }
} },
}, "mp-jd": {
"mp-jd" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "mp-kuaishou": {
"mp-kuaishou" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "mp-lark": {
"mp-lark" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "mp-qq": {
"mp-qq" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "quickapp-webview-huawei": {
"quickapp-webview-huawei" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} },
}, "quickapp-webview-union": {
"quickapp-webview-union" : { "uniStatistics": {
"uniStatistics" : { "enable": false
"enable" : false }
} }
} }
} // "devServer" : {
// "devServer" : { // "proxy" : {
// "proxy" : { // "/https://nft-web.tech-mints.com" : {
// "/https://nft-web.tech-mints.com" : { // "target" : "https://nft-web.tech-mints.com",
// "target" : "https://nft-web.tech-mints.com", // "changeOrgin" : true, //是否跨域
// "changeOrgin" : true, //是否跨域 // "seure" : true, //是否支持https协议的代理
// "seure" : true, //是否支持https协议的代理 // "pathRewrite" : {
// "pathRewrite" : { // "^/https://nft-web.tech-mints.com" : "/",
// "^/https://nft-web.tech-mints.com" : "/", // "^/zs-ui/hap/https://nft-web.tech-mints.com" : "/"
// "^/zs-ui/hap/https://nft-web.tech-mints.com" : "/" // }
// } // }
// } // },
// }, // "https" : true
// "https" : true // }
// } \ No newline at end of file
...@@ -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