future 1 ano atrás
pai
commit
56bd4ac8dd
82 arquivos alterados com 490 adições e 1755 exclusões
  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. 17 18
      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. 8 2
      xs-app/unpackage/dist/dev/mp-toutiao/app.js
  12. 9 8
      xs-app/unpackage/dist/dev/mp-toutiao/app.json
  13. 0 3
      xs-app/unpackage/dist/dev/mp-toutiao/app.ttss
  14. 252 776
      xs-app/unpackage/dist/dev/mp-toutiao/common/vendor.js
  15. 3 4
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.js
  16. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.json
  17. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttml
  18. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.ttss
  19. 4 4
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.js
  20. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.json
  21. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttml
  22. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/components/public/alertDialog.ttss
  23. 4 3
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.js
  24. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.json
  25. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttml
  26. 0 34
      xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.ttss
  27. 11 11
      xs-app/unpackage/dist/dev/mp-toutiao/config/config.js
  28. 0 10
      xs-app/unpackage/dist/dev/mp-toutiao/data/data.js
  29. 0 66
      xs-app/unpackage/dist/dev/mp-toutiao/framework/http.js
  30. 0 33
      xs-app/unpackage/dist/dev/mp-toutiao/framework/log.js
  31. 10 2
      xs-app/unpackage/dist/dev/mp-toutiao/framework/tools.js
  32. 0 125
      xs-app/unpackage/dist/dev/mp-toutiao/framework/util.js
  33. 3 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.js
  34. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.json
  35. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttml
  36. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookshelf/bookshelf.ttss
  37. 49 17
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.js
  38. 5 2
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.json
  39. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.ttml
  40. 43 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.ttss
  41. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.js
  42. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.json
  43. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttml
  44. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/mine/mine.ttss
  45. 8 3
      xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.js
  46. 0 8
      xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.json
  47. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.ttml
  48. 0 0
      xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.ttss
  49. 2 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.js
  50. 0 7
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.json
  51. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttml
  52. 0 23
      xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.ttss
  53. 0 16
      xs-app/unpackage/dist/dev/mp-toutiao/project.config.json
  54. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_0.png
  55. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_1.png
  56. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_0.png
  57. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_1.png
  58. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_0.png
  59. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_1.png
  60. BIN
      xs-app/unpackage/dist/dev/mp-toutiao/static/logo.png
  61. 0 19
      xs-app/unpackage/dist/dev/mp-toutiao/stores/readSetting.js
  62. 0 19
      xs-app/unpackage/dist/dev/mp-toutiao/stores/userDataManager.js
  63. 0 20
      xs-app/unpackage/dist/dev/mp-toutiao/stores/userStatusManager.js
  64. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.js
  65. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.json
  66. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttml
  67. 0 99
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.ttss
  68. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.js
  69. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.json
  70. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttml
  71. 0 75
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.ttss
  72. 0 28
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/i18n/index.js
  73. 0 26
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/popup.js
  74. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.js
  75. 0 6
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.json
  76. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttml
  77. 0 47
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-popup/components/uni-popup/uni-popup.ttss
  78. 0 115
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/createAnimation.js
  79. 1 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.js
  80. 0 4
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.json
  81. 0 1
      xs-app/unpackage/dist/dev/mp-toutiao/uni_modules/uni-transition/components/uni-transition/uni-transition.ttml
  82. 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){

+ 17 - 18
xs-app/pages.json

@@ -1,27 +1,27 @@
 {
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-		{
-			"path": "pages/bookstore/bookstore",
+		{
+			"path": "pages/bookshelf/bookshelf",
 			"style": {
-				"navigationStyle": "custom",
+				"navigationBarTitleText": "书架",
 				"app-plus": {
 					"bounce": "none"
 				}
-			}
+			}
 		},
-		{
-			"path": "pages/bookshelf/bookshelf",
+		{
+			"path": "pages/bookstore/bookstore",
 			"style": {
-				"navigationStyle": "custom",
+				"navigationBarTitleText": "书城",
 				"app-plus": {
 					"bounce": "none"
 				}
-			}
+			}
 		},
 		{
 			"path": "pages/mine/mine",
 			"style": {
-				"navigationStyle": "custom",
+				"navigationBarTitleText": "我的",
 				"app-plus": {
 					"bounce": "none"
 				}
@@ -43,27 +43,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"
-}

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

@@ -2,12 +2,18 @@
 Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
 const common_vendor = require("./common/vendor.js");
 const framework_tools = require("./framework/tools.js");
+require("./config/config.js");
+require("./framework/http.js");
+require("./stores/userDataManager.js");
+require("./data/data.js");
+require("./framework/log.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";
+  "./pages/search/search.js";
 }
 const _sfc_main = {
   onLaunch: function() {
@@ -20,7 +26,7 @@ const _sfc_main = {
     console.log("App Hide");
   }
 };
-const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/App.vue"]]);
+const App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-xs/xs-app/App.vue"]]);
 function createApp() {
   const app = common_vendor.createSSRApp(App);
   app.use(common_vendor.createPinia());

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

@@ -1,10 +1,11 @@
 {
   "pages": [
-    "pages/bookstore/bookstore",
     "pages/bookshelf/bookshelf",
+    "pages/bookstore/bookstore",
     "pages/mine/mine",
     "pages/readbook/read",
-    "pages/test/index"
+    "pages/test/index",
+    "pages/search/search"
   ],
   "window": {
     "navigationBarTextStyle": "black",
@@ -14,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;}

Diferenças do arquivo suprimidas por serem muito extensas
+ 252 - 776
xs-app/unpackage/dist/dev/mp-toutiao/common/vendor.js


+ 3 - 4
xs-app/unpackage/dist/dev/mp-toutiao/components/public/Message.js

@@ -14,9 +14,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "Message",
   props: ["messageText"],
   emits: ["onFinish"],
-  setup(__props, { emit: __emit }) {
+  setup(__props, { emit: emits }) {
     let msgType = common_vendor.ref("warn");
-    let emits = __emit;
     let duration = common_vendor.ref(2e3);
     const message = common_vendor.ref(null);
     common_vendor.onMounted(() => {
@@ -32,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           message: __props.messageText,
           duration: common_vendor.unref(duration)
         }),
-        b: common_vendor.sr(message, "20497f42-0", {
+        b: common_vendor.sr(message, "0a64f42e-0", {
           "k": "message"
         }),
         c: common_vendor.p({
@@ -42,5 +41,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/public/Message.vue"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-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


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

@@ -1,6 +1,7 @@
 "use strict";
 const common_vendor = require("../../common/vendor.js");
 const framework_log = require("../../framework/log.js");
+require("../../config/config.js");
 if (!Array) {
   const _easycom_uni_popup_dialog2 = common_vendor.resolveComponent("uni-popup-dialog");
   const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
@@ -15,9 +16,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "alertDialog",
   props: ["titleName", "contentText"],
   emits: ["dialogConfirm", "dialogClose"],
-  setup(__props, { emit: __emit }) {
+  setup(__props, { emit }) {
     const alertDialog = common_vendor.ref(null);
-    const emit = __emit;
     let msgType = common_vendor.ref("warn");
     function dialogClose() {
       emit("dialogClose");
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
           title: __props.titleName,
           content: __props.contentText
         }),
-        d: common_vendor.sr(alertDialog, "f97e55c2-0", {
+        d: common_vendor.sr(alertDialog, "577ff40b-0", {
           "k": "alertDialog"
         }),
         e: common_vendor.p({
@@ -54,5 +54,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/components/public/alertDialog.vue"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-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


+ 4 - 3
xs-app/unpackage/dist/dev/mp-toutiao/components/read/readPage.js

@@ -2,16 +2,17 @@
 const common_vendor = require("../../common/vendor.js");
 const stores_readSetting = require("../../stores/readSetting.js");
 const config_config = require("../../config/config.js");
+require("../../data/data.js");
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "readPage",
   props: ["text_content"],
-  setup(__props, { expose: __expose }) {
+  setup(__props, { expose }) {
     let read_setting_data = stores_readSetting.ReadSetting().getReadSetting();
     function showTopLoading() {
     }
     function showBottomLoading() {
     }
-    __expose({ showBottomLoading, showTopLoading });
+    expose({ showBottomLoading, showTopLoading });
     return (_ctx, _cache) => {
       return {
         a: __props.text_content,
@@ -22,5 +23,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-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"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2dec9c91"], ["__file", "/Users/future/Desktop/项目/uni-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="inner-box data-v-2dec9c91"><view class="book-inner data-v-2dec9c91" style="{{'font-size:' + b + ';' + ('line-height:' + c) + ';' + ('color:' + d)}}"><rich-text class="data-v-2dec9c91" nodes="{{a}}"/></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;
-}

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

@@ -1,31 +1,32 @@
 "use strict";
-const _config = class _config {
+const _config = class {
 };
-_config.Platform = {
+let config = _config;
+config.Platform = {
   WEIXIN: "WEIXIN",
   TOUTIAO: "TOUTIAO",
   H5: "H5"
 };
-_config.LOG_OPEN = true;
-_config.isTest = true;
-_config.stores_key = {
+config.LOG_OPEN = true;
+config.isTest = true;
+config.stores_key = {
   USER_DATA: "USER_DATA"
 };
-_config.URL_DEBUG = {
+config.URL_DEBUG = {
   Dynamic: "http://",
   Static: "http://"
 };
-_config.URL_RELEASE = {
+config.URL_RELEASE = {
   Dynamic: "http://",
   Static: "http://"
 };
-_config.url_addr = {
+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 = {
+config.url_confg = {
   /**
    * 动态
    */
@@ -38,10 +39,9 @@ _config.url_confg = {
     SUCCESS: 1e4
   }
 };
-_config.read_config = {
+config.read_config = {
   colorList: ["#000", "#666"],
   lineHeight: 1.8,
   fontSizeList: [12, 14, 16, 18, 20, 22, 24]
 };
-let config = _config;
 exports.config = config;

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

@@ -1,10 +0,0 @@
-"use strict";
-class user_data {
-}
-class user_status {
-}
-class read_setting_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;

+ 10 - 2
xs-app/unpackage/dist/dev/mp-toutiao/framework/tools.js

@@ -1,8 +1,9 @@
 "use strict";
+const common_vendor = require("../common/vendor.js");
 const config_config = require("../config/config.js");
 const framework_http = require("./http.js");
 const framework_log = require("./log.js");
-const _tools = class _tools {
+const _tools = class {
   static initPlatform() {
     _tools.platform = config_config.config.Platform.TOUTIAO;
     framework_log.log.Debug("当前运行平台:", _tools.platform);
@@ -10,6 +11,13 @@ const _tools = class _tools {
   static getCurPlatform() {
     return _tools.platform;
   }
+  static setNavigationBar() {
+    if (_tools.getCurPlatform() == config_config.config.Platform.TOUTIAO) {
+      common_vendor.index.setNavigationBarTitle({
+        title: "卿卿小屋"
+      });
+    }
+  }
   static getChapterList(chapter_path, cb) {
     framework_http.http.StaticRequest(chapter_path, (err, data) => {
       if (err) {
@@ -40,6 +48,6 @@ const _tools = class _tools {
     return character + text.replace(/\n\s*/g, character);
   }
 };
-_tools.platform = config_config.config.Platform.H5;
 let tools = _tools;
+tools.platform = config_config.config.Platform.H5;
 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;

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

@@ -4,6 +4,8 @@ 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");
+require("../../stores/userDataManager.js");
+require("../../data/data.js");
 const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
   __name: "bookshelf",
   setup(__props) {
@@ -44,5 +46,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/bookshelf/bookshelf.vue"]]);
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-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": "custom",
-  "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


+ 49 - 17
xs-app/unpackage/dist/dev/mp-toutiao/pages/bookstore/bookstore.js

@@ -1,25 +1,57 @@
 "use strict";
-const framework_util = require("../../framework/util.js");
 const common_vendor = require("../../common/vendor.js");
-const _sfc_main = {
-  data() {
-    return {};
-  },
-  onLoad() {
-  },
-  methods: {
-    onClickTest() {
+const framework_util = require("../../framework/util.js");
+const framework_tools = require("../../framework/tools.js");
+require("../../config/config.js");
+require("../../framework/log.js");
+require("../../framework/http.js");
+require("../../stores/userDataManager.js");
+require("../../data/data.js");
+if (!Math) {
+  (templateBook3 + templateBookList)();
+}
+const templateBook3 = () => "./template/template-book-3.js";
+const templateBookList = () => "./template/template-book-list.js";
+const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
+  __name: "bookstore",
+  setup(__props) {
+    let book_3_data_list = common_vendor.ref([]);
+    var bool = true;
+    common_vendor.onLoad((options) => {
+      console.log("bookstore-options=", options);
+      framework_tools.tools.setNavigationBar();
+      requestData(bool);
+    });
+    function requestData(is) {
+      if (is) {
+        book_3_data_list.value = ["4", "5", "6"];
+      } else {
+        book_3_data_list.value = ["1", "1", "1"];
+      }
+    }
+    function onClickTest() {
       framework_util.util.showLoading();
       setTimeout(() => {
         framework_util.util.hideLoading();
-      }, 1500);
+        bool = !bool;
+        requestData(bool);
+      }, 200);
+    }
+    function onClickNav() {
+      common_vendor.index.navigateTo({
+        url: "/pages/search/search?id=123"
+      });
     }
+    return (_ctx, _cache) => {
+      return {
+        a: common_vendor.o(onClickTest),
+        b: common_vendor.o(onClickNav),
+        c: common_vendor.p({
+          dataList: common_vendor.unref(book_3_data_list)
+        })
+      };
+    };
   }
-};
-function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
-  return {
-    a: common_vendor.o((...args) => $options.onClickTest && $options.onClickTest(...args))
-  };
-}
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/bookstore/bookstore.vue"]]);
+});
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-xs/xs-app/pages/bookstore/bookstore.vue"]]);
 tt.createPage(MiniProgramPage);

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

@@ -1,4 +1,7 @@
 {
-  "navigationStyle": "custom",
-  "usingComponents": {}
+  "navigationBarTitleText": "书城",
+  "usingComponents": {
+    "template-book3": "./template/template-book-3",
+    "template-book-list": "./template/template-book-list"
+  }
 }

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

@@ -1 +1 @@
-<view> 书城 </view><view style="display:flex;margin-top:30px;height:50px;font-size:30px;background-color:red;justify-content:center;align-items:center" bindtap="{{a}}"> 测试 </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="2e94a22c-0" bind:__l="__l" u-p="{{c}}"></template-book3><template-book-list u-i="2e94a22c-1" bind:__l="__l"></template-book-list></view></view>

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

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

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

@@ -4,5 +4,5 @@ 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"]]);
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/future/Desktop/项目/uni-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": "custom",
-  "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


+ 8 - 3
xs-app/unpackage/dist/dev/mp-toutiao/pages/readbook/read.js

@@ -2,6 +2,11 @@
 const common_vendor = require("../../common/vendor.js");
 const framework_tools = require("../../framework/tools.js");
 const stores_userStatusManager = require("../../stores/userStatusManager.js");
+require("../../config/config.js");
+require("../../framework/http.js");
+require("../../stores/userDataManager.js");
+require("../../data/data.js");
+require("../../framework/log.js");
 if (!Math) {
   readPage();
 }
@@ -65,12 +70,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
       return {
         a: common_vendor.f(common_vendor.unref(book_text_list), (text, index, i0) => {
           return {
-            a: common_vendor.sr(readPages, "b981acfa-0-" + i0, {
+            a: common_vendor.sr(readPages, "509fbf6f-0-" + i0, {
               "k": "readPages",
               "f": 1
             }),
             b: index,
-            c: "b981acfa-0-" + i0,
+            c: "509fbf6f-0-" + i0,
             d: common_vendor.p({
               text_content: text
             })
@@ -82,5 +87,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/xy/Desktop/uni_app_project/xs/xs-app/pages/readbook/read.vue"]]);
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/future/Desktop/项目/uni-xs/xs-app/pages/readbook/read.vue"]]);
 tt.createPage(MiniProgramPage);

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

@@ -1,8 +0,0 @@
-{
-  "navigationStyle": "custom",
-  "enablePullDownRefresh": true,
-  "onReachBottomDistance": 10,
-  "usingComponents": {
-    "read-page": "../../components/read/readPage"
-  }
-}

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

@@ -1 +0,0 @@
-<read-page tt:for="{{a}}" tt:for-item="text" tt:key="b" class="r-i-f" u-r="readPages" bindtouchend="{{b}}" bindtouchmove="{{c}}" u-i="{{text.c}}" bind:__l="__l" u-p="{{text.d}}"></read-page>

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


+ 2 - 1
xs-app/unpackage/dist/dev/mp-toutiao/pages/test/index.js

@@ -6,6 +6,7 @@ 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");
+require("../../framework/tools.js");
 if (!Math) {
   (alertDialog + MessageVue)();
 }
@@ -95,5 +96,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     };
   }
 });
-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"]]);
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b11b71c1"], ["__file", "/Users/future/Desktop/项目/uni-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": "custom",
-  "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
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_0.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookshelf_1.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_0.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/bookstore_1.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_0.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/imgs/tabBar/mine_1.png


BIN
xs-app/unpackage/dist/dev/mp-toutiao/static/logo.png


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

@@ -1,19 +0,0 @@
-"use strict";
-const common_vendor = require("../common/vendor.js");
-const data_data = require("../data/data.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;
-    }
-    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;

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

@@ -166,5 +166,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
     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"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/future/Desktop/项目/uni-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;
-}

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

@@ -56,5 +56,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
     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"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/future/Desktop/项目/uni-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;

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

@@ -389,5 +389,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
     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"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/future/Desktop/项目/uni-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;

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

@@ -261,5 +261,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
     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"]]);
+const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/future/Desktop/项目/uni-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


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff