You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.0 KiB
1 lines
3.0 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/updateShopMsg"],{"0169":function(t,n,e){"use strict";e.r(n);var o=e("36a4"),a=e("1d57");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("2952");var u=e("828b"),r=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=r.exports},"1d57":function(t,n,e){"use strict";e.r(n);var o=e("7ab3"),a=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},2952:function(t,n,e){"use strict";var o=e("b4d7"),a=e.n(o);a.a},"36a4":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"d3ec"))},uniFormsItem:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(e.bind(null,"ac84"))},uniEasyinput:function(){return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null,"bc9c"))},uniDataSelect:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(e.bind(null,"c807"))}},a=function(){var t=this.$createElement;this._self._c},i=[]},5697:function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("82ca");o(e("3240"));var a=o(e("0169"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"7ab3":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{formData:{remark:"",shopIcon:"",address:"",printingMethod:"0",storeFlag:0},typeList:[{value:"0",text:"竖排打印"},{value:"1",text:"横排打印"},{value:"2",text:"简易打印"}],storeList:[{value:"0",text:"不需要"},{value:"1",text:"需要"}]}},onLoad:function(t){this.getShopMsg()},methods:{backPage:function(){t.navigateBack()},getShopMsg:function(){var n=this;this.tui.request("/app/shop/getShopInfoById","post",{id:t.getStorageSync("shopId")},!1,!0).then((function(t){200==t.code&&(n.formData.remark=t.result.remark,n.formData.address=t.result.shopAddress,n.formData.printingMethod=t.result.printingMethod,n.formData.storeFlag=t.result.storeFlag)}))},submit:function(){var n=this;this.tui.request("/app/shop/updateShopIconAndRemark","post",{id:t.getStorageSync("shopId"),remark:this.formData.remark,shopAddress:this.formData.address,storeFlag:this.formData.storeFlag,printingMethod:this.formData.printingMethod},!1,!1).then((function(e){200==e.code?(t.setStorageSync("storeFlag",n.formData.storeFlag),t.showToast({title:"更新成功",icon:"none"}),setTimeout((function(n){t.navigateBack({delta:1})}),1e3)):t.showToast({title:"更新失败",icon:"none"})}))}}};n.default=e}).call(this,e("df3c")["default"])},b4d7:function(t,n,e){}},[["5697","common/runtime","common/vendor"]]]);
|