首次提交
This commit is contained in:
@@ -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;"}
|
||||
Reference in New Issue
Block a user