xy před 1 rokem
rodič
revize
3e61b799a9
91 změnil soubory, kde provedl 131 přidání a 2426 odebrání
  1. 1 0
      .gitignore
  2. 4 0
      xs-app/.hbuilderx/launch.json
  3. 1 1
      xs-app/config/config.ts
  4. 8 0
      xs-app/framework/tools.ts
  5. 27 9
      xs-app/pages.json
  6. 3 2
      xs-app/pages/bookstore/bookstore.vue
  7. 34 42
      xs-app/pages/search/search-nav.vue
  8. 5 13
      xs-app/pages/search/search.vue
  9. 0 8
      xs-app/unpackage/dist/cache/.vite/deps/_metadata.json
  10. 0 3
      xs-app/unpackage/dist/cache/.vite/deps/package.json
  11. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/app.js
  12. 7 7
      xs-app/unpackage/dist/dev/mp-toutiao/app.json
  13. 0 3
      xs-app/unpackage/dist/dev/mp-toutiao/app.ttss
  14. 0 46
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.js
  15. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.json
  16. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttml
  17. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttss
  18. 0 58
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.js
  19. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.json
  20. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttml
  21. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttss
  22. 0 28
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.js
  23. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.json
  24. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttml
  25. 0 34
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttss
  26. 0 84
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.js
  27. 0 6
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.json
  28. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.ttml
  29. 0 61
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.ttss
  30. 0 51
      xs-app/unpackage/dist/dev/mp-toutiao/config/config.js
  31. 0 13
      xs-app/unpackage/dist/dev/mp-toutiao/data/data.js
  32. 0 66
      xs-app/unpackage/dist/dev/mp-toutiao/framework/http.js
  33. 0 33
      xs-app/unpackage/dist/dev/mp-toutiao/framework/log.js
  34. 0 74
      xs-app/unpackage/dist/dev/mp-toutiao/framework/tools.js
  35. 0 125
      xs-app/unpackage/dist/dev/mp-toutiao/framework/util.js
  36. 0 49
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.js
  37. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.json
  38. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttml
  39. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttss
  40. 6 10
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.js
  41. 2 2
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.json
  42. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.ttml
  43. 0 8
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.js
  44. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.json
  45. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttml
  46. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttss
  47. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.ttss
  48. 8 28
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.js
  49. 1 3
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.json
  50. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.ttml
  51. 12 10
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.ttss
  52. 7 6
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.js
  53. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.json
  54. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.ttml
  55. 0 99
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.js
  56. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.json
  57. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttml
  58. 0 23
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttss
  59. 0 16
      xs-app/unpackage/dist/dev/mp-toutiao/project.config.json
  60. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/.DS_Store
  61. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/.DS_Store
  62. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/read/background1.jpg
  63. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_0.png
  64. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_1.png
  65. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_0.png
  66. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_1.png
  67. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_0.png
  68. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_1.png
  69. binární
      xs-app/unpackage/dist/dev/mp-toutiao/static/logo.png
  70. 0 21
      xs-app/unpackage/dist/dev/mp-toutiao/stores/readSetting.js
  71. 0 19
      xs-app/unpackage/dist/dev/mp-toutiao/stores/userDataManager.js
  72. 0 20
      xs-app/unpackage/dist/dev/mp-toutiao/stores/userStatusManager.js
  73. 0 170
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js
  74. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.json
  75. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttml
  76. 0 99
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttss
  77. 0 60
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.js
  78. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.json
  79. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttml
  80. 0 75
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttss
  81. 0 28
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/i18n/index.js
  82. 0 26
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/popup.js
  83. 0 393
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.js
  84. 0 6
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.json
  85. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttml
  86. 0 47
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttss
  87. 0 115
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/createAnimation.js
  88. 0 265
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.js
  89. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.json
  90. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.ttml
  91. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.ttss

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/xs-app/unpackage/

+ 4 - 0
xs-app/.hbuilderx/launch.json

@@ -10,6 +10,10 @@
      	{
      		"launchtype" : "local"
      	},
+     	"mp-weixin" : 
+     	{
+     		"launchtype" : "local"
+     	},
      	"type" : "uniCloud"
      }
     ]

+ 1 - 1
xs-app/config/config.ts

