@dcloudio/uni-h5 0.0.1-nvue3.3030820220125001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var uniH5Vite = require('@dcloudio/uni-h5-vite');
4
+
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var uniH5Vite__default = /*#__PURE__*/_interopDefaultLegacy(uniH5Vite);
8
+
9
+
10
+
11
+ module.exports = uniH5Vite__default["default"];
@@ -0,0 +1,15 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+ function e(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var u=arguments[t],i=0,a=u.length;i<a;i++,o++)r[o]=u[i];return r}var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),n=new Uint8Array(16);function r(){if(!t)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(n)}for(var o=[],u=0;u<256;++u)o[u]=(u+256).toString(16).substr(1);function i(e,t,n){var u=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;a<16;++a)t[u+a]=i[a];return t||function(e,t){var n=t||0,r=o;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}(i)}var a=Object.prototype.hasOwnProperty,c=function(e){return null==e},s=Array.isArray,f=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},l=/-(\w)/g,g=f((function(e){return e.replace(l,(function(e,t){return t?t.toUpperCase():""}))})),p=f((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function m(e,t){if(s(e))return e;if(t&&(n=t,r=e,a.call(n,r)))return[e];var n,r,o=[];return e.replace(d,(function(e,t,n,r){return o.push(n?r.replace(/\\(\\)?/g,"$1"):t||e),r})),o}function v(e,t){var n,r=m(t,e);for(n=r.shift();!c(n);){if(null==(e=e[n]))return;n=r.shift()}return e}var h=new Map;function _(e){if(!function(e){if(e){var t=e.tagName;return 0===t.indexOf("UNI-")||"BODY"===t}return!1}(e))throw Error("no such element");var t,n,r={elementId:(t=e,n=t._id,n||(n=i(),t._id=n,h.set(n,{id:n,element:t})),n),tagName:e.tagName.toLocaleLowerCase().replace("uni-","")},o=e.__vue__;return o&&(o.$parent&&o.$parent.$el===e&&(o=o.$parent),o&&!o.$options.isReserved&&(r.nodeId=function(e){return e._uid}(o))),"video"===r.tagName&&(r.videoId=r.nodeId),r}var y={input:{input:function(e,t){var n=e.__vue__;n.valueSync=t,n.$triggerInput({},{value:t})}},textarea:{input:function(e,t){var n=e.__vue__;n.valueSync=t,n.$triggerInput({},{value:t})}},"scroll-view":{scrollTo:function(e,t,n){var r=e.__vue__.$refs.main;r.scrollLeft=t,r.scrollTop=n},scrollTop:function(e){return e.__vue__.$refs.main.scrollTop},scrollLeft:function(e){return e.__vue__.$refs.main.scrollLeft},scrollWidth:function(e){return e.__vue__.$refs.main.scrollWidth},scrollHeight:function(e){return e.__vue__.$refs.main.scrollHeight}},swiper:{swipeTo:function(e,t){e.__vue__.current=t}},"movable-view":{moveTo:function(e,t,n){e.__vue__._animationTo(t,n)}},switch:{tap:function(e){e.click()}},slider:{slideTo:function(e,t){var n=e.__vue__,r=n.$refs["uni-slider"],o=r.offsetWidth,u=r.getBoundingClientRect().left;n.value=t,n._onClick({x:(t-n.min)*o/(n.max-n.min)+u})}}},E={getWindow:function(e){return window},getDocument:function(e){return document},getEl:function(e){var t=h.get(e);if(!t)throw Error("element destroyed");return t.element},getOffset:function(e){var t=e.getBoundingClientRect();return Promise.resolve({left:t.left+window.pageXOffset,top:t.top+window.pageYOffset})},querySelector:function(e,t){return"page"===t&&(t="body"),Promise.resolve(_(e.querySelector(t)))},querySelectorAll:function(e,t){var n=[],r=document.querySelectorAll(t);return[].forEach.call(r,(function(e){try{n.push(_(e))}catch(e){}})),Promise.resolve({elements:n})},queryProperties:function(e,t){return Promise.resolve({properties:t.map((function(t){var n=v(e,t);return"document.documentElement.scrollTop"===t&&0===n&&(n=v(e,"document.body.scrollTop")),n}))})},queryAttributes:function(e,t){return Promise.resolve({attributes:t.map((function(t){return String(e.getAttribute(t))}))})},queryStyles:function(e,t){var n=getComputedStyle(e);return Promise.resolve({styles:t.map((function(e){return n[e]}))})},queryHTML:function(e,t){return Promise.resolve({html:(n="outer"===t?e.outerHTML:e.innerHTML,n.replace(/\n/g,"").replace(/(<uni-text[^>]*>)(<span[^>]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(e){return-1<e.indexOf("<body")?"<page>":"</body>"===e?"</page>":0!==e.indexOf("<uni-")&&0!==e.indexOf("</uni-")?"":e.replace(/uni-/g,"").replace(/ role=""/g,"").replace(/ aria-label=""/g,"")})))});var n},dispatchTapEvent:function(e){return e.click(),Promise.resolve()},dispatchLongpressEvent:function(e){return Promise.resolve()},dispatchTouchEvent:function(e,t,n){n||(n={}),n.touches||(n.touches=[]),n.changedTouches||(n.changedTouches=[]),n.touches.length||n.touches.push({identifier:Date.now(),target:e});var r=T(n.touches),o=T(n.changedTouches),u=T([]);return e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,touches:r,targetTouches:u,changedTouches:o})),Promise.resolve()},callFunction:function(t,n,r){var o=v(y,n);return o?Promise.resolve({result:o.apply(null,e([t],r))}):Promise.reject(Error(n+" not exists"))},triggerEvent:function(e,t,n){var r=e.__vue__;return r.$trigger&&r.$trigger(t,{},n),Promise.resolve()}};function T(e){var t,n=e.map((function(e){return function(e){if(document.createTouch)return document.createTouch(window,e.target,e.identifier,e.pageX,e.pageY,e.screenX,e.screenY);return new Touch(e)}(e)}));return document.createTouchList?(t=document).createTouchList.apply(t,n):n}["movable-view","picker","ad","button","checkbox-group","checkbox","form","icon","label","movable-area","navigator","picker-view-column","picker-view","progress","radio-group","radio","rich-text","u-slider","swiper-item","swiper","switch"].map((function(e){return p(g(e))}));var S,w=Object.assign({},function(e){return{"Page.getElement":function(t){return e.querySelector(e.getDocument(t.pageId),t.selector)},"Page.getElements":function(t){return e.querySelectorAll(e.getDocument(t.pageId),t.selector)},"Page.getWindowProperties":function(t){return e.queryProperties(e.getWindow(t.pageId),t.names)}}}(E),function(e){var t=function(t){return e.getEl(t.elementId,t.pageId)};return{"Element.getElement":function(n){return e.querySelector(t(n),n.selector)},"Element.getElements":function(n){return e.querySelectorAll(t(n),n.selector)},"Element.getDOMProperties":function(n){return e.queryProperties(t(n),n.names)},"Element.getProperties":function(n){var r=t(n),o=r.__vue__||r.attr||{};return e.queryProperties(o,n.names)},"Element.getOffset":function(n){return e.getOffset(t(n))},"Element.getAttributes":function(n){return e.queryAttributes(t(n),n.names)},"Element.getStyles":function(n){return e.queryStyles(t(n),n.names)},"Element.getHTML":function(n){return e.queryHTML(t(n),n.type)},"Element.tap":function(n){return e.dispatchTapEvent(t(n))},"Element.longpress":function(n){return e.dispatchLongpressEvent(t(n))},"Element.touchstart":function(n){return e.dispatchTouchEvent(t(n),"touchstart",n)},"Element.touchmove":function(n){return e.dispatchTouchEvent(t(n),"touchmove",n)},"Element.touchend":function(n){return e.dispatchTouchEvent(t(n),"touchend",n)},"Element.callFunction":function(n){return e.callFunction(t(n),n.functionName,n.args)},"Element.triggerEvent":function(n){return e.triggerEvent(t(n),n.type,n.detail)}}}(E));function P(e){return UniViewJSBridge.publishHandler("onAutoMessageReceive",e)}function b(e){return e.__wxWebviewId__?e.__wxWebviewId__:e.privateProperties?e.privateProperties.slaveId:e.$page?e.$page.id:void 0}function O(e){return e.route||e.uri}function I(e){return e.options||e.$page&&e.$page.options||{}}function M(e){return{id:b(e),path:O(e),query:I(e)}}function C(e){var t=function(e){return getCurrentPages().find((function(t){return b(t)===e}))}(e);return t&&t.$vm}function $(e,t){var n=C(e);return n&&function e(t,n){var r;return t&&(!function(e,t){return e._uid===t}(t,n)?t.$children.find((function(t){return r=e(t,n)})):r=t),r}(n,t)}function x(e,t){var n;return e&&(n=t?v(e.$data,t):Object.assign({},e.$data)),Promise.resolve({data:n})}function A(e,t){return e&&Object.keys(t).forEach((function(n){e[n]=t[n]})),Promise.resolve()}function N(e,t,n){return new Promise((function(r,o){if(!e)return o(S.VM_NOT_EXISTS);if(!e[t])return o(S.VM_NOT_EXISTS);var u,i=e[t].apply(e,n);!(u=i)||"object"!=typeof u&&"function"!=typeof u||"function"!=typeof u.then?r({result:i}):i.then((function(e){r({result:e})}))}))}UniViewJSBridge.subscribe("sendAutoMessage",(function(e){var t=e.id,n=e.method,r=e.params,o={id:t},u=w[n];if(!u)return o.error={message:n+" unimplemented"},P(o);try{u(r).then((function(e){e&&(o.result=e)})).catch((function(e){o.error={message:e.message}})).finally((function(){P(o)}))}catch(e){o.error={message:e.message},P(o)}})),function(e){e.VM_NOT_EXISTS="VM_NOT_EXISTS",e.METHOD_NOT_EXISTS="METHOD_NOT_EXISTS"}(S||(S={}));var k=["stopRecord","getRecorderManager","pauseVoice","stopVoice","pauseBackgroundAudio","stopBackgroundAudio","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","createVideoContext","createCameraContext","createMapContext","canIUse","startAccelerometer","stopAccelerometer","startCompass","stopCompass","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","navigateBack","createAnimation","pageScrollTo","createSelectorQuery","createCanvasContext","createContext","drawCanvas","hideKeyboard","stopPullDownRefresh","arrayBufferToBase64","base64ToArrayBuffer"],q={},L=/Sync$/,V=/^on|^off/;function B(e){return L.test(e)||-1!==k.indexOf(e)}var D={getPageStack:function(){return Promise.resolve({pageStack:getCurrentPages().map((function(e){return M(e)}))})},getCurrentPage:function(){var e=getCurrentPages(),t=e.length;return new Promise((function(n,r){t?n(M(e[t-1])):r(Error("getCurrentPages().length=0"))}))},callUniMethod:function(e){var t=e.method,n=e.args;return new Promise((function(e,r){if(!uni[t])return r(Error("uni."+t+" not exists"));if(B(t))return e({result:uni[t].apply(uni,n)});var o=[Object.assign({},n[0]||{},{success:function(n){setTimeout((function(){e({result:n})}),"pageScrollTo"===t?350:0)},fail:function(e){r(Error(e.errMsg.replace(t+":fail ","")))}})];uni[t].apply(uni,o)}))},mockUniMethod:function(e){var t=e.method;if(!uni[t])throw Error("uni."+t+" not exists");if(!function(e){return!V.test(e)}(t))throw Error("You can't mock uni."+t);var n=e.result;if(c(n))return q[t]&&(uni[t]=q[t],delete q[t]),Promise.resolve();var r=B(t)?function(){return n}:function(e){setTimeout((function(){n.errMsg&&-1!==n.errMsg.indexOf(":fail")?e.fail&&e.fail(n):e.success&&e.success(n),e.complete&&e.complete(n)}),4)};return q[t]||(q[t]=uni[t]),uni[t]=r,Promise.resolve()}},R={getData:function(e){return x(C(e.pageId),e.path)},setData:function(e){return A(C(e.pageId),e.data)},callMethod:function(e){var t,n=((t={})[S.VM_NOT_EXISTS]="Page["+e.pageId+"] not exists",t[S.METHOD_NOT_EXISTS]="page."+e.method+" not exists",t);return new Promise((function(t,r){N(C(e.pageId),e.method,e.args).then((function(e){return t(e)})).catch((function(e){r(Error(n[e]))}))}))}};function j(e){return e.nodeId||e.elementId}var H={getData:function(e){return x($(e.pageId,j(e)),e.path)},setData:function(e){return A($(e.pageId,j(e)),e.data)},callMethod:function(e){var t,n=j(e),r=((t={})[S.VM_NOT_EXISTS]="Component["+e.pageId+":"+n+"] not exists",t[S.METHOD_NOT_EXISTS]="component."+e.method+" not exists",t);return new Promise((function(t,o){N($(e.pageId,n),e.method,e.args).then((function(e){return t(e)})).catch((function(e){o(Error(r[e]))}))}))}},U={};Object.keys(D).forEach((function(e){U["App."+e]=D[e]})),Object.keys(R).forEach((function(e){U["Page."+e]=R[e]})),Object.keys(H).forEach((function(e){U["Element."+e]=H[e]}));var X,W,J=process.env.UNI_AUTOMATOR_WS_ENDPOINT;function Y(e){W.send({data:JSON.stringify(e)})}function F(e){var t=JSON.parse(e.data),n=t.id,r=t.method,o=t.params,u={id:n},i=U[r];if(!i){if(X){var a=X(n,r,o,u);if(!0===a)return;i=a}if(!i)return u.error={message:r+" unimplemented"},Y(u)}try{i(o).then((function(e){e&&(u.result=e)})).catch((function(e){u.error={message:e.message}})).finally((function(){Y(u)}))}catch(e){u.error={message:e.message},Y(u)}}X=function(e,t,n,r){var o=n.pageId,u=function(e){var t=getCurrentPages();if(!e)return t[t.length-1];return t.find((function(t){return t.$page.id===e}))}(o);if(!u)return r.error={message:"page["+o+"] not exists"},Y(r),!0;u.$page.meta.isNVue;return UniServiceJSBridge.publishHandler("sendAutoMessage",{id:e,method:t,params:n},o),!0},UniServiceJSBridge.subscribe("onAutoMessageReceive",(function(e){Y(e)})),setTimeout((function(){var e;void 0===e&&(e={}),(W=uni.connectSocket({url:J,complete:function(){}})).onMessage(F),W.onOpen((function(t){e.success&&e.success(),console.log("已开启自动化测试...")})),W.onError((function(e){console.log("automator.onError",e)})),W.onClose((function(){e.fail&&e.fail({errMsg:"$$initRuntimeAutomator:fail"}),console.log("automator.onClose")}))}),500);
@@ -0,0 +1 @@
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("debug")),o=e(require("postcss-selector-parser"));const n=t("automator:devtool");function r(e){e.walk(e=>{if("tag"===e.type){const t=e.value;e.value="page"===t?"uni-page-body":"uni-"+t}})}const s=["Page.getElement","Page.getElements","Element.getElement","Element.getElements"];const i=["chromium","firefox","webkit"];let a=!1;try{a=!!require("playwright")}catch(e){}const c=new Map;function p(e="chromium"){const t=e&&i.includes(e)?e:i[0];let o=c.get(t);return o||(o=function(e){if("webkit"===e)return l("webkit");if("firefox"===e)return l("firefox");return a?l("chromium"):function(){const e=require("puppeteer");let t,o;return{type:"chromium",provider:"puppeteer",async open(r,s,i){t=await e.launch(s.options);const a=t.process();a?n("%s %o",a.spawnfile,s.options):n("%o",s.options),o=await t.newPage(),o.on("console",e=>{i.emit("App.logAdded",{type:e.type(),args:[e.text()]})}),o.on("pageerror",e=>{i.emit("App.exceptionThrown",e)}),await o.goto(s.url||r),await o.waitFor(1e3)},close:()=>t.close(),screenshot:(e=!1)=>o.screenshot({encoding:"base64",fullPage:e})}}()}(t),c.set(t,o)),o}function l(e){const t=require("playwright");let o,r;return{type:e,provider:"playwright",async open(s,i,a){o=await t[e].launch(i.options),"firefox"===e&&(i.contextOptions.isMobile=!1),n("browser.newContext "+JSON.stringify(i.contextOptions));const c=await o.newContext(i.contextOptions);r=await c.newPage(),r.on("console",e=>{a.emit("App.logAdded",{type:e.type(),args:[e.text()]})}),r.on("pageerror",e=>{a.emit("App.exceptionThrown",e)}),await r.goto(i.url||s),await r.waitForTimeout(1e3)},close:()=>o.close(),screenshot:(e=!1)=>r.screenshot({fullPage:e}).then(e=>e.toString("base64"))}}let u;const f={"Tool.close":{reflect:async()=>{await u.close()}},"App.exit":{reflect:async()=>{}},"App.enableLog":{reflect:()=>Promise.resolve()},"App.captureScreenshot":{reflect:async(e,t)=>{const o=await u.screenshot(!!t.fullPage);return n("App.captureScreenshot "+o.length),{data:o}}}};!function(e){s.forEach(t=>{e[t]=function(e){return{reflect:async(t,o)=>t(e,o,!1),params:e=>(e.selector&&(e.selector=o(r).processSync(e.selector)),e)}}(t)})}(f);const h={devtools:{name:"browser",paths:[],validate:async function(e){return e.options=e.options||{},e.executablePath&&!e.options.executablePath&&(e.options.executablePath=e.executablePath),e.contextOptions={viewport:Object.assign({width:375,height:667},e.options.defaultViewport||{}),hasTouch:!0,isMobile:!0,deviceScaleFactor:2},e.options.defaultViewport=Object.assign({width:375,height:667,deviceScaleFactor:2,hasTouch:!0,isMobile:!0},e.options.defaultViewport||{}),e.teardown||(e.teardown=!1===e.options.headless?"disconnect":"close"),e},create:async function(e,t,o){u=p(process.env.BROWSER),n("createDevtools "+(u.provider+" "+u.type+" "+JSON.stringify(t))),await u.open(e,t,o)}},shouldCompile:(e,t)=>!t.url,adapter:f};module.exports=h;
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@dcloudio/uni-h5",
3
+ "version": "0.0.1-nvue3.3030820220125001",
4
+ "description": "@dcloudio/uni-h5",
5
+ "main": "./dist/uni-h5.cjs.js",
6
+ "module": "./dist/uni-h5.es.js",
7
+ "files": [
8
+ "dist",
9
+ "lib",
10
+ "style"
11
+ ],
12
+ "sideEffects": [
13
+ "lib/automator.js"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/dcloudio/uni-app.git",
18
+ "directory": "packages/uni-h5"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "bugs": {
22
+ "url": "https://github.com/dcloudio/uni-app/issues"
23
+ },
24
+ "uni-app": {
25
+ "name": "uni-h5",
26
+ "apply": [
27
+ "h5"
28
+ ],
29
+ "main": "dist/uni.compiler.js"
30
+ },
31
+ "dependencies": {
32
+ "@dcloudio/uni-h5-vite": "0.0.1-nvue3.3030820220125001",
33
+ "@dcloudio/uni-h5-vue": "0.0.1-nvue3.3030820220125001",
34
+ "@dcloudio/uni-i18n": "0.0.1-nvue3.3030820220125001",
35
+ "@dcloudio/uni-shared": "0.0.1-nvue3.3030820220125001",
36
+ "@vue/server-renderer": "3.2.29",
37
+ "@vue/shared": "3.2.29",
38
+ "localstorage-polyfill": "^1.0.1",
39
+ "safe-area-insets": "^1.4.1",
40
+ "vue-router": "^4.0.12",
41
+ "xmlhttprequest": "^1.8.0"
42
+ },
43
+ "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
44
+ "devDependencies": {
45
+ "@dcloudio/uni-cli-i18n": "^2.0.0-32920211029004",
46
+ "@dcloudio/uni-cli-shared": "0.0.1-nvue3.3030820220125001",
47
+ "@types/google.maps": "^3.45.6",
48
+ "acorn-loose": "^8.2.1",
49
+ "acorn-walk": "^8.2.0",
50
+ "vue": "3.2.29"
51
+ }
52
+ }
@@ -0,0 +1,8 @@
1
+ uni-ad-content-page {
2
+ display: block;
3
+ overflow: hidden;
4
+ }
5
+
6
+ uni-ad-content-page[hidden] {
7
+ display: none;
8
+ }
@@ -0,0 +1,8 @@
1
+ uni-ad-draw {
2
+ display: block;
3
+ overflow: hidden;
4
+ }
5
+
6
+ uni-ad-draw[hidden] {
7
+ display: none;
8
+ }
package/style/ad.css ADDED
@@ -0,0 +1,8 @@
1
+ uni-ad {
2
+ display: block;
3
+ overflow: hidden;
4
+ }
5
+
6
+ uni-ad[hidden] {
7
+ display: none;
8
+ }
@@ -0,0 +1,108 @@
1
+ uni-actionsheet {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .uni-actionsheet {
7
+ position: fixed;
8
+ left: 6px;
9
+ right: 6px;
10
+ bottom: 6px;
11
+ transform: translate(0, 100%);
12
+ backface-visibility: hidden;
13
+ z-index: 999;
14
+ visibility: hidden;
15
+ transition: transform 0.3s, visibility 0.3s;
16
+ }
17
+
18
+ .uni-actionsheet.uni-actionsheet_toggle {
19
+ visibility: visible;
20
+ transform: translate(0, 0);
21
+ }
22
+
23
+ .uni-actionsheet * {
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ .uni-actionsheet__menu,
28
+ .uni-actionsheet__action {
29
+ border-radius: 5px;
30
+ background-color: #fcfcfd;
31
+ }
32
+
33
+ .uni-actionsheet__action {
34
+ margin-top: 6px;
35
+ }
36
+
37
+ .uni-actionsheet__cell,
38
+ .uni-actionsheet__title {
39
+ position: relative;
40
+ padding: 10px 6px;
41
+ text-align: center;
42
+ font-size: 18px;
43
+ text-overflow: ellipsis;
44
+ overflow: hidden;
45
+ cursor: pointer;
46
+ }
47
+
48
+ .uni-actionsheet__title {
49
+ position: absolute;
50
+ top: 0;
51
+ right: 0;
52
+ left: 0;
53
+ z-index: 1;
54
+ background-color: #fff;
55
+ border-radius: 5px 5px 0 0;
56
+ border-bottom: 1px solid #e5e5e5;
57
+ }
58
+
59
+ .uni-actionsheet__cell:before {
60
+ content: ' ';
61
+ position: absolute;
62
+ left: 0;
63
+ top: 0;
64
+ right: 0;
65
+ height: 1px;
66
+ border-top: 1px solid #e5e5e5;
67
+ color: #e5e5e5;
68
+ transform-origin: 0 0;
69
+ transform: scaleY(0.5);
70
+ }
71
+
72
+ .uni-actionsheet__cell:active {
73
+ background-color: #ececec;
74
+ }
75
+
76
+ .uni-actionsheet__cell:first-child:before {
77
+ display: none;
78
+ }
79
+
80
+ @media screen and (min-width: 500px) and (min-height: 500px) {
81
+ .uni-mask.uni-actionsheet__mask {
82
+ background: none;
83
+ }
84
+
85
+ .uni-actionsheet {
86
+ width: 300px;
87
+ left: 50%;
88
+ right: auto;
89
+ top: 50%;
90
+ bottom: auto;
91
+ transform: translate(-50%, -50%);
92
+ opacity: 0;
93
+ transition: opacity 0.3s, visibility 0.3s;
94
+ }
95
+
96
+ .uni-actionsheet.uni-actionsheet_toggle {
97
+ opacity: 1;
98
+ transform: translate(-50%, -50%);
99
+ }
100
+
101
+ .uni-actionsheet__menu {
102
+ box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
103
+ }
104
+
105
+ .uni-actionsheet__action {
106
+ display: none;
107
+ }
108
+ }
@@ -0,0 +1,220 @@
1
+ .uni-system-choose-location {
2
+ display: block;
3
+ position: fixed;
4
+ left: 0;
5
+ top: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ background: #f8f8f8;
9
+ z-index: 999;
10
+ }
11
+
12
+ .uni-system-choose-location .map {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ width: 100%;
17
+ height: 300px;
18
+ }
19
+
20
+ .uni-system-choose-location .map-location {
21
+ position: absolute;
22
+ left: 50%;
23
+ bottom: 50%;
24
+ width: 32px;
25
+ height: 52px;
26
+ margin-left: -16px;
27
+ cursor: pointer;
28
+ background-size: 100%;
29
+ }
30
+
31
+ .uni-system-choose-location .map-move {
32
+ position: absolute;
33
+ bottom: 50px;
34
+ right: 10px;
35
+ width: 40px;
36
+ height: 40px;
37
+ box-sizing: border-box;
38
+ line-height: 40px;
39
+ background-color: white;
40
+ border-radius: 50%;
41
+ pointer-events: auto;
42
+ cursor: pointer;
43
+ box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
44
+ }
45
+
46
+ .uni-system-choose-location .map-move>svg {
47
+ display: block;
48
+ width: 100%;
49
+ height: 100%;
50
+ box-sizing: border-box;
51
+ padding: 8px;
52
+ }
53
+
54
+ .uni-system-choose-location .nav {
55
+ position: absolute;
56
+ top: 0;
57
+ left: 0;
58
+ width: 100%;
59
+ height: 44px;
60
+ background-color: transparent;
61
+ background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
62
+ }
63
+
64
+ .uni-system-choose-location .nav-btn {
65
+ position: absolute;
66
+ box-sizing: border-box;
67
+ top: 0;
68
+ left: 0;
69
+ width: 60px;
70
+ height: 44px;
71
+ padding: 6px;
72
+ line-height: 32px;
73
+ font-size: 26px;
74
+ color: white;
75
+ text-align: center;
76
+ cursor: pointer;
77
+ }
78
+
79
+ .uni-system-choose-location .nav-btn.confirm {
80
+ left: auto;
81
+ right: 0;
82
+ }
83
+
84
+ .uni-system-choose-location .nav-btn.disable {
85
+ opacity: 0.4;
86
+ }
87
+
88
+ .uni-system-choose-location .nav-btn>svg {
89
+ display: block;
90
+ width: 100%;
91
+ height: 100%;
92
+ /* line-height: inherit; */
93
+ border-radius: 2px;
94
+ box-sizing: border-box;
95
+ padding: 3px;
96
+ }
97
+
98
+ .uni-system-choose-location .nav-btn.confirm>svg {
99
+ background-color: #007aff;
100
+ padding: 5px;
101
+ }
102
+
103
+ .uni-system-choose-location .menu {
104
+ position: absolute;
105
+ top: 300px;
106
+ left: 0;
107
+ width: 100%;
108
+ bottom: 0;
109
+ background-color: white;
110
+ }
111
+
112
+ .uni-system-choose-location .search {
113
+ display: flex;
114
+ flex-direction: row;
115
+ height: 50px;
116
+ padding: 8px;
117
+ line-height: 34px;
118
+ box-sizing: border-box;
119
+ background-color: white;
120
+ }
121
+
122
+ .uni-system-choose-location .search-input {
123
+ flex: 1;
124
+ height: 100%;
125
+ border-radius: 5px;
126
+ padding: 0 5px;
127
+ background: #ebebeb;
128
+ }
129
+
130
+ .uni-system-choose-location .search-btn {
131
+ margin-left: 5px;
132
+ color: #007aff;
133
+ font-size: 17px;
134
+ text-align: center;
135
+ }
136
+
137
+ .uni-system-choose-location .list {
138
+ position: absolute;
139
+ top: 50px;
140
+ left: 0;
141
+ width: 100%;
142
+ bottom: 0;
143
+ padding-bottom: 10px;
144
+ /* background-color: #f6f6f6; */
145
+ }
146
+
147
+ .uni-system-choose-location .list-loading {
148
+ display: flex;
149
+ height: 50px;
150
+ justify-content: center;
151
+ align-items: center;
152
+ }
153
+
154
+ .uni-system-choose-location .list-item {
155
+ position: relative;
156
+ padding: 10px;
157
+ padding-right: 40px;
158
+ cursor: pointer;
159
+ }
160
+
161
+ .uni-system-choose-location .list-item>svg {
162
+ display: none;
163
+ position: absolute;
164
+ top: 50%;
165
+ right: 10px;
166
+ width: 30px;
167
+ height: 30px;
168
+ margin-top: -15px;
169
+ box-sizing: border-box;
170
+ padding: 5px;
171
+ }
172
+
173
+ .uni-system-choose-location .list-item.selected>svg {
174
+ display: block;
175
+ }
176
+
177
+ .uni-system-choose-location .list-item:not(:last-child)::after {
178
+ position: absolute;
179
+ content: "";
180
+ height: 1px;
181
+ left: 10px;
182
+ bottom: 0;
183
+ width: 100%;
184
+ background-color: #d3d3d3;
185
+ }
186
+
187
+ .uni-system-choose-location .list-item-title {
188
+ font-size: 14px;
189
+ overflow: hidden;
190
+ white-space: nowrap;
191
+ text-overflow: ellipsis;
192
+ }
193
+
194
+ .uni-system-choose-location .list-item-detail {
195
+ font-size: 12px;
196
+ color: #808080;
197
+ overflow: hidden;
198
+ white-space: nowrap;
199
+ text-overflow: ellipsis;
200
+ }
201
+
202
+ @media screen and (min-width: 800px) {
203
+ .uni-system-choose-location .map {
204
+ top: 0;
205
+ height: 100%;
206
+ }
207
+ .uni-system-choose-location .map-move {
208
+ bottom: 10px;
209
+ right: 320px;
210
+ }
211
+ .uni-system-choose-location .menu {
212
+ top: 54px;
213
+ left: auto;
214
+ right: 10px;
215
+ width: 300px;
216
+ bottom: 10px;
217
+ max-height: 600px;
218
+ box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
219
+ }
220
+ }
@@ -0,0 +1,133 @@
1
+ .uni-system-open-location {
2
+ display: block;
3
+ position: fixed;
4
+ left: 0;
5
+ top: 0;
6
+ width: 100%;
7
+ height: 100%;
8
+ background: #f8f8f8;
9
+ z-index: 999;
10
+ }
11
+
12
+ .uni-system-open-location .map {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ width: 100%;
17
+ bottom: 80px;
18
+ height: auto;
19
+ }
20
+
21
+ .uni-system-open-location .info {
22
+ position: absolute;
23
+ bottom: 0;
24
+ left: 0;
25
+ width: 100%;
26
+ height: 80px;
27
+ background-color: white;
28
+ padding: 15px;
29
+ box-sizing: border-box;
30
+ line-height: 1.5;
31
+ }
32
+
33
+ .uni-system-open-location .info>.name {
34
+ font-size: 17px;
35
+ color: #111111;
36
+ }
37
+
38
+ .uni-system-open-location .info>.address {
39
+ font-size: 14px;
40
+ color: #666666;
41
+ }
42
+
43
+ .uni-system-open-location .info>.nav {
44
+ position: absolute;
45
+ top: 50%;
46
+ right: 15px;
47
+ width: 50px;
48
+ height: 50px;
49
+ border-radius: 50%;
50
+ margin-top: -25px;
51
+ background-color: #007aff;
52
+ }
53
+
54
+ .uni-system-open-location .info>.nav>svg {
55
+ display: block;
56
+ width: 100%;
57
+ height: 100%;
58
+ padding: 10px;
59
+ box-sizing: border-box;
60
+ }
61
+
62
+ .uni-system-open-location .map-move {
63
+ position: absolute;
64
+ bottom: 50px;
65
+ right: 10px;
66
+ width: 40px;
67
+ height: 40px;
68
+ box-sizing: border-box;
69
+ line-height: 40px;
70
+ background-color: white;
71
+ border-radius: 50%;
72
+ pointer-events: auto;
73
+ cursor: pointer;
74
+ box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
75
+ }
76
+
77
+ .uni-system-open-location .map-move>svg {
78
+ display: block;
79
+ width: 100%;
80
+ height: 100%;
81
+ box-sizing: border-box;
82
+ padding: 8px;
83
+ }
84
+
85
+ .uni-system-open-location .nav-btn-back {
86
+ position: absolute;
87
+ box-sizing: border-box;
88
+ top: 0;
89
+ left: 0;
90
+ width: 44px;
91
+ height: 44px;
92
+ padding: 6px;
93
+ cursor: pointer;
94
+ }
95
+
96
+ .uni-system-open-location .nav-btn-back>svg {
97
+ display: block;
98
+ width: 100%;
99
+ height: 100%;
100
+ border-radius: 50%;
101
+ background-color: rgba(0, 0, 0, 0.5);
102
+ padding: 3px;
103
+ box-sizing: border-box;
104
+ }
105
+
106
+ .uni-system-open-location .map-content {
107
+ position: absolute;
108
+ left: 0;
109
+ top: 0px;
110
+ width: 100%;
111
+ bottom: 0;
112
+ overflow: hidden;
113
+ }
114
+
115
+ .uni-system-open-location .map-content.fix-position {
116
+ top: -74px;
117
+ bottom: -44px;
118
+ }
119
+
120
+ .uni-system-open-location .map-content>iframe {
121
+ width: 100%;
122
+ height: 100%;
123
+ border: none;
124
+ }
125
+
126
+ .uni-system-open-location .actTonav {
127
+ position: absolute;
128
+ right: 16px;
129
+ bottom: 56px;
130
+ width: 60px;
131
+ height: 60px;
132
+ border-radius: 60px;
133
+ }