1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/nodifyData/nodifyData"],{"224f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("bf0a"),s={props:["lotusAddressData"],data:function(){return{visible:!1,province:[],city:[],town:[],provinceName:"",cityName:"",townName:"",type:0,pChoseIndex:-1,cChoseIndex:-1,tChoseIndex:-1}},methods:{cancelPicker:function(){var t=this.getTarId(this.provinceName),e=this.getTarId(this.cityName),i=this.getTarId(this.townName);this.visible=!1,this.$emit("choseVal",{province:this.provinceName,provinceCode:t,city:this.cityName,cityCode:e,town:this.townName,townCode:i,isChose:0,visible:!1})},chosedVal:function(){this.type=1;var t=this.getTarId(this.provinceName),e=this.getTarId(this.cityName),i=this.getTarId(this.townName);this.visible=!1;var n=0;(this.provinceName&&this.cityName||this.provinceName&&this.cityName&&this.townName)&&(n=1),this.$emit("choseVal",{province:this.provinceName,provinceCode:t,city:this.cityName,cityCode:e,town:this.townName,townCode:i,isChose:n,visible:!1})},getTarId:function(t,e){var i=0;return n.lotusAddressJson.map((function(e,n){e.name===t&&(i=e.value)})),i},getCityArr:function(t){var e=[];return n.lotusAddressJson.map((function(i,n){i.parent===t&&e.push(i.name)})),e},getTownArr:function(t){var e=[];return n.lotusAddressJson.map((function(i,n){n>34&&i.parent===t&&e.push(i.name)})),e},initFn:function(){var t=this;this.province.length||n.lotusAddressJson.map((function(e,i){i<=34&&t.province.push(e.name)}));var e=this._props.lotusAddressData.provinceName,i=this._props.lotusAddressData.cityName,s=this._props.lotusAddressData.townName;if(e&&(this.pChoseIndex=this.getTarIndex(this.province,e)),e&&i){var a=this.getTarId(e);this.city=this.getCityArr(a),this.cChoseIndex=this.getTarIndex(this.city,i)}if(e&&i&&s){var r=this.getTarId(i);this.town=this.getTownArr(r),this.tChoseIndex=this.getTarIndex(this.town,s)}e||i||s||(this.pChoseIndex=-1,this.cChoseIndex=-1,this.tChoseIndex=-1,this.city=[],this.town=[])},getChosedData:function(){var t=this.getTarId(this.provinceName,"province");this.city=this.getCityArr(t);var e=this.getTarId(this.cityName,"city");this.town=this.getTownArr(e),this.provinceName&&(this.pChoseIndex=this.getTarIndex(this.province,this.provinceName)),this.cityName&&(this.cChoseIndex=this.getTarIndex(this.city,this.cityName)),this.townName&&(this.tChoseIndex=this.getTarIndex(this.town,this.townName))},clickPicker:function(t,e,i){0===t&&(this.pChoseIndex=e,this.provinceName=i,this.cChoseIndex=-1,this.tChoseIndex=-1,this.cityName="",this.townName=""),1===t&&(this.cChoseIndex=e,this.cityName=i,this.tChoseIndex=-1,this.townName=""),2===t&&(this.tChoseIndex=e,this.townName=i),this.getChosedData()},getTarIndex:function(t,e){var i=0;return t.map((function(t,n){t===e&&(i=n)})),i}},computed:{checkStatus:function(){var t=null,e=this;return e.visible||(e.visible=e._props.lotusAddressData.visible,e.provinceName=e._props.lotusAddressData.provinceName,e.cityName=e._props.lotusAddressData.cityName,e.townName=e._props.lotusAddressData.townName,e.initFn(),t=e.visible),t}}};e.default=s},2992:function(t,e,i){"use strict";i.r(e);var n=i("d0dd"),s=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a},3151:function(t,e,i){"use strict";var n=i("bd8b"),s=i.n(n);s.a},"99fa":function(t,e,i){"use strict";i.r(e);var n=i("a269"),s=i("aac0");for(var a in s)"default"!==a&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("3151");var r,o=i("f0c5"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=c.exports},"9f44":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={simpleAddress:function(){return Promise.all([i.e("common/vendor"),i.e("components/simple-address/simple-address")]).then(i.bind(null,"1448"))}},s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.dataList,(function(e,i){var n=t.__get_orig(e),s=2==i?e.title.charAt(0):null,a=2==i?e.title.charAt(1):null,r=2==i?e.title.charAt(2):null,o=2==i?e.title.charAt(3):null,c=3==i||7==i?e.title.charAt(0):null,u=3==i||7==i?e.title.charAt(1):null;return{$orig:n,g0:s,g1:a,g2:r,g3:o,g4:c,g5:u}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},a=[]},a269:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var s=function(){var t=this,e=t.$createElement;t._self._c},a=[]},aac0:function(t,e,i){"use strict";i.r(e);var n=i("224f"),s=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a},b09a:function(t,e,i){},bd8b:function(t,e,i){},d0dd:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("99fa"));function n(t){return t&&t.__esModule?t:{default:t}}var s=function(){Promise.all([i.e("common/vendor"),i.e("components/simple-address/simple-address")]).then(function(){return resolve(i("1448"))}.bind(null,i)).catch(i.oe)},a={components:{simpleAddress:s},data:function(){return{statusHNH:t.getStorageSync("statusHNH"),publicColor:t.getStorageSync("publicColor"),dataList:[{title:"用户头像",content:"",imgSrc:"/static/public/like.png"},{title:"用户昵称",content:"吃肉的饺子",imgSrc:""},{title:"恒美ID",content:"20210203",imgSrc:""},{title:"性别",content:"",imgSrc:""},{title:"出生日期",content:"",imgSrc:""},{title:"真实姓名",content:"杨幂",imgSrc:""},{title:"联系电话",content:"18888888888",imgSrc:""},{title:"地址",content:"",imgSrc:""}],isKuang:!0,current:0,pickerData:["男","女"],currentt:0,pickerTime:["1997-01-01"],currenta:0,cityPickerValueDefault:[0,0,1],pickerText:"四川省成都市成华区",btnCon:"保存"}},onLoad:function(){},methods:{openAddres2:function(){var t=this.$refs.simpleAddress.queryIndex(["四川省","成都市","成华区"],"label");this.cityPickerValueDefault=t.index,this.$refs.simpleAddress.open()},onConfirm:function(t){this.pickerText=t.labelArr[0]+t.labelArr[1]+t.labelArr[2]},chooseItem:function(t){switch(console.log(this.dataList[t].title),t){case 3:break;case 4:break;case 7:break}},chooseHead:function(){var e=this;t.chooseImage({count:1,success:function(t){e.dataList[0].imgSrc=t.tempFilePaths[0]}})},changePicker:function(t){this.current=t.detail.value},changeTime:function(t){this.pickerTime=[t.detail.value]},changeAddress:function(t){}}};e.default=a}).call(this,i("5486")["default"])},ebb5:function(t,e,i){"use strict";(function(t){i("3f1a");n(i("66fd"));var e=n(i("ff33"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("5486")["createPage"])},f084:function(t,e,i){"use strict";var n=i("b09a"),s=i.n(n);s.a},ff33:function(t,e,i){"use strict";i.r(e);var n=i("9f44"),s=i("2992");for(var a in s)"default"!==a&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("f084");var r,o=i("f0c5"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=c.exports}},[["ebb5","common/runtime","common/vendor"]]]); |