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
23 KiB
1 lines
23 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/oneGoodsShare"],{"0598":function(t,e,i){"use strict";i.r(e);var s=i("e81e"),r=i("2156");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("5e9f");var a=i("828b"),n=Object(a["a"])(r["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=n.exports},2156:function(t,e,i){"use strict";i.r(e);var s=i("7bed"),r=i.n(s);for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e["default"]=r.a},"572e":function(t,e,i){},5742:function(t,e,i){"use strict";(function(t,e){var s=i("47a9");i("7859");s(i("3240"));var r=s(i("0598"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"5e9f":function(t,e,i){"use strict";var s=i("572e"),r=i.n(s);r.a},"7bed":function(t,e,i){"use strict";(function(t){var s=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(i("7eb4")),o=s(i("ee10")),a=i("072a"),n={components:{cmdNavBar:function(){i.e("components/cmd-nav-bar/cmd-nav-bar").then(function(){return resolve(i("3d8f"))}.bind(null,i)).catch(i.oe)}},data:function(){return{mini_program_openid:"",unionid:"",official_account_openid:"",userId:"",isSelfOrder:!1,enDayShow:!1,textArr:["您还未关注快衣店服务号,暂无法接收充值及上新提醒,点击关注"],FWHPic:"https://jewel-shop.oss-cn-beijing.aliyuncs.com/f2ba2080aaa54c618c2e47df4f220087.png",indexList:[],pages:1,totalPages:0,swiperDotIndex:0,current:0,shopList:[],info:0,bigImg:[],categoryId:"",searchName:"",shopId:"",checkbox:[],temporaryNum:0,priceType:"",yanseList:new Map,chimaList:new Map,goodsDetail:[],attrNameList:[],temporaryList:[],oldTemList:[],carList:[],columns:[],keyList:[],specsList:[],pecsList:[],productNum:0,evalue:[],userList:[],shareType:"1",productId:"",goodsList:[],allChangeNum:0,shopName:"",attributeList:[],zNum:0,pageZongPrice:0,newTemList:[],customId:"",catagoryUserId:"",addressObj:{},zPrice:0,carType:0,carNum:0,pageOldTemList:[],dataObj:new Map,formData:{consigneeMobile:"",consigneeName:"",address1:"",address:"",province:"",city:"",area:"",id:"",userId:""},status:"loadmore",rules:{consigneeName:{rules:[{required:!0,errorMessage:"请输入姓名"}]}}}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var i=JSON.parse(t);for(var s in i)e+=i[s]+" | "}return e}},onShow:function(){t.getStorageSync("officialAccountOpenid")||t.getStorageSync("shopId")||!t.getStorageSync("miniProgramOpenid")||this.getUserInfo()},onLoad:function(e){var i=this;if(e.shareType&&(this.shareType=e.shareType),e.khid)this.khid=e.khid,this.userId=e.userId,this.customId=e.customId,this.customId&&(this.formData.userId=this.customId),this.mini_program_openid=e.mini_program_openid,this.unionid=e.unionid,this.official_account_openid=e.official_account_openid;else if(e.scene){var s=decodeURIComponent(e.scene);this.khid=s}!t.getStorageSync("id")||t.getStorageSync("miniProgramOpenid")||t.getStorageSync("shopId")||this.getOpenId(this.customId,t.getStorageSync("id")?t.getStorageSync("id"):this.userId),this.tui.request("/app/productShare/getShareList","POST",{searchStr:"",categoryId:"",id:e.khid.replace(/-/g,""),pageNum:1,pageSize:"10"},!1,!0).then((function(e){if(200==e.code){if(null!=e.result.share.scene&&(i.catagoryUserId=JSON.parse(e.result.share.scene).id,i.customName=JSON.parse(e.result.share.scene).name,i.formData.userId=JSON.parse(e.result.share.scene).customId,i.userId=JSON.parse(e.result.share.scene).userId,i.mini_program_openid=JSON.parse(e.result.share.scene).mini_program_openid,i.official_account_openid=JSON.parse(e.result.share.scene).official_account_openid,i.unionid=JSON.parse(e.result.share.scene).unionid),i.shopId=e.result.share.shopId,t.setNavigationBarTitle({title:e.result.share.shopName}),i.priceType=e.result.share.priceType,i.shopName=e.result.share.shopName,i.shopList=e.result.shareList.records[0],1==e.result.share.priceType)i.shopList.discountAmount=i.shopList.wholesalePrice;else if(0==e.result.share.priceType)i.shopList.discountAmount=i.shopList.price;else if(i.shopList.discountAmount=i.shopList.wholesalePrice,null!=i.shopList.customerCategoryRule&&""!=i.shopList.customerCategoryRule)for(var s=JSON.parse(i.shopList.customerCategoryRule),r=0;r<s.length;r++)""!=s[r].categoryPrice&&s[r].categoryId==i.catagoryUserId&&(i.shopList.discountAmount=s[r].categoryPrice);if(null!=i.shopList.productPicture){var o={productPicture:i.shopList.productPicture};i.bigImg.push(o)}if(null!=i.shopList.productPictures)for(var a=0;a<i.shopList.productPictures.length;a++)i.bigImg.push(i.shopList.productPictures[a]);i.getCategory()}else i.tui.toast(e.message)})).catch((function(t){})),this.contrastOpneId()},methods:{contrastOpneId:function(){var e=this;return(0,o.default)(r.default.mark((function i(){var s,o;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:s=t.getStorageSync("miniProgramOpenid"),o=e.mini_program_openid,""!=s&&void 0!=s&&null!=s?void 0!=o&&"undefined"!=o&&"null"!=o&&""!=o&&null!=o?s!=o||(e.isSelfOrder=!0,e.$forceUpdate()):(e.updateUserId(),e.isSelfOrder=!0,e.$forceUpdate()):void 0!=o&&"undefined"!=o&&"null"!=o&&""!=o&&null!=o?(e.isSelfOrder=!0,e.$forceUpdate()):(e.updateUserId(),e.isSelfOrder=!0,e.$forceUpdate());case 3:case"end":return i.stop()}}),i)})))()},getUserInfo:function(){var e=this;this.tui.request("/user/getUserInfo","post",{miniProgramOpenid:t.getStorageSync("miniProgramOpenid")},!1,!0).then((function(i){200==i.code&&("null"==i.result.officialAccountOpenid||null==i.result.officialAccountOpenid||void 0==i.result.officialAccountOpenid||""==i.result.officialAccountOpenid?e.enDayShow=!0:(t.setStorageSync("officialAccountOpenid",i.result.officialAccountOpenid),e.enDayShow=!1))})).catch((function(t){}))},updateUserId:function(){var e=this;this.customId&&t.getStorageSync("id")&&this.tui.request("/app/customer/updateUserId","post",{customerId:this.customId,userId:t.getStorageSync("id")},!1,!0).then((function(t){200!=t.code&&e.tui.toast(t.message)})).catch((function(t){}))},getOpenId:function(e,i){var s=this;return new Promise((function(r,o){t.login({provider:"weixin",success:function(o){t.getUserInfo({provider:"weixin",success:function(a){s.tui.request("/user/login","post",{jsCode:o.code,customId:e,userId:i,wechatName:a.userInfo.nickName,userType:"2"},!1,!1).then((function(e){if(200==e.code)return t.setStorageSync("hiver_token",e.result.accessToken),t.setStorageSync("wayValue","2"),t.setStorageSync("nickname",e.result.user.nickname),t.setStorageSync("id",e.result.user.id),t.setStorageSync("unionid",e.result.user.unionid),t.setStorageSync("miniProgramOpenid",e.result.user.miniProgramOpenid),t.setStorageSync("officialAccountOpenid",e.result.user.officialAccountOpenid),r(e.result);tui.toast(e.message)})).catch((function(t){}))},fail:function(t){console.log("微信信息获取失败",t)}})},fail:function(t){console.log("微信登录失败",t)}})}))},bigFWHPic:function(){t.previewImage({urls:[this.FWHPic]})},getCategory:function(){var t=this,e=this;this.tui.request("/app/productAttribute/selectAttributeAndValueByCategoryId","POST",{categoryId:this.shopList.attrId},!1,!0).then((function(i){if(200==i.code){if("string"==typeof i.result.attributeAndValue){var s=JSON.parse(i.result.attributeAndValue),r=[];for(var o in s){for(var a=[],n=0;n<s[o].length;n++){for(var u=0;u<t.oldTemList.length;u++)for(var c=t.oldTemList[u].name.split("/"),h=0;h<c.length;h++)c[h]==s[o][n]&&!0;for(u=0;u<t.pageOldTemList.length;u++)for(c=t.pageOldTemList[u].name.split("/"),h=0;h<c.length;h++)c[h]==s[o][n]&&!0;a.push({value:s[o][n],isChecked:!1}),e.dataObj.set(s[o][n],o),!1}r.push({name:o,value:a})}t.shopList.attributeList=r,t.$forceUpdate()}}else t.tui.toast(res.message)})).catch((function(t){}))},lunbochange:function(t){this.current=t.detail.current},checkPay:function(){var e=this,i={id:this.shopList.categoryId,userId:this.customId};this.tui.request("/app/productShare/save","POST",{priceType:this.priceType,shareType:"1",scene:JSON.stringify(i)},!1,!0).then((function(i){200==i.code?t.navigateTo({url:"/package1/index/downStearmList?khid="+i.result.id+"&userId="+e.customId+"&shareType=1"}):e.tui.toast(i.message)})).catch((function(t){}))},toggle:function(e,i){if(this.type=e,"carPopup"==e){this.oldList=this.carList,this.carNum=0;for(var s=0;s<this.carList.length;s++)this.carNum+=this.carList[s].num;this.countTotalPrice(),this.$refs.carPopup.open("bottom"),this.carType=this.carList.length}else t.showLoading({title:"加载中..."}),this.productId=i.id,this.goodsList=[],this.allChangeNum=0,this.checkGoods(i)},checkGoods:function(e){var i=this;return(0,o.default)(r.default.mark((function s(){var o,a,n,u;return r.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(t.showLoading({title:"加载中..."}),o=i,"1"==i.priceType)i.purchasePrice=e.wholesalePrice;else if("0"==i.priceType)i.purchasePrice=e.price;else if("3"==i.priceType&&null!=i.shopList.customerCategoryRule&&""!=i.shopList.customerCategoryRule)for(a=JSON.parse(i.shopList.customerCategoryRule),n=0;n<a.length;n++)""!=a[n].categoryPrice&&a[n].categoryId==i.catagoryUserId&&(i.purchasePrice=a[n].categoryPrice);if(i.goodsDetail=e,i.temporaryList=[],i.pageOldTemList=[],""!=i.carList)for(i.zNum=0,u=0;u<i.carList.length;u++)e.id==i.carList[u].id&&(i.goodsNum=i.carList[u].stockLogList1[0].productCount,i.zNum=i.carList[u].num,i.temporaryList=i.carList[u].stockLogList1,i.pageOldTemList=i.carList[u].stockLogList1,i.oldTemList=i.carList[u].stockLogList1);return s.next=9,i.tui.request("/app/productAttribute/selectAttributeAndValueByCategoryId","POST",{categoryId:i.goodsDetail.attrId},!1,!0).then((function(t){if(200==t.code){if("string"==typeof t.result.attributeAndValue){var e=JSON.parse(t.result.attributeAndValue),s=[];for(var r in e){for(var a=[],n=0;n<e[r].length;n++){for(var u=0;u<i.oldTemList.length;u++)for(var c=i.oldTemList[u].name.split("/"),h=0;h<c.length;h++)c[h]==e[r][n]&&!0;for(u=0;u<i.pageOldTemList.length;u++)for(c=i.pageOldTemList[u].name.split("/"),h=0;h<c.length;h++)c[h]==e[r][n]&&!0;a.push({value:e[r][n],isChecked:!1}),o.dataObj.set(e[r][n],r),!1}s.push({name:r,value:a})}i.focus=!1,i.$refs.popup.open("bottom"),i.goodsDetail.attributeList=s;for(n=0;n<i.goodsDetail.attributeList.length;n++){var d=!1,l=[];for(u=0;u<i.goodsDetail.attributeList[n].value.length;u++)1==i.goodsDetail.attributeList[n].value[u].isChecked&&(d=!0,l.push(i.goodsDetail.attributeList[n].value[u].value));if(d){var p={specs:[]};p.specs=l,i.goodsList.push(p)}else{i.goodsList.push({specs:[]})}d=!1,l=[]}i.getKCList(t.result.stock),""==i.temporaryList&&i.attrNameChange(0,i.goodsDetail.attributeList[0].value[0].value,0)}}else i.tui.toast(res.message)})).catch((function(t){}));case 9:return s.next=11,t.hideLoading();case 11:case"end":return s.stop()}}),s)})))()},getKCList:function(t){var e=this;this.yanseList=new Map,this.chimaList=new Map,this.pecsList=t;for(var i=function(i){var s=JSON.parse(t[i].attributeList);Object.keys(s).forEach((function(t){"颜色"==t&&1!=e.yanseList.has(s[t])&&e.yanseList.set(s[t],s[t])}))},s=0;s<t.length;s++)i(s);for(var r=0;r<this.goodsDetail.attributeList[0].value.length;r++)1==this.yanseList.has(this.goodsDetail.attributeList[0].value[r].value)&&(this.goodsDetail.attributeList[0].value[r].isKucun=!0)},goToInfo:function(){t.reLaunch({url:"/pages/index/home"})},attrNameChange:function(e,i,s){var r=this;t.showLoading({title:"加载中..."}),this.goodsDetail.attributeList[e].isChecked=!this.goodsDetail.attributeList[e].isChecked,this.goodsDetail.attributeList[e].value[s].isChecked=!this.goodsDetail.attributeList[e].value[s].isChecked,this.evalue=[];for(var o=[],a=0,n=this.goodsDetail.attributeList[0].value;a<n.length;a++)if(n[a].isChecked)for(var u=0,c=this.goodsDetail.attributeList[1].value;u<c.length;u++){var h,d="{";if(h=n[a].value+" | "+c[u].value,d+='"颜色":"'+n[a].value+'",',d+='"尺码":"'+c[u].value+'"',d+="}","1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId)for(var l=0;l<this.pecsList.length;l++)d==this.pecsList[l].attributeList&&null!=this.pecsList[l].stockCount&&Number(this.pecsList[l].stockCount)>0&&(o.push(d),this.evalue.push(h));else o.push(d),this.evalue.push(h)}if(0==o.length&&(this.temporaryList=this.pageOldTemList),0==this.temporaryList.length)for(var p=0;p<o.length;p++)this.attributeList={attributeList:o[p],productCount:this.temporaryNum,productNum:null,name:this.evalue[p],price:this.purchasePrice},this.temporaryList.push(this.attributeList);else{var m=0;for(p=0;p<o.length;p++){for(var f=0;f<this.temporaryList.length;f++)this.temporaryList[f].attributeList==o[p]&&(m=this.temporaryList[f].productCount);this.attributeList={attributeList:o[p],productCount:m,productNum:null,name:this.evalue[p],price:this.purchasePrice},this.newTemList.push(this.attributeList),m=0}for(p=0;p<this.oldTemList.length;p++){var g=!0;for(f=0;f<this.newTemList.length;f++)this.oldTemList[p].attributeList==this.newTemList[f].attributeList&&(this.newTemList[f].productCount=this.oldTemList[p].productCount,g=!1);this.newTemList.length>0&&g&&this.newTemList.push(this.oldTemList[p])}for(p=0;p<this.pageOldTemList.length;p++){var L=!0;for(f=0;f<this.newTemList.length;f++)this.pageOldTemList[p].attributeList==this.newTemList[f].attributeList&&(this.newTemList[f].productCount=this.pageOldTemList[p].productCount,L=!1);this.newTemList.length>0&&L&&this.newTemList.push(this.pageOldTemList[p])}}this.$nextTick((function(){for(var t=0;t<r.temporaryList.length;t++)for(var e=0;e<r.pecsList.length;e++)r.temporaryList[t].attributeList==r.pecsList[e].attributeList&&(r.temporaryList[t].productNum=r.pecsList[e].stockCount),r.$forceUpdate()})),0!=this.newTemList.length&&(this.temporaryList=this.newTemList,this.oldTemList=[],this.newTemList=[]),setTimeout((function(e){t.hideLoading()}),200)},temporaryCheck:function(){for(var t=[],e=0;e<this.temporaryList.length;e++)0!=this.temporaryList[e].productCount&&t.push(this.temporaryList[e]);var i={productId:this.goodsDetail.id,price:this.zPrice,num:this.zNum,discount:10,categoryId:this.goodsDetail.categoryId,productName:this.goodsDetail.productName,purchasePrice:this.goodsDetail.purchasePrice,discountAmount:this.goodsDetail.discountAmount,productSn:this.goodsDetail.productSn,productPicture:this.goodsDetail.productPicture,supplierName:this.goodsDetail.supplierName,stockLogList1:t,saleDetailQueryDTO1:[],wholesalePrice:this.goodsDetail.wholesalePrice,lsprice:this.goodsDetail.price};if(0==this.carList.length)this.carList.push(i);else{for(var s=!0,r=0;r<this.carList.length;r++)this.carList[r].productId==i.productId&&(this.carList[r]=i,s=!1);s&&this.carList.push(i)}for(var o=0;o<this.carList.length;o++){this.carList[o].num=0;for(var a=0;a<this.carList[o].stockLogList1.length;a++)this.carList[o].num+=this.carList[o].stockLogList1[a].productCount}this.temporaryList=[],this.oldTemList=[],this.purchasePrice="",this.zPrice="",this.zNum="";for(var n=0;n<this.goodsDetail.attributeList.length;n++){this.goodsDetail.attributeList[n].isChecked=!1;for(var u=0;u<this.goodsDetail.attributeList[n].value.length;u++)this.goodsDetail.attributeList[n].value[u].isChecked=!1}this.$refs.popup.close(),this.clickPrice()},checkUser:function(t){this.formData.consigneeMobile=t.phone,this.formData.consigneeName=t.name,this.formData.userId=t.id,this.formData.address1=t.province+t.city+t.area,this.formData.address=t.address,this.formData.province=t.province,this.formData.city=t.city,this.formData.area=t.area,this.$refs.addressPopup.close()},delCarData:function(t){this.temporaryList.splice(t,1),this.temporaryChange()},backPrevPage:function(){var e=this;if(!this.isKaiDan)if(this.isKaiDan=!0,this.carList[0].stockLogList1.length<1)this.tui.toast("请选择商品后再开单");else{var i=this;t.setStorageSync("userPhone",i.formData.consigneeMobile),this.$refs.form.validate().then((function(s){var r={mobile:i.formData.consigneeMobile,username:i.formData.consigneeName,userId:void 0==e.formData.userId||null==e.formData.userId||"undefined"==e.formData.userId||"null"==e.formData.userId?"":e.formData.userId,categoryId:"1"==e.priceType||"0"==e.priceType?"":e.catagoryUserId,categoryName:"1"==e.priceType||"0"==e.priceType?"":e.customName,oldSaleId:e.khid,sale:{area:e.formData.area,city:e.formData.city,discount:10,province:e.formData.province,receiveAddress:i.formData.address,totalAmount:i.pageZongPrice,shopId:e.shopId},saleDetailList:e.carList};e.tui.request("/app/sale/savePresale","post",r,!1,!1).then((function(i){200==i.code?(e.tui.toast("下单成功,待商家配货"),setTimeout((function(){t.reLaunch({url:"/package2/login/login"})}),2e3)):e.tui.toast(i.message)}))})).catch((function(t){}))}},openPicker:function(){var e=this;t.chooseLocation({success:function(t){if(""!=t.name){var i=(0,a.getArea)(t.address);e.formData.province=i.province,e.formData.city=i.city,e.formData.area=i.country,e.formData.address=i.address+"-"+t.name,e.formData.address1=i.province+i.city+i.country}else e.tui.toast("微信地址选择器调用失败,请重新选择!")},fail:function(t){}})},saveCheck:function(){this.pageOldTemList=this.temporaryList;for(var t=0;t<this.goodsDetail.attributeList.length;t++){this.goodsList[t].specs=[];for(var e=0;e<this.goodsDetail.attributeList[t].value.length;e++)this.goodsDetail.attributeList[t].value[e].isChecked=!1}},minusNum:function(){this.isChange=!0;for(var t=0;t<this.temporaryList.length;t++){if(0==this.evalue.length)this.temporaryList[t].productCount>0?this.temporaryList[t].productCount--:this.temporaryList[t].productCount=0;else for(var e=0;e<this.evalue.length;e++)this.evalue[e]==this.temporaryList[t].name&&(this.temporaryList[t].productCount>0?this.temporaryList[t].productCount--:this.temporaryList[t].productCount=0);for(var i=0;i<this.pageOldTemList.length;i++)this.temporaryList[t].attributeList==this.pageOldTemList[i].attributeList&&(this.pageOldTemList[i].productCount=this.temporaryList[t].productCount);for(e=0;e<this.oldTemList.length;e++)this.temporaryList[t].attributeList==this.oldTemList[e].attributeList&&(this.oldTemList[e].productCount=this.temporaryList[t].productCount)}this.temporaryChange()},plusNum:function(){this.isChange=!0;for(var t=0;t<this.temporaryList.length;t++){if(0==this.evalue.length)void 0==this.temporaryList[t].productCount?this.temporaryList[t].productCount=1:this.temporaryList[t].productCount+1>this.temporaryList[t].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId)?this.tui.toast(this.temporaryList[t].name+"已超出可购买数量",300):this.temporaryList[t].productCount++;else for(var e=0;e<this.evalue.length;e++)this.evalue[e]==this.temporaryList[t].name&&(void 0==this.temporaryList[t].productCount?this.temporaryList[t].productCount=1:this.temporaryList[t].productCount+1>this.temporaryList[t].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId)?this.tui.toast(this.temporaryList[t].name+"已超出可购买数量",300):this.temporaryList[t].productCount++);for(var i=0;i<this.pageOldTemList.length;i++)this.temporaryList[t].attributeList==this.pageOldTemList[i].attributeList&&(this.pageOldTemList[i].productCount=this.temporaryList[t].productCount);for(e=0;e<this.oldTemList.length;e++)this.temporaryList[t].attributeList==this.oldTemList[e].attributeList&&(this.oldTemList[e].productCount=this.temporaryList[t].productCount)}this.temporaryChange()},allChange:function(t){if(1==this.isChange)this.isChange=!1;else for(var e=0;e<this.temporaryList.length;e++){if(0==this.evalue.length)Number(this.allChangeNum)>this.temporaryList[e].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId)?this.tui.toast(this.temporaryList[e].name+"已超出可购买数量",300):this.temporaryList[e].productCount=Number(this.allChangeNum);else for(var i=0;i<this.evalue.length;i++)this.evalue[i]==this.temporaryList[e].name&&(Number(this.allChangeNum)>this.temporaryList[e].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId)?this.tui.toast(this.temporaryList[e].name+"已超出可购买数量",300):this.temporaryList[e].productCount=Number(this.allChangeNum));for(var s=0;s<this.pageOldTemList.length;s++)this.temporaryList[e].attributeList==this.pageOldTemList[s].attributeList&&(this.pageOldTemList[s].productCount=this.temporaryList[e].productCount);for(i=0;i<this.oldTemList.length;i++)this.temporaryList[e].attributeList==this.oldTemList[i].attributeList&&(this.oldTemList[i].productCount=this.temporaryList[e].productCount)}this.temporaryChange()},temporaryChange:function(t){this.zNum=0;for(var e=0;e<this.temporaryList.length;e++)this.zNum+=this.temporaryList[e].productCount||0;this.zPrice=this.zNum*this.purchasePrice},clickPrice:function(){this.carList[0].stockLogList1.length<1?this.tui.toast("请选择商品后再开单"):(this.getOldPhone(t.getStorageSync("id")?t.getStorageSync("id"):this.userId),this.$refs.inputDialog.open("bottom"))},getOldPhone:function(e){var i,s=this;i=""!=e&&void 0!=e&&"null"!=e&&null!=e?e:t.getStorageSync("userPhone")?t.getStorageSync("userPhone"):"",this.tui.request("/app/customer/findByUserPhoneAndShopId","post",{userPhone:i,shopId:this.shopId},!1,!0).then((function(t){200==t.code&&""!=t.result&&(t.result.length>1?(s.userList=t.result,s.$refs.addressPopup.open()):(s.formData.consigneeMobile=t.result[0].phone,s.formData.consigneeName=t.result[0].name,s.formData.address1=t.result[0].province+t.result[0].city+t.result[0].area,s.formData.address=t.result[0].address,s.formData.userId=t.result[0].id,s.formData.province=t.result[0].province,s.formData.city=t.result[0].city,s.formData.area=t.result[0].area))}))}}};e.default=n}).call(this,i("df3c")["default"])},e81e:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return s}));var s={cmdNavBar:function(){return i.e("components/cmd-nav-bar/cmd-nav-bar").then(i.bind(null,"3d8f"))},uNoticeBar:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uview-ui/components/u-notice-bar/u-notice-bar")]).then(i.bind(null,"013b"))},uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"2864"))},uniDataCheckbox:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(i.bind(null,"fab5"))},uniNumberBox:function(){return i.e("uni_modules/uni-number-box/components/uni-number-box/uni-number-box").then(i.bind(null,"b2ff"))},uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"6bbb6"))},uniForms:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(i.bind(null,"ac36"))},uniFormsItem:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(i.bind(null,"b258"))},uniEasyinput:function(){return i.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(i.bind(null,"5fa6"))}},r=function(){var t=this,e=t.$createElement,i=(t._self._c,t.userList.length);t._isMounted||(t.e0=function(e){return t.$refs.addressPopup.open()}),t.$mp.data=Object.assign({},{$root:{g0:i}})},o=[]}},[["5742","common/runtime","common/vendor"]]]);
|