首次提交
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.js","sources":["App.vue"],"sourcesContent":["<script>\n export default {\n onLaunch: function() {\n console.log('App Launch')\n },\n onShow: function() {\n console.log('App Show')\n },\n onHide: function() {\n console.log('App Hide')\n }\n }\n</script>\n\n<style>\n .container {\n padding: 15px;\n }\n\n button {\n margin-bottom: 15px;\n }\n</style>\n"],"names":["uni"],"mappings":";;;;;;;;;;AACE,MAAK,YAAU;AAAA,EACb,UAAU,WAAW;AACnBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACzB;AAAA,EACD,QAAQ,WAAW;AACjBA,kBAAAA,mCAAY,UAAU;AAAA,EACvB;AAAA,EACD,QAAQ,WAAW;AACjBA,kBAAAA,oCAAY,UAAU;AAAA,EACxB;AACF;;;;;;;;;;;;;;;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["locale/index.js"],"sourcesContent":["import en from './en.json'\nimport zhHans from './zh-Hans.json'\nimport zhHant from './zh-Hant.json'\nimport ja from './ja.json'\nexport default {\n\ten,\n\t'zh-Hans': zhHans,\n\t'zh-Hant': zhHant,\n\tja\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAe,WAAA;AAAA,EACd;AAAA,EACA,WAAW;AAAA,EACX,WAAW;AAAA,EACX;AACD;;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"api.js","sources":["pages/api/api.vue","D:/Tool/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvYXBpL2FwaS52dWU"],"sourcesContent":["<template>\n <view class=\"container\">\n <button @click=\"showModel\">uni.showModal</button>\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {}\n },\n methods: {\n showModel() {\n uni.showModal({\n content: this.$t('api.message'),\n success: (res) => {\n console.log(res);\n }\n })\n }\n }\n }\n</script>\n\n<style>\n\n</style>\n","import MiniProgramPage from 'E:/Project/Vue/uniapp/hashmall-app/pages/api/api.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni"],"mappings":";;AAOE,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO,CAAC;AAAA,EACT;AAAA,EACD,SAAS;AAAA,IACP,YAAY;AACVA,oBAAAA,MAAI,UAAU;AAAA,QACZ,SAAS,KAAK,GAAG,aAAa;AAAA,QAC9B,SAAS,CAAC,QAAQ;AAChBA,wBAAAA,MAAY,MAAA,OAAA,2BAAA,GAAG;AAAA,QACjB;AAAA,OACD;AAAA,IACH;AAAA,EACF;AACF;;;;;;;ACpBF,GAAG,WAAW,eAAe;"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"component.js","sources":["pages/component/component.vue","D:/Tool/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvY29tcG9uZW50L2NvbXBvbmVudC52dWU"],"sourcesContent":["<template>\n <view class=\"container\">\n <no-data></no-data>\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {\n title: this.$t('')\n }\n },\n methods: {\n \n }\n }\n</script>\n\n<style>\n\n</style>\n","import MiniProgramPage from 'E:/Project/Vue/uniapp/hashmall-app/pages/component/component.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;AAOE,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,OAAO,KAAK,GAAG,EAAE;AAAA,IACnB;AAAA,EACD;AAAA,EACD,SAAS,CAET;AACF;;;;;;;;;;;;;ACfF,GAAG,WAAW,eAAe;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"schema.js","sources":["pages/schema/schema.vue","D:/Tool/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvc2NoZW1hL3NjaGVtYS52dWU"],"sourcesContent":["<template>\n <view class=\"container\">\n <view>{{$t('schema.name')}}</view>\n <input class=\"input\" v-model=\"name\" />\n <button type=\"primary\" @click=\"add\">{{$t('schema.add')}}</button>\n </view>\n</template>\n\n<script>\n const collection = \"hello\";\n export default {\n data() {\n return {\n name: \"\"\n }\n },\n methods: {\n add() {\n uni.showLoading();\n let db = uniCloud.database()\n db.collection(collection).add({\n name: this.name\n }).then((res) => {\n uni.showToast({\n title: this.$t('schema.add-success')\n })\n }).catch((err) => {\n uni.showModal({\n content: err.message,\n showCancel: false\n })\n }).finally(() => {\n uni.hideLoading();\n })\n }\n }\n }\n</script>\n\n<style>\n .input {\n border: 1px solid #ebebeb;\n border-radius: 3px;\n margin-top: 15px;\n margin-bottom: 15px;\n padding: 8px;\n }\n</style>\n","import MiniProgramPage from 'E:/Project/Vue/uniapp/hashmall-app/pages/schema/schema.vue'\nwx.createPage(MiniProgramPage)"],"names":["uni","uniCloud"],"mappings":";;AASE,MAAM,aAAa;AACnB,MAAK,YAAU;AAAA,EACb,OAAO;AACL,WAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACD;AAAA,EACD,SAAS;AAAA,IACP,MAAM;AACJA,oBAAG,MAAC,YAAW;AACf,UAAI,KAAKC,cAAQ,GAAC,SAAS;AAC3B,SAAG,WAAW,UAAU,EAAE,IAAI;AAAA,QAC5B,MAAM,KAAK;AAAA,MACb,CAAC,EAAE,KAAK,CAAC,QAAQ;AACfD,sBAAAA,MAAI,UAAU;AAAA,UACZ,OAAO,KAAK,GAAG,oBAAoB;AAAA,SACpC;AAAA,MACH,CAAC,EAAE,MAAM,CAAC,QAAQ;AAChBA,sBAAAA,MAAI,UAAU;AAAA,UACZ,SAAS,IAAI;AAAA,UACb,YAAY;AAAA,SACb;AAAA,MACH,CAAC,EAAE,QAAQ,MAAM;AACfA,sBAAG,MAAC,YAAW;AAAA,OAChB;AAAA,IACH;AAAA,EACF;AACF;;;;;;;;;;;ACnCF,GAAG,WAAW,eAAe;"}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["uni_modules/no-data/components/no-data/i18n/index.js"],"sourcesContent":["import en from './en.json'\nimport zhHans from './zh-Hans.json'\nimport zhHant from './zh-Hant.json'\nimport ja from './ja.json'\nexport default {\n en,\n 'zh-Hans': zhHans,\n 'zh-Hant': zhHant,\n ja\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,MAAe,WAAA;AAAA,EACb;AAAA,EACA,WAAW;AAAA,EACX,WAAW;AAAA,EACX;AACF;;"}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"no-data.js","sources":["uni_modules/no-data/components/no-data/no-data.vue","D:/Tool/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovUHJvamVjdC9WdWUvdW5pYXBwL2hhc2htYWxsLWFwcC91bmlfbW9kdWxlcy9uby1kYXRhL2NvbXBvbmVudHMvbm8tZGF0YS9uby1kYXRhLnZ1ZQ"],"sourcesContent":["<template>\n <view class=\"content\">\n <text class=\"message\">{{title}}</text>\n </view>\n</template>\n<script>\n import {\n initVueI18n\n } from '@dcloudio/uni-i18n'\n import messages from './i18n/index.js'\n const {\n t\n } = initVueI18n(messages)\n\n export default {\n name: 'no-data',\n props: {},\n data() {\n return {\n title: t('no-data.title')\n }\n },\n created(e) {},\n // #ifndef VUE3\n destroyed() {},\n // #endif\n // #ifdef VUE3\n unmounted() {},\n // #endif\n methods: {}\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .content {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .message {\n opacity: .8;\n }\n</style>\n","import Component from 'E:/Project/Vue/uniapp/hashmall-app/uni_modules/no-data/components/no-data/no-data.vue'\nwx.createComponent(Component)"],"names":["initVueI18n","messages"],"mappings":";;;AAUE,MAAM;AAAA,EACJ;IACEA,cAAAA,YAAYC,gDAAAA,QAAQ;AAExB,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,OAAO,CAAE;AAAA,EACT,OAAO;AACL,WAAO;AAAA,MACL,OAAO,EAAE,eAAe;AAAA,IAC1B;AAAA,EACD;AAAA,EACD,QAAQ,GAAG;AAAA,EAAE;AAAA,EAKb,YAAY;AAAA,EAAE;AAAA,EAEd,SAAS,CAAC;AACZ;;;;;;;AC7BF,GAAG,gBAAgB,SAAS;"}
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const common_vendor = require("./common/vendor.js");
|
||||
const locale_index = require("./locale/index.js");
|
||||
if (!Math) {
|
||||
"./pages/index/index.js";
|
||||
"./pages/component/component.js";
|
||||
"./pages/api/api.js";
|
||||
"./pages/schema/schema.js";
|
||||
}
|
||||
const _sfc_main = {
|
||||
onLaunch: function() {
|
||||
common_vendor.index.__f__("log", "at App.vue:4", "App Launch");
|
||||
},
|
||||
onShow: function() {
|
||||
common_vendor.index.__f__("log", "at App.vue:7", "App Show");
|
||||
},
|
||||
onHide: function() {
|
||||
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
|
||||
}
|
||||
};
|
||||
let i18nConfig = {
|
||||
locale: common_vendor.index.getLocale(),
|
||||
messages: locale_index.messages
|
||||
};
|
||||
const i18n = common_vendor.createI18n(i18nConfig);
|
||||
function createApp() {
|
||||
const app = common_vendor.createSSRApp(_sfc_main);
|
||||
app.use(i18n);
|
||||
return {
|
||||
app
|
||||
};
|
||||
}
|
||||
createApp().app.mount("#app");
|
||||
exports.createApp = createApp;
|
||||
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/component/component",
|
||||
"pages/api/api",
|
||||
"pages/schema/schema"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#7A7E83",
|
||||
"selectedColor": "#007AFF",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#F8F8F8",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "Home"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/component/component",
|
||||
"text": "Component"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/api/api",
|
||||
"text": "API"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/schema/schema",
|
||||
"text": "Schema"
|
||||
}
|
||||
]
|
||||
},
|
||||
"usingComponents": {}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
.container {
|
||||
padding: 15px;
|
||||
}
|
||||
button {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}
|
||||
+14314
File diff suppressed because it is too large
Load Diff
+104
@@ -0,0 +1,104 @@
|
||||
"use strict";
|
||||
const en = {
|
||||
"locale.auto": "System",
|
||||
"locale.en": "English",
|
||||
"locale.zh-hans": "简体中文",
|
||||
"locale.zh-hant": "繁体中文",
|
||||
"locale.ja": "日语",
|
||||
"index.title": "Hello i18n",
|
||||
"index.home": "Home",
|
||||
"index.component": "Component",
|
||||
"index.api": "API",
|
||||
"index.schema": "Schema",
|
||||
"index.demo": "uni-app globalization",
|
||||
"index.demo-description": "Include uni-framework, manifest.json, pages.json, tabbar, Page, Component, API, Schema",
|
||||
"index.detail": "Detail",
|
||||
"index.language": "Language",
|
||||
"index.language-info": "Settings",
|
||||
"index.system-language": "System language",
|
||||
"index.application-language": "Application language",
|
||||
"index.language-change-confirm": "Applying this setting will restart the app",
|
||||
"api.message": "Message",
|
||||
"schema.name": "Name",
|
||||
"schema.add": "Add",
|
||||
"schema.add-success": "Add success"
|
||||
};
|
||||
const zhHans = {
|
||||
"locale.auto": "系统",
|
||||
"locale.en": "English",
|
||||
"locale.zh-hans": "简体中文",
|
||||
"locale.zh-hant": "繁体中文",
|
||||
"locale.ja": "日语",
|
||||
"index.title": "Hello i18n",
|
||||
"index.home": "主页",
|
||||
"index.component": "组件",
|
||||
"index.api": "API",
|
||||
"index.schema": "Schema",
|
||||
"index.demo": "uni-app 国际化演示",
|
||||
"index.demo-description": "包含 uni-framework、manifest.json、pages.json、tabbar、页面、组件、API、Schema",
|
||||
"index.detail": "详情",
|
||||
"index.language": "语言",
|
||||
"index.language-info": "语言信息",
|
||||
"index.system-language": "系统语言",
|
||||
"index.application-language": "应用语言",
|
||||
"index.language-change-confirm": "应用此设置将重启App",
|
||||
"api.message": "提示",
|
||||
"schema.name": "姓名",
|
||||
"schema.add": "新增",
|
||||
"schema.add-success": "新增成功"
|
||||
};
|
||||
const zhHant = {
|
||||
"locale.auto": "系統",
|
||||
"locale.en": "English",
|
||||
"locale.zh-hans": "简体中文",
|
||||
"locale.zh-hant": "繁體中文",
|
||||
"locale.ja": "日语",
|
||||
"index.title": "Hello i18n",
|
||||
"index.home": "主頁",
|
||||
"index.component": "組件",
|
||||
"index.api": "API",
|
||||
"index.schema": "Schema",
|
||||
"index.demo": "uni-app 國際化演示",
|
||||
"index.demo-description": "包含 uni-framework、manifest.json、pages.json、tabbar、頁面、組件、API、Schema",
|
||||
"index.detail": "詳情",
|
||||
"index.language": "語言",
|
||||
"index.language-info": "語言信息",
|
||||
"index.system-language": "系統語言",
|
||||
"index.application-language": "應用語言",
|
||||
"index.language-change-confirm": "應用此設置將重啟App",
|
||||
"api.message": "提示",
|
||||
"schema.name": "姓名",
|
||||
"schema.add": "新增",
|
||||
"schema.add-success": "新增成功"
|
||||
};
|
||||
const ja = {
|
||||
"locale.auto": "システム",
|
||||
"locale.en": "英語",
|
||||
"locale.zh-hans": "简体中文",
|
||||
"locale.zh-hant": "繁体中文",
|
||||
"locale.ja": "日语",
|
||||
"index.title": "Hello i18n",
|
||||
"index.home": "ホーム",
|
||||
"index.component": "コンポーネント",
|
||||
"index.api": "API",
|
||||
"index.schema": "Schema",
|
||||
"index.demo": "uni-app globalization",
|
||||
"index.demo-description": "ユニフレームワーク、manifest.json、pages.json、タブバー、ページ、コンポーネント、APIを含める、Schema",
|
||||
"index.detail": "詳細",
|
||||
"index.language": "言語",
|
||||
"index.language-info": "設定",
|
||||
"index.system-language": "システム言語",
|
||||
"index.application-language": "アプリケーション言語",
|
||||
"index.language-change-confirm": "この設定を適用すると、アプリが再起動します",
|
||||
"api.message": "メッセージ",
|
||||
"schema.add": "追加",
|
||||
"schema.add-success": "成功を追加"
|
||||
};
|
||||
const messages = {
|
||||
en,
|
||||
"zh-Hans": zhHans,
|
||||
"zh-Hant": zhHant,
|
||||
ja
|
||||
};
|
||||
exports.messages = messages;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/locale/index.js.map
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
methods: {
|
||||
showModel() {
|
||||
common_vendor.index.showModal({
|
||||
content: this.$t("api.message"),
|
||||
success: (res) => {
|
||||
common_vendor.index.__f__("log", "at pages/api/api.vue:17", res);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.showModel && $options.showModel(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/api/api.js.map
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "API",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="container"><button bindtap="{{a}}">uni.showModal</button></view>
|
||||
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: this.$t("")
|
||||
};
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_no_data2 = common_vendor.resolveComponent("no-data");
|
||||
_easycom_no_data2();
|
||||
}
|
||||
const _easycom_no_data = () => "../../uni_modules/no-data/components/no-data/no-data.js";
|
||||
if (!Math) {
|
||||
_easycom_no_data();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/component/component.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "Component",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"no-data": "../../uni_modules/no-data/components/no-data/no-data"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="container"><no-data u-i="a3e3830c-0" bind:__l="__l"></no-data></view>
|
||||
@@ -0,0 +1,87 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
systemLocale: "",
|
||||
applicationLocale: ""
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
locales() {
|
||||
return [
|
||||
{
|
||||
text: this.$t("locale.auto"),
|
||||
code: "auto"
|
||||
},
|
||||
{
|
||||
text: this.$t("locale.en"),
|
||||
code: "en"
|
||||
},
|
||||
{
|
||||
text: this.$t("locale.zh-hans"),
|
||||
code: "zh-Hans"
|
||||
},
|
||||
{
|
||||
text: this.$t("locale.zh-hant"),
|
||||
code: "zh-Hant"
|
||||
},
|
||||
{
|
||||
text: this.$t("locale.ja"),
|
||||
code: "ja"
|
||||
}
|
||||
];
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let systemInfo = common_vendor.index.getSystemInfoSync();
|
||||
this.systemLocale = systemInfo.language;
|
||||
this.applicationLocale = common_vendor.index.getLocale();
|
||||
this.isAndroid = systemInfo.platform.toLowerCase() === "android";
|
||||
common_vendor.index.onLocaleChange((e) => {
|
||||
this.applicationLocale = e.locale;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
onLocaleChange(e) {
|
||||
if (this.isAndroid) {
|
||||
common_vendor.index.showModal({
|
||||
content: this.$t("index.language-change-confirm"),
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
common_vendor.index.setLocale(e.code);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.setLocale(e.code);
|
||||
this.$i18n.locale = e.code;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t(_ctx.$t("index.demo")),
|
||||
b: common_vendor.t(_ctx.$t("index.demo-description")),
|
||||
c: common_vendor.t(_ctx.$t("index.detail")),
|
||||
d: common_vendor.t(_ctx.$t("index.language-info")),
|
||||
e: common_vendor.t(_ctx.$t("index.system-language")),
|
||||
f: common_vendor.t($data.systemLocale),
|
||||
g: common_vendor.t(_ctx.$t("index.application-language")),
|
||||
h: common_vendor.t($data.applicationLocale),
|
||||
i: common_vendor.t(_ctx.$t("index.language")),
|
||||
j: common_vendor.f($options.locales, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.text),
|
||||
b: item.code == $data.applicationLocale
|
||||
}, item.code == $data.applicationLocale ? {} : {}, {
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => $options.onLocaleChange(item), index)
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "Hello i18n",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="container"><view class="title">{{a}}</view><view class="description">{{b}}</view><view class="detail-link">{{c}}: <text class="link">https://uniapp.dcloud.net.cn/collocation/i18n</text></view><view class="locale-setting">{{d}}</view><view class="list-item"><text class="k">{{e}}:</text><text class="v">{{f}}</text></view><view class="list-item"><text class="k">{{g}}:</text><text class="v">{{h}}</text></view><view class="locale-setting">{{i}}</view><view class="locale-list"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="locale-item" bindtap="{{item.d}}"><text class="text">{{item.a}}</text><text wx:if="{{item.b}}" class="icon-check"></text></view></view></view>
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.description {
|
||||
font-size: 14px;
|
||||
opacity: 0.6;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.detail-link {
|
||||
font-size: 14px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.link {
|
||||
color: #007AFF;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.locale-setting {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 5px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
.list-item {
|
||||
font-size: 14px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.list-item .v {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.locale-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.locale-item .text {
|
||||
flex: 1;
|
||||
}
|
||||
.icon-check {
|
||||
margin-right: 5px;
|
||||
border: 2px solid #007aff;
|
||||
border-left: 0;
|
||||
border-top: 0;
|
||||
height: 12px;
|
||||
width: 6px;
|
||||
transform-origin: center;
|
||||
|
||||
transition: all 0.3s;
|
||||
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const collection = "hello";
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
name: ""
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
add() {
|
||||
common_vendor.index.showLoading();
|
||||
let db = common_vendor.er.database();
|
||||
db.collection(collection).add({
|
||||
name: this.name
|
||||
}).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: this.$t("schema.add-success")
|
||||
});
|
||||
}).catch((err) => {
|
||||
common_vendor.index.showModal({
|
||||
content: err.message,
|
||||
showCancel: false
|
||||
});
|
||||
}).finally(() => {
|
||||
common_vendor.index.hideLoading();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t(_ctx.$t("schema.name")),
|
||||
b: $data.name,
|
||||
c: common_vendor.o(($event) => $data.name = $event.detail.value),
|
||||
d: common_vendor.t(_ctx.$t("schema.add")),
|
||||
e: common_vendor.o((...args) => $options.add && $options.add(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/schema/schema.js.map
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "Schema",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="container"><view>{{a}}</view><input class="input" value="{{b}}" bindinput="{{c}}"/><button type="primary" bindtap="{{e}}">{{d}}</button></view>
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
.input {
|
||||
border: 1px solid #ebebeb;
|
||||
border-radius: 3px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
padding: 8px;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.7.8",
|
||||
"appid": "touristappid",
|
||||
"projectname": "哈希优品",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "hashmall-app",
|
||||
"setting": {
|
||||
"compileHotReLoad": true
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
const en = {
|
||||
"no-data.title": "No Data"
|
||||
};
|
||||
const zhHans = {
|
||||
"no-data.title": "无数据"
|
||||
};
|
||||
const zhHant = {
|
||||
"no-data.title": "無數據"
|
||||
};
|
||||
const ja = {
|
||||
"no-data.title": "データなし"
|
||||
};
|
||||
const messages = {
|
||||
en,
|
||||
"zh-Hans": zhHans,
|
||||
"zh-Hant": zhHant,
|
||||
ja
|
||||
};
|
||||
exports.messages = messages;
|
||||
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/uni_modules/no-data/components/no-data/i18n/index.js.map
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_noData_components_noData_i18n_index = require("./i18n/index.js");
|
||||
const {
|
||||
t
|
||||
} = common_vendor.initVueI18n(uni_modules_noData_components_noData_i18n_index.messages);
|
||||
const _sfc_main = {
|
||||
name: "no-data",
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
title: t("no-data.title")
|
||||
};
|
||||
},
|
||||
created(e) {
|
||||
},
|
||||
unmounted() {
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.t($data.title)
|
||||
};
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-985e9f3e"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/no-data/components/no-data/no-data.js.map
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="content data-v-985e9f3e"><text class="message data-v-985e9f3e">{{a}}</text></view>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.content.data-v-985e9f3e {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.message.data-v-985e9f3e {
|
||||
opacity: 0.8;
|
||||
}
|
||||
Reference in New Issue
Block a user