├── ip.txt ├── platforms ├── ios │ ├── README.md │ └── WeexEros │ │ ├── WeexEros │ │ ├── bundle.zip │ │ ├── Assets.xcassets │ │ │ ├── Contents.json │ │ │ ├── Scan │ │ │ │ ├── Contents.json │ │ │ │ └── Scan_line.imageset │ │ │ │ │ ├── Scan_line@2x.png │ │ │ │ │ └── Contents.json │ │ │ ├── Navbar │ │ │ │ ├── Contents.json │ │ │ │ ├── NavBar_BackIcon.imageset │ │ │ │ │ ├── NavBar_BackIcon@2x.png │ │ │ │ │ ├── NavBar_BackIcon@3x.png │ │ │ │ │ └── Contents.json │ │ │ │ └── NavBar_BackItemIcon.imageset │ │ │ │ │ ├── NavBar_BackItemIcon@2x.png │ │ │ │ │ ├── NavBar_BackItemIcon@3x.png │ │ │ │ │ └── Contents.json │ │ │ ├── Other │ │ │ │ ├── Contents.json │ │ │ │ └── image_placeholder.imageset │ │ │ │ │ ├── image_placeholder@2x.png │ │ │ │ │ ├── image_placeholder@3x.png │ │ │ │ │ └── Contents.json │ │ │ ├── pullLoadding │ │ │ │ ├── Contents.json │ │ │ │ ├── loadding0001.imageset │ │ │ │ │ ├── loadding0001@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0002.imageset │ │ │ │ │ ├── loadding0002@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0003.imageset │ │ │ │ │ ├── loadding0003@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0004.imageset │ │ │ │ │ ├── loadding0004@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0005.imageset │ │ │ │ │ ├── loadding0005@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0006.imageset │ │ │ │ │ ├── loadding0006@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0007.imageset │ │ │ │ │ ├── loadding0007@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0008.imageset │ │ │ │ │ ├── loadding0008@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0009.imageset │ │ │ │ │ ├── loadding0009@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0010.imageset │ │ │ │ │ ├── loadding0010@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0011.imageset │ │ │ │ │ ├── loadding0011@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0012.imageset │ │ │ │ │ ├── loadding0012@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0013.imageset │ │ │ │ │ ├── loadding0013@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0014.imageset │ │ │ │ │ ├── loadding0014@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0015.imageset │ │ │ │ │ ├── loadding0015@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0016.imageset │ │ │ │ │ ├── loadding0016@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0017.imageset │ │ │ │ │ ├── loadding0017@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0018.imageset │ │ │ │ │ ├── loadding0018@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0019.imageset │ │ │ │ │ ├── loadding0019@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0020.imageset │ │ │ │ │ ├── loadding0020@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0021.imageset │ │ │ │ │ ├── loadding0021@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0022.imageset │ │ │ │ │ ├── loadding0022@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── loadding0023.imageset │ │ │ │ │ ├── loadding0023@2x.png │ │ │ │ │ └── Contents.json │ │ │ │ └── loadding0024.imageset │ │ │ │ │ ├── loadding0024@2x.png │ │ │ │ │ └── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── 640-1136.png │ │ │ │ ├── 640-960.png │ │ │ │ ├── 750-1334.png │ │ │ │ ├── 1125-2436.png │ │ │ │ ├── 1242-2208.png │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── 1024-1024store_1024pt.png │ │ │ │ ├── 1024-1024iPhoneApp_60pt@2x.png │ │ │ │ ├── 1024-1024iPhoneApp_60pt@3x.png │ │ │ │ ├── 1024-1024iPhoneNotification_20pt@2x.png │ │ │ │ ├── 1024-1024iPhoneNotification_20pt@3x.png │ │ │ │ ├── 1024-1024iPhoneSpootlight5_29pt@2x.png │ │ │ │ ├── 1024-1024iPhoneSpootlight5_29pt@3x.png │ │ │ │ ├── 1024-1024iPhoneSpootlight7_40pt@2x.png │ │ │ │ ├── 1024-1024iPhoneSpootlight7_40pt@3x.png │ │ │ │ └── Contents.json │ │ ├── WeexEros.entitlements │ │ ├── AppDelegate.h │ │ ├── en.lproj │ │ │ └── Launch Screen.strings │ │ ├── zh-Hans.lproj │ │ │ └── Launch Screen.strings │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── eros.native.json │ │ ├── Info.plist │ │ ├── bundle.config │ │ └── Base.lproj │ │ │ └── Launch Screen.storyboard │ │ ├── Podfile │ │ └── WeexEros.xcodeproj │ │ └── xcshareddata │ │ └── xcschemes │ │ └── WeexEros.xcscheme └── android │ ├── README.md │ └── WeexFrameworkWrapper │ ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── assets │ │ │ │ ├── bundle.zip │ │ │ │ ├── eros.native.json │ │ │ │ └── bundle.config │ │ │ ├── res │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_splash.png │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_splash.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── eros │ │ │ │ └── wx │ │ │ │ ├── App.java │ │ │ │ ├── activity │ │ │ │ └── SplashActivity.java │ │ │ │ └── wxapi │ │ │ │ ├── WXEntryActivity.java │ │ │ │ └── WXPayEntryActivity.java │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── eros │ │ │ │ └── wx │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── eros │ │ │ └── wx │ │ │ └── ExampleInstrumentedTest.java │ ├── samplechannel │ │ └── release │ │ │ └── output.json │ ├── proguard-rules.pro │ └── build.gradle │ ├── eros_demo.jks │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ ├── settings.gradle │ ├── build.gradle │ ├── install.sh │ └── gradlew.bat ├── src ├── assets │ ├── demo.jpg │ ├── TabBar_Item1@2x.png │ ├── TabBar_Item2@2x.png │ ├── TabBar_Item3@2x.png │ ├── TabBar_Item1_Selected@2x.png │ ├── TabBar_Item2_Selected@2x.png │ ├── TabBar_Item3_Selected@2x.png │ ├── test.html │ └── chart │ │ ├── bm-chart.html │ │ └── bmap.min.js ├── js │ ├── config │ │ ├── apis.js │ │ ├── push.js │ │ ├── index.js │ │ └── routes.js │ ├── pages │ │ └── demo │ │ │ ├── _mods │ │ │ ├── category.vue │ │ │ └── title.vue │ │ │ ├── components │ │ │ ├── header.vue │ │ │ ├── advanced.vue │ │ │ ├── uilib.vue │ │ │ ├── components.vue │ │ │ ├── expand.vue │ │ │ ├── notice.vue │ │ │ ├── core.vue │ │ │ ├── three.vue │ │ │ ├── profile.vue │ │ │ └── tools.vue │ │ │ ├── lifecycle │ │ │ ├── child.vue │ │ │ └── index.vue │ │ │ ├── event │ │ │ ├── a.vue │ │ │ └── b.vue │ │ │ ├── inputExtend │ │ │ └── index.vue │ │ │ ├── refresh │ │ │ └── index.vue │ │ │ ├── globalAttr │ │ │ └── index.vue │ │ │ ├── coms │ │ │ └── index.vue │ │ │ ├── bmrichtext │ │ │ └── index.vue │ │ │ ├── util.js │ │ │ ├── index.scss │ │ │ ├── notice │ │ │ └── index.vue │ │ │ ├── router │ │ │ ├── tabbarItem1.vue │ │ │ ├── config.js │ │ │ ├── tabbarItem2.vue │ │ │ └── tabbarItem3.vue │ │ │ ├── storage │ │ │ └── index.vue │ │ │ ├── assets │ │ │ └── index.vue │ │ │ ├── bmchart │ │ │ └── index.vue │ │ │ ├── other │ │ │ ├── bui.vue │ │ │ ├── config.js │ │ │ ├── weexui.vue │ │ │ └── wxc-item.vue │ │ │ ├── font │ │ │ └── index.vue │ │ │ ├── bmcalendar │ │ │ └── index.vue │ │ │ ├── index.vue │ │ │ └── image │ │ │ └── index.vue │ ├── mediator │ │ └── index.vue │ ├── components │ │ └── tabs │ │ │ ├── item.vue │ │ │ └── bar.vue │ └── css │ │ └── base.scss ├── iconfont │ ├── iconfont.ttf │ ├── iconfont-eros.ttf │ ├── font_1469606063_76593.ttf │ ├── font_zn5b3jswpofuhaor.ttf │ └── font_1469606522_9417143.woff └── mock │ ├── test2 │ └── info2.js │ └── test │ └── info.js ├── ISSUE_TEMPLATE.md ├── .editorconfig ├── CHANGELOG.md ├── .eslintrc ├── .babelrc ├── package.json ├── LICENSE ├── .gitmodules ├── .gitignore ├── scripts ├── update.ios.sh ├── update.android.sh ├── install.ios.sh └── install.android.sh └── config ├── eros.dev.js └── eros.native.js /ip.txt: -------------------------------------------------------------------------------- 1 | 192.168.15.32 -------------------------------------------------------------------------------- /platforms/ios/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /platforms/android/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /src/assets/demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/demo.jpg -------------------------------------------------------------------------------- /src/js/config/apis.js: -------------------------------------------------------------------------------- 1 | export default { 2 | 'COMMON.getInfo': '/test/info' 3 | } 4 | -------------------------------------------------------------------------------- /src/iconfont/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/iconfont/iconfont.ttf -------------------------------------------------------------------------------- /src/assets/TabBar_Item1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item1@2x.png -------------------------------------------------------------------------------- /src/assets/TabBar_Item2@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item2@2x.png -------------------------------------------------------------------------------- /src/assets/TabBar_Item3@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item3@2x.png -------------------------------------------------------------------------------- /src/iconfont/iconfont-eros.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/iconfont/iconfont-eros.ttf -------------------------------------------------------------------------------- /src/assets/TabBar_Item1_Selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item1_Selected@2x.png -------------------------------------------------------------------------------- /src/assets/TabBar_Item2_Selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item2_Selected@2x.png -------------------------------------------------------------------------------- /src/assets/TabBar_Item3_Selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/assets/TabBar_Item3_Selected@2x.png -------------------------------------------------------------------------------- /src/iconfont/font_1469606063_76593.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/iconfont/font_1469606063_76593.ttf -------------------------------------------------------------------------------- /src/iconfont/font_zn5b3jswpofuhaor.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/iconfont/font_zn5b3jswpofuhaor.ttf -------------------------------------------------------------------------------- /src/iconfont/font_1469606522_9417143.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/src/iconfont/font_1469606522_9417143.woff -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/bundle.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/bundle.zip -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Scan/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/eros_demo.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/eros_demo.jks -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/assets/bundle.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/assets/bundle.zip -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/mock/test2/info2.js: -------------------------------------------------------------------------------- 1 | module.exports = [{ 2 | 'delay': 500, 3 | 'response': { 4 | 'resCode': 0, 5 | 'msg': null, 6 | 'data': 'mock请求成功!' 7 | } 8 | }] 9 | -------------------------------------------------------------------------------- /src/mock/test/info.js: -------------------------------------------------------------------------------- 1 | module.exports = [{ 2 | 'delay': 500, 3 | 'response': { 4 | 'resCode': 0, 5 | 'msg': null, 6 | 'data': 'Mock data received!' 7 | } 8 | }] 9 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/drawable-xhdpi/ic_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/res/drawable-xhdpi/ic_splash.png -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/640-1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/640-1136.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/640-960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/640-960.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/750-1334.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/750-1334.png -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/android/WeexFrameworkWrapper/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/1125-2436.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/1125-2436.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/1242-2208.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/1242-2208.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Scan/Scan_line.imageset/Scan_line@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Scan/Scan_line.imageset/Scan_line@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024store_1024pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024store_1024pt.png -------------------------------------------------------------------------------- /src/js/config/push.js: -------------------------------------------------------------------------------- 1 | const globalEvent = weex.requireModule('globalEvent') 2 | 3 | /** 4 | * 消息推送 5 | * options 客户端个推推送的所有消息 6 | */ 7 | globalEvent.addEventListener('pushMessage', function (options) { 8 | 9 | }) 10 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneApp_60pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneApp_60pt@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneApp_60pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneApp_60pt@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackIcon.imageset/NavBar_BackIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackIcon.imageset/NavBar_BackIcon@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackIcon.imageset/NavBar_BackIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackIcon.imageset/NavBar_BackIcon@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0001.imageset/loadding0001@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0001.imageset/loadding0001@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0002.imageset/loadding0002@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0002.imageset/loadding0002@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0003.imageset/loadding0003@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0003.imageset/loadding0003@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0004.imageset/loadding0004@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0004.imageset/loadding0004@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0005.imageset/loadding0005@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0005.imageset/loadding0005@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0006.imageset/loadding0006@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0006.imageset/loadding0006@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0007.imageset/loadding0007@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0007.imageset/loadding0007@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0008.imageset/loadding0008@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0008.imageset/loadding0008@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0009.imageset/loadding0009@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0009.imageset/loadding0009@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0010.imageset/loadding0010@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0010.imageset/loadding0010@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0011.imageset/loadding0011@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0011.imageset/loadding0011@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0012.imageset/loadding0012@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0012.imageset/loadding0012@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0013.imageset/loadding0013@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0013.imageset/loadding0013@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0014.imageset/loadding0014@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0014.imageset/loadding0014@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0015.imageset/loadding0015@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0015.imageset/loadding0015@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0016.imageset/loadding0016@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0016.imageset/loadding0016@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0017.imageset/loadding0017@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0017.imageset/loadding0017@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0018.imageset/loadding0018@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0018.imageset/loadding0018@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0019.imageset/loadding0019@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0019.imageset/loadding0019@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0020.imageset/loadding0020@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0020.imageset/loadding0020@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0021.imageset/loadding0021@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0021.imageset/loadding0021@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0022.imageset/loadding0022@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0022.imageset/loadding0022@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0023.imageset/loadding0023@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0023.imageset/loadding0023@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0024.imageset/loadding0024@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0024.imageset/loadding0024@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneNotification_20pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneNotification_20pt@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneNotification_20pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneNotification_20pt@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight5_29pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight5_29pt@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight5_29pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight5_29pt@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight7_40pt@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight7_40pt@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight7_40pt@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/1024-1024iPhoneSpootlight7_40pt@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/image_placeholder.imageset/image_placeholder@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/image_placeholder.imageset/image_placeholder@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/image_placeholder.imageset/image_placeholder@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/image_placeholder.imageset/image_placeholder@3x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackItemIcon.imageset/NavBar_BackItemIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackItemIcon.imageset/NavBar_BackItemIcon@2x.png -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackItemIcon.imageset/NavBar_BackItemIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bmfe/eros/HEAD/platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackItemIcon.imageset/NavBar_BackItemIcon@3x.png -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WeexEros 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/samplechannel/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-samplechannel-release.apk","properties":{"packageId":"com.benmu.wx","split":"","minSdkVersion":"14"}}] -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Nov 21 18:48:24 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/WeexEros.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | 8 | 9 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WeexEros 4 | // 5 | // Created by XHY on 2017/8/7. 6 | // Copyright © 2017年 Byte Master. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface AppDelegate : BMAppDelegate 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/en.lproj/Launch Screen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "WeexEros"; ObjectID = "GJd-Yh-RWb"; */ 3 | "GJd-Yh-RWb.text" = "WeexEros"; 4 | 5 | /* Class = "UILabel"; text = "Copyright © 2017年 Byte Master. All rights reserved."; ObjectID = "obG-Y5-kRd"; */ 6 | "obG-Y5-kRd.text" = "Copyright © 2017年 Byte Master. All rights reserved."; 7 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/zh-Hans.lproj/Launch Screen.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "UILabel"; text = "WeexEros"; ObjectID = "GJd-Yh-RWb"; */ 3 | "GJd-Yh-RWb.text" = "WeexEros"; 4 | 5 | /* Class = "UILabel"; text = "Copyright © 2017年 Byte Master. All rights reserved."; ObjectID = "obG-Y5-kRd"; */ 6 | "obG-Y5-kRd.text" = "Copyright © 2017年 Byte Master. All rights reserved."; 7 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Your questions. 2 | - 3 | - 4 | ### Environment. 5 | - Mobile model: iphoneX 6 | - Mobile system: iOS 8 7 | - Dev platform: darwin\/windows/linux 8 | - Node: 8.x.x 9 | - Npm: 5.x.x 10 | 11 | 12 | 13 | ### What do you think may be caused by the analysis of the problem. 14 | - 15 | - 16 | 17 | ### Reappearance of the problem (It's best to have a screenshot). 18 | - -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WeexEros 4 | // 5 | // Created by XHY on 2017/8/7. 6 | // Copyright © 2017年 Byte Master. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset = utf-8 3 | indent_style = space 4 | indent_size = 4 5 | end_of_line = lf 6 | insert_final_newline = true 7 | trim_trailing_whitespace = true 8 | 9 | [{.eslintrc,.babelrc,.stylelintrc,jest.config,*.json,*.jsb3,*.jsb2,*.bowerrc}] 10 | indent_style=space 11 | indent_size=2 12 | 13 | [*.scss] 14 | indent_style=space 15 | indent_size=2 16 | 17 | [{.analysis_options,*.yml,*.yaml}] 18 | indent_style=space 19 | indent_size=2 20 | 21 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Scan/Scan_line.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Scan_line@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0001.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0001@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0002.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0002@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0003.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0003@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0004.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0004@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0005.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0005@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0006.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0006@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0007.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0007@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0008.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0008@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0009.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0009@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0010.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0010@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0011.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0011@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0012.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0012@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0013.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0013@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0014.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0014@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0015.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0015@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0016.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0016@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0017.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0017@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0018.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0018@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0019.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0019@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0020.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0020@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0021.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0021@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0022.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0022@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0023.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0023@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/pullLoadding/loadding0024.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "loadding0024@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/java/com/eros/wx/App.java: -------------------------------------------------------------------------------- 1 | package com.eros.wx; 2 | 3 | import android.app.Application; 4 | 5 | import com.eros.framework.BMWXApplication; 6 | 7 | /** 8 | * Created by Carry on 2017/8/23. 9 | */ 10 | 11 | public class App extends BMWXApplication { 12 | public Application mInstance; 13 | 14 | @Override 15 | public void onCreate() { 16 | super.onCreate(); 17 | mInstance = this; 18 | 19 | 20 | 21 | 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/test/java/com/eros/wx/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.benmu.wx; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "NavBar_BackIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "NavBar_BackIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Other/image_placeholder.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "image_placeholder@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "image_placeholder@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/Navbar/NavBar_BackItemIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "NavBar_BackItemIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "NavBar_BackItemIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1-beta.3 2 | * [optimize] support bui-weex. 3 | 4 | ## 2018-03-22 5 | * 模板更新: 全新 demo 6 | 7 | ## 2018-03-14 8 | * 模板更新: 更新 weex-ui demo 9 | * 模板更新: 添加 bindindx demo 10 | ## 2018-03-05 11 | * 模板更新: 删除所有if (process.env.NODE_ENV === 'development') require('Config'); 12 | * 模板更新: 添加 ios 项目 schemes,platforms/ios/WeexEros/WeexEros.xcodeproj/xcshareddata/ 13 | ## 2018-02-01 14 | * 模板更新: 全新 demo 15 | * 模板更新: 添加 scripts 文件夹 内置脚本 16 | 17 | ## 2017-12-29 18 | * 模板更新: widget 更新优化 19 | * 模板更新: 移除__eros__文件夹 不再需要 20 | * 模板更新: 支持 npm install weex-ui 来使用 -------------------------------------------------------------------------------- /src/js/pages/demo/_mods/category.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 22 | 23 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WeexEros 4 | // 5 | // Created by XHY on 2017/8/7. 6 | // Copyright © 2017年 Byte Master. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | BOOL result = [super application:application didFinishLaunchingWithOptions:launchOptions]; 20 | 21 | //do something 22 | 23 | return result; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /src/assets/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 测试 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 26 | 27 | > -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536m 2 | android.enableAapt2=false 3 | APPLICATION_ID=com.benmu.wx 4 | GRADLE_TOOL_VERSION=3.0.0 5 | GRADLE_VERSION=https\://services.gradle.org/distributions/gradle-4.1-all.zip 6 | MIN_SDK_VERSION=14 7 | TARGET_SDK_VERSION=25 8 | COMPILE_SDK_VERSION=25 9 | BUILD_TOOLS_VERSION=26.0.2 10 | PROJECT_SUPPORTLIBVERSION=25.3.1 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | #start 37 | UMENG_APPKEY= 38 | GETUI_APPID= 39 | GETUI_APPKEY= 40 | GETTUI_APPSECRET= 41 | #end 42 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "es6": true, 4 | "node": true, 5 | "mocha": true, 6 | "browser": true 7 | }, 8 | "plugins": [ 9 | "html" 10 | ], 11 | "parserOptions": { 12 | "sourceType": "module" 13 | }, 14 | "globals": { 15 | "weex": true, 16 | "Vue": true 17 | }, 18 | "rules": { 19 | "semi": "off", 20 | "indent": 0, 21 | "quotes": [ "error", "single" ], 22 | "no-control-regex": 0, 23 | "no-extend-native": 0, 24 | "handle-callback-err": 0, 25 | "camelcase": 0, 26 | "no-return-assign": [ 2, "except-parens" ] 27 | }, 28 | "extends": [ 29 | "vue" 30 | ], 31 | "parser": "babel-eslint" 32 | } 33 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/header.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 14 | 15 | 39 | -------------------------------------------------------------------------------- /src/js/pages/demo/_mods/title.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 26 | 27 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/Carry/Documents/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/advanced.vue: -------------------------------------------------------------------------------- 1 | 12 | 27 | 28 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':wxframework' , ':sdk', ':nexus',':ErosPluginAmap',':erosplugingt',':erospluginwxpay',':erospluginumeng' 2 | 3 | project(':wxframework').projectDir = new File(settingsDir,'/wxframework/eros-framework') 4 | project(':sdk').projectDir = new File(settingsDir,'/nexus/sdk') 5 | project(':nexus').projectDir = new File(settingsDir,'/nexus/nexus') 6 | project(':ErosPluginAmap').projectDir = new File(settingsDir,'/ErosPluginAmap/ErosPluginAmap') 7 | project(':erosplugingt').projectDir = new File(settingsDir,'/erosplugingt/erosplugingt') 8 | project(':erospluginwxpay').projectDir = new File(settingsDir,'/erospluginwxpay/library-wxpay') 9 | project(':erospluginumeng').projectDir = new File(settingsDir,'/erospluginumeng/library-wxshare') 10 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "targets": { 5 | "modules": false, 6 | "loose": true, 7 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 8 | } 9 | }], 10 | "stage-0" 11 | ], 12 | "plugins": [ 13 | ["import",[{ 14 | "libraryName": "weex-ui", 15 | "libraryDirectory": "packages", 16 | "style": false 17 | }, { 18 | "libraryName": "bui-weex", 19 | "libraryDirectory": "src/components", 20 | "style": false 21 | }]], 22 | ["transform-runtime", { 23 | "polyfill": false, 24 | "helpers": false 25 | }] 26 | ], 27 | "env": { 28 | "test": { 29 | "presets": ["env", "stage-0"], 30 | "plugins": ["istanbul"] 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/js/mediator/index.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eros", 3 | "version": "1.0.0", 4 | "description": "Eros can help developers build app quickly.", 5 | "main": "index.js", 6 | "keywords": [ 7 | "weex" 8 | ], 9 | "author": "Zero", 10 | "license": "MIT", 11 | "dependencies": { 12 | "bui-weex": "^0.2.5", 13 | "eros-widget": "^1.0.2-beta.2", 14 | "weex-ui": "^0.6.0beta-2" 15 | }, 16 | "devDependencies": { 17 | "babel-core": "6.26.0", 18 | "babel-eslint": "^8.2.2", 19 | "babel-plugin-import": "^1.6.7", 20 | "babel-plugin-transform-runtime": "~6.23.0", 21 | "babel-preset-env": "~1.5.2", 22 | "babel-preset-stage-0": "^6.24.1", 23 | "babel-register": "^6.22.0", 24 | "bindingx-parser": "0.0.x", 25 | "eslint": "^4.17.0", 26 | "eslint-plugin-html": "^4.0.2", 27 | "eslint-plugin-vue": "^4.3.0" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/androidTest/java/com/eros/wx/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.benmu.wx; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.benmu.wxframework", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | google() 7 | mavenCentral() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.0.0' 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | jcenter() 20 | google() 21 | mavenCentral() 22 | maven { url "https://jitpack.io" } 23 | maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/uilib.vue: -------------------------------------------------------------------------------- 1 | 18 | 32 | 33 | -------------------------------------------------------------------------------- /src/js/pages/demo/lifecycle/child.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 39 | 40 | 43 | -------------------------------------------------------------------------------- /src/js/pages/demo/event/a.vue: -------------------------------------------------------------------------------- 1 | 13 | 39 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "执行 git submodule update --init --recursive " 4 | git submodule update --init --recursive 5 | 6 | echo "切换主分支" 7 | # git clone https://github.com/bmfe/WeexErosFramework.git "wxframework" 8 | 9 | # git clone https://github.com/bmfe/eros-nexus.git "nexus" 10 | 11 | # git clone https://github.com/bmfe/eros-plugin-android-amap.git "ErosPluginAmap" 12 | 13 | # git clone https://github.com/bmfe/eros-plugin-android-getui.git "erosplugingt" 14 | 15 | # git clone https://github.com/bmfe/eros-plugin-android-wxpay.git "erospluginwxpay" 16 | 17 | # git clone https://github.com/bmfe/eros-plugin-android-wxshare.git "erospluginumeng" 18 | 19 | cd wxframework 20 | git checkout master 21 | cd ../ 22 | 23 | cd nexus 24 | git checkout master 25 | cd ../ 26 | 27 | cd ErosPluginAmap 28 | git checkout master 29 | cd ../ 30 | 31 | cd erosplugingt 32 | git checkout master 33 | cd ../ 34 | 35 | cd erospluginwxpay 36 | git checkout master 37 | cd ../ 38 | 39 | cd erospluginumeng 40 | git checkout master 41 | cd ../ 42 | 43 | 44 | echo "依赖库更新完成" -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 本木医疗大前端 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | platform :ios, '8.0' 3 | #忽略引入库的警告 4 | inhibit_all_warnings! 5 | 6 | def common 7 | #WeexSDK 8 | pod 'WeexSDK', :git => 'https://github.com/bmfe/incubator-weex.git' 9 | # pod 'WeexSDK', :path => 'ErosiOSPlugin/incubator-weex/' 10 | 11 | #Weex debugger 调试工具,只在开发模式集成 12 | pod 'WXDevtool', :git => 'https://github.com/bmfe/weex-devtool-iOS.git', :configurations => ['Debug'] 13 | # pod 'WXDevtool', :path => 'ErosiOSPlugin/weex-devtool-iOS', :configurations => ['Debug'] 14 | 15 | #Eros iOS 基础库 16 | pod 'ErosPluginBaseLibrary', :git => 'https://github.com/bmfe/eros-plugin-ios-baseLibrary.git', :tag => '1.3.5' 17 | # pod 'ErosPluginBaseLibrary', :path => 'ErosiOSPlugin/eros-plugin-ios-baseLibrary/' 18 | 19 | #Other Plugins 20 | # pod 'ErosPluginGeTui', :path => 'ErosiOSPlugin/eros-plugin-ios-getui/' 21 | # pod 'ErosPluginWXShare', :path => 'ErosiOSPlugin/eros-plugin-ios-wxshare/' 22 | # pod 'ErosPluginWXPay', :path => 'ErosiOSPlugin/eros-plugin-ios-wxpay/' 23 | 24 | end 25 | 26 | target 'WeexEros' do 27 | common 28 | end 29 | -------------------------------------------------------------------------------- /src/js/components/tabs/item.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 38 | 39 | -------------------------------------------------------------------------------- /src/js/pages/demo/lifecycle/index.vue: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /src/js/pages/demo/event/b.vue: -------------------------------------------------------------------------------- 1 | 2 | 18 | 40 | 48 | 49 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "template"] 2 | path = template 3 | url = https://github.com/bmfe/eros-template 4 | [submodule "src/js/widgets"] 5 | path = src/js/widgets 6 | url = https://github.com/bmfe/eros-widget.git 7 | [submodule "platforms/android/WeexFrameworkWrapper/wxframework"] 8 | path = platforms/android/WeexFrameworkWrapper/wxframework 9 | url = https://github.com/bmfe/WeexErosFramework.git 10 | [submodule "platforms/android/WeexFrameworkWrapper/nexus"] 11 | path = platforms/android/WeexFrameworkWrapper/nexus 12 | url = https://github.com/bmfe/eros-nexus.git 13 | [submodule "platforms/android/WeexFrameworkWrapper/ErosPluginAmap"] 14 | path = platforms/android/WeexFrameworkWrapper/ErosPluginAmap 15 | url = https://github.com/bmfe/eros-plugin-android-amap.git 16 | [submodule "platforms/android/WeexFrameworkWrapper/erosplugingt"] 17 | path = platforms/android/WeexFrameworkWrapper/erosplugingt 18 | url = https://github.com/bmfe/eros-plugin-android-getui.git 19 | [submodule "platforms/android/WeexFrameworkWrapper/erospluginwxpay"] 20 | path = platforms/android/WeexFrameworkWrapper/erospluginwxpay 21 | url = https://github.com/bmfe/eros-plugin-android-wxpay.git 22 | [submodule "platforms/android/WeexFrameworkWrapper/erospluginumeng"] 23 | path = platforms/android/WeexFrameworkWrapper/erospluginumeng 24 | url = https://github.com/bmfe/eros-plugin-android-wxshare.git 25 | -------------------------------------------------------------------------------- /src/js/config/index.js: -------------------------------------------------------------------------------- 1 | import Widget from 'eros-widget' 2 | import apis from './apis' 3 | import routes from './routes' 4 | import './push' 5 | 6 | new Widget({ 7 | router: { 8 | /** 9 | * 路由配置表 10 | */ 11 | routes 12 | }, 13 | ajax: { 14 | baseUrl: 'http://app.weex-eros.com:52077', 15 | /** 16 | * 接口别名 17 | */ 18 | apis, 19 | // 接口超时时间 20 | timeout: 30000, 21 | 22 | /** 23 | * 请求发送统一拦截器 (可选) 24 | * options 你请求传入的所有参数和配置 25 | * next 26 | */ 27 | requestHandler (options, next) { 28 | console.log('request-opts', options) 29 | next() 30 | }, 31 | /** 32 | * 请求返回统一拦截器 (可选) 33 | * options 你请求传入的所有参数和配置 34 | * resData 服务器端返回的所有数据 35 | * resolve 请求成功请resolve你得结果,这样请求的.then中的成功回调就能拿到你resolve的数据 36 | * reject 请求成功请resolve你得结果,这样请求的.then中的失败回调就能拿到你reject的数据 37 | */ 38 | responseHandler (options, resData, resolve, reject) { 39 | const { status, errorMsg, data } = resData 40 | if (status !== 200) { 41 | console.log(`invoke error status: ${status}`) 42 | console.log(`invoke error message: ${errorMsg}`) 43 | reject(resData) 44 | } else { 45 | // 自定义请求逻辑 46 | resolve(data) 47 | } 48 | } 49 | } 50 | }) 51 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/components.vue: -------------------------------------------------------------------------------- 1 | 30 | 47 | 48 | -------------------------------------------------------------------------------- /src/js/pages/demo/inputExtend/index.vue: -------------------------------------------------------------------------------- 1 | 15 | 36 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "2436h", 7 | "filename" : "1125-2436.png", 8 | "minimum-system-version" : "11.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "1242-2208.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "portrait", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "750-1334.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "640-960.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "640-1136.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | } 47 | ], 48 | "info" : { 49 | "version" : 1, 50 | "author" : "xcode" 51 | } 52 | } -------------------------------------------------------------------------------- /src/js/pages/demo/refresh/index.vue: -------------------------------------------------------------------------------- 1 | 15 | 43 | 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Created by IDE 2 | .DS_Store 3 | .idea/ 4 | *.iml 5 | 6 | docs 7 | 8 | .* 9 | !.gitignore 10 | !.eslintrc 11 | !.editorconfig 12 | !.babelrc 13 | 14 | # Node 15 | eros-widget/ 16 | logs 17 | *.log 18 | npm-debug.log* 19 | .npm 20 | node_modules 21 | dist 22 | bower_components 23 | 24 | # Runtime data 25 | pids 26 | *.pid 27 | *.seed 28 | 29 | # Android 30 | # built application files 31 | *.apk 32 | *.ap_ 33 | wxframework 34 | sdk 35 | bmwidget 36 | # files for the dex VM 37 | *.dex 38 | 39 | # Java class files 40 | *.class 41 | 42 | # generated files 43 | bin/ 44 | gen/ 45 | 46 | # Local configuration file (sdk path, etc) 47 | local.properties 48 | sign.properties 49 | 50 | # Eclipse project files 51 | .classpath 52 | .project 53 | 54 | # Android Studio 55 | .idea/ 56 | .gradle 57 | /*/local.properties 58 | /*/outd 59 | build/ 60 | .idea/ 61 | .gradle/ 62 | android/playground/local.properties 63 | 64 | /*/*/production 65 | *.iml 66 | *.iws 67 | *.ipr 68 | *~ 69 | *.swp 70 | # END Android 71 | 72 | # IOS 73 | # Xcode 74 | */build/* 75 | *.pbxuser 76 | *.pbxprog 77 | !default.pbxuser 78 | *.mode1v3 79 | !default.mode1v3 80 | *.mode2v3 81 | !default.mode2v3 82 | *.perspectivev3 83 | !default.perspectivev3 84 | xcuserdata 85 | profile 86 | *.moved-aside 87 | DerivedData 88 | .idea/ 89 | *.hmap 90 | WeexiOSSDK 91 | Benmu-iOS-Library 92 | ErosiOSPlugin 93 | 94 | #CocoaPods 95 | Pods 96 | 97 | *.xccheckout 98 | *.xcworkspacedata 99 | *.xcworkspace 100 | Podfile.lock 101 | # END IOS 102 | -------------------------------------------------------------------------------- /scripts/update.ios.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eros_prefix="[\033[34meros\033[0m]" 4 | 5 | function error_exit { 6 | echo "--------------------------------------------" 7 | echo -e "\033[31m Error code is $1 \033[0m" 1>&2 8 | echo "" 9 | echo " Code tips: " 10 | echo -e "\033[33m1 -> platforms/ios/WeexEros/ is not existed. \033[0m" 11 | echo -e "\033[33m2 -> cannot git pull platforms/ios/WeexEros/WeexiOSSDK, you can try a manual operation. \033[0m" 12 | echo -e "\033[33m3 -> cannot git pull platforms/ios/WeexEros/Benmu-iOS-Library, you can try a manual operation. \033[0m" 13 | echo -e "\033[33m4 -> pod update failed. \033[0m" 14 | echo -e "\033[33m5 -> run open xcode failed, make sure you had install xcode in appStore. \033[0m" 15 | exit 1 16 | } 17 | 18 | cd platforms/ios/WeexEros/ || \ 19 | error_exit 1 20 | echo -e "$eros_prefix \033[33m tips: make sure xcode had been closed.\033[0m" 21 | echo -e "$eros_prefix Enter ios project" 22 | 23 | if [ -e WeexiOSSDK/ ] && [ -e Benmu-iOS-Library/ ] 24 | then 25 | echo -e "$eros_prefix Start to updating." 26 | cd WeexiOSSDK/ && git pull || error_exit 2 27 | cd ../Benmu-iOS-Library/ && git pull || error_exit 3 28 | cd .. 29 | echo -e "$eros_prefix Run pod update and show some update detail:" 30 | pod update --no-ansi || error_exit 4 31 | echo -e "$eros_prefix \033[32miOS sdk has been updated, enjoy it! \033[0m" 32 | open WeexEros.xcworkspace || error_exit 5 33 | else 34 | echo -e "$eros_prefix No WeexiOSSDK or Benmu-iOS-Library file, make sure you had been run eros install." 35 | fi 36 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/java/com/eros/wx/activity/SplashActivity.java: -------------------------------------------------------------------------------- 1 | package com.eros.wx.activity; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import com.eros.framework.proxy.SplashActivityProxy; 6 | import com.eros.wx.R; 7 | 8 | /** 9 | * Created by Carry on 2017/8/23. 10 | */ 11 | 12 | public class SplashActivity extends Activity { 13 | private SplashActivityProxy activityProxy; 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.activity_splash); 19 | activityProxy = new SplashActivityProxy(); 20 | activityProxy.onCreateInit(this); 21 | } 22 | 23 | @Override 24 | protected void onStart() { 25 | super.onStart(); 26 | activityProxy.onStart(this); 27 | } 28 | 29 | @Override 30 | protected void onResume() { 31 | super.onResume(); 32 | activityProxy.onResume(this); 33 | } 34 | 35 | @Override 36 | protected void onRestart() { 37 | super.onRestart(); 38 | activityProxy.onRestart(this); 39 | } 40 | 41 | @Override 42 | protected void onPause() { 43 | super.onPause(); 44 | activityProxy.onPause(this); 45 | } 46 | 47 | @Override 48 | protected void onStop() { 49 | super.onStop(); 50 | activityProxy.onStop(this); 51 | } 52 | 53 | @Override 54 | protected void onDestroy() { 55 | super.onDestroy(); 56 | activityProxy.onDestroy(this); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/expand.vue: -------------------------------------------------------------------------------- 1 | 36 | 50 | 51 | -------------------------------------------------------------------------------- /scripts/update.android.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eros_prefix="[\033[34meros\033[0m]" 4 | 5 | function error_exit { 6 | echo "--------------------------------------------" 7 | echo -e "\033[31m Error code is $1 \033[0m" 1>&2 8 | echo "" 9 | echo " Code tips: " 10 | echo -e "\033[33m1 -> platforms/android/WeexFrameworkWrapper/ is not existed. \033[0m" 11 | echo -e "\033[33m2 -> cannot cannot git pull platforms/android/WeexFrameworkWrapper/wxframework, you can try a manual operation. \033[0m" 12 | echo -e "\033[33m3 -> cannot cannot git pull platforms/android/WeexFrameworkWrapper/sdk, you can try a manual operation. \033[0m" 13 | echo -e "\033[33m4 -> cannot cannot git pull platforms/android/WeexFrameworkWrapper/nexus, you can try a manual operation. \033[0m" 14 | echo -e "\033[33m5 -> cannot cannot git pull platforms/android/WeexFrameworkWrapper/ErosPluginAmap, you can try a manual operation. \033[0m" 15 | exit 1 16 | } 17 | 18 | cd platforms/android/WeexFrameworkWrapper/ || \ 19 | error_exit 1 20 | echo -e "$eros_prefix Enter android project" 21 | if [ -e wxframework/ ] || [ -e sdk/ ] || [ -e nexus/ ] || [ -e ErosPluginAmap/ ] 22 | then 23 | echo -e "$eros_prefix Start to updating." 24 | cd wxframework/ && git pull || error_exit 2 25 | cd ../sdk/ && git pull || error_exit 3 26 | cd ../nexus/ && git pull || error_exit 4 27 | cd ../ErosPluginAmap/ && git pull || error_exit 5 28 | cd .. 29 | echo -e "$eros_prefix \033[32mAndroid sdk has been updated, enjoy it! \033[0m" 30 | else 31 | echo -e "$eros_prefix No wxframework, sdk or bmwidget file, make sure you had been run eros install." 32 | fi 33 | -------------------------------------------------------------------------------- /src/js/pages/demo/globalAttr/index.vue: -------------------------------------------------------------------------------- 1 | 19 | 43 | 51 | -------------------------------------------------------------------------------- /src/js/pages/demo/coms/index.vue: -------------------------------------------------------------------------------- 1 | 14 | 51 | 54 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "1024-1024iPhoneNotification_20pt@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "1024-1024iPhoneNotification_20pt@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "1024-1024iPhoneSpootlight5_29pt@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "1024-1024iPhoneSpootlight5_29pt@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "1024-1024iPhoneSpootlight7_40pt@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "1024-1024iPhoneSpootlight7_40pt@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "1024-1024iPhoneApp_60pt@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "1024-1024iPhoneApp_60pt@3x.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "1024x1024", 53 | "idiom" : "ios-marketing", 54 | "filename" : "1024-1024store_1024pt.png", 55 | "scale" : "1x" 56 | } 57 | ], 58 | "info" : { 59 | "version" : 1, 60 | "author" : "xcode" 61 | } 62 | } -------------------------------------------------------------------------------- /src/js/pages/demo/bmrichtext/index.vue: -------------------------------------------------------------------------------- 1 | 2 | 26 | 34 | 59 | 60 | -------------------------------------------------------------------------------- /src/js/css/base.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * 这里编写 sass 之后,可在 vue 的 style 标签中通过 @import 相对路径引入 3 | * 注意 style 标签的 lang 属性需要设置为 scss/sass 4 | */ 5 | 6 | .wrapper { 7 | flex-direction: row; 8 | justify-content: space-around; 9 | } 10 | 11 | .button { 12 | text-align: center; 13 | border-style: solid; 14 | color: #ffffff; 15 | border-color: #1da1f2; 16 | border-radius: 15px; 17 | background-color: #1da1f2; 18 | } 19 | 20 | 21 | .button-big { 22 | width: 400px; 23 | height: 90px; 24 | margin-top: 60; 25 | font-size: 34px; 26 | padding-top: 25px; 27 | border-width: 2px; 28 | } 29 | 30 | .button-small { 31 | width: 180px; 32 | height: 80px; 33 | margin-top: 30px; 34 | font-size: 32px; 35 | padding-top: 18px; 36 | border-width: 1px; 37 | } 38 | 39 | .label { 40 | width: 500px; 41 | height: 80px; 42 | /*top: 70px;*/ 43 | margin-top: 40px; 44 | font-size: 34px; 45 | text-align: center; 46 | color: #7d7d7d; 47 | font-weight: 500; 48 | } 49 | 50 | .layout { 51 | width: 500px; 52 | height: 80px; 53 | margin-top: 50px; 54 | padding-left: 10px; 55 | color: #000000; 56 | font-size: 34px; 57 | border-width: 1px; 58 | border-radius: 12px; 59 | } 60 | 61 | .panel { 62 | background-color: #ffffff; 63 | width: 700px; 64 | height: 100px; 65 | padding-left: 24px; 66 | justify-content: center; 67 | border-bottom-width: 1px; 68 | border-bottom-color: #b9b9b9; 69 | border-style: solid; 70 | } 71 | 72 | .text { 73 | font-size: 30; 74 | color: #7d7d7d; 75 | font-weight: 400; 76 | } 77 | 78 | .arrtName { 79 | font-weight: 700; 80 | } 81 | 82 | .touch-bar { 83 | height: 68; 84 | width: 750; 85 | } 86 | -------------------------------------------------------------------------------- /src/js/pages/demo/util.js: -------------------------------------------------------------------------------- 1 | const dateType = ['YYYY', 'MM', 'DD', 'HH', 'mm', 'ss'] 2 | const dateMap = { 3 | YYYY: 'getYear', 4 | MM: 'getMonth', 5 | DD: 'getDate', 6 | HH: 'getHours', 7 | mm: 'getMinutes', 8 | ss: 'getSeconds' 9 | } 10 | 11 | const dateFn = { 12 | getYear: (time) => { 13 | return time.getFullYear() 14 | }, 15 | getMonth: (time) => { 16 | const month = time.getMonth() + 1 17 | return addZero(month) 18 | }, 19 | getDate: (time) => { 20 | const day = time.getDate() 21 | return addZero(day) 22 | }, 23 | getHours: (time) => { 24 | const hour = time.getHours() 25 | return addZero(hour) 26 | }, 27 | getMinutes: (time) => { 28 | const minute = time.getMinutes() 29 | return addZero(minute) 30 | }, 31 | getSeconds: (time) => { 32 | const second = time.getSeconds() 33 | return addZero(second) 34 | } 35 | } 36 | 37 | function addZero (num) { 38 | if (num < 10) num = '0' + num 39 | return num 40 | } 41 | 42 | const format = (date, type) => { 43 | const time = date ? new Date(date) : new Date() 44 | let placeholder = type 45 | dateType.forEach((val) => { 46 | if (type.indexOf(val) > -1) { 47 | const trueValue = dateFn[dateMap[val]](time) 48 | placeholder = placeholder.replace(val, trueValue) 49 | } 50 | }) 51 | return placeholder 52 | } 53 | 54 | const setDays = (date, type, num) => { 55 | const time = date ? new Date(date) : new Date(); 56 | type === 'add' 57 | ? time.setDate(time.getDate() + num) 58 | : time.setDate(time.getDate() - num); 59 | return time; 60 | } 61 | 62 | export { 63 | format, 64 | setDays 65 | } 66 | -------------------------------------------------------------------------------- /src/js/pages/demo/index.scss: -------------------------------------------------------------------------------- 1 | @import 'src/js/css/base'; 2 | 3 | $base-color: #1da1f2; 4 | 5 | .stickyHeader { 6 | position: sticky; 7 | flex-direction: row; 8 | } 9 | 10 | .container { 11 | background-color: $base-color; 12 | padding-left: 25px; 13 | padding-right: 25px; 14 | padding-bottom: 25px; 15 | width:750px; 16 | } 17 | 18 | .line { 19 | height:2px; 20 | width:700px; 21 | background-color: #ffffff; 22 | } 23 | 24 | .demo-list-cell-container { 25 | width: 700px; 26 | margin-right: 25px; 27 | } 28 | 29 | .demo-list-cell { 30 | background-color: #FFFFFF; 31 | width: 700px; 32 | height: 100px; 33 | padding-left: 25px; 34 | padding-top: 30px; 35 | /*justify-content: center;*/ 36 | border-bottom-width: 1px; 37 | border-bottom-color: #b9b9b9; 38 | /*border-bottom-color: #53bbfb;*/ 39 | border-style: solid; 40 | flex-direction: row; 41 | } 42 | 43 | .demo-list-cell-text { 44 | /*color: #53bbfb;*/ 45 | color: #7d7d7d; 46 | font-weight: 500; 47 | width: 625; 48 | } 49 | 50 | .demo-list-cell-icon { 51 | /*color: #53bbfb;*/ 52 | color: #7d7d7d; 53 | font-weight: 500; 54 | padding-top: 4px; 55 | font-size: 25; 56 | width: 50; 57 | font-family: iconfont-eros; 58 | } 59 | 60 | 61 | 62 | .status-bar { 63 | width: 750; 64 | height: 40; 65 | background-color: $base-color; 66 | } 67 | 68 | .touch-bar { 69 | height: 68; 70 | width: 750; 71 | background-color: $base-color; 72 | } 73 | 74 | .mask { 75 | position: absolute; 76 | top: 0; 77 | left: 0; 78 | right: 0; 79 | bottom: 0; 80 | background-color: rgba(0, 0, 0, .4); 81 | } 82 | 83 | .modal-top { 84 | align-items: flex-start; 85 | } 86 | 87 | .image { 88 | width:550px; 89 | height:550px; 90 | margin-top:300px; 91 | margin-left:100px; 92 | } 93 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/java/com/eros/wx/wxapi/WXEntryActivity.java: -------------------------------------------------------------------------------- 1 | //package com.eros.wx.wxapi; 2 | // 3 | //import android.os.Bundle; 4 | // 5 | //import com.eros.erospluginumeng.model.WXApiModule; 6 | //import com.eros.framework.manager.ManagerFactory; 7 | //import com.eros.framework.manager.impl.dispatcher.DispatchEventManager; 8 | //import com.tencent.mm.opensdk.modelbase.BaseReq; 9 | //import com.tencent.mm.opensdk.modelbase.BaseResp; 10 | //import com.tencent.mm.opensdk.modelmsg.SendAuth; 11 | //import com.tencent.mm.opensdk.openapi.IWXAPI; 12 | //import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; 13 | //import com.umeng.socialize.weixin.view.WXCallbackActivity; 14 | // 15 | ///** 16 | // * Created by Dong Fuhai on 2014-07-22 16:42. 17 | // * 18 | // * @modify: 19 | // */ 20 | //public class WXEntryActivity extends WXCallbackActivity implements IWXAPIEventHandler { 21 | // 22 | // 23 | // public static WXEntryActivity activity; 24 | // 25 | // @Override 26 | // public void onCreate(Bundle savedInstanceState) { 27 | // super.onCreate(savedInstanceState); 28 | // activity = this; 29 | // //注册API 30 | // IWXAPI mWXApi = WXApiModule.getInstans().getWXApi(); 31 | // if (mWXApi == null) return; 32 | // mWXApi.handleIntent(getIntent(), this); 33 | // } 34 | // 35 | // 36 | // @Override 37 | // public void onReq(BaseReq baseReq) { 38 | // 39 | // } 40 | // 41 | // @Override 42 | // public void onResp(BaseResp baseResp) { 43 | // if (baseResp instanceof SendAuth.Resp) { 44 | // SendAuth.Resp newResp = (SendAuth.Resp) baseResp; 45 | // ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(newResp); 46 | // } 47 | // this.finish(); 48 | // } 49 | //} 50 | -------------------------------------------------------------------------------- /src/js/pages/demo/notice/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 59 | -------------------------------------------------------------------------------- /src/assets/chart/bm-chart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | ECharts 17 | 18 | 19 | 20 | 21 |
22 | 23 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/assets/eros.native.json: -------------------------------------------------------------------------------- 1 | "EE9z0SxKB1s4Hc7w4zPFCxHQYGGPh0wXCVPq0P5B52ETjz9lqS9JGwmCeN6ByitcyYPHmmX9oAXPNbU6mrsElrZpBseatCy0zJhrqSbZ9u5S45pQi3FSWMw24m0p/EObJtV+9ryRvssJF7XY961oR2nGV7T+7upSHh6YRdmZmLXlM9B7kTTm3ELOt1Do6tLymIzq+sdgUtrAgZ/9SQceRmYvRn/eBRfKLiFShfOTZas8BgVhnPJYn+2OcaA+aNs96CkD4tFcRSOljPtuZiJADkhbxRbzLYEbmAShcbVWZGO0SxptcG5aQZNK2fBFne6IpXloe4EUFQzyR9CX5iIqmt4HOotxqyhnz6pqyEgZ0M09XSRcgBEOVYGrHRcIS1oxZReM9c6Ei2UJHtYW/u1qIt/vfy8VR9+C8/70De2obXudbg58S8pMWJRu8+sg7fRxMMpiVN0XJd29InaXSO59Yi+AReyGzHeV5qIeLy5PAPJvcvPHxQWgMoxZQPZ+yipiaM2yUgXgPJe2geLEcQfuIpwL85oZQIkfa/vyw/yqWXwu5f63J24D0+Qzi+Qo1V/TobRZVj0oGoA1aixVZROUvHHrqrcS5QYZMJdcuCxKFCOnHT/zDKFILR56ahqIRmB0NGy6Xlbw+3UF2qyJua+k0AaRrQdhUb/qnPqCQFrW4dJVQBlQ0d6YkeKFnnnr7/AP41H/Gtp2HnaHoau/xEYczN1bWTtQvDjopUinYMEKwRbBpcdm5HaEbWNot1TeRESbAsAwAJmRqQQPseaBokK0D1AUrqbbpgS9x2DpwCSML821n8yW5SEJ1iz39EsMAH/LLQpBC7RFgWtxB1skk75lSYqZb8edlm6CLfm9EIIevCnAwZPWlPIM/Q5c2xJyqTSLiOEArRN7TLb/S6UOe+835Yts/RS0PxyCukZtjWqhqRHtGDac0nCm7taSLtvwGQQ1MAxktpzblyiuVNvKNEdSfhbmbWb4zmIY8QGfpAQSfQcBJ2XR9BGeXwfA0To+HKsNkxC7TW2d8mCwYNsO+RCLqlAGMTlCAy2S2hid4ClXwY3Hb+nSGTUp3n5QEbeUDhObRpE7pFruIOV8PSAfDiDdZ6eMAdvCGkynVfXjeMq1CyFVQGCaPMMJnVqiCZarXC8DQmqNVAgnadEbQtjgy1Ya5xCcd063nYI+x7NvOLsgaP9XXe4MxoajtRs3FG4XVgn521lgXVG3rDobvrnvbtG0RA4de1yhi6EPWTP1lfha5HKHln4LQpoFuGf9xcJO4LEpOpBHgo+XiV/zkW4nqpuuQsrXFFtA/41VCxNeUIqN5gSo6rvo0IPio4sRLv911NWucT4ebYO6C3C/DiQ2jlIeR9fRZ03X1PRWDgvWgFbHK1JDtFZlk5hKbXAA2rlLrimizkK6DQQwluMRtM1lq1vsZcWbd1lDDE0T3t5L29iR2FaeksRcZBC4tIsq7rerQJDmdjKUTprTXhJTl8arYyipVn4WVBPi57o7gD19IJJUN5GQDiTHaNzfTZ9bNBaLCdUDeEwoIMJv22ynUYyeZ316LZCXfvz7EWCbL+pyLOyxPXAhCx+iceGaW7stkS1/02CElg6bvh0bmvDeBeTmdUI88kLa/9tdUjsKvTbaHEFjwKpSty/cOOIH52tjjLvavxQCiL4Tmh/KI7he1Xex6XcytnBI4rAGD87tgm7aRwawaSrQdcmFY4mcDvbJmsIjfvv15bHMldcWGLTfNhEUQFVx5GW3tbQMNONMtXnXhfh2GM0Q4ul2K1zA6oCwx677p4y+rubZeVP058vrpayTdqMEFgOD6hliQcY2Zihz5yUBzrvMO7FbbSKaK/ZBthyvt8PP9NXh1samt4r01r6BmFvVp8vWrUkAuoYB1PW2A60CIN9U5n9lwdhm+TuaYvUbsJsDBufKQ3WxJLnIeC34MILsrA==" 2 | -------------------------------------------------------------------------------- /src/js/pages/demo/router/tabbarItem1.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 31 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/eros.native.json: -------------------------------------------------------------------------------- 1 | "EE9z0SxKB1s4Hc7w4zPFCxHQYGGPh0wXCVPq0P5B52ETjz9lqS9JGwmCeN6ByitcyYPHmmX9oAXPNbU6mrsElrZpBseatCy0zJhrqSbZ9u5S45pQi3FSWMw24m0p/EOb+QziXCxO/vYOdT24kjLDem6TK9dWHVY8vo+JofFCEWvK6nLWB9a9JlB9WZyq+P+3/AFPbsi6MYBxjbylzF3fEt8qtDTx42Cvi7OkYWkM/ZvDQChx/gwjDNwS+JrXdt0xS0/hih1VWXwqfWeyOSQnFAYPGXdHsfAIjNj+NTJzWwfKkT8kqFp6u/Y6WwNpG7TM3SV9JAjTJIrLwcnHIIjjcVIbT7gp+v914fXhHNoCK/gGNa7AAJ2Ys9sPqCggwlHxfIyW06IksIJG0ptUBLD93GZtqto8ZaF0dT2meZwxpE20WB4vEEm4gN90/UfgDc2EeHfA3z3Yqwv57g1RCd5Dk0Rgp/4iiynzRF7NfsH0VjyP7OLdksAYW/+hDz53NT49jtxoZRFdeNQdpY+0+qChtMrHHfAIZ3gYw4tjE0v7nlxc52x6QTdNGeHzD+m//1aw/9gxvo5pSqDljOTHeSzgfRyFNXCi6BcL+Kb9FssmRCJKFddOAlw8tUhSKz+f66B1ELB5CxoBBESn9KbFrZiumMH02Ws8oAzmRPBTFRtSWYW11QWrlPIKEwVv6TT+z0TjkTVX7uKOuQvbtQhcPTPSEAe3AYlvC8jHrYUT+ObAqM2XVUlcvt68Wcy0npjqJM7sdCJu5oDOKTAB2FbI+cRB7qA6tbeZzreym/mQc4C6tQpM2cijMY2QgjaW3UCKjZP0h/WmjApJbIosHEjWAFn4qjUaSYeoo0cK6AY7Le7iFviwpi8Mb+njxxcbE8B6ed1wsp04jOpGnZqdFNe4H31HvOMP3JGk1FPrqaWnNa2a5glCvY5KXzVm/V1FIjj7kp+gq4IfdVjKN/7M1DHlYLaEGnHO12vu6G5RfYwtcj6/gg2FIvO+M03qhuQPY5ItGXIdeMSy1+2gec2Q780jLofiOfVOUlPjz9qojSlEcbW2g80HsMYAWF7fAgLV6TqIk0RwqTYgBHM8JXw5OQ7Je/QKc1wqU15vZcI//8EUv3Kn+6BZ2lDrKEGCBpPgpPRzPUSfV2U/8SUlOLz0Z8I+Pra+PmazJ4wValbIjj5BkR5HrsEsNTKupMXuCGwzGAUKTprGwCd10qWosaNVdxpebe2LlNhSxo8mPyn0PaoN/AT+Za2Ehd8hyaHnIjM1b37sX06jfD0CM33vidsXE2bAkI3avKNGof4OgoSbjzfSHbuAg3xHgwKhIB24OMBrhbxVpMyXVXIwA21rRyvqwO72BnJzgvWjaKxNAWl3kGMBgnIiHKQz+P3svzZT97wGOfbZ8q/6zj0lDftt+YDmLHOFM10163YFwBb+RN8vHq1AS4zYs/5bhR/2o5j7hWn2INSfE33vqMBXFXJs+bX2Hxe4sAVjzXvmvk/ZaZ0Gi/Fmb+2AB0T2ehx8SnhdnmsrvZr/mwfg0JwxF1fvqZZL62rKO6brj5BHCuIQlne9MkwXI/zC0mvMO51tXcyuKxs2MgBli7KQvAhZRf1H5U2rSwRm74FKgsc/YZrFrYtRCD04rsR6m9VXryGnJIuTO3a2bRRMJsZvLv3AznuQpXfyy/WbjT4U3MNV263EtJOOdn8or/ZfEY/tsLc0gH5p6cva15Ge9X8jPBS7v8M7wJhBxNEbR1an5FhoJWQlVj2Gye6q392Ot91tOshj9Yh8t5uGShU2MrCe+08p9Rx4ker/VepuyQZcztpEnKq7LPEWdzculL25DCJHPBSKZIVeohxCjyy1UwXcQHQ83IjPucoa9+uoFAhd8Xr/GbAgkQPY7mHUCLF0Wf5vGBQdFqC2M2PdgZjL4hsOKMBMEjpCvWzly3KLM8DGQB7mcEYsX7T3xMIbkSmSpai67P4On1d3sc9wye4x+2FB" 2 | -------------------------------------------------------------------------------- /config/eros.dev.js: -------------------------------------------------------------------------------- 1 | // appBoard,mediator 不建议进行修改 如果修改了 也请对应修改 2 | module.exports = { 3 | 'eslint': false, 4 | 'webpackWarnings': false, 5 | 'exports': [ 6 | // appBoard 7 | 'js/config/index.js', 8 | // mediator 9 | 'js/mediator/index.vue', 10 | // home 11 | 'js/pages/demo/index.vue', 12 | 'js/pages/demo/lifecycle/index.vue', 13 | 'js/pages/demo/assets/index.vue', 14 | 'js/pages/demo/globalAttr/index.vue', 15 | 'js/pages/demo/inputExtend/index.vue', 16 | 'js/pages/demo/refresh/index.vue', 17 | 'js/pages/demo/storage/index.vue', 18 | 'js/pages/demo/router/index.vue', 19 | 'js/pages/demo/router/tabbarItem1.vue', 20 | 'js/pages/demo/router/tabbarItem2.vue', 21 | 'js/pages/demo/router/tabbarItem3.vue', 22 | 'js/pages/demo/event/a.vue', 23 | 'js/pages/demo/event/b.vue', 24 | 'js/pages/demo/notice/index.vue', 25 | 'js/pages/demo/font/index.vue', 26 | 'js/pages/demo/image/index.vue', 27 | 'js/pages/demo/bmchart/index.vue', 28 | 'js/pages/demo/bmrichtext/index.vue', 29 | 'js/pages/demo/bmcalendar/index.vue', 30 | 'js/pages/demo/other/bindingx.vue', 31 | 'js/pages/demo/other/weexui.vue', 32 | 'js/pages/demo/other/bui.vue' 33 | ], 34 | 'alias': { 35 | 'Components': 'js/components', 36 | 'Common': 'js/common', 37 | 'Config': 'js/config', 38 | 'Widget': 'js/widget', 39 | 'Pages': 'js/pages', 40 | 'Utils': 'js/utils' 41 | }, 42 | 'diff': { 43 | 'pwd': '/Users/yangmingzhe/Work/opensource/eros-diff-folder', 44 | 'proxy': 'https://app.weex-eros.com/source' 45 | }, 46 | 'server': { 47 | 'path': './', 48 | 'port': 8889 49 | }, 50 | 'mockServer': { 51 | 'port': 52077, 52 | 'mockDir': './dist/mock' 53 | }, 54 | 'socketServer': { 55 | 'port': 8890, 56 | 'switch': true 57 | } 58 | } -------------------------------------------------------------------------------- /src/js/pages/demo/storage/index.vue: -------------------------------------------------------------------------------- 1 | 27 | 62 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleURLTypes 20 | 21 | 22 | CFBundleTypeRole 23 | Editor 24 | CFBundleURLName 25 | com.ByteMaster.WeexEros 26 | CFBundleURLSchemes 27 | 28 | weexeros 29 | 30 | 31 | 32 | CFBundleVersion 33 | 1 34 | LSRequiresIPhoneOS 35 | 36 | NSAppTransportSecurity 37 | 38 | NSAllowsArbitraryLoads 39 | 40 | 41 | NSCameraUsageDescription 42 | 需要访问您的相机 43 | NSContactsUsageDescription 44 | 需要访问您的通讯录 45 | NSLocationWhenInUseUsageDescription 46 | 需要访问您的位置信息 47 | NSPhotoLibraryUsageDescription 48 | 需要访问您的相册 49 | UIBackgroundModes 50 | 51 | remote-notification 52 | 53 | UIRequiredDeviceCapabilities 54 | 55 | armv7 56 | 57 | UIStatusBarHidden 58 | 59 | UISupportedInterfaceOrientations 60 | 61 | UIInterfaceOrientationPortrait 62 | 63 | UIViewControllerBasedStatusBarAppearance 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /scripts/install.ios.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eros_prefix="[\033[34meros\033[0m]" 4 | 5 | function error_exit { 6 | echo "--------------------------------------------" 7 | echo -e "\033[31m Error code is $1 \033[0m" 1>&2 8 | echo "" 9 | echo " Code tips: " 10 | echo -e "\033[33m1 -> platforms/ios/WeexEros/ is not existed. \033[0m" 11 | echo -e "\033[33m2 -> cannot remove platforms/ios/WeexEros/WeexiOSSDK, please check file permissions. \033[0m" 12 | echo -e "\033[33m3 -> cannot remove platforms/ios/WeexEros/Benmu-iOS-Library, please check file permissions. \033[0m" 13 | echo -e "\033[33m4 -> failed run: git clone https://github.com/bmfe/WeexiOSSDK.git. \033[0m" 14 | echo -e "\033[33m5 -> failed run: git clone https://github.com/bmfe/Benmu-iOS-Library.git. \033[0m" 15 | echo -e "\033[33m6 -> pod update failed. \033[0m" 16 | echo -e "\033[33m7 -> run open xcode failed, make sure you had install xcode in appStore. \033[0m" 17 | exit 1 18 | } 19 | 20 | cd platforms/ios/WeexEros/ || \ 21 | error_exit 1 22 | echo -e "$eros_prefix \033[33mtips: make sure xcode had been closed.\033[0m" 23 | echo -e "$eros_prefix Enter ios project" 24 | 25 | if [ -e WeexiOSSDK/ ] || [ -e Benmu-iOS-Library/ ] 26 | then 27 | echo -e "$eros_prefix WeexiOSSDK and Benmu-iOS-Library is existed, remove old sdk." 28 | rm -rf WeexiOSSDK/ || error_exit 2 29 | rm -rf Benmu-iOS-Library/ || error_exit 3 30 | else 31 | echo -e "$eros_prefix No WeexiOSSDK and Benmu-iOS-Library, we will start to clone new sdk..." 32 | fi 33 | echo -e "$eros_prefix \033[36mMay spend a lot of time, please wait patiently. \033[0m" 34 | git clone https://github.com/bmfe/WeexiOSSDK.git -q --depth=1 || \ 35 | error_exit 4 36 | echo -e "$eros_prefix Weex sdk clone done." 37 | git clone https://github.com/bmfe/Benmu-iOS-Library.git -q --depth=1 || \ 38 | error_exit 5 39 | echo -e "$eros_prefix Eros sdk clone done." 40 | echo -e "$eros_prefix Run pod update and show some update detail:" 41 | pod update --no-ansi || error_exit 6 42 | echo "" 43 | echo -e "$eros_prefix \033[32miOS sdk has been installed, enjoy it! \033[0m" 44 | open WeexEros.xcworkspace || error_exit 7 45 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/notice.vue: -------------------------------------------------------------------------------- 1 | 30 | 74 | 75 | -------------------------------------------------------------------------------- /src/js/pages/demo/assets/index.vue: -------------------------------------------------------------------------------- 1 | 25 | 46 | -------------------------------------------------------------------------------- /config/eros.native.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 'appName': 'eros-template-name', 3 | 'appBoard': '/config/index.js', 4 | // android 监听全局事件homeBack 如果为true 安卓端需要自行调用router.finish方法来关闭应用 5 | 'androidIsListenHomeBack': 'true', 6 | 'customBundleUpdate': 'false', 7 | 'version': { 8 | 'android': 'eros-template-version', 9 | 'iOS': 'eros-template-version' 10 | }, 11 | 'page': { 12 | 'homePage': '/pages/demo/index.js', 13 | 'mediatorPage': '/mediator/index.js', 14 | 'navBarColor': '#1DA1F2', 15 | 'navItemColor': '#ffffff' 16 | }, 17 | 'url': { 18 | 'image': 'https://lev-inf.benmu-health.com/test/xxx', 19 | 'bundleUpdate': 'http://localhosts:3001/app/check' 20 | }, 21 | 'zipFolder': { 22 | 'iOS': '/ios/WeexEros/WeexEros', 23 | 'android': '/android/WeexFrameworkWrapper/app/src/main/assets' 24 | }, 25 | 'getui': { 26 | 'enabled': 'false', 27 | 'appId': '', 28 | 'appKey': '', 29 | 'appSecret': '' 30 | }, 31 | 'tabBar': { 32 | 'color': '#777777', 33 | 'selectedColor': '#00b4cb', 34 | 'backgroundColor': '#fafafa', 35 | 'borderColor': '#dfe1eb', 36 | 'list': [{ 37 | 'pagePath': '/pages/demo/router/tabbarItem1.js', 38 | 'text': '首页', 39 | 'icon': 'bmlocal://assets/TabBar_Item1@2x.png', 40 | 'selectedIcon': 'bmlocal://assets/TabBar_Item1_Selected@2x.png', 41 | 'navShow': 'true', 42 | 'navTitle': "首页" 43 | }, 44 | { 45 | 'pagePath': '/pages/demo/router/tabbarItem2.js', 46 | 'text': '联系人', 47 | 'icon': 'bmlocal://assets/TabBar_Item2@2x.png', 48 | 'selectedIcon': 'bmlocal://assets/TabBar_Item2_Selected@2x.png', 49 | 'navShow': 'true', 50 | 'navTitle': '联系人' 51 | }, 52 | { 53 | 'pagePath': '/pages/demo/router/tabbarItem3.js', 54 | 'text': '个人中心', 55 | 'icon': 'bmlocal://assets/TabBar_Item3@2x.png', 56 | 'selectedIcon': 'bmlocal://assets/TabBar_Item3_Selected@2x.png', 57 | 'navShow': 'true', 58 | 'navTitle': '我' 59 | } 60 | ] 61 | } 62 | } -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/java/com/eros/wx/wxapi/WXPayEntryActivity.java: -------------------------------------------------------------------------------- 1 | //package com.eros.wx.wxapi; 2 | // 3 | // 4 | //import android.app.Activity; 5 | //import android.content.Intent; 6 | //import android.os.Bundle; 7 | // 8 | //import com.eros.erospluginwxpay.WXApiModule; 9 | //import com.eros.erospluginwxpay.model.WeChatPayResultModel; 10 | //import com.eros.framework.manager.ManagerFactory; 11 | //import com.eros.framework.manager.impl.dispatcher.DispatchEventManager; 12 | //import com.tencent.mm.opensdk.constants.ConstantsAPI; 13 | //import com.tencent.mm.opensdk.modelbase.BaseReq; 14 | //import com.tencent.mm.opensdk.modelbase.BaseResp; 15 | //import com.tencent.mm.opensdk.openapi.IWXAPI; 16 | //import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; 17 | // 18 | //public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler { 19 | // 20 | // private static final String TAG = "MicroMsg.SDKSample.WXPayEntryActivity"; 21 | // 22 | // private IWXAPI api; 23 | // 24 | // @Override 25 | // public void onCreate(Bundle savedInstanceState) { 26 | // super.onCreate(savedInstanceState); 27 | // api = WXApiModule.getInstans().getWXApi(); 28 | // if (api != null) { 29 | // api.registerApp(WXApiModule.getInstans().getAppId()); 30 | // api.handleIntent(getIntent(), this); 31 | // } 32 | // } 33 | // 34 | // @Override 35 | // protected void onNewIntent(Intent intent) { 36 | // super.onNewIntent(intent); 37 | // setIntent(intent); 38 | // if (api != null) { 39 | // api.handleIntent(intent, this); 40 | // } 41 | // } 42 | // 43 | // @Override 44 | // public void onReq(BaseReq req) { 45 | // 46 | // } 47 | // 48 | // /** 49 | // * int ERR_OK = 0; int ERR_COMM = -1; int ERR_USER_CANCEL = -2; int ERR_SENT_FAILED = -3; int 50 | // * ERR_AUTH_DENIED = -4; int ERR_UNSUPPORT = -5; 51 | // */ 52 | // @Override 53 | // public void onResp(BaseResp resp) { 54 | // if (resp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) { 55 | // WeChatPayResultModel bean = new WeChatPayResultModel(); 56 | // bean.msg = resp.errStr; 57 | // bean.resCode = resp.errCode; 58 | // bean.status = resp.errCode; 59 | // ManagerFactory.getManagerService(DispatchEventManager.class).getBus().post(bean); 60 | // finish(); 61 | // } 62 | // } 63 | //} 64 | -------------------------------------------------------------------------------- /src/js/pages/demo/bmchart/index.vue: -------------------------------------------------------------------------------- 1 | 19 | 47 | -------------------------------------------------------------------------------- /src/js/pages/demo/router/config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | tabTitles: [ 3 | { 4 | title: '首页', 5 | icon: 'https://gw.alicdn.com/tfs/TB1MWXdSpXXXXcmXXXXXXXXXXXX-72-72.png', 6 | activeIcon: 'https://gw.alicdn.com/tfs/TB1kCk2SXXXXXXFXFXXXXXXXXXX-72-72.png' 7 | }, 8 | { 9 | title: '特别推荐', 10 | icon: 'https://gw.alicdn.com/tfs/TB1ARoKSXXXXXc9XVXXXXXXXXXX-72-72.png', 11 | activeIcon: 'https://gw.alicdn.com/tfs/TB19Z72SXXXXXamXFXXXXXXXXXX-72-72.png' 12 | }, 13 | { 14 | title: '消息中心', 15 | icon: 'https://gw.alicdn.com/tfs/TB1VKMISXXXXXbyaXXXXXXXXXXX-72-72.png', 16 | activeIcon: 'https://gw.alicdn.com/tfs/TB1aTgZSXXXXXazXFXXXXXXXXXX-72-72.png', 17 | badge: 5 18 | }, 19 | { 20 | title: '我的主页', 21 | icon: 'https://gw.alicdn.com/tfs/TB1Do3tSXXXXXXMaFXXXXXXXXXX-72-72.png', 22 | activeIcon: 'https://gw.alicdn.com/tfs/TB1LiNhSpXXXXaWXXXXXXXXXXXX-72-72.png', 23 | dot: true 24 | } 25 | ], 26 | tabStyles: { 27 | bgColor: '#FFFFFF', 28 | titleColor: '#666666', 29 | activeTitleColor: '#3D3D3D', 30 | activeBgColor: '#FFFFFF', 31 | isActiveTitleBold: true, 32 | iconWidth: 70, 33 | iconHeight: 70, 34 | width: 160, 35 | height: 120, 36 | fontSize: 24, 37 | textPaddingLeft: 10, 38 | textPaddingRight: 10 39 | }, 40 | 41 | // 使用 iconFont 模式的tab title配置 42 | tabIconFontTitles: [ 43 | { 44 | title: '首页', 45 | codePoint: '\ue623' 46 | }, 47 | { 48 | title: '特别推荐', 49 | codePoint: '\ue608' 50 | }, 51 | { 52 | title: '消息中心', 53 | codePoint: '\ue752', 54 | badge: 5 55 | }, 56 | { 57 | title: '我的主页', 58 | codePoint: '\ue601', 59 | dot: true 60 | } 61 | ], 62 | tabIconFontStyles: { 63 | bgColor: '#FFFFFF', 64 | titleColor: '#666666', 65 | activeTitleColor: '#3D3D3D', 66 | activeBgColor: '#FFFFFF', 67 | isActiveTitleBold: true, 68 | width: 160, 69 | height: 120, 70 | fontSize: 24, 71 | textPaddingLeft: 10, 72 | textPaddingRight: 10, 73 | iconFontSize: 50, 74 | iconFontMarginBottom: 8, 75 | iconFontColor: '#333333', 76 | activeIconFontColor: 'red', 77 | iconFontUrl: '//at.alicdn.com/t/font_501019_mauqv15evc1pp66r.ttf' 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/js/config/routes.js: -------------------------------------------------------------------------------- 1 | // 这里的后缀都是 .js 因为打包出来的都是js文件,而不是.vue文件,我们要告诉客户端跳转那个js 2 | 3 | // 这里的路径和dev.json路径的区别 4 | // pages里面配置的是路由跳转的地址,也就是dev生成的 dist文件夹下的js bundle路径 从dist/js开始 5 | // dev.json 的 exports 需要打包的js地址,填入src的需要被打包成js bundle的地址 从src开始 6 | 7 | export default { 8 | 'demo': { 9 | title: 'weex-eros demo', 10 | url: '/pages/demo/index.js' 11 | }, 12 | 'demo.lifecycle': { 13 | title: '生命周期', 14 | url: '/pages/demo/lifecycle/index.js' 15 | }, 16 | 'demo.assets': { 17 | title: '本地资源', 18 | url: '/pages/demo/assets/index.js' 19 | }, 20 | 'demo.globalAttr': { 21 | title: '全局属性', 22 | url: '/pages/demo/globalAttr/index.js' 23 | }, 24 | 'demo.inputExtend': { 25 | title: '文本框扩展', 26 | url: '/pages/demo/inputExtend/index.js' 27 | }, 28 | 'demo.refresh': { 29 | title: '下拉刷新', 30 | url: '/pages/demo/refresh/index.js' 31 | }, 32 | 'demo.storage': { 33 | title: '本地化存储', 34 | url: '/pages/demo/storage/index.js' 35 | }, 36 | 'demo.router': { 37 | title: '路由', 38 | url: '/pages/demo/router/index.js' 39 | }, 40 | 'demo.event.a': { 41 | title: '发布订阅-a页面', 42 | url: '/pages/demo/event/a.js' 43 | }, 44 | 'demo.event.b': { 45 | title: '发布订阅-b页面', 46 | url: '/pages/demo/event/b.js' 47 | }, 48 | 'demo.notice': { 49 | title: '弹窗通知', 50 | url: '/pages/demo/notice/index.js' 51 | }, 52 | 'demo.font': { 53 | title: '字体', 54 | url: '/pages/demo/font/index.js' 55 | }, 56 | // 'demo.coms': { 57 | // title: '联系功能', 58 | // url: '/pages/demo/coms/index.js' 59 | // }, 60 | 'demo.image': { 61 | title: '图片', 62 | url: '/pages/demo/image/index.js' 63 | }, 64 | 'demo.bmchart': { 65 | title: '图表', 66 | url: '/pages/demo/bmchart/index.js' 67 | }, 68 | 'demo.bmrichtext': { 69 | title: '富文本', 70 | url: '/pages/demo/bmrichtext/index.js' 71 | }, 72 | 'demo.bmcalendar': { 73 | title: '日期', 74 | url: '/pages/demo/bmcalendar/index.js' 75 | }, 76 | 'demo.other.waterfall': { 77 | title: 'weex 瀑布流', 78 | url: '/pages/demo/other/waterfall.js' 79 | }, 80 | 'demo.other.bindingx': { 81 | title: 'bindingX', 82 | url: '/pages/demo/other/bindingx.js' 83 | }, 84 | 'demo.other.weex-ui': { 85 | title: 'weex-ui', 86 | url: '/pages/demo/other/weexui.js' 87 | }, 88 | 'demo.other.bui': { 89 | title: 'bui', 90 | url: '/pages/demo/other/bui.js' 91 | } 92 | } -------------------------------------------------------------------------------- /src/js/components/tabs/bar.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 51 | 52 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /scripts/install.android.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | eros_prefix="[\033[34meros\033[0m]" 4 | 5 | function error_exit { 6 | echo "--------------------------------------------" 7 | echo -e "\033[31m Error code is $1 \033[0m" 1>&2 8 | echo "" 9 | echo " Code tips: " 10 | echo -e "\033[33m1 -> platforms/android/WeexFrameworkWrapper/ is not existed. \033[0m" 11 | echo -e "\033[33m2 -> cannot remove platforms/android/WeexFrameworkWrapper/wxframework, please check file permissions. \033[0m" 12 | echo -e "\033[33m3 -> cannot remove platforms/android/WeexFrameworkWrapper/sdk, please check file permissions. \033[0m" 13 | echo -e "\033[33m4 -> cannot remove platforms/android/WeexFrameworkWrapper/nexus, please check file permissions. \033[0m" 14 | echo -e "\033[33m5 -> cannot remove platforms/android/WeexFrameworkWrapper/ErosPluginAmap, please check file permissions. \033[0m" 15 | echo -e "\033[33m6 -> failed run: git clone https://github.com/bmfe/WeexErosFramework.git. \033[0m" 16 | echo -e "\033[33m7 -> failed run: git clone https://github.com/bmfe/WeexSDK.git. \033[0m" 17 | echo -e "\033[33m8 -> failed run: git clone https://github.com/bmfe/eros-nexus.git. \033[0m" 18 | echo -e "\033[33m9 -> failed run: git clone https://github.com/bmfe/eros-plugin-android-amap.git. \033[0m" 19 | exit 1 20 | } 21 | 22 | cd platforms/android/WeexFrameworkWrapper/ || \ 23 | error_exit 1 24 | echo -e "$eros_prefix Enter android project" 25 | 26 | if [ -e wxframework/ ] || [ -e sdk/ ] || [ -e nexus/ ] || [ -e ErosPluginAmap/ ] 27 | then 28 | echo -e "$eros_prefix mwxframework, sdk ,nexus or ErosPluginAmap has been existed, remove old sdk." 29 | rm -rf wxframework/ || error_exit 2 30 | rm -rf sdk/ || error_exit 3 31 | rm -rf nexus/ || error_exit 4 32 | rm -rf ErosPluginAmap/ || error_exit 5 33 | else 34 | echo -e "$eros_prefix No eros devDependencies, we will start to clone new sdk..." 35 | fi 36 | echo -e "$eros_prefix \033[36mMay spend a lot of time, please wait patiently. \033[0m" 37 | git clone https://github.com/bmfe/WeexErosFramework.git wxframework --depth=1 -q || \ 38 | error_exit 6 39 | echo -e "$eros_prefix Eros wxframework clone done." 40 | git clone https://github.com/bmfe/WeexSDK.git sdk --depth=1 -q || \ 41 | error_exit 7 42 | echo -e "$eros_prefix Weex sdk clone done." 43 | git clone https://github.com/bmfe/eros-nexus.git nexus --depth=1 -q || \ 44 | error_exit 8 45 | echo -e "$eros_prefix Eros nexus clone done." 46 | git clone https://github.com/bmfe/eros-plugin-android-amap.git ErosPluginAmap --depth=1 -q || \ 47 | error_exit 9 48 | echo -e "$eros_prefix Eros ErosPluginAmap clone done." 49 | 50 | echo "" 51 | echo -e "$eros_prefix \033[32mAndroid sdk has been installed, enjoy it! \033[0m" 52 | -------------------------------------------------------------------------------- /src/js/pages/demo/router/tabbarItem2.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 43 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/core.vue: -------------------------------------------------------------------------------- 1 | 36 | 88 | 89 | -------------------------------------------------------------------------------- /src/js/pages/demo/other/bui.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 90 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/src/main/assets/bundle.config: -------------------------------------------------------------------------------- 1 | {"filesMd5":[{"page":"/config/index.js","md5":"434a4abc496cdc4eb2acd07e6f928c27"},{"page":"/mediator/index.js","md5":"44e2a4341fad51de5ca176cec5199a4d"},{"page":"/pages/demo/assets/index.js","md5":"a5e599b567e71e129c74c2647a97a34e"},{"page":"/pages/demo/bmcalendar/index.js","md5":"93b61ede76f0206d1f40ceb460c668cb"},{"page":"/pages/demo/bmchart/index.js","md5":"ba42098572a3bb81b85eee8efdce56f8"},{"page":"/pages/demo/bmrichtext/index.js","md5":"ddfe0cef60821814770789731ec095ea"},{"page":"/pages/demo/event/a.js","md5":"a497c7ec2098d1d9154b97ce63e3b00c"},{"page":"/pages/demo/event/b.js","md5":"9a8b8337a1bc064d1feacd3a792e8402"},{"page":"/pages/demo/font/index.js","md5":"7e477605a3015c76c1f09adb07ffc3f3"},{"page":"/pages/demo/globalAttr/index.js","md5":"305862bcb200b43b852d9eae71256d80"},{"page":"/pages/demo/image/index.js","md5":"64468ca1ce26d3fb843db3a6a11e4a2d"},{"page":"/pages/demo/index.js","md5":"fae7f33f456fc1577087f297cb36807b"},{"page":"/pages/demo/inputExtend/index.js","md5":"7dc5bfab42bf92f1e28cd66bb0e52297"},{"page":"/pages/demo/lifecycle/index.js","md5":"30fadc97a1ab348d9ac242ce8dd45b86"},{"page":"/pages/demo/notice/index.js","md5":"ff5080abfc4f00fbe3615a5ed96e7557"},{"page":"/pages/demo/other/bindingx.js","md5":"74b2281f0c98e07771acedef302cc572"},{"page":"/pages/demo/other/bui.js","md5":"979ce9f1ca40ae4e30d6aad2950e26b4"},{"page":"/pages/demo/other/weexui.js","md5":"58781f3f32e22723cb3e95cec49ad75c"},{"page":"/pages/demo/refresh/index.js","md5":"3d63082f37941d4b422acf49c89fc0f8"},{"page":"/pages/demo/router/index.js","md5":"c6f20545f72640345140187936edf75c"},{"page":"/pages/demo/router/tabbarItem1.js","md5":"9c551152750f4868c7455d5e6e9b6d86"},{"page":"/pages/demo/router/tabbarItem2.js","md5":"1a99814ca93f5b6e02e9f6622c0b8624"},{"page":"/pages/demo/router/tabbarItem3.js","md5":"dfee6b29b980119a80a252377eda78c2"},{"page":"/pages/demo/storage/index.js","md5":"8f620a0a0be97aa9f73bf7f9f43bf3e9"},{"page":"/iconfont/font_1469606063_76593.ttf","md5":"f6222bcfedff4a817bb50df7a049d1db"},{"page":"/iconfont/font_1469606522_9417143.woff","md5":"6cf5490fd14ff83350ff952bb5b8e484"},{"page":"/iconfont/font_zn5b3jswpofuhaor.ttf","md5":"c0356b22e8235d2b0be8880cc81894cc"},{"page":"/iconfont/iconfont-eros.ttf","md5":"68780fad0047dc5b02cb613ebb08cda1"},{"page":"/iconfont/iconfont.ttf","md5":"ec86bfe5bdb872bad2b2af4f11da14f4"},{"page":"/assets/TabBar_Item1@2x.png","md5":"02c1875f727a1f4ec7a9e113498a96a5"},{"page":"/assets/TabBar_Item1_Selected@2x.png","md5":"d5e7609700d9a4f075e39b20fecbb9c3"},{"page":"/assets/TabBar_Item2@2x.png","md5":"a30651ed422c597849ce3d69b2f79048"},{"page":"/assets/TabBar_Item2_Selected@2x.png","md5":"fe893d14ff2d7b330a4aeefddbd8a7fa"},{"page":"/assets/TabBar_Item3@2x.png","md5":"fd2645e8081db44f2110661c2643f5cf"},{"page":"/assets/TabBar_Item3_Selected@2x.png","md5":"457d615a5c198b0148609f5eed84be70"},{"page":"/assets/demo.jpg","md5":"332c4e7d5398207c1b49750369a72848"}],"android":"eros-template-version","iOS":"eros-template-version","appName":"eros-template-name","jsVersion":"3066f2ff6e3456f01878bbd022614cb6","timestamp":1528195032111,"jsPath":"https://app.weex-eros.com/source"} 2 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/three.vue: -------------------------------------------------------------------------------- 1 | 36 | 92 | -------------------------------------------------------------------------------- /src/js/pages/demo/font/index.vue: -------------------------------------------------------------------------------- 1 | 2 | 31 | 83 | -------------------------------------------------------------------------------- /src/js/pages/demo/other/config.js: -------------------------------------------------------------------------------- 1 | 2 | export default { 3 | 4 | tabTitles: [ 5 | { 6 | title: '热门跟团', 7 | icon: 'https://gw.alicdn.com/tfs/TB1MWXdSpXXXXcmXXXXXXXXXXXX-72-72.png', 8 | activeIcon: 'https://gw.alicdn.com/tfs/TB1kCk2SXXXXXXFXFXXXXXXXXXX-72-72.png', 9 | }, 10 | { 11 | title: '云南跟团', 12 | icon: 'https://gw.alicdn.com/tfs/TB1ARoKSXXXXXc9XVXXXXXXXXXX-72-72.png', 13 | activeIcon: 'https://gw.alicdn.com/tfs/TB19Z72SXXXXXamXFXXXXXXXXXX-72-72.png' 14 | }, 15 | { 16 | title: '四川跟团', 17 | icon: 'https://gw.alicdn.com/tfs/TB1VKMISXXXXXbyaXXXXXXXXXXX-72-72.png', 18 | activeIcon: 'https://gw.alicdn.com/tfs/TB1aTgZSXXXXXazXFXXXXXXXXXX-72-72.png' 19 | }, 20 | { 21 | title: '海南跟团', 22 | icon: 'https://gw.alicdn.com/tfs/TB1Do3tSXXXXXXMaFXXXXXXXXXX-72-72.png', 23 | activeIcon: 'https://gw.alicdn.com/tfs/TB1LiNhSpXXXXaWXXXXXXXXXXXX-72-72.png' 24 | }, 25 | { 26 | title: '北京跟团', 27 | icon: 'https://gw.alicdn.com/tfs/TB1jFsLSXXXXXX_aXXXXXXXXXXX-72-72.png', 28 | activeIcon: 'https://gw.alicdn.com/tfs/TB1_Kc.SXXXXXa8XpXXXXXXXXXX-72-72.png' 29 | }, 30 | { 31 | title: '出境跟团', 32 | icon: 'https://gw.alicdn.com/tfs/TB199sPSXXXXXb4XVXXXXXXXXXX-72-72.png', 33 | activeIcon: 'https://gw.alicdn.com/tfs/TB1DR.3SXXXXXc2XpXXXXXXXXXX-72-72.png' 34 | }, { 35 | title: '出境日游', 36 | icon: 'https://gw.alicdn.com/tfs/TB1hedfSpXXXXchXXXXXXXXXXXX-72-72.png', 37 | activeIcon: 'https://gw.alicdn.com/tfs/TB1mrXaSpXXXXaqXpXXXXXXXXXX-72-72.png' 38 | }, 39 | { 40 | title: '邮轮', 41 | icon: 'https://gw.alicdn.com/tfs/TB1twhkSpXXXXXLXXXXXXXXXXXX-72-72.png', 42 | activeIcon: 'https://gw.alicdn.com/tfs/TB1dhlhSpXXXXa8XXXXXXXXXXXX-72-72.png' 43 | } 44 | ], 45 | tabStyles: { 46 | bgColor: '#FFFFFF', 47 | titleColor: '#666666', 48 | activeTitleColor: '#3D3D3D', 49 | activeBgColor: '#FFFFFF', 50 | isActiveTitleBold: true, 51 | iconWidth: 70, 52 | iconHeight: 70, 53 | width: 160, 54 | height: 120, 55 | fontSize: 24, 56 | hasActiveBottom: true, 57 | activeBottomColor: '#FFC900', 58 | activeBottomHeight: 6, 59 | activeBottomWidth: 120, 60 | textPaddingLeft: 10, 61 | textPaddingRight: 10 62 | }, 63 | // 使用 iconfont 模式的tab title配置 64 | tabIconFontTitles: [ 65 | { 66 | title: '首页', 67 | codePoint: '\ue623' 68 | }, 69 | { 70 | title: '特别推荐', 71 | codePoint: '\ue608' 72 | }, 73 | { 74 | title: '消息中心', 75 | codePoint: '\ue752', 76 | badge: 5 77 | }, 78 | { 79 | title: '我的主页', 80 | codePoint: '\ue601', 81 | dot: true 82 | } 83 | ], 84 | tabIconFontStyles: { 85 | bgColor: '#FFFFFF', 86 | titleColor: '#666666', 87 | activeTitleColor: '#3D3D3D', 88 | activeBgColor: '#FFFFFF', 89 | isActiveTitleBold: true, 90 | width: 160, 91 | height: 120, 92 | fontSize: 24, 93 | textPaddingLeft: 10, 94 | textPaddingRight: 10, 95 | iconFontSize: 50, 96 | iconFontColor: '#333333', 97 | iconFontMarginBottom: 8, 98 | activeIconFontColor: 'red', 99 | iconFontUrl: '//at.alicdn.com/t/font_501019_mauqv15evc1pp66r.ttf' 100 | } 101 | } -------------------------------------------------------------------------------- /src/js/pages/demo/components/profile.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 46 | 124 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/bundle.config: -------------------------------------------------------------------------------- 1 | {"filesMd5":[{"page":"/config/index.js","md5":"5c35fadd07b486cf52eef8aba3ecde43"},{"page":"/mediator/index.js","md5":"5878636f885d19d9945035cf2683877e"},{"page":"/pages/demo/assets/index.js","md5":"ef262444675f3f0a9822ab0c3ff816c5"},{"page":"/pages/demo/bmcalendar/index.js","md5":"5cf9c64a096f17c0ebb7eb736af9edd0"},{"page":"/pages/demo/bmchart/index.js","md5":"41aa78b9ad8a53d1ba6c40a6001d067f"},{"page":"/pages/demo/bmrichtext/index.js","md5":"cb71e1393e2d1a4b7fe44560a5f5653f"},{"page":"/pages/demo/event/a.js","md5":"9123c79707fae4a06b78c571185180fa"},{"page":"/pages/demo/event/b.js","md5":"95f58beb6194c14db804e9a1ee2466e1"},{"page":"/pages/demo/font/index.js","md5":"3dc2f7b633a7fa911327667855810498"},{"page":"/pages/demo/globalAttr/index.js","md5":"29e3edc885bfd57527f3eb6058b0f0fb"},{"page":"/pages/demo/image/index.js","md5":"0da5ca5f564e14fd78821caf9ed59b2e"},{"page":"/pages/demo/index.js","md5":"54515fb8ca0e9ba0f1d47e8390e2c02a"},{"page":"/pages/demo/inputExtend/index.js","md5":"c856ee10b65b63feeea1395a9edd049b"},{"page":"/pages/demo/lifecycle/index.js","md5":"0b617fdc665d9af86a51917e2e8f1c24"},{"page":"/pages/demo/notice/index.js","md5":"6025404c7bef3174f7a800de63c43961"},{"page":"/pages/demo/other/bindingx.js","md5":"ac9a84b63f471765ea2a8bb56d84625e"},{"page":"/pages/demo/other/bui.js","md5":"3557bfe17270354230b4c86a687de180"},{"page":"/pages/demo/other/weexui.js","md5":"6885c8bc72a620af90592ea1e4989e04"},{"page":"/pages/demo/refresh/index.js","md5":"475198d8077138786a17dc67f90ac949"},{"page":"/pages/demo/router/index.js","md5":"d21566908fb342ef1281a16848b9a4ee"},{"page":"/pages/demo/router/tabbarItem1.js","md5":"5e04adf7056e622f36daf9d8c1bf0d1f"},{"page":"/pages/demo/router/tabbarItem2.js","md5":"030436cda7350c3421edded691bdd78d"},{"page":"/pages/demo/router/tabbarItem3.js","md5":"97f1782d73a94ceb4fb4931aa8e18fc2"},{"page":"/pages/demo/storage/index.js","md5":"48b75a25c95beee15a1f8a792eb56b54"},{"page":"/iconfont/font_1469606063_76593.ttf","md5":"f6222bcfedff4a817bb50df7a049d1db"},{"page":"/iconfont/font_1469606522_9417143.woff","md5":"6cf5490fd14ff83350ff952bb5b8e484"},{"page":"/iconfont/font_zn5b3jswpofuhaor.ttf","md5":"c0356b22e8235d2b0be8880cc81894cc"},{"page":"/iconfont/iconfont-eros.ttf","md5":"68780fad0047dc5b02cb613ebb08cda1"},{"page":"/iconfont/iconfont.ttf","md5":"ec86bfe5bdb872bad2b2af4f11da14f4"},{"page":"/assets/TabBar_Item1@2x.png","md5":"02c1875f727a1f4ec7a9e113498a96a5"},{"page":"/assets/TabBar_Item1_Selected@2x.png","md5":"d5e7609700d9a4f075e39b20fecbb9c3"},{"page":"/assets/TabBar_Item2@2x.png","md5":"a30651ed422c597849ce3d69b2f79048"},{"page":"/assets/TabBar_Item2_Selected@2x.png","md5":"fe893d14ff2d7b330a4aeefddbd8a7fa"},{"page":"/assets/TabBar_Item3@2x.png","md5":"fd2645e8081db44f2110661c2643f5cf"},{"page":"/assets/TabBar_Item3_Selected@2x.png","md5":"457d615a5c198b0148609f5eed84be70"},{"page":"/assets/demo.jpg","md5":"332c4e7d5398207c1b49750369a72848"},{"page":"/assets/test.html","md5":"f97b2e7d63e6ec41fed696ffdec1b7d5"},{"page":"/assets/chart/bm-chart.html","md5":"3949d7966caf98f2b75d916107049393"},{"page":"/assets/chart/bmap.min.js","md5":"a0e601995c75bf3e826ff31c49874941"},{"page":"/assets/chart/echarts.min.js","md5":"772e6fd69e21fb6f6497a1939d948828"}],"android":"eros-template-version","iOS":"eros-template-version","appName":"eros-template-name","jsVersion":"039c84070448c0420fc732057bb9831a","timestamp":1536722733725,"jsPath":"https://app.weex-eros.com/source"} 2 | -------------------------------------------------------------------------------- /src/js/pages/demo/bmcalendar/index.vue: -------------------------------------------------------------------------------- 1 | 2 | 39 | 87 | 101 | 102 | -------------------------------------------------------------------------------- /src/js/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 91 | -------------------------------------------------------------------------------- /platforms/android/WeexFrameworkWrapper/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion '26.0.2' 6 | flavorDimensions 'default' 7 | defaultConfig { 8 | applicationId APPLICATION_ID 9 | minSdkVersion 16 10 | targetSdkVersion 25 11 | versionCode 1 12 | versionName "1.0" 13 | multiDexEnabled true 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 15 | ndk { 16 | abiFilters "x86" 17 | abiFilters "armeabi" 18 | } 19 | javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true 20 | } 21 | 22 | signingConfigs { 23 | eros { 24 | keyAlias 'eros签名实例' 25 | keyPassword 'erosdemo' 26 | storeFile file('../eros_demo.jks') 27 | storePassword 'erosdemo' 28 | v2SigningEnabled false 29 | } 30 | } 31 | 32 | 33 | buildTypes { 34 | release { 35 | minifyEnabled false 36 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 37 | signingConfig signingConfigs.eros 38 | manifestPlaceholders=[UMENG_APP_KEY:UMENG_APPKEY, 39 | GETUI_APP_ID:GETUI_APPID, 40 | GETUI_APP_KEY:GETUI_APPKEY, 41 | GETUI_APP_SECRET:GETTUI_APPSECRET, 42 | APP_ID:APPLICATION_ID 43 | ] 44 | } 45 | 46 | debug { 47 | minifyEnabled false 48 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 49 | signingConfig signingConfigs.eros 50 | manifestPlaceholders=[UMENG_APP_KEY:UMENG_APPKEY, 51 | GETUI_APP_ID:GETUI_APPID, 52 | GETUI_APP_KEY:GETUI_APPKEY, 53 | GETUI_APP_SECRET:GETTUI_APPSECRET, 54 | APP_ID:APPLICATION_ID 55 | ] 56 | } 57 | 58 | } 59 | 60 | lintOptions { 61 | checkReleaseBuilds false 62 | // Or, if you prefer, you can continue to check for errors in release builds, 63 | // but continue the build even when errors are found: 64 | abortOnError false 65 | } 66 | 67 | 68 | productFlavors { 69 | samplechannel{ 70 | dimension 'default' 71 | } 72 | 73 | yingyongbao{ 74 | dimension 'default' 75 | } 76 | } 77 | productFlavors.all { 78 | flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] 79 | } 80 | 81 | sourceSets { 82 | main { 83 | jniLibs.srcDirs=['../wxframework/libs'] 84 | } 85 | } 86 | } 87 | 88 | repositories { 89 | mavenCentral() 90 | flatDir { 91 | 92 | dirs '../wxframework/libs', 'libs' 93 | 94 | } 95 | google() 96 | } 97 | 98 | 99 | dependencies { 100 | compile fileTree(include: ['*.jar'], dir: 'libs') 101 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 102 | exclude group: 'com.android.support', module: 'support-annotations' 103 | }) 104 | compile "com.android.support:support-v4:${PROJECT_SUPPORTLIBVERSION}" 105 | testCompile 'junit:junit:4.12' 106 | compile project(':wxframework') 107 | } 108 | -------------------------------------------------------------------------------- /src/js/pages/demo/other/weexui.vue: -------------------------------------------------------------------------------- 1 | 2 | 37 | 38 | 57 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros.xcodeproj/xcshareddata/xcschemes/WeexEros.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /src/js/pages/demo/components/tools.vue: -------------------------------------------------------------------------------- 1 | 37 | 110 | -------------------------------------------------------------------------------- /src/js/pages/demo/image/index.vue: -------------------------------------------------------------------------------- 1 | 20 | 119 | 123 | -------------------------------------------------------------------------------- /src/assets/chart/bmap.min.js: -------------------------------------------------------------------------------- 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("echarts")):"function"==typeof define&&define.amd?define(["exports","echarts"],e):e(t.bmap={},t.echarts)}(this,function(t,e){"use strict";function o(t,e){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=e,this._projection=new BMap.MercatorProjection}function n(t,o){return o=o||[0,0],e.util.map([0,1],function(e){var n=o[e],i=t[e]/2,a=[],r=[];return a[e]=n-i,r[e]=n+i,a[1-e]=r[1-e]=o[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(r)[e])},this)}function i(){function t(t){this._root=t}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(t){return t.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}function a(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}o.prototype.dimensions=["lng","lat"],o.prototype.setZoom=function(t){this._zoom=t},o.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))},o.prototype.setMapOffset=function(t){this._mapOffset=t},o.prototype.getBMap=function(){return this._bmap},o.prototype.dataToPoint=function(t){var e=new BMap.Point(t[0],t[1]),o=this._bmap.pointToOverlayPixel(e),n=this._mapOffset;return[o.x-n[0],o.y-n[1]]},o.prototype.pointToData=function(t){var e=this._mapOffset;return[(t=this._bmap.overlayPixelToPoint({x:t[0]+e[0],y:t[1]+e[1]})).lng,t.lat]},o.prototype.getViewRect=function(){var t=this._api;return new e.graphic.BoundingRect(0,0,t.getWidth(),t.getHeight())},o.prototype.getRoamTransform=function(){return e.matrix.create()},o.prototype.prepareCustoms=function(t){var o=this.getViewRect();return{coordSys:{type:"bmap",x:o.x,y:o.y,width:o.width,height:o.height},api:{coord:e.util.bind(this.dataToPoint,this),size:e.util.bind(n,this)}}};var r;o.dimensions=o.prototype.dimensions,o.create=function(t,e){var n,a=e.getDom();t.eachComponent("bmap",function(t){var p=e.getZr().painter,s=p.getViewportRoot();if("undefined"==typeof BMap)throw new Error("BMap api is not loaded");if(r=r||i(),n)throw new Error("Only one bmap component can exist");if(!t.__bmap){var m=a.querySelector(".ec-extension-bmap");m&&(s.style.left="0px",s.style.top="0px",a.removeChild(m)),(m=document.createElement("div")).style.cssText="width:100%;height:100%",m.classList.add("ec-extension-bmap"),a.appendChild(m);var c=t.__bmap=new BMap.Map(m),d=new r(s);c.addOverlay(d),p.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}var c=t.__bmap,f=t.get("center"),l=t.get("zoom");if(f&&l){var h=new BMap.Point(f[0],f[1]);c.centerAndZoom(h,l)}(n=new o(c,e)).setMapOffset(t.__mapOffset||[0,0]),n.setZoom(l),n.setCenter(f),t.coordinateSystem=n}),t.eachSeries(function(t){"bmap"===t.get("coordinateSystem")&&(t.coordinateSystem=n)})},e.extendComponentModel({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged:function(t,e){var o=this.option;return!(a(t,o.center)&&e===o.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},roam:!1}}),e.extendComponentView({type:"bmap",render:function(t,e,o){function n(){i||o.dispatchAction({type:"bmapRoam"})}var i=!0,a=t.getBMap(),r=o.getZr().painter.getViewportRoot(),p=t.coordinateSystem,s=function(e,n){if(!i){var a=r.parentNode.parentNode.parentNode,s=[-parseInt(a.style.left,10)||0,-parseInt(a.style.top,10)||0];r.style.left=s[0]+"px",r.style.top=s[1]+"px",p.setMapOffset(s),t.__mapOffset=s,o.dispatchAction({type:"bmapRoam"})}};a.removeEventListener("moving",this._oldMoveHandler),a.removeEventListener("zoomend",this._oldZoomEndHandler),a.addEventListener("moving",s),a.addEventListener("zoomend",n),this._oldMoveHandler=s,this._oldZoomEndHandler=n;var m=t.get("roam");m&&"scale"!==m?a.enableDragging():a.disableDragging(),m&&"move"!==m?(a.enableScrollWheelZoom(),a.enableDoubleClickZoom(),a.enablePinchToZoom()):(a.disableScrollWheelZoom(),a.disableDoubleClickZoom(),a.disablePinchToZoom());var c=t.__mapStyle,d=t.get("mapStyle")||{},f=JSON.stringify(d);JSON.stringify(c)!==f&&(Object.keys(d).length&&a.setMapStyle(d),t.__mapStyle=JSON.parse(f)),i=!1}}),e.registerCoordinateSystem("bmap",o),e.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(t,e){e.eachComponent("bmap",function(t){var e=t.getBMap(),o=e.getCenter();t.setCenterAndZoom([o.lng,o.lat],e.getZoom())})});t.version="1.0.0"}); 2 | -------------------------------------------------------------------------------- /src/js/pages/demo/router/tabbarItem3.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 47 | -------------------------------------------------------------------------------- /platforms/ios/WeexEros/WeexEros/Base.lproj/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/js/pages/demo/other/wxc-item.vue: -------------------------------------------------------------------------------- 1 | 2 | 35 | 36 | 128 | 129 | --------------------------------------------------------------------------------