@@ -1,4 +1,4 @@
-export class config {
+export class config {	
 	/**
 	 * 平台
 	 */

+ 8 - 0
xs-app/framework/tools.ts

@@ -20,6 +20,14 @@ export class tools {
 		return tools.platform
 	}
 	
+	public static setNavigationBar() {
+		if(tools.getCurPlatform()==config.Platform.TOUTIAO) {
+			uni.setNavigationBarTitle({
+				title:'卿卿小屋'
+			})
+		}
+	}
+		
 	public static getChapterList(chapter_path:string,cb:Function){
 		http.StaticRequest(chapter_path,(err,data)=>{
 			if(err){

+ 27 - 9
xs-app/pages.json

@@ -1,15 +1,33 @@
 {
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+		{
+			"path": "pages/bookshelf/bookshelf",
+			"style": {
+				"navigationBarTitleText": "书架",
+				"app-plus": {
+					"bounce": "none"
+				}
+			}
+		},
 		{
 			"path": "pages/bookstore/bookstore",
 			"style": {
+<<<<<<< HEAD
+				"navigationBarTitleText": "书城",
+=======
 				"navigationStyle": "default",
+>>>>>>> a1cef6ca8a14f8b3e2eb2b5c23a3ecc468160b5a
 				"app-plus": {
 					"bounce": "none"
 				}
 			}
 		},
 		{
+<<<<<<< HEAD
+			"path": "pages/mine/mine",
+			"style": {
+				"navigationBarTitleText": "我的",
+=======
 			"path": "pages/bookshelf/bookshelf",
 			"style": {
 				"navigationStyle": "default",
@@ -22,6 +40,7 @@
 			"path": "pages/mine/mine",
 			"style": {
 				"navigationStyle": "default",
+>>>>>>> a1cef6ca8a14f8b3e2eb2b5c23a3ecc468160b5a
 				"app-plus": {
 					"bounce": "none"
 				}
@@ -44,27 +63,26 @@
 		},
 		{
 			"path" : "pages/search/search",
-			"style" : 
-			{
-				"navigationStyle": "custom",
+			"style" : {
+				"navigationBarTitleText": "搜索",
 				"enablePullDownRefresh" : false
 			}
 		}
 	],
 	"tabBar": {
 		"list": [
-			{
-				"pagePath": "pages/bookstore/bookstore",
-				"text": "书城",
-				"iconPath": "/static/imgs/tabBar/bookstore_0.png",
-				"selectedIconPath": "/static/imgs/tabBar/bookstore_1.png"
-			},
 			{
 				"pagePath": "pages/bookshelf/bookshelf",
 				"text": "书架",
 				"iconPath": "/static/imgs/tabBar/bookshelf_0.png",
 				"selectedIconPath": "/static/imgs/tabBar/bookshelf_1.png"
 			},
+			{
+				"pagePath": "pages/bookstore/bookstore",
+				"text": "书城",
+				"iconPath": "/static/imgs/tabBar/bookstore_0.png",
+				"selectedIconPath": "/static/imgs/tabBar/bookstore_1.png"
+			},
 			{
 				"pagePath": "pages/mine/mine",
 				"text": "我的",

+ 3 - 2
xs-app/pages/bookstore/bookstore.vue

@@ -1,6 +1,5 @@
 <template>
 	<view class="content">
-		<custom-nav title="书城" statusBar="true" fixed="true"></custom-nav>
 		<view class="item_demo" @click="onClickTest"> 测试更换数据 </view>
 		<view class="item_demo" @click="onClickNav">跳转</view>
 		<view class="container">
@@ -14,14 +13,16 @@
 	import { onLoad } from '@dcloudio/uni-app';
     import { ref } from 'vue';
     import { util } from '../../framework/util';
+	import { tools } from '../../framework/tools';
 	import templateBook3 from '../bookstore/template/template-book-3.vue'
 	import templateBookList from '../bookstore/template/template-book-list.vue'
-	import customNav from '@/components/custom-navbar/custom-navbar.vue'
+	
 	let book_3_data_list = ref<Array<string>>([])
 	var bool:boolean = true
 		
 	onLoad((options)=>{
 		console.log('bookstore-options=',options)
+		tools.setNavigationBar()
 		requestData(bool)
 	})
 		

+ 34 - 42
xs-app/pages/search/search-nav.vue

@@ -1,9 +1,7 @@
 <template>
 	<view class="nav_content" :style="{height: height + 'rpx'}">
 		<view class="container">
-			<view class="container__status" :style="{height: statusBar_Height + 'rpx'}"> </view>
 			<view class="container__content">
-				<uni-icons type="back" size="20" @click="clickBack"/>
 				<input class="container__content__input"
 				v-model="search_content"
 				placeholder="输入关键字"
@@ -20,26 +18,14 @@
 </template>
 
 <script setup lang="ts">
-	import { onLoad } from '@dcloudio/uni-app';
     import { ref } from 'vue';
 	
-	let statusBar_Height = ref(0)
-	let height = ref(0)
+	defineProps({
+		height:Number,
+	})
 	let search_content = ref('')
 	let emits = defineEmits(['clickSearch'])
 	
-	onLoad(()=>{
-		statusBar_Height.value = uni.getSystemInfoSync().statusBarHeight
-		// #ifdef H5
-		    statusBar_Height.value = 20*2
-		// #endif
-		height.value = statusBar_Height.value + 50*2
-	})
-	
-	function clickBack() {
-		uni.navigateBack()
-	}
-	
 	function onInput() {
 		// console.log('search_content',search_content.value)
 	}
@@ -51,44 +37,50 @@
 </script>
 
 <style lang="scss">
-	.container{
+	.nav_content{
 		position: fixed;
 		display: flex;
 		flex-direction: column;
 		width: 100%;
 		left: 0;
-		top: 0;
+		/* #ifdef H5 */
+		top: 44px;
+		/* #endif */
 		background-color: #ffffff;
 		border-bottom-width: 1rpx;
 		border-bottom-style: solid;
 		border-bottom-color: #eee;
-		// background-color: red;
+		// background-color: purple;
 		
-		&__status {}
-		&__content {
+		.container{
 			display: flex;
-			flex-direction: row;
-			align-items: center;
-			padding: 0 20rpx;
-			width: 100%;
-			height: 100rpx;
-			// background-color: green;
-			&__back {}
-			&__input {
-				margin-left: 2%;
-				padding: 0 2%;
-				width: 70%;
-				height: 70%;
-				border-radius: 5rpx;
-				border: #eee solid 2rpx;
-			}
-			&__btn {
+			flex-direction: column;
+			height: 100%;
+			// background-color: yellow;
+			
+			&__content {
 				display: flex;
-				width: 15%;
-				height: 100%;
-				justify-content: center;
+				flex-direction: row;
 				align-items: center;
-				// background-color: blue;
+				margin-left: 3%;
+				height: 100%;
+				// background-color: green;
+				&__input {
+					padding: 0 2%;
+					width: 80%;
+					height: 70%;
+					border-radius: 5rpx;
+					border: #eee solid 2rpx;
+					// background-color: skyblue;
+				}
+				&__btn {
+					display: flex;
+					width: 15%;
+					height: 100%;
+					justify-content: center;
+					align-items: center;
+					// background-color: blue;
+				}
 			}
 		}
 	}

+ 5 - 13
xs-app/pages/search/search.vue

@@ -1,28 +1,20 @@
 <template>
 	<view class="content">
-		<search-nav @clickSearch='searchNavClickSearch' />
-		<view class="">
-			hehehehehe
-		</view>
+		<search-nav :height='search_nav_height' @clickSearch='searchNavClickSearch' />
+		<view class="" :style="{marginTop:search_nav_height + 'rpx'}">1的发顺丰撒是的发生发顺丰水电费撒的发生</view>
 	</view>
 </template>
 
 <script setup lang="ts">
 	import { onLoad } from '@dcloudio/uni-app';
     import { ref } from 'vue';
-	import searchNav from './search-nav.vue'
+	import searchNav from '@/pages/search/search-nav.vue'
 	
-	let statusBarHeight = ref(0)
-	let top_height = ref(0)
+	let search_nav_height = ref(100)
 	let search_content = ref('')
 		
 	onLoad((options)=>{
-		console.log('search-options=',options)
-		statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight
-		// #ifdef H5
-		    statusBarHeight.value = 20
-		// #endif
-		top_height.value = statusBarHeight.value + 50
+		console.log('search-options',options)
 	})
 	
 	function searchNavClickSearch(r:string) {

+ 0 - 8
xs-app/unpackage/dist/cache/.vite/deps/_metadata.json

@@ -1,8 +0,0 @@
-{
-  "hash": "7aa6f61e",
-  "configHash": "e71f9e36",
-  "lockfileHash": "9e930bf7",
-  "browserHash": "236dade9",
-  "optimized": {},
-  "chunks": {}
-}

+ 0 - 3
xs-app/unpackage/dist/cache/.vite/deps/package.json

@@ -1,3 +0,0 @@
-{
-  "type": "module"
-}

+ 1 - 1
xs-app/unpackage/dist/dev/mp-toutiao/app.js

@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
 const common_vendor = require("./common/vendor.js");
 const framework_tools = require("./framework/tools.js");
 if (!Math) {
-  "./pages/bookstore/bookstore.js";
   "./pages/bookshelf/bookshelf.js";
+  "./pages/bookstore/bookstore.js";
   "./pages/mine/mine.js";
   "./pages/readbook/read.js";
   "./pages/test/index.js";

+ 7 - 7
xs-app/unpackage/dist/dev/mp-toutiao/app.json

@@ -1,7 +1,7 @@
 {
   "pages": [
-    "pages/bookstore/bookstore",
     "pages/bookshelf/bookshelf",
+    "pages/bookstore/bookstore",
     "pages/mine/mine",
     "pages/readbook/read",
     "pages/test/index",
@@ -15,18 +15,18 @@
   },
   "tabBar": {
     "list": [
-      {
-        "pagePath": "pages/bookstore/bookstore",
-        "text": "书城",
-        "iconPath": "/static/imgs/tabBar/bookstore_0.png",
-        "selectedIconPath": "/static/imgs/tabBar/bookstore_1.png"
-      },
       {
         "pagePath": "pages/bookshelf/bookshelf",
         "text": "书架",
         "iconPath": "/static/imgs/tabBar/bookshelf_0.png",
         "selectedIconPath": "/static/imgs/tabBar/bookshelf_1.png"
       },
+      {
+        "pagePath": "pages/bookstore/bookstore",
+        "text": "书城",
+        "iconPath": "/static/imgs/tabBar/bookstore_0.png",
+        "selectedIconPath": "/static/imgs/tabBar/bookstore_1.png"
+      },
       {
         "pagePath": "pages/mine/mine",
         "text": "我的",

+ 0 - 3
xs-app/unpackage/dist/dev/mp-toutiao/app.ttss

@@ -1,3 +0,0 @@
-
-	/*每个页面公共css */
-page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[bind-data-c-h="true"]{display: none !important;}

+ 0 - 46
xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.js

@@ -1,46 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-if (!Array) {
-  const _easycom_uni_popup_message2 = common_vendor.resolveComponent("uni-popup-message");
-  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
-  (_easycom_uni_popup_message2 + _easycom_uni_popup2)();
-}
-const _easycom_uni_popup_message = () => "../../uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.js";
-const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
-if (!Math) {
-  (_easycom_uni_popup_message + _easycom_uni_popup)();
-}
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "Message",
-  props: ["messageText"],
-  emits: ["onFinish"],
-  setup(__props, { emit: __emit }) {
-    let msgType = common_vendor.ref("warn");
-    let emits = __emit;
-    let duration = common_vendor.ref(2e3);
-    const message = common_vendor.ref(null);
-    common_vendor.onMounted(() => {
-      message.value.open();
-    });
-    setTimeout(() => {
-      emits("onFinish");
-    }, duration.value);
-    return (_ctx, _cache) => {
-      return {
-        a: common_vendor.p({
-          type: common_vendor.unref(msgType),
-          message: __props.messageText,
-          duration: common_vendor.unref(duration)
-        }),
-        b: common_vendor.sr(message, "20497f42-0", {
-          "k": "message"
-        }),
-        c: common_vendor.p({
-          type: "message"
-        })
-      };
-    };
-  }
-});
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/public/Message.vue"]]);
-tt.createComponent(Component);

+ 0 - 7
xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "uni-popup-message": "../../uni_modules/uni-popup/components/uni-popup-message/uni-popup-message",
-    "uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
-  }
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttml

@@ -1 +0,0 @@
-<view><uni-popup tt:if="{{c}}" class="r" u-s="{{['d']}}" u-r="message" u-i="20497f42-0" bind:__l="__l" u-p="{{c}}"><uni-popup-message tt:if="{{a}}" u-i="20497f42-1,20497f42-0" bind:__l="__l" u-p="{{a}}"></uni-popup-message></uni-popup></view>

+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttss


+ 0 - 58
xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.js

@@ -1,58 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const framework_log = require("../../framework/log.js");
-if (!Array) {
-  const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
-  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
-  (_easycom_uni_popup_dialog2 + _easycom_uni_popup2)();
-}
-const _easycom_uni_popup_dialog = () => "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js";
-const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
-if (!Math) {
-  (_easycom_uni_popup_dialog + _easycom_uni_popup)();
-}
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "alertDialog",
-  props: ["titleName", "contentText"],
-  emits: ["dialogConfirm", "dialogClose"],
-  setup(__props, { emit: __emit }) {
-    const alertDialog = common_vendor.ref(null);
-    const emit = __emit;
-    let msgType = common_vendor.ref("warn");
-    function dialogClose() {
-      emit("dialogClose");
-      framework_log.log.Debug("点击关闭");
-    }
-    function dialogConfirm() {
-      framework_log.log.Debug("点击确认");
-      emit("dialogConfirm");
-    }
-    common_vendor.onMounted(() => {
-      framework_log.log.Debug("alertDialog");
-      alertDialog.value.open();
-    });
-    return (_ctx, _cache) => {
-      return {
-        a: common_vendor.o(dialogConfirm),
-        b: common_vendor.o(dialogClose),
-        c: common_vendor.p({
-          type: {
-            msgType: common_vendor.unref(msgType)
-          },
-          cancelText: "关闭",
-          confirmText: "同意",
-          title: __props.titleName,
-          content: __props.contentText
-        }),
-        d: common_vendor.sr(alertDialog, "f97e55c2-0", {
-          "k": "alertDialog"
-        }),
-        e: common_vendor.p({
-          type: "dialog"
-        })
-      };
-    };
-  }
-});
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/public/alertDialog.vue"]]);
-tt.createComponent(Component);

+ 0 - 7
xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.json

@@ -1,7 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "uni-popup-dialog": "../../uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
-    "uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
-  }
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttml

@@ -1 +0,0 @@
-<view><uni-popup tt:if="{{e}}" class="r" u-s="{{['d']}}" u-r="alertDialog" u-i="f97e55c2-0" bind:__l="__l" u-p="{{e}}"><uni-popup-dialog tt:if="{{c}}" bindconfirm="{{a}}" bindclose="{{b}}" u-i="f97e55c2-1,f97e55c2-0" bind:__l="__l" u-p="{{c}}"></uni-popup-dialog></uni-popup></view>

+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttss


+ 0 - 28
xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.js

@@ -1,28 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const stores_readSetting = require("../../stores/readSetting.js");
-const config_config = require("../../config/config.js");
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "readPage",
-  props: ["text_content", "book_title"],
-  setup(__props, { expose: __expose }) {
-    let read_setting_data = stores_readSetting.ReadSetting().getReadSetting();
-    function showTopLoading() {
-    }
-    function showBottomLoading() {
-    }
-    __expose({ showBottomLoading, showTopLoading });
-    return (_ctx, _cache) => {
-      return {
-        a: __props.book_title,
-        b: `${common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex] * 1.5}px`,
-        c: `${common_vendor.unref(config_config.config).read_config.lineHeight * common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex]}px`,
-        d: __props.text_content,
-        e: `${common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex]}px`,
-        f: `${common_vendor.unref(config_config.config).read_config.lineHeight * common_vendor.unref(config_config.config).read_config.fontSizeList[common_vendor.unref(read_setting_data).fontSizeIndex]}px`
-      };
-    };
-  }
-});
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2dec9c91"], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/read/readPage.vue"]]);
-tt.createComponent(Component);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttml

@@ -1 +0,0 @@
-<view class="data-v-2dec9c91" style="{{'font-size:' + b + ';' + ('line-height:' + c)}}"><rich-text class="data-v-2dec9c91" nodes="{{a}}"/></view><view class="inner-box data-v-2dec9c91"><view class="book-inner data-v-2dec9c91" style="{{'font-size:' + e + ';' + ('line-height:' + f)}}"><rich-text class="data-v-2dec9c91" nodes="{{d}}"/></view><image class="data-v-2dec9c91" src="/static/logo.png"></image></view>

+ 0 - 34
xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttss

@@ -1,34 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-/* 颜色变量 */
-/* 行为相关颜色 */
-/* 文字基本颜色 */
-/* 背景颜色 */
-/* 边框颜色 */
-/* 尺寸变量 */
-/* 文字尺寸 */
-/* 图片尺寸 */
-/* Border Radius */
-/* 水平间距 */
-/* 垂直间距 */
-/* 透明度 */
-/* 文章场景相关 */
-.inner-box.data-v-2dec9c91 {
-  flex: 1 1 auto;
-  overflow: hidden;
-  padding: 5%;
-}
-.inner-box .book-inner.data-v-2dec9c91 {
-  text-indent: 2em;
-  text-align: justify;
-}

+ 0 - 84
xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.js

@@ -1,84 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const config_config = require("../../config/config.js");
-const stores_readSetting = require("../../stores/readSetting.js");
-if (!Array) {
-  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
-  _easycom_uni_popup2();
-}
-const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
-if (!Math) {
-  _easycom_uni_popup();
-}
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "settingMenu",
-  emits: ["clickCatalog", "clickPreChapter", "clickNextChapter", "clickMode", "clickOpenSetting", "Close"],
-  setup(__props, { expose: __expose, emit: __emit }) {
-    const emit = __emit;
-    let menu = common_vendor.ref(null);
-    function change(e) {
-      if (e.show == false) {
-        emit("Close");
-      }
-      console.log("当前模式:" + e.type + ",状态:" + e.show);
-    }
-    common_vendor.onMounted(() => {
-      const type = "bottom";
-      menu.value.open(type);
-    });
-    let mode = common_vendor.ref(stores_readSetting.ReadSetting().getReadSetting().readMode);
-    let startPosY = common_vendor.ref(-1);
-    function maskTouch(e) {
-      if (Math.abs(e.changedTouches[0].pageY - startPosY.value) > 10) {
-        startPosY.value = -1;
-        emit("Close");
-      }
-    }
-    function maskStart(e) {
-      startPosY.value = e.changedTouches[0].pageY;
-    }
-    let showSettingFontSizeMode = common_vendor.ref(false);
-    function showSettingFont() {
-      showSettingFontSizeMode.value = true;
-    }
-    __expose({ showSettingFont });
-    return (_ctx, _cache) => {
-      return common_vendor.e({
-        a: common_vendor.unref(showSettingFontSizeMode) == false
-      }, common_vendor.unref(showSettingFontSizeMode) == false ? {
-        b: common_vendor.o(($event) => emit("clickPreChapter")),
-        c: common_vendor.o(($event) => emit("clickNextChapter"))
-      } : {}, {
-        d: common_vendor.unref(showSettingFontSizeMode) == false
-      }, common_vendor.unref(showSettingFontSizeMode) == false ? common_vendor.e({
-        e: common_vendor.o(($event) => emit("clickCatalog")),
-        f: common_vendor.unref(mode) === common_vendor.unref(config_config.config).read_config.readMode.Bright
-      }, common_vendor.unref(mode) === common_vendor.unref(config_config.config).read_config.readMode.Bright ? {
-        g: common_vendor.o(($event) => emit("clickMode", common_vendor.unref(config_config.config).read_config.readMode.Dark))
-      } : {}, {
-        h: common_vendor.unref(mode) === common_vendor.unref(config_config.config).read_config.readMode.Dark
-      }, common_vendor.unref(mode) === common_vendor.unref(config_config.config).read_config.readMode.Dark ? {
-        i: common_vendor.o(($event) => emit("clickMode", common_vendor.unref(config_config.config).read_config.readMode.Bright))
-      } : {}, {
-        j: common_vendor.o(($event) => emit("clickOpenSetting")),
-        k: _ctx.type === "left" || _ctx.type === "right" ? 1 : ""
-      }) : {}, {
-        l: common_vendor.unref(showSettingFontSizeMode) == true
-      }, common_vendor.unref(showSettingFontSizeMode) == true ? {} : {}, {
-        m: common_vendor.sr(menu, "bf9adb2a-0", {
-          "k": "menu"
-        }),
-        n: common_vendor.o(maskStart),
-        o: common_vendor.o(maskTouch),
-        p: common_vendor.o(change),
-        q: common_vendor.p({
-          animation: false,
-          ["mask-background-color"]: "rgba(0,0,0,0)",
-          ["background-color"]: "#fff"
-        })
-      });
-    };
-  }
-});
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bf9adb2a"], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/read/settingMenu.vue"]]);
-tt.createComponent(Component);

+ 0 - 6
xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
-  }
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.ttml

@@ -1 +0,0 @@
-<view class="data-v-bf9adb2a"><uni-popup tt:if="{{q}}" class="r data-v-bf9adb2a" u-s="{{['d']}}" bindtouchstart="{{n}}" bindtouchmove="{{o}}" u-r="menu" bindchange="{{p}}" u-i="bf9adb2a-0" bind:__l="__l" u-p="{{q}}"><view tt:if="{{a}}" class="selects-box data-v-bf9adb2a"><view class="data-v-bf9adb2a" bindtap="{{b}}">上一章</view><view class="data-v-bf9adb2a" bindtap="{{c}}">下一章</view></view><view tt:if="{{d}}" class="{{('popup-content') + ' ' + 'data-v-bf9adb2a' + ' ' + (k && 'popup-height')}}"><view class="items-box data-v-bf9adb2a"><view class="item-box data-v-bf9adb2a" bindtap="{{e}}"> 目录 </view><view tt:if="{{f}}" class="item-box data-v-bf9adb2a" bindtap="{{g}}"> 夜间 </view><view tt:if="{{h}}" class="item-box data-v-bf9adb2a" bindtap="{{i}}"> 日间 </view><view class="item-box data-v-bf9adb2a" bindtap="{{j}}"> 设置 </view></view></view><view tt:if="{{l}}" class="fontSelect data-v-bf9adb2a"><view class="data-v-bf9adb2a">字体大小</view><view class="data-v-bf9adb2a"> |</view><view class="data-v-bf9adb2a"></view></view></uni-popup></view>

+ 0 - 61
xs-app/unpackage/dist/dev/mp-toutiao/components/read/settingMenu.ttss

@@ -1,61 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-/* 颜色变量 */
-/* 行为相关颜色 */
-/* 文字基本颜色 */
-/* 背景颜色 */
-/* 边框颜色 */
-/* 尺寸变量 */
-/* 文字尺寸 */
-/* 图片尺寸 */
-/* Border Radius */
-/* 水平间距 */
-/* 垂直间距 */
-/* 透明度 */
-/* 文章场景相关 */
-.selects-box.data-v-bf9adb2a {
-  display: flex;
-  justify-content: space-around;
-  align-items: center;
-  height: 80px;
-  width: 100%;
-}
-.selects-box .item-box.data-v-bf9adb2a {
-  display: flex;
-  flex-flow: column;
-  justify-content: center;
-  align-items: center;
-  height: 100%;
-}
-.items-box.data-v-bf9adb2a {
-  display: flex;
-  justify-content: space-around;
-  align-items: center;
-  height: 80px;
-  width: 100%;
-  margin-bottom: 5%;
-}
-.items-box .item-box.data-v-bf9adb2a {
-  display: flex;
-  flex-flow: column;
-  justify-content: center;
-  align-items: center;
-  height: 100%;
-}
-.fontSelect.data-v-bf9adb2a {
-  display: flex;
-  justify-content: space-around;
-  align-items: center;
-  height: 80px;
-  width: 100%;
-}

+ 0 - 51
xs-app/unpackage/dist/dev/mp-toutiao/config/config.js

@@ -1,51 +0,0 @@
-"use strict";
-const _config = class _config {
-};
-_config.Platform = {
-  WEIXIN: "WEIXIN",
-  TOUTIAO: "TOUTIAO",
-  H5: "H5"
-};
-_config.LOG_OPEN = true;
-_config.isTest = true;
-_config.stores_key = {
-  USER_DATA: "USER_DATA"
-};
-_config.URL_DEBUG = {
-  Dynamic: "http://",
-  Static: "http://"
-};
-_config.URL_RELEASE = {
-  Dynamic: "http://",
-  Static: "http://"
-};
-_config.url_addr = {
-  Dynamic: _config.isTest ? _config.URL_DEBUG.Dynamic : _config.URL_RELEASE.Dynamic,
-  //动态接口
-  Static: _config.isTest ? _config.URL_DEBUG.Static : _config.URL_RELEASE.Static
-  //静态接口
-};
-_config.url_confg = {
-  /**
-   * 动态
-   */
-  Dynamic: {},
-  /**
-   * 静态
-   */
-  Static: {},
-  StatesCode: {
-    SUCCESS: 1e4
-  }
-};
-_config.read_config = {
-  colorList: ["#000", "#666"],
-  lineHeight: 1.8,
-  fontSizeList: [12, 14, 16, 18, 20, 22, 24],
-  readMode: {
-    Bright: 1,
-    Dark: 2
-  }
-};
-let config = _config;
-exports.config = config;

+ 0 - 13
xs-app/unpackage/dist/dev/mp-toutiao/data/data.js

@@ -1,13 +0,0 @@
-"use strict";
-class user_data {
-}
-class user_status {
-}
-class read_setting_data {
-}
-class book_read_data {
-}
-exports.book_read_data = book_read_data;
-exports.read_setting_data = read_setting_data;
-exports.user_data = user_data;
-exports.user_status = user_status;

+ 0 - 66
xs-app/unpackage/dist/dev/mp-toutiao/framework/http.js

@@ -1,66 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const config_config = require("../config/config.js");
-const stores_userDataManager = require("../stores/userDataManager.js");
-class http {
-  //动态请求
-  static DynamicRequest(api, post_data, call_back, isPost = true) {
-    common_vendor.index.request({
-      url: config_config.config.url_addr.Dynamic + api,
-      data: post_data,
-      method: isPost ? "POST" : "GET",
-      header: {
-        "token": stores_userDataManager.UserData().getUserToken()
-        //自定义请求头信息
-      },
-      success: (res) => {
-        if (call_back != null) {
-          call_back(null, res);
-        }
-      },
-      fail(res) {
-        if (call_back != null) {
-          call_back(res, null);
-        }
-      }
-    });
-  }
-  //静态请求
-  static StaticRequest(api, call_back) {
-    common_vendor.index.request({
-      dataType: "json",
-      responseType: "json",
-      url: api,
-      method: "GET",
-      success: (res) => {
-        if (call_back != null) {
-          call_back(null, res.data);
-        }
-      },
-      fail(res) {
-        if (call_back != null) {
-          call_back(res, null);
-        }
-      }
-    });
-  }
-  static getStaticText(api, call_back) {
-    common_vendor.index.request({
-      dataType: "text",
-      responseType: "text",
-      url: api,
-      method: "GET",
-      success: (res) => {
-        if (call_back != null) {
-          call_back(null, res.data);
-        }
-      },
-      fail(res) {
-        if (call_back != null) {
-          call_back(res, null);
-        }
-      }
-    });
-  }
-}
-exports.http = http;

+ 0 - 33
xs-app/unpackage/dist/dev/mp-toutiao/framework/log.js

@@ -1,33 +0,0 @@
-"use strict";
-const config_config = require("../config/config.js");
-class log {
-  static Debug(msg, ...other) {
-    if (config_config.config.LOG_OPEN) {
-      console.log(msg, other.length > 0 ? other[0] : "", log.stack());
-    }
-  }
-  static stack() {
-    let callingLocation = "";
-    try {
-      throw new Error();
-    } catch (e) {
-      const stack = e.stack;
-      const lines = stack.split("\n");
-      if (lines.length >= 4) {
-        callingLocation = lines[3];
-      }
-    }
-    return callingLocation;
-  }
-  static Error(msg, ...other) {
-    if (config_config.config.LOG_OPEN) {
-      console.error(msg, other.length > 0 ? other[0] : "");
-    }
-  }
-  static Info(msg, ...other) {
-    if (config_config.config.LOG_OPEN) {
-      console.info(msg, other.length > 0 ? other[0] : "");
-    }
-  }
-}
-exports.log = log;

+ 0 - 74
xs-app/unpackage/dist/dev/mp-toutiao/framework/tools.js

@@ -1,74 +0,0 @@
-"use strict";
-const config_config = require("../config/config.js");
-const framework_http = require("./http.js");
-const framework_log = require("./log.js");
-const _tools = class _tools {
-  static initPlatform() {
-    _tools.platform = config_config.config.Platform.TOUTIAO;
-    framework_log.log.Debug("当前运行平台:", _tools.platform);
-  }
-  static getCurPlatform() {
-    return _tools.platform;
-  }
-  static getChapterList(chapter_path, cb) {
-    framework_http.http.StaticRequest(chapter_path, (err, data) => {
-      if (err) {
-        return;
-      }
-      cb(data);
-    });
-  }
-  static getCurChapterTxt(base_path, chapter_id, emspWidth, cb) {
-    if (chapter_id) {
-      let url = `${base_path}${chapter_id}.txt`;
-      framework_http.http.getStaticText(url, (err, data) => {
-        if (err) {
-          framework_log.log.Error(err);
-          return;
-        }
-        cb(_tools.autoParagraph(data, emspWidth));
-      });
-    }
-  }
-  static autoParagraph(text, emspWidth) {
-    const emspStyle = `style="margin-left: ${emspWidth}px;"`;
-    const emsp_html = `<span ${emspStyle}></span>`;
-    const character = `<br><br>${emsp_html}`;
-    return emsp_html + text.replace(/\n\s*/g, character);
-  }
-  static autoParagraphTitle(text, emspWidth) {
-    const emspStyle = `style="margin-left: ${emspWidth}px;"`;
-    const emsp_html = `<span ${emspStyle}></span>`;
-    return `<br><br>` + emsp_html + text;
-  }
-  static getChapter(cur_chapter_id, list) {
-    return list.find((chapter_data) => cur_chapter_id == chapter_data.id);
-  }
-  static getPreChapterData(index, list) {
-    let new_index = index - 1;
-    if (new_index < 0) {
-      return null;
-    }
-    return list[new_index];
-  }
-  static getCurChapterData(index, list) {
-    if (index < list.length && index >= 0) {
-      return list[index];
-    }
-    framework_log.log.Error("getCurChapterData error ", index);
-    return null;
-  }
-  static getNextChapterData(index, list) {
-    let new_index = index + 1;
-    if (new_index >= list.length) {
-      return null;
-    }
-    return list[new_index];
-  }
-  static getCurChapterIndex(chapter_id, list) {
-    return list.findIndex((chapter_data) => chapter_id == chapter_data.id);
-  }
-};
-_tools.platform = config_config.config.Platform.H5;
-let tools = _tools;
-exports.tools = tools;

+ 0 - 125
xs-app/unpackage/dist/dev/mp-toutiao/framework/util.js

@@ -1,125 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const config_config = require("../config/config.js");
-const framework_log = require("./log.js");
-const framework_tools = require("./tools.js");
-class util {
-  /**
-   * 获取本地数据
-   */
-  static getStorage(key) {
-    let d = common_vendor.index.getStorageSync(key);
-    if (util.isNull(d)) {
-      return null;
-    }
-    return d;
-  }
-  /**
-   * 设置本地数据
-   */
-  static setStorage(key, value) {
-    common_vendor.index.setStorageSync(key, value);
-  }
-  /**
-   * 清除本地key数据
-   */
-  static clearStorageForKey(key) {
-    let d = util.getStorage(key);
-    if (util.isNull(d)) {
-      framework_log.log.Error(`${key} is null!`);
-    } else {
-      util.setStorage(key, null);
-    }
-  }
-  /**
-   * 清除本地数据
-   */
-  static clearAllStorage() {
-    common_vendor.index.clearStorageSync();
-  }
-  static isNull(v) {
-    if (v == null || v == void 0 || v == "") {
-      return true;
-    }
-    return false;
-  }
-  static alert(v) {
-    let Platform = framework_tools.tools.getCurPlatform();
-    if (Platform == config_config.config.Platform.H5) {
-      alert(v);
-    } else if (Platform == config_config.config.Platform.TOUTIAO) {
-      framework_log.log.Debug("TOUTIAO", v);
-    } else if (Platform == config_config.config.Platform.WEIXIN) {
-      framework_log.log.Debug("WEIXIN", v);
-    }
-  }
-  // Loadding
-  static showLoading(title = "加载中...", mask = false) {
-    common_vendor.index.showLoading({
-      title,
-      mask
-    });
-  }
-  static hideLoading() {
-    common_vendor.index.hideLoading();
-  }
-  // Toast
-  static showInfoToast(title, duration = 1500, mask = false) {
-    common_vendor.index.showToast({
-      title,
-      icon: "none",
-      duration,
-      mask
-    });
-  }
-  static showSuccessToast(title, duration = 1500, mask = false) {
-    common_vendor.index.showToast({
-      title,
-      icon: "success",
-      duration,
-      mask
-    });
-  }
-  static showErrorToast(title, duration = 1500, mask = false) {
-    common_vendor.index.showToast({
-      title,
-      icon: "error",
-      duration,
-      mask
-    });
-  }
-  // Modal
-  static showModal(title, content, confirm_cb = null, cancel_cb = null, confirmText = "确定", showCancel = true, cancelText = "取消") {
-    common_vendor.index.showModal({
-      title,
-      content,
-      confirmText,
-      showCancel,
-      cancelText,
-      success: function(res) {
-        if (res.confirm) {
-          confirm_cb && confirm_cb();
-        } else if (res.cancel) {
-          cancel_cb && cancel_cb();
-        }
-      }
-    });
-  }
-  static showModalNoCancel(title, content, confirm_cb = null, cancel_cb = null, confirmText = "确定") {
-    this.showModal(title, content, confirm_cb, cancel_cb, confirmText, false);
-  }
-  // ActionSheet
-  static showActionSheet(alertText, itemList, confirm_cb, cancel_cb = null) {
-    common_vendor.index.showActionSheet({
-      alertText,
-      itemList,
-      success: function(res) {
-        confirm_cb && confirm_cb(res.tapIndex);
-      },
-      fail: function(err) {
-        cancel_cb && cancel_cb();
-      }
-    });
-  }
-}
-exports.util = util;

+ 0 - 49
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.js

@@ -1,49 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const framework_log = require("../../framework/log.js");
-const framework_http = require("../../framework/http.js");
-const config_config = require("../../config/config.js");
-const stores_userStatusManager = require("../../stores/userStatusManager.js");
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "bookshelf",
-  setup(__props) {
-    function onBtnClick() {
-      jumpRead();
-    }
-    function onClickItem(item) {
-      item.start_read_chapter_id = 1;
-      stores_userStatusManager.UserStatus().updateUserSlectBook(item);
-      common_vendor.index.reLaunch({
-        url: "/pages/readbook/read"
-      });
-    }
-    let book_list = common_vendor.ref();
-    function jumpRead() {
-      framework_http.http.StaticRequest("https://static.hainanmlwl.com/test_books/book_list.json", (err, data) => {
-        if (err) {
-          return;
-        }
-        framework_log.log.Debug("data.code", typeof config_config.config.url_confg.StatesCode.SUCCESS);
-        if (data.code == config_config.config.url_confg.StatesCode.SUCCESS) {
-          framework_log.log.Debug("book_list", data);
-          book_list.value = data.content;
-        }
-      });
-    }
-    return (_ctx, _cache) => {
-      return {
-        a: common_vendor.o(onBtnClick),
-        b: common_vendor.f(common_vendor.unref(book_list), (item, k0, i0) => {
-          return {
-            a: common_vendor.t(item.book_name),
-            b: item.book_cover,
-            c: common_vendor.o(($event) => onClickItem(item)),
-            d: item.book_id
-          };
-        })
-      };
-    };
-  }
-});
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/bookshelf/bookshelf.vue"]]);
-tt.createPage(MiniProgramPage);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.json

@@ -1,4 +0,0 @@
-{
-  "navigationStyle": "default",
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttml

@@ -1 +0,0 @@
- 书架 <view><button bindtap="{{a}}"> 去读书</button></view><view tt:for="{{b}}" tt:for-item="item" tt:key="d"><image src="{{item.b}}" bindtap="{{item.c}}">{{item.a}}</image></view>

+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttss


+ 6 - 10
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.js

@@ -1,12 +1,12 @@
 "use strict";
 const common_vendor = require("../../common/vendor.js");
 const framework_util = require("../../framework/util.js");
+const framework_tools = require("../../framework/tools.js");
 if (!Math) {
-  (customNav + templateBook3 + templateBookList)();
+  (templateBook3 + templateBookList)();
 }
 const templateBook3 = () => "./template/template-book-3.js";
 const templateBookList = () => "./template/template-book-list.js";
-const customNav = () => "../../components/custom-navbar/custom-navbar.js";
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "bookstore",
   setup(__props) {
@@ -14,6 +14,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     var bool = true;
     common_vendor.onLoad((options) => {
       console.log("bookstore-options=", options);
+      framework_tools.tools.setNavigationBar();
       requestData(bool);
     });
     function requestData(is) {
@@ -38,14 +39,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     }
     return (_ctx, _cache) => {
       return {
-        a: common_vendor.p({
-          title: "书城",
-          statusBar: "true",
-          fixed: "true"
-        }),
-        b: common_vendor.o(onClickTest),
-        c: common_vendor.o(onClickNav),
-        d: common_vendor.p({
+        a: common_vendor.o(onClickTest),
+        b: common_vendor.o(onClickNav),
+        c: common_vendor.p({
           dataList: common_vendor.unref(book_3_data_list)
         })
       };

+ 2 - 2
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.json

@@ -1,8 +1,8 @@
 {
+  "navigationBarTitleText": "书城",
   "navigationStyle": "default",
   "usingComponents": {
     "template-book3": "./template/template-book-3",
-    "template-book-list": "./template/template-book-list",
-    "custom-nav": "../../components/custom-navbar/custom-navbar"
+    "template-book-list": "./template/template-book-list"
   }
 }

+ 1 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.ttml

@@ -1 +1 @@
-<view class="content"><custom-nav tt:if="{{a}}" u-i="02cb8c04-0" bind:__l="__l" u-p="{{a}}"></custom-nav><view class="item_demo" bindtap="{{b}}"> 测试更换数据 </view><view class="item_demo" bindtap="{{c}}">跳转</view><view class="container"><template-book3 tt:if="{{d}}" u-i="02cb8c04-1" bind:__l="__l" u-p="{{d}}"></template-book3><template-book-list u-i="02cb8c04-2" bind:__l="__l"></template-book-list></view></view>
+<view class="content"><view class="item_demo" bindtap="{{a}}"> 测试更换数据 </view><view class="item_demo" bindtap="{{b}}">跳转</view><view class="container"><template-book3 tt:if="{{c}}" u-i="02cb8c04-0" bind:__l="__l" u-p="{{c}}"></template-book3><template-book-list u-i="02cb8c04-1" bind:__l="__l"></template-book-list></view></view>

+ 0 - 8
xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.js

@@ -1,8 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const _sfc_main = {};
-function _sfc_render(_ctx, _cache) {
-  return {};
-}
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/mine/mine.vue"]]);
-tt.createPage(MiniProgramPage);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.json

@@ -1,4 +0,0 @@
-{
-  "navigationStyle": "default",
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttml

@@ -1 +0,0 @@
-<view> 我的</view>

+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttss


+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.ttss


+ 8 - 28
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.js

@@ -1,28 +1,14 @@
 "use strict";
 const common_vendor = require("../../common/vendor.js");
-if (!Array) {
-  const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
-  _easycom_uni_icons2();
-}
-const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
-if (!Math) {
-  _easycom_uni_icons();
-}
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "search-nav",
+  props: {
+    height: Number
+  },
   emits: ["clickSearch"],
   setup(__props, { emit: __emit }) {
-    let statusBar_Height = common_vendor.ref(0);
-    let height = common_vendor.ref(0);
     let search_content = common_vendor.ref("");
     let emits = __emit;
-    common_vendor.onLoad(() => {
-      statusBar_Height.value = common_vendor.index.getSystemInfoSync().statusBarHeight;
-      height.value = statusBar_Height.value + 50 * 2;
-    });
-    function clickBack() {
-      common_vendor.index.navigateBack();
-    }
     function onInput() {
     }
     function clickSearch() {
@@ -30,17 +16,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     }
     return (_ctx, _cache) => {
       return {
-        a: common_vendor.unref(statusBar_Height) + "rpx",
-        b: common_vendor.o(clickBack),
-        c: common_vendor.p({
-          type: "back",
-          size: "20"
-        }),
-        d: common_vendor.o([($event) => common_vendor.isRef(search_content) ? search_content.value = $event.detail.value : search_content = $event.detail.value, onInput]),
-        e: common_vendor.o(clickSearch),
-        f: common_vendor.unref(search_content),
-        g: common_vendor.o(clickSearch),
-        h: common_vendor.unref(height) + "rpx"
+        a: common_vendor.o([($event) => common_vendor.isRef(search_content) ? search_content.value = $event.detail.value : search_content = $event.detail.value, onInput]),
+        b: common_vendor.o(clickSearch),
+        c: common_vendor.unref(search_content),
+        d: common_vendor.o(clickSearch),
+        e: __props.height + "rpx"
       };
     };
   }

+ 1 - 3
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.json

@@ -1,6 +1,4 @@
 {
   "component": true,
-  "usingComponents": {
-    "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
-  }
+  "usingComponents": {}
 }

+ 1 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.ttml

@@ -1 +1 @@
-<view class="nav_content" style="{{'height:' + h}}"><view class="container"><view class="container__status" style="{{'height:' + a}}"></view><view class="container__content"><uni-icons tt:if="{{c}}" bindclick="{{b}}" u-i="24f7f1a2-0" bind:__l="__l" u-p="{{c}}"/><input class="container__content__input" placeholder="输入关键字" placeholder-class="#e9e9e9e" confirm-type="search" bindinput="{{d}}" bindconfirm="{{e}}" type="text" value="{{f}}"/><view class="container__content__btn" bindtap="{{g}}">搜索</view></view></view></view>
+<view class="nav_content" style="{{'height:' + e}}"><view class="container"><view class="container__content"><input class="container__content__input" placeholder="输入关键字" placeholder-class="#e9e9e9e" confirm-type="search" bindinput="{{a}}" bindconfirm="{{b}}" type="text" value="{{c}}"/><view class="container__content__btn" bindtap="{{d}}">搜索</view></view></view></view>

+ 12 - 10
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search-nav.ttss

@@ -23,35 +23,37 @@
 /* 垂直间距 */
 /* 透明度 */
 /* 文章场景相关 */
-.container {
+.nav_content {
   position: fixed;
   display: flex;
   flex-direction: column;
   width: 100%;
   left: 0;
-  top: 0;
   background-color: #ffffff;
   border-bottom-width: 1rpx;
   border-bottom-style: solid;
   border-bottom-color: #eee;
 }
-.container__content {
+.nav_content .container {
+  display: flex;
+  flex-direction: column;
+  height: 100%;
+}
+.nav_content .container__content {
   display: flex;
   flex-direction: row;
   align-items: center;
-  padding: 0 20rpx;
-  width: 100%;
-  height: 100rpx;
+  margin-left: 3%;
+  height: 100%;
 }
-.container__content__input {
-  margin-left: 2%;
+.nav_content .container__content__input {
   padding: 0 2%;
-  width: 70%;
+  width: 80%;
   height: 70%;
   border-radius: 5rpx;
   border: #eee solid 2rpx;
 }
-.container__content__btn {
+.nav_content .container__content__btn {
   display: flex;
   width: 15%;
   height: 100%;

+ 7 - 6
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.js

@@ -7,13 +7,10 @@ const searchNav = () => "./search-nav.js";
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "search",
   setup(__props) {
-    let statusBarHeight = common_vendor.ref(0);
-    let top_height = common_vendor.ref(0);
+    let search_nav_height = common_vendor.ref(100);
     let search_content = common_vendor.ref("");
     common_vendor.onLoad((options) => {
-      console.log("search-options=", options);
-      statusBarHeight.value = common_vendor.index.getSystemInfoSync().statusBarHeight;
-      top_height.value = statusBarHeight.value + 50;
+      console.log("search-options", options);
     });
     function searchNavClickSearch(r) {
       search_content.value = r;
@@ -21,7 +18,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     }
     return (_ctx, _cache) => {
       return {
-        a: common_vendor.o(searchNavClickSearch)
+        a: common_vendor.o(searchNavClickSearch),
+        b: common_vendor.p({
+          height: common_vendor.unref(search_nav_height)
+        }),
+        c: common_vendor.unref(search_nav_height) + "rpx"
       };
     };
   }

+ 1 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.json

@@ -1,5 +1,5 @@
 {
-  "navigationStyle": "custom",
+  "navigationBarTitleText": "搜索",
   "enablePullDownRefresh": false,
   "usingComponents": {
     "search-nav": "./search-nav"

+ 1 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/search/search.ttml

@@ -1 +1 @@
-<view class="content"><search-nav bindclickSearch="{{a}}" u-i="f8c22e68-0" bind:__l="__l"/><view class=""> hehehehehe </view></view>
+<view class="content"><search-nav tt:if="{{b}}" bindclickSearch="{{a}}" u-i="f8c22e68-0" bind:__l="__l" u-p="{{b}}"/><view class="" style="{{'margin-top:' + c}}">1的发顺丰撒是的发生发顺丰水电费撒的发生</view></view>

+ 0 - 99
xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.js

@@ -1,99 +0,0 @@
-"use strict";
-const common_vendor = require("../../common/vendor.js");
-const stores_userDataManager = require("../../stores/userDataManager.js");
-const data_data = require("../../data/data.js");
-const framework_util = require("../../framework/util.js");
-const framework_log = require("../../framework/log.js");
-const framework_http = require("../../framework/http.js");
-const config_config = require("../../config/config.js");
-if (!Math) {
-  (alertDialog + MessageVue)();
-}
-const MessageVue = () => "../../components/public/Message.js";
-const alertDialog = () => "../../components/public/alertDialog.js";
-const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
-  __name: "index",
-  setup(__props) {
-    let udata = new data_data.user_data();
-    udata.token = "123";
-    udata.user_id = "1";
-    udata.user_name = "大靓仔";
-    let tip_message = common_vendor.ref("");
-    stores_userDataManager.UserData().updateUserData(udata);
-    const { data } = common_vendor.storeToRefs(stores_userDataManager.UserData());
-    let title = common_vendor.ref("123");
-    let obj = common_vendor.reactive({ a: "12", b: "123" });
-    let cb = function() {
-      framework_util.util.alert("你有点呆呆的!");
-      title.value = "fuck!";
-      obj.a = "world";
-    };
-    let isOpenDialog = common_vendor.ref(false);
-    let titleName = common_vendor.ref("fuck u!");
-    function onDialogClose() {
-      framework_log.log.Debug("onDialogClose!");
-      isOpenDialog.value = false;
-    }
-    function onDialogConfirm() {
-      framework_log.log.Debug("onDialogConfirm!");
-      isOpenDialog.value = false;
-      framework_http.http.StaticRequest("https://static.hainanmlwl.com/test_books/book_list.json", (err, data2) => {
-        if (err) {
-          tip_message = err;
-          isOpenMessage.value = true;
-          return;
-        }
-        framework_log.log.Debug("data.code", typeof config_config.config.url_confg.StatesCode.SUCCESS);
-        if (data2.code == config_config.config.url_confg.StatesCode.SUCCESS) {
-          framework_log.log.Debug("book_list", data2);
-        } else {
-          tip_message = data2.message;
-          isOpenMessage.value = true;
-        }
-      });
-    }
-    let isOpenMessage = common_vendor.ref(false);
-    common_vendor.onMounted(() => {
-    });
-    common_vendor.onUnmounted(() => {
-    });
-    common_vendor.watch(obj, async (new_v, old_v) => {
-      console.log(new_v, old_v);
-    });
-    return (_ctx, _cache) => {
-      return common_vendor.e({
-        a: common_vendor.t(common_vendor.unref(title)),
-        b: common_vendor.t(common_vendor.unref(data).user_name),
-        c: common_vendor.o(
-          //@ts-ignore
-          (...args) => common_vendor.unref(cb) && common_vendor.unref(cb)(...args)
-        ),
-        d: common_vendor.f(common_vendor.unref(obj), (v, k, i) => {
-          return {
-            a: common_vendor.t(v),
-            b: common_vendor.t(i)
-          };
-        }),
-        e: common_vendor.unref(isOpenDialog)
-      }, common_vendor.unref(isOpenDialog) ? {
-        f: common_vendor.o(onDialogConfirm),
-        g: common_vendor.o(onDialogClose),
-        h: common_vendor.p({
-          titleName: common_vendor.unref(titleName),
-          contentText: "你好呀!"
-        })
-      } : {}, {
-        i: common_vendor.o(($event) => common_vendor.isRef(isOpenDialog) ? isOpenDialog.value = true : isOpenDialog = true),
-        j: common_vendor.o(($event) => common_vendor.isRef(isOpenMessage) ? isOpenMessage.value = true : isOpenMessage = true),
-        k: common_vendor.unref(isOpenMessage)
-      }, common_vendor.unref(isOpenMessage) ? {
-        l: common_vendor.o(($event) => common_vendor.isRef(isOpenMessage) ? isOpenMessage.value = false : isOpenMessage = false),
-        m: common_vendor.p({
-          messageText: common_vendor.unref(tip_message)
-        })
-      } : {});
-    };
-  }
-});
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b11b71c1"], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/test/index.vue"]]);
-tt.createPage(MiniProgramPage);

+ 0 - 7
xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.json

@@ -1,7 +0,0 @@
-{
-  "navigationStyle": "default",
-  "usingComponents": {
-    "message-vue": "../../components/public/Message",
-    "alert-dialog": "../../components/public/alertDialog"
-  }
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttml

@@ -1 +0,0 @@
-<view class="content data-v-b11b71c1"><image class="logo data-v-b11b71c1" src="/static/logo.png"></image><view class="text-area data-v-b11b71c1"><text class="title data-v-b11b71c1">{{a}}</text></view><button class="data-v-b11b71c1" bindtap="{{c}}">{{b}}</button><view tt:for="{{d}}" tt:for-item="v" class="data-v-b11b71c1" key="k"><text class="data-v-b11b71c1">{{v.a}}{{v.b}}</text></view><alert-dialog tt:if="{{e}}" class="data-v-b11b71c1" binddialogConfirm="{{f}}" binddialogClose="{{g}}" u-i="b11b71c1-0" bind:__l="__l" u-p="{{h}}"/><button class="data-v-b11b71c1" bindtap="{{i}}">显示对话框</button><button class="data-v-b11b71c1" bindtap="{{j}}">显示消息提示</button><message-vue tt:if="{{k}}" class="data-v-b11b71c1" bindonFinish="{{l}}" u-i="b11b71c1-1" bind:__l="__l" u-p="{{m}}"></message-vue></view>

+ 0 - 23
xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttss

@@ -1,23 +0,0 @@
-
-.content.data-v-b11b71c1 {
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-		justify-content: center;
-}
-.logo.data-v-b11b71c1 {
-		height: 200rpx;
-		width: 200rpx;
-		margin-top: 200rpx;
-		margin-left: auto;
-		margin-right: auto;
-		margin-bottom: 50rpx;
-}
-.text-area.data-v-b11b71c1 {
-		display: flex;
-		justify-content: center;
-}
-.title.data-v-b11b71c1 {
-		font-size: 36rpx;
-		color: #8f8f94;
-}

+ 0 - 16
xs-app/unpackage/dist/dev/mp-toutiao/project.config.json

@@ -1,16 +0,0 @@
-{
-  "setting": {
-    "urlCheck": false,
-    "es6": true,
-    "postcss": false,
-    "minified": false,
-    "newFeature": true
-  },
-  "appid": "tt4df63b4bd2c0901301",
-  "projectname": "xs-app",
-  "condition": {
-    "miniprogram": {
-      "current": -1
-    }
-  }
-}

binární
xs-app/unpackage/dist/dev/mp-toutiao/static/.DS_Store


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/.DS_Store


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/read/background1.jpg


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_0.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_1.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_0.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_1.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_0.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_1.png


binární
xs-app/unpackage/dist/dev/mp-toutiao/static/logo.png


+ 0 - 21
xs-app/unpackage/dist/dev/mp-toutiao/stores/readSetting.js

@@ -1,21 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const data_data = require("../data/data.js");
-const config_config = require("../config/config.js");
-const ReadSetting = common_vendor.defineStore("read-setting", () => {
-  let data = common_vendor.reactive(new data_data.read_setting_data());
-  async function updateReadSetting(d) {
-    data.fontSizeIndex = d.fontSizeIndex;
-    data.colorBgIndex = d.colorBgIndex;
-  }
-  function getReadSetting() {
-    if (data == null || data.colorBgIndex == void 0) {
-      data.colorBgIndex = 0;
-      data.fontSizeIndex = 0;
-      data.readMode = config_config.config.read_config.readMode.Bright;
-    }
-    return data;
-  }
-  return { data, updateReadSetting, getReadSetting };
-});
-exports.ReadSetting = ReadSetting;

+ 0 - 19
xs-app/unpackage/dist/dev/mp-toutiao/stores/userDataManager.js

@@ -1,19 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const data_data = require("../data/data.js");
-const UserData = common_vendor.defineStore("user-data", () => {
-  let data = common_vendor.reactive(new data_data.user_data());
-  async function updateUserData(d) {
-    data.token = d.token;
-    data.user_id = d.user_id;
-    data.user_name = d.user_name;
-  }
-  function getUserToken() {
-    if (data == null) {
-      return "";
-    }
-    return data.token;
-  }
-  return { data, updateUserData, getUserToken };
-});
-exports.UserData = UserData;

+ 0 - 20
xs-app/unpackage/dist/dev/mp-toutiao/stores/userStatusManager.js

@@ -1,20 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const data_data = require("../data/data.js");
-const UserStatus = common_vendor.defineStore("user-status", () => {
-  let data = common_vendor.reactive(new data_data.user_status());
-  async function updateUserSlectBook(d) {
-    data.cur_select_book_data = d;
-  }
-  function getUserSlectBook() {
-    if (data == null) {
-      return null;
-    }
-    if (data.cur_select_book_data == null) {
-      return null;
-    }
-    return data.cur_select_book_data;
-  }
-  return { data, getUserSlectBook, updateUserSlectBook };
-});
-exports.UserStatus = UserStatus;

+ 0 - 170
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js

@@ -1,170 +0,0 @@
-"use strict";
-const uni_modules_uniPopup_components_uniPopup_popup = require("../uni-popup/popup.js");
-const common_vendor = require("../../../../common/vendor.js");
-const uni_modules_uniPopup_components_uniPopup_i18n_index = require("../uni-popup/i18n/index.js");
-const {
-  t
-} = common_vendor.initVueI18n(uni_modules_uniPopup_components_uniPopup_i18n_index.messages);
-const _sfc_main = {
-  name: "uniPopupDialog",
-  mixins: [uni_modules_uniPopup_components_uniPopup_popup.popup],
-  emits: ["confirm", "close", "update:modelValue", "input"],
-  props: {
-    inputType: {
-      type: String,
-      default: "text"
-    },
-    showClose: {
-      type: Boolean,
-      default: true
-    },
-    modelValue: {
-      type: [Number, String],
-      default: ""
-    },
-    placeholder: {
-      type: [String, Number],
-      default: ""
-    },
-    type: {
-      type: String,
-      default: "error"
-    },
-    mode: {
-      type: String,
-      default: "base"
-    },
-    title: {
-      type: String,
-      default: ""
-    },
-    content: {
-      type: String,
-      default: ""
-    },
-    beforeClose: {
-      type: Boolean,
-      default: false
-    },
-    cancelText: {
-      type: String,
-      default: ""
-    },
-    confirmText: {
-      type: String,
-      default: ""
-    },
-    maxlength: {
-      type: Number,
-      default: -1
-    },
-    focus: {
-      type: Boolean,
-      default: true
-    }
-  },
-  data() {
-    return {
-      dialogType: "error",
-      val: ""
-    };
-  },
-  computed: {
-    okText() {
-      return this.confirmText || t("uni-popup.ok");
-    },
-    closeText() {
-      return this.cancelText || t("uni-popup.cancel");
-    },
-    placeholderText() {
-      return this.placeholder || t("uni-popup.placeholder");
-    },
-    titleText() {
-      return this.title || t("uni-popup.title");
-    }
-  },
-  watch: {
-    type(val) {
-      this.dialogType = val;
-    },
-    mode(val) {
-      if (val === "input") {
-        this.dialogType = "info";
-      }
-    },
-    value(val) {
-      if (this.maxlength != -1 && this.mode === "input") {
-        this.val = val.slice(0, this.maxlength);
-      } else {
-        this.val = val;
-      }
-    },
-    val(val) {
-      this.$emit("update:modelValue", val);
-    }
-  },
-  created() {
-    this.popup.disableMask();
-    if (this.mode === "input") {
-      this.dialogType = "info";
-      this.val = this.value;
-      this.val = this.modelValue;
-    } else {
-      this.dialogType = this.type;
-    }
-  },
-  methods: {
-    /**
-     * 点击确认按钮
-     */
-    onOk() {
-      if (this.mode === "input") {
-        this.$emit("confirm", this.val);
-      } else {
-        this.$emit("confirm");
-      }
-      if (this.beforeClose)
-        return;
-      this.popup.close();
-    },
-    /**
-     * 点击取消按钮
-     */
-    closeDialog() {
-      this.$emit("close");
-      if (this.beforeClose)
-        return;
-      this.popup.close();
-    },
-    close() {
-      this.popup.close();
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: common_vendor.t($options.titleText),
-    b: common_vendor.n("uni-popup__" + $data.dialogType),
-    c: $props.mode === "base"
-  }, $props.mode === "base" ? {
-    d: common_vendor.t($props.content)
-  } : {
-    e: $props.maxlength,
-    f: $props.inputType,
-    g: $options.placeholderText,
-    h: $props.focus,
-    i: $data.val,
-    j: common_vendor.o(($event) => $data.val = $event.detail.value)
-  }, {
-    k: $props.showClose
-  }, $props.showClose ? {
-    l: common_vendor.t($options.closeText),
-    m: common_vendor.o((...args) => $options.closeDialog && $options.closeDialog(...args))
-  } : {}, {
-    n: common_vendor.t($options.okText),
-    o: common_vendor.n($props.showClose ? "uni-border-left" : ""),
-    p: common_vendor.o((...args) => $options.onOk && $options.onOk(...args))
-  });
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"]]);
-tt.createComponent(Component);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttml

@@ -1 +0,0 @@
-<view class="uni-popup-dialog"><view class="uni-dialog-title"><text class="{{('uni-dialog-title-text') + ' ' + b}}">{{a}}</text></view><view tt:if="{{c}}" class="uni-dialog-content"><slot><text class="uni-dialog-content-text">{{d}}</text></slot></view><view tt:else class="uni-dialog-content"><slot><input class="uni-dialog-input" maxlength="{{e}}" type="{{f}}" placeholder="{{g}}" focus="{{h}}" value="{{i}}" bindinput="{{j}}"></input></slot></view><view class="uni-dialog-button-group"><view tt:if="{{k}}" class="uni-dialog-button" bindtap="{{m}}"><text class="uni-dialog-button-text">{{l}}</text></view><view class="{{('uni-dialog-button') + ' ' + o}}" bindtap="{{p}}"><text class="uni-dialog-button-text uni-button-color">{{n}}</text></view></view></view>

+ 0 - 99
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttss

@@ -1,99 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-/* 颜色变量 */
-/* 行为相关颜色 */
-/* 文字基本颜色 */
-/* 背景颜色 */
-/* 边框颜色 */
-/* 尺寸变量 */
-/* 文字尺寸 */
-/* 图片尺寸 */
-/* Border Radius */
-/* 水平间距 */
-/* 垂直间距 */
-/* 透明度 */
-/* 文章场景相关 */
-.uni-popup-dialog {
-  width: 300px;
-  border-radius: 11px;
-  background-color: #fff;
-}
-.uni-dialog-title {
-  display: flex;
-  flex-direction: row;
-  justify-content: center;
-  padding-top: 25px;
-}
-.uni-dialog-title-text {
-  font-size: 16px;
-  font-weight: 500;
-}
-.uni-dialog-content {
-  display: flex;
-  flex-direction: row;
-  justify-content: center;
-  align-items: center;
-  padding: 20px;
-}
-.uni-dialog-content-text {
-  font-size: 14px;
-  color: #6C6C6C;
-}
-.uni-dialog-button-group {
-  display: flex;
-  flex-direction: row;
-  border-top-color: #f5f5f5;
-  border-top-style: solid;
-  border-top-width: 1px;
-}
-.uni-dialog-button {
-  display: flex;
-  flex: 1;
-  flex-direction: row;
-  justify-content: center;
-  align-items: center;
-  height: 45px;
-}
-.uni-border-left {
-  border-left-color: #f0f0f0;
-  border-left-style: solid;
-  border-left-width: 1px;
-}
-.uni-dialog-button-text {
-  font-size: 16px;
-  color: #333;
-}
-.uni-button-color {
-  color: #007aff;
-}
-.uni-dialog-input {
-  flex: 1;
-  font-size: 14px;
-  border: 1px #eee solid;
-  height: 40px;
-  padding: 0 10px;
-  border-radius: 5px;
-  color: #555;
-}
-.uni-popup__success {
-  color: #4cd964;
-}
-.uni-popup__warn {
-  color: #f0ad4e;
-}
-.uni-popup__error {
-  color: #dd524d;
-}
-.uni-popup__info {
-  color: #909399;
-}

+ 0 - 60
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.js

@@ -1,60 +0,0 @@
-"use strict";
-const uni_modules_uniPopup_components_uniPopup_popup = require("../uni-popup/popup.js");
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "uniPopupMessage",
-  mixins: [uni_modules_uniPopup_components_uniPopup_popup.popup],
-  props: {
-    /**
-     * 主题 success/warning/info/error	  默认 success
-     */
-    type: {
-      type: String,
-      default: "success"
-    },
-    /**
-     * 消息文字
-     */
-    message: {
-      type: String,
-      default: ""
-    },
-    /**
-     * 显示时间,设置为 0 则不会自动关闭
-     */
-    duration: {
-      type: Number,
-      default: 3e3
-    },
-    maskShow: {
-      type: Boolean,
-      default: false
-    }
-  },
-  data() {
-    return {};
-  },
-  created() {
-    this.popup.maskShow = this.maskShow;
-    this.popup.messageChild = this;
-  },
-  methods: {
-    timerClose() {
-      if (this.duration === 0)
-        return;
-      clearTimeout(this.timer);
-      this.timer = setTimeout(() => {
-        this.popup.close();
-      }, this.duration);
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_vendor.t($props.message),
-    b: common_vendor.n("uni-popup__" + $props.type + "-text"),
-    c: common_vendor.n("uni-popup__" + $props.type)
-  };
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue"]]);
-tt.createComponent(Component);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttml

@@ -1 +0,0 @@
-<view class="uni-popup-message"><view class="{{('uni-popup-message__box') + ' ' + 'fixforpc-width' + ' ' + c}}"><slot><text class="{{('uni-popup-message-text') + ' ' + b}}">{{a}}</text></slot></view></view>

+ 0 - 75
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttss

@@ -1,75 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-/* 颜色变量 */
-/* 行为相关颜色 */
-/* 文字基本颜色 */
-/* 背景颜色 */
-/* 边框颜色 */
-/* 尺寸变量 */
-/* 文字尺寸 */
-/* 图片尺寸 */
-/* Border Radius */
-/* 水平间距 */
-/* 垂直间距 */
-/* 透明度 */
-/* 文章场景相关 */
-.uni-popup-message {
-  display: flex;
-  flex-direction: row;
-  justify-content: center;
-}
-.uni-popup-message__box {
-  background-color: #e1f3d8;
-  padding: 10px 15px;
-  border-color: #eee;
-  border-style: solid;
-  border-width: 1px;
-  flex: 1;
-}
-@media screen and (min-width: 500px) {
-.fixforpc-width {
-    margin-top: 20px;
-    border-radius: 4px;
-    flex: none;
-    min-width: 380px;
-    max-width: 50%;
-}
-}
-.uni-popup-message-text {
-  font-size: 14px;
-  padding: 0;
-}
-.uni-popup__success {
-  background-color: #e1f3d8;
-}
-.uni-popup__success-text {
-  color: #67C23A;
-}
-.uni-popup__warn {
-  background-color: #faecd8;
-}
-.uni-popup__warn-text {
-  color: #E6A23C;
-}
-.uni-popup__error {
-  background-color: #fde2e2;
-}
-.uni-popup__error-text {
-  color: #F56C6C;
-}
-.uni-popup__info {
-  background-color: #F2F6FC;
-}
-.uni-popup__info-text {
-  color: #909399;
-}

+ 0 - 28
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/i18n/index.js

@@ -1,28 +0,0 @@
-"use strict";
-const en = {
-  "uni-popup.cancel": "cancel",
-  "uni-popup.ok": "ok",
-  "uni-popup.placeholder": "pleace enter",
-  "uni-popup.title": "Hint",
-  "uni-popup.shareTitle": "Share to"
-};
-const zhHans = {
-  "uni-popup.cancel": "取消",
-  "uni-popup.ok": "确定",
-  "uni-popup.placeholder": "请输入",
-  "uni-popup.title": "提示",
-  "uni-popup.shareTitle": "分享到"
-};
-const zhHant = {
-  "uni-popup.cancel": "取消",
-  "uni-popup.ok": "確定",
-  "uni-popup.placeholder": "請輸入",
-  "uni-popup.title": "提示",
-  "uni-popup.shareTitle": "分享到"
-};
-const messages = {
-  en,
-  "zh-Hans": zhHans,
-  "zh-Hant": zhHant
-};
-exports.messages = messages;

+ 0 - 26
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/popup.js

@@ -1,26 +0,0 @@
-"use strict";
-const popup = {
-  data() {
-    return {};
-  },
-  created() {
-    this.popup = this.getParent();
-  },
-  methods: {
-    /**
-     * 获取父元素实例
-     */
-    getParent(name = "uniPopup") {
-      let parent = this.$parent;
-      let parentName = parent.$options.name;
-      while (parentName !== name) {
-        parent = parent.$parent;
-        if (!parent)
-          return false;
-        parentName = parent.$options.name;
-      }
-      return parent;
-    }
-  }
-};
-exports.popup = popup;

+ 0 - 393
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.js

@@ -1,393 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "uniPopup",
-  components: {},
-  emits: ["change", "maskClick"],
-  props: {
-    // 开启动画
-    animation: {
-      type: Boolean,
-      default: true
-    },
-    // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
-    // message: 消息提示 ; dialog : 对话框
-    type: {
-      type: String,
-      default: "center"
-    },
-    // maskClick
-    isMaskClick: {
-      type: Boolean,
-      default: null
-    },
-    // TODO 2 个版本后废弃属性 ,使用 isMaskClick
-    maskClick: {
-      type: Boolean,
-      default: null
-    },
-    backgroundColor: {
-      type: String,
-      default: "none"
-    },
-    safeArea: {
-      type: Boolean,
-      default: true
-    },
-    maskBackgroundColor: {
-      type: String,
-      default: "rgba(0, 0, 0, 0.4)"
-    },
-    borderRadius: {
-      type: String
-    }
-  },
-  watch: {
-    /**
-     * 监听type类型
-     */
-    type: {
-      handler: function(type) {
-        if (!this.config[type])
-          return;
-        this[this.config[type]](true);
-      },
-      immediate: true
-    },
-    isDesktop: {
-      handler: function(newVal) {
-        if (!this.config[newVal])
-          return;
-        this[this.config[this.type]](true);
-      },
-      immediate: true
-    },
-    /**
-     * 监听遮罩是否可点击
-     * @param {Object} val
-     */
-    maskClick: {
-      handler: function(val) {
-        this.mkclick = val;
-      },
-      immediate: true
-    },
-    isMaskClick: {
-      handler: function(val) {
-        this.mkclick = val;
-      },
-      immediate: true
-    },
-    // H5 下禁止底部滚动
-    showPopup(show) {
-    }
-  },
-  data() {
-    return {
-      duration: 300,
-      ani: [],
-      showPopup: false,
-      showTrans: false,
-      popupWidth: 0,
-      popupHeight: 0,
-      config: {
-        top: "top",
-        bottom: "bottom",
-        center: "center",
-        left: "left",
-        right: "right",
-        message: "top",
-        dialog: "center",
-        share: "bottom"
-      },
-      maskClass: {
-        position: "fixed",
-        bottom: 0,
-        top: 0,
-        left: 0,
-        right: 0,
-        backgroundColor: "rgba(0, 0, 0, 0.4)"
-      },
-      transClass: {
-        backgroundColor: "transparent",
-        borderRadius: this.borderRadius || "0",
-        position: "fixed",
-        left: 0,
-        right: 0
-      },
-      maskShow: true,
-      mkclick: true,
-      popupstyle: "top"
-    };
-  },
-  computed: {
-    getStyles() {
-      let res = { backgroundColor: this.bg };
-      if (this.borderRadius || "0") {
-        res = Object.assign(res, { borderRadius: this.borderRadius });
-      }
-      return res;
-    },
-    isDesktop() {
-      return this.popupWidth >= 500 && this.popupHeight >= 500;
-    },
-    bg() {
-      if (this.backgroundColor === "" || this.backgroundColor === "none") {
-        return "transparent";
-      }
-      return this.backgroundColor;
-    }
-  },
-  mounted() {
-    const fixSize = () => {
-      const {
-        windowWidth,
-        windowHeight,
-        windowTop,
-        safeArea,
-        screenHeight,
-        safeAreaInsets
-      } = common_vendor.index.getSystemInfoSync();
-      this.popupWidth = windowWidth;
-      this.popupHeight = windowHeight + (windowTop || 0);
-      if (safeArea && this.safeArea) {
-        this.safeAreaInsets = safeAreaInsets.bottom;
-      } else {
-        this.safeAreaInsets = 0;
-      }
-    };
-    fixSize();
-  },
-  // TODO vue3
-  unmounted() {
-    this.setH5Visible();
-  },
-  activated() {
-    this.setH5Visible(!this.showPopup);
-  },
-  deactivated() {
-    this.setH5Visible(true);
-  },
-  created() {
-    if (this.isMaskClick === null && this.maskClick === null) {
-      this.mkclick = true;
-    } else {
-      this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick;
-    }
-    if (this.animation) {
-      this.duration = 300;
-    } else {
-      this.duration = 0;
-    }
-    this.messageChild = null;
-    this.clearPropagation = false;
-    this.maskClass.backgroundColor = this.maskBackgroundColor;
-  },
-  methods: {
-    setH5Visible(visible = true) {
-    },
-    /**
-     * 公用方法,不显示遮罩层
-     */
-    closeMask() {
-      this.maskShow = false;
-    },
-    /**
-     * 公用方法,遮罩层禁止点击
-     */
-    disableMask() {
-      this.mkclick = false;
-    },
-    // TODO nvue 取消冒泡
-    clear(e) {
-      e.stopPropagation();
-      this.clearPropagation = true;
-    },
-    open(direction) {
-      if (this.showPopup) {
-        return;
-      }
-      let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"];
-      if (!(direction && innerType.indexOf(direction) !== -1)) {
-        direction = this.type;
-      }
-      if (!this.config[direction]) {
-        console.error("缺少类型:", direction);
-        return;
-      }
-      this[this.config[direction]]();
-      this.$emit("change", {
-        show: true,
-        type: direction
-      });
-    },
-    close(type) {
-      this.showTrans = false;
-      this.$emit("change", {
-        show: false,
-        type: this.type
-      });
-      clearTimeout(this.timer);
-      this.timer = setTimeout(() => {
-        this.showPopup = false;
-      }, 300);
-    },
-    // TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
-    touchstart() {
-      this.clearPropagation = false;
-    },
-    onTap() {
-      if (this.clearPropagation) {
-        this.clearPropagation = false;
-        return;
-      }
-      this.$emit("maskClick");
-      if (!this.mkclick)
-        return;
-      this.close();
-    },
-    /**
-     * 顶部弹出样式处理
-     */
-    top(type) {
-      this.popupstyle = this.isDesktop ? "fixforpc-top" : "top";
-      this.ani = ["slide-top"];
-      this.transClass = {
-        position: "fixed",
-        left: 0,
-        right: 0,
-        backgroundColor: this.bg,
-        borderRadius: this.borderRadius || "0"
-      };
-      if (type)
-        return;
-      this.showPopup = true;
-      this.showTrans = true;
-      this.$nextTick(() => {
-        if (this.messageChild && this.type === "message") {
-          this.messageChild.timerClose();
-        }
-      });
-    },
-    /**
-     * 底部弹出样式处理
-     */
-    bottom(type) {
-      this.popupstyle = "bottom";
-      this.ani = ["slide-bottom"];
-      this.transClass = {
-        position: "fixed",
-        left: 0,
-        right: 0,
-        bottom: 0,
-        paddingBottom: this.safeAreaInsets + "px",
-        backgroundColor: this.bg,
-        borderRadius: this.borderRadius || "0"
-      };
-      if (type)
-        return;
-      this.showPopup = true;
-      this.showTrans = true;
-    },
-    /**
-     * 中间弹出样式处理
-     */
-    center(type) {
-      this.popupstyle = "center";
-      this.ani = ["zoom-out", "fade"];
-      this.transClass = {
-        position: "fixed",
-        display: "flex",
-        flexDirection: "column",
-        bottom: 0,
-        left: 0,
-        right: 0,
-        top: 0,
-        justifyContent: "center",
-        alignItems: "center",
-        borderRadius: this.borderRadius || "0"
-      };
-      if (type)
-        return;
-      this.showPopup = true;
-      this.showTrans = true;
-    },
-    left(type) {
-      this.popupstyle = "left";
-      this.ani = ["slide-left"];
-      this.transClass = {
-        position: "fixed",
-        left: 0,
-        bottom: 0,
-        top: 0,
-        backgroundColor: this.bg,
-        borderRadius: this.borderRadius || "0",
-        display: "flex",
-        flexDirection: "column"
-      };
-      if (type)
-        return;
-      this.showPopup = true;
-      this.showTrans = true;
-    },
-    right(type) {
-      this.popupstyle = "right";
-      this.ani = ["slide-right"];
-      this.transClass = {
-        position: "fixed",
-        bottom: 0,
-        right: 0,
-        top: 0,
-        backgroundColor: this.bg,
-        borderRadius: this.borderRadius || "0",
-        display: "flex",
-        flexDirection: "column"
-      };
-      if (type)
-        return;
-      this.showPopup = true;
-      this.showTrans = true;
-    }
-  }
-};
-if (!Array) {
-  const _easycom_uni_transition2 = common_vendor.resolveComponent("uni-transition");
-  _easycom_uni_transition2();
-}
-const _easycom_uni_transition = () => "../../../uni-transition/components/uni-transition/uni-transition.js";
-if (!Math) {
-  _easycom_uni_transition();
-}
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return common_vendor.e({
-    a: $data.showPopup
-  }, $data.showPopup ? common_vendor.e({
-    b: $data.maskShow
-  }, $data.maskShow ? {
-    c: common_vendor.o($options.onTap),
-    d: common_vendor.p({
-      name: "mask",
-      ["mode-class"]: "fade",
-      styles: $data.maskClass,
-      duration: $data.duration,
-      show: $data.showTrans
-    })
-  } : {}, {
-    e: common_vendor.s($options.getStyles),
-    f: common_vendor.n($data.popupstyle),
-    g: common_vendor.o((...args) => $options.clear && $options.clear(...args)),
-    h: common_vendor.o($options.onTap),
-    i: common_vendor.p({
-      ["mode-class"]: $data.ani,
-      name: "content",
-      styles: $data.transClass,
-      duration: $data.duration,
-      show: $data.showTrans
-    }),
-    j: common_vendor.o((...args) => $options.touchstart && $options.touchstart(...args)),
-    k: common_vendor.n($data.popupstyle),
-    l: common_vendor.n($options.isDesktop ? "fixforpc-z-index" : "")
-  }) : {});
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/uni_modules/uni-popup/components/uni-popup/uni-popup.vue"]]);
-tt.createComponent(Component);

+ 0 - 6
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.json

@@ -1,6 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {
-    "uni-transition": "../../../uni-transition/components/uni-transition/uni-transition"
-  }
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttml

@@ -1 +0,0 @@
-<view tt:if="{{a}}" class="{{('uni-popup') + ' ' + k + ' ' + l}}"><view bindtouchstart="{{j}}"><uni-transition tt:if="{{b}}" key="1" bindclick="{{c}}" u-i="051644d5-0" bind:__l="__l" u-p="{{d}}"/><uni-transition tt:if="{{i}}" u-s="{{['d']}}" key="2" bindclick="{{h}}" u-i="051644d5-1" bind:__l="__l" u-p="{{i}}"><view style="{{e}}" class="{{('uni-popup__wrapper') + ' ' + f}}" bindtap="{{g}}"><slot/></view></uni-transition></view></view>

+ 0 - 47
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttss

@@ -1,47 +0,0 @@
-/**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
-/**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
-/* 颜色变量 */
-/* 行为相关颜色 */
-/* 文字基本颜色 */
-/* 背景颜色 */
-/* 边框颜色 */
-/* 尺寸变量 */
-/* 文字尺寸 */
-/* 图片尺寸 */
-/* Border Radius */
-/* 水平间距 */
-/* 垂直间距 */
-/* 透明度 */
-/* 文章场景相关 */
-.uni-popup {
-  position: fixed;
-  z-index: 99;
-}
-.uni-popup.top, .uni-popup.left, .uni-popup.right {
-  top: 0;
-}
-.uni-popup .uni-popup__wrapper {
-  display: block;
-  position: relative;
-  /* iphonex 等安全区设置,底部安全区适配 */
-}
-.uni-popup .uni-popup__wrapper.left, .uni-popup .uni-popup__wrapper.right {
-  padding-top: 0;
-  flex: 1;
-}
-.fixforpc-z-index {
-  z-index: 999;
-}
-.fixforpc-top {
-  top: 0;
-}

+ 0 - 115
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/createAnimation.js

@@ -1,115 +0,0 @@
-"use strict";
-const common_vendor = require("../../../../common/vendor.js");
-class MPAnimation {
-  constructor(options, _this) {
-    this.options = options;
-    this.animation = common_vendor.index.createAnimation({
-      ...options
-    });
-    this.currentStepAnimates = {};
-    this.next = 0;
-    this.$ = _this;
-  }
-  _nvuePushAnimates(type, args) {
-    let aniObj = this.currentStepAnimates[this.next];
-    let styles = {};
-    if (!aniObj) {
-      styles = {
-        styles: {},
-        config: {}
-      };
-    } else {
-      styles = aniObj;
-    }
-    if (animateTypes1.includes(type)) {
-      if (!styles.styles.transform) {
-        styles.styles.transform = "";
-      }
-      let unit = "";
-      if (type === "rotate") {
-        unit = "deg";
-      }
-      styles.styles.transform += `${type}(${args + unit}) `;
-    } else {
-      styles.styles[type] = `${args}`;
-    }
-    this.currentStepAnimates[this.next] = styles;
-  }
-  _animateRun(styles = {}, config = {}) {
-    let ref = this.$.$refs["ani"].ref;
-    if (!ref)
-      return;
-    return new Promise((resolve, reject) => {
-      nvueAnimation.transition(ref, {
-        styles,
-        ...config
-      }, (res) => {
-        resolve();
-      });
-    });
-  }
-  _nvueNextAnimate(animates, step = 0, fn) {
-    let obj = animates[step];
-    if (obj) {
-      let {
-        styles,
-        config
-      } = obj;
-      this._animateRun(styles, config).then(() => {
-        step += 1;
-        this._nvueNextAnimate(animates, step, fn);
-      });
-    } else {
-      this.currentStepAnimates = {};
-      typeof fn === "function" && fn();
-      this.isEnd = true;
-    }
-  }
-  step(config = {}) {
-    this.animation.step(config);
-    return this;
-  }
-  run(fn) {
-    this.$.animationData = this.animation.export();
-    this.$.timer = setTimeout(() => {
-      typeof fn === "function" && fn();
-    }, this.$.durationTime);
-  }
-}
-const animateTypes1 = [
-  "matrix",
-  "matrix3d",
-  "rotate",
-  "rotate3d",
-  "rotateX",
-  "rotateY",
-  "rotateZ",
-  "scale",
-  "scale3d",
-  "scaleX",
-  "scaleY",
-  "scaleZ",
-  "skew",
-  "skewX",
-  "skewY",
-  "translate",
-  "translate3d",
-  "translateX",
-  "translateY",
-  "translateZ"
-];
-const animateTypes2 = ["opacity", "backgroundColor"];
-const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"];
-animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => {
-  MPAnimation.prototype[type] = function(...args) {
-    this.animation[type](...args);
-    return this;
-  };
-});
-function createAnimation(option, _this) {
-  if (!_this)
-    return;
-  clearTimeout(_this.timer);
-  return new MPAnimation(option, _this);
-}
-exports.createAnimation = createAnimation;

+ 0 - 265
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.js

@@ -1,265 +0,0 @@
-"use strict";
-const uni_modules_uniTransition_components_uniTransition_createAnimation = require("./createAnimation.js");
-const common_vendor = require("../../../../common/vendor.js");
-const _sfc_main = {
-  name: "uniTransition",
-  emits: ["click", "change"],
-  props: {
-    show: {
-      type: Boolean,
-      default: false
-    },
-    modeClass: {
-      type: [Array, String],
-      default() {
-        return "fade";
-      }
-    },
-    duration: {
-      type: Number,
-      default: 300
-    },
-    styles: {
-      type: Object,
-      default() {
-        return {};
-      }
-    },
-    customClass: {
-      type: String,
-      default: ""
-    },
-    onceRender: {
-      type: Boolean,
-      default: false
-    }
-  },
-  data() {
-    return {
-      isShow: false,
-      transform: "",
-      opacity: 1,
-      animationData: {},
-      durationTime: 300,
-      config: {}
-    };
-  },
-  watch: {
-    show: {
-      handler(newVal) {
-        if (newVal) {
-          this.open();
-        } else {
-          if (this.isShow) {
-            this.close();
-          }
-        }
-      },
-      immediate: true
-    }
-  },
-  computed: {
-    // 生成样式数据
-    stylesObject() {
-      let styles = {
-        ...this.styles,
-        "transition-duration": this.duration / 1e3 + "s"
-      };
-      let transform = "";
-      for (let i in styles) {
-        let line = this.toLine(i);
-        transform += line + ":" + styles[i] + ";";
-      }
-      return transform;
-    },
-    // 初始化动画条件
-    transformStyles() {
-      return "transform:" + this.transform + ";opacity:" + this.opacity + ";" + this.stylesObject;
-    }
-  },
-  created() {
-    this.config = {
-      duration: this.duration,
-      timingFunction: "ease",
-      transformOrigin: "50% 50%",
-      delay: 0
-    };
-    this.durationTime = this.duration;
-  },
-  methods: {
-    /**
-     *  ref 触发 初始化动画
-     */
-    init(obj = {}) {
-      if (obj.duration) {
-        this.durationTime = obj.duration;
-      }
-      this.animation = uni_modules_uniTransition_components_uniTransition_createAnimation.createAnimation(Object.assign(this.config, obj), this);
-    },
-    /**
-     * 点击组件触发回调
-     */
-    onClick() {
-      this.$emit("click", {
-        detail: this.isShow
-      });
-    },
-    /**
-     * ref 触发 动画分组
-     * @param {Object} obj
-     */
-    step(obj, config = {}) {
-      if (!this.animation)
-        return;
-      for (let i in obj) {
-        try {
-          if (typeof obj[i] === "object") {
-            this.animation[i](...obj[i]);
-          } else {
-            this.animation[i](obj[i]);
-          }
-        } catch (e) {
-          console.error(`方法 ${i} 不存在`);
-        }
-      }
-      this.animation.step(config);
-      return this;
-    },
-    /**
-     *  ref 触发 执行动画
-     */
-    run(fn) {
-      if (!this.animation)
-        return;
-      this.animation.run(fn);
-    },
-    // 开始过度动画
-    open() {
-      clearTimeout(this.timer);
-      this.transform = "";
-      this.isShow = true;
-      let { opacity, transform } = this.styleInit(false);
-      if (typeof opacity !== "undefined") {
-        this.opacity = opacity;
-      }
-      this.transform = transform;
-      this.$nextTick(() => {
-        this.timer = setTimeout(() => {
-          this.animation = uni_modules_uniTransition_components_uniTransition_createAnimation.createAnimation(this.config, this);
-          this.tranfromInit(false).step();
-          this.animation.run();
-          this.$emit("change", {
-            detail: this.isShow
-          });
-        }, 20);
-      });
-    },
-    // 关闭过度动画
-    close(type) {
-      if (!this.animation)
-        return;
-      this.tranfromInit(true).step().run(() => {
-        this.isShow = false;
-        this.animationData = null;
-        this.animation = null;
-        let { opacity, transform } = this.styleInit(false);
-        this.opacity = opacity || 1;
-        this.transform = transform;
-        this.$emit("change", {
-          detail: this.isShow
-        });
-      });
-    },
-    // 处理动画开始前的默认样式
-    styleInit(type) {
-      let styles = {
-        transform: ""
-      };
-      let buildStyle = (type2, mode) => {
-        if (mode === "fade") {
-          styles.opacity = this.animationType(type2)[mode];
-        } else {
-          styles.transform += this.animationType(type2)[mode] + " ";
-        }
-      };
-      if (typeof this.modeClass === "string") {
-        buildStyle(type, this.modeClass);
-      } else {
-        this.modeClass.forEach((mode) => {
-          buildStyle(type, mode);
-        });
-      }
-      return styles;
-    },
-    // 处理内置组合动画
-    tranfromInit(type) {
-      let buildTranfrom = (type2, mode) => {
-        let aniNum = null;
-        if (mode === "fade") {
-          aniNum = type2 ? 0 : 1;
-        } else {
-          aniNum = type2 ? "-100%" : "0";
-          if (mode === "zoom-in") {
-            aniNum = type2 ? 0.8 : 1;
-          }
-          if (mode === "zoom-out") {
-            aniNum = type2 ? 1.2 : 1;
-          }
-          if (mode === "slide-right") {
-            aniNum = type2 ? "100%" : "0";
-          }
-          if (mode === "slide-bottom") {
-            aniNum = type2 ? "100%" : "0";
-          }
-        }
-        this.animation[this.animationMode()[mode]](aniNum);
-      };
-      if (typeof this.modeClass === "string") {
-        buildTranfrom(type, this.modeClass);
-      } else {
-        this.modeClass.forEach((mode) => {
-          buildTranfrom(type, mode);
-        });
-      }
-      return this.animation;
-    },
-    animationType(type) {
-      return {
-        fade: type ? 0 : 1,
-        "slide-top": `translateY(${type ? "0" : "-100%"})`,
-        "slide-right": `translateX(${type ? "0" : "100%"})`,
-        "slide-bottom": `translateY(${type ? "0" : "100%"})`,
-        "slide-left": `translateX(${type ? "0" : "-100%"})`,
-        "zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
-        "zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
-      };
-    },
-    // 内置动画类型与实际动画对应字典
-    animationMode() {
-      return {
-        fade: "opacity",
-        "slide-top": "translateY",
-        "slide-right": "translateX",
-        "slide-bottom": "translateY",
-        "slide-left": "translateX",
-        "zoom-in": "scale",
-        "zoom-out": "scale"
-      };
-    },
-    // 驼峰转中横线
-    toLine(name) {
-      return name.replace(/([A-Z])/g, "-$1").toLowerCase();
-    }
-  }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: $data.isShow,
-    b: $data.animationData,
-    c: common_vendor.n($props.customClass),
-    d: common_vendor.s($options.transformStyles),
-    e: common_vendor.o((...args) => $options.onClick && $options.onClick(...args))
-  };
-}
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]);
-tt.createComponent(Component);

+ 0 - 4
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.json

@@ -1,4 +0,0 @@
-{
-  "component": true,
-  "usingComponents": {}
-}

+ 0 - 1
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.ttml

@@ -1 +0,0 @@
-<view hidden="{{!a}}" ref="ani" animation="{{b}}" class="{{c}}" style="{{d}}" bindtap="{{e}}"><slot></slot></view>

+ 0 - 0
xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.ttss