mirror of
https://gitee.com/niucloud-team/javashop.git
synced 2026-05-28 19:53:55 +00:00
Niucloud JAVA版框架1.1.0更新内容
新增
* 增加小程序展示线上版本号
* 发布小程序添加自定义版本号
* 添加后台取消小程序绑定微信公众平台授权
* 管理端核销功能
* 用户端导入微信地址功能
优化
* 装修页面时可自定义底部导航
* 小程序添加版权信息展示
* 应用菜单结构优化:取消独立营销菜单,统一在应用菜单下按分类
* 分页列表增加缓存,记录当前页信息,操作完成后,返回当前页
* 开启标签栏时对标签页面进行缓存
* 统一框架装修自定义使用底部导航数据结构
修复
* 删除表单报错
* admin首页点击未安装、已安装应用,页面跳转空白
* 修复插件云安装错误时同时显示安装失败和安装完成
商城1.0.5更新内容
新增
* 用户端添加订单开具发票功能
* 管理后台添加补开发票功能
优化
* 商品列表增加相关活动的关联展示
* 限时折扣、积分商城增加批量操作
* 积分商品,若有规格未参与积分活动,则无法购买
* 复制商品,提示语优化
修复
* 满减送活动赠品设置多件,只展示1件
* 满减送赠品未扣除库存问题
* 商品列表批量设置分类后商品分类查询不到商品的问题
* 商品标签状态已经关闭添加商品时依旧可以选择
* 商家地址库联系方式搜索无效
* 商品分类拖动排序无效
* 参与满减活动再使用优惠券,订单0元申请退款时,退款金额出现负数
* 积分商城规格值设置不参与积分兑换提交订单未拦截
* 虚拟商品核销码设置的永久有效,核销时提示商品已过期
* 订单满减送退款售后点击详情报错
* 按会员标签发放优惠券异常一直未发放
* 微信支付申请退款售后点击转账跳转404
* 订单列表输入会员编号、账号点击搜索筛选不出来内容
* 多商品组商品来源选择分组,只有一个商品分类时多商品组商品展示不正确
* 商品组件排序方式选择为价格时报错
* 图文导航选择积分商品报错
2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{bL as h,a6 as s,$ as l,s as o,az as a,ah as c}from"./index-a2dd70e3.js";const u=h("diy",{state:()=>({id:0,load:!1,currentIndex:-99,currentComponent:"edit-page",pageMode:"diy",editTab:"content",pageTitle:"",name:"",type:"",typeName:"",templateName:"",isDefault:0,predefineColors:["#F4391c","#ff4500","#ff8c00","#FFD009","#ffd700","#19C650","#90ee90","#00ced1","#1e90ff","#c71585","#FF407E","#CFAF70","#A253FF","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"],components:[],position:["top_fixed","right_fixed","bottom_fixed","left_fixed","fixed"],global:{title:"页面",completeLayout:"style-1",completeAlign:"left",borderControl:!0,pageStartBgColor:"",pageEndBgColor:"",pageGradientAngle:"to bottom",bgUrl:"",bgHeightScale:0,imgWidth:"",imgHeight:"",topStatusBar:{control:!0,isShow:!0,bgColor:"#ffffff",rollBgColor:"#ffffff",style:"style-1",styleName:"风格1",textColor:"#333333",rollTextColor:"#333333",textAlign:"center",inputPlaceholder:"请输入搜索关键词",imgUrl:"",link:{name:""}},bottomTabBar:{control:!0,isShow:!0,designNav:{title:"",key:""}},copyright:{control:!0,isShow:!1,textColor:"#ccc"},popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:"once",show:0,link:{name:""}},template:{textColor:"#303133",pageStartBgColor:"",pageEndBgColor:"",pageGradientAngle:"to bottom",componentBgUrl:"",componentBgAlpha:2,componentStartBgColor:"",componentEndBgColor:"",componentGradientAngle:"to bottom",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0},isHidden:!1}},value:[]}),getters:{editComponent:e=>e.currentIndex==-99?e.global:e.value[e.currentIndex]},actions:{init(){this.global={title:"页面",completeLayout:"style-1",completeAlign:"left",borderControl:!0,pageStartBgColor:"",pageEndBgColor:"",pageGradientAngle:"to bottom",bgUrl:"",bgHeightScale:100,imgWidth:"",imgHeight:"",topStatusBar:{control:!0,isShow:!0,bgColor:"#ffffff",rollBgColor:"#ffffff",style:"style-1",styleName:"风格1",textColor:"#333333",rollTextColor:"#333333",textAlign:"center",inputPlaceholder:"请输入搜索关键词",imgUrl:"",link:{name:""}},bottomTabBar:{control:!0,isShow:!0,designNav:{title:"",key:""}},copyright:{control:!0,isShow:!0,textColor:"#ccc"},popWindow:{imgUrl:"",imgWidth:"",imgHeight:"",count:"once",show:0,link:{name:""}},template:{textColor:"#303133",pageStartBgColor:"",pageEndBgColor:"",pageGradientAngle:"to bottom",componentBgUrl:"",componentBgAlpha:2,componentStartBgColor:"",componentEndBgColor:"",componentGradientAngle:"to bottom",topRounded:0,bottomRounded:0,elementBgColor:"",topElementRounded:0,bottomElementRounded:0,margin:{top:0,bottom:0,both:0},isHidden:!1}},this.value=[]},addComponent(e,n){if(!this.load)return;let t=s(n);t.id=this.generateRandom(),t.componentName=e,t.componentTitle=t.title,t.ignore=[],Object.assign(t,t.value),delete t.title,delete t.value,delete t.icon,delete t.render;let d=s(this.global.template);if(Object.assign(t,d),t.template&&(Object.assign(t,t.template),delete t.template),!this.checkComponentIsAdd(t)){l({type:"warning",message:`${t.componentTitle}${o("componentCanOnlyAdd")}${t.uses}${o("piece")}`});return}if(t.position&&this.position.indexOf(t.position)!=-1)t.position=="top_fixed"?(this.currentIndex=0,this.value.splice(0,0,t)):t.position=="bottom_fixed"?(this.value.splice(this.value.length,0,t),this.currentIndex=this.value.length-1):(this.currentIndex=0,this.value.splice(0,0,t));else if(this.currentIndex===-99){let i=this.currentIndex;for(let r=this.value.length-1;r>=0;r--)if(this.value[r].position=="bottom_fixed"){i=r;break}i==-99?(this.value.push(t),this.currentIndex=this.value.length-1):(this.value.splice(i,0,t),this.currentIndex=i)}else{let i=-1;for(let r=this.value.length-1;r>=0;r--)if(this.value[r].position&&this.value[r].position=="bottom_fixed"){i=r;break}i!=-1&&(i==this.currentIndex||i-this.currentIndex==1)?i==-1?this.value.splice(++this.currentIndex,0,t):(this.value.splice(i,0,t),this.currentIndex=i):this.value.splice(++this.currentIndex,0,t)}this.currentComponent=t.path},generateRandom(e=5){return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)},postMessage(){const e=JSON.stringify({pageMode:this.pageMode,currentIndex:this.currentIndex,global:a(this.global),value:a(this.value)});window.previewIframe.contentWindow.postMessage(e,"*")},changeCurrentIndex(e,n=null){this.currentIndex=e,this.currentIndex==-99?this.currentComponent="edit-page":n&&(this.currentComponent=n.path)},delComponent(){this.currentIndex!=-99&&c.confirm(o("delComponentTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning",autofocus:!1}).then(()=>{this.value.splice(this.currentIndex,1),this.value.length===0&&(this.currentIndex=-99),this.currentIndex===this.value.length&&this.currentIndex--;let e=s(this.value[this.currentIndex]);this.changeCurrentIndex(this.currentIndex,e)}).catch(()=>{})},moveUpComponent(){const e=s(this.value[this.currentIndex]);let n=this.currentIndex-1;const t=s(this.value[n]);if(!(this.currentIndex-1<0||t.position&&this.position.indexOf(t.position)!=-1)){if(e.id=this.generateRandom(),t.id=this.generateRandom(),e.position&&this.position.indexOf(e.position)!=-1){l({type:"warning",message:`${o("componentNotMoved")}`});return}this.value[this.currentIndex]=t,this.value[n]=e,this.changeCurrentIndex(n,e)}},moveDownComponent(){if(this.currentIndex<-1||this.currentIndex+1>=this.value.length)return;const e=this.currentIndex+1,n=s(this.value[this.currentIndex]);n.id=this.generateRandom();const t=s(this.value[e]);if(t.id=this.generateRandom(),!(t.position&&this.position.indexOf(t.position)!=-1)){if(n.position&&this.position.indexOf(n.position)!=-1){l({type:"warning",message:`${o("componentNotMoved")}`});return}this.value[this.currentIndex]=t,this.value[e]=n,this.changeCurrentIndex(e,n)}},copyComponent(){if(this.currentIndex<0)return;let e=s(this.value[this.currentIndex]);if(e.id=this.generateRandom(),!this.checkComponentIsAdd(e)){l({type:"warning",message:`${o("notCopy")},${e.componentTitle}${o("componentCanOnlyAdd")}${e.uses}${o("piece")}`});return}if(e.position&&this.position.indexOf(e.position)!=-1){l({type:"warning",message:`${o("notCopy")},${e.componentTitle}${o("componentCanOnlyAdd")}1${o("piece")}`});return}const n=this.currentIndex+1;this.value.splice(n,0,e),this.changeCurrentIndex(n,e)},checkComponentIsAdd(e){if(e.uses===0)return!0;let n=0;for(let t in this.value)this.value[t].componentName===e.componentName&&n++;return!(n>=e.uses)},resetComponent(){this.currentIndex<0||c.confirm(o("resetComponentTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning",autofocus:!1}).then(()=>{for(let e=0;e<this.components.length;e++)if(this.components[e].componentName==this.editComponent.componentName){Object.assign(this.editComponent,this.components[e]);break}}).catch(()=>{})},verify(){if(this.pageTitle==="")return l({message:o("diyPageTitlePlaceholder"),type:"warning"}),this.changeCurrentIndex(-99),!1;if(this.global.popWindow.show&&!this.global.popWindow.imgUrl)return l({message:"请上传弹窗图片",type:"warning"}),!1;for(let e=0;e<this.value.length;e++)try{if(this.value[e].verify){const n=this.value[e].verify(e);if(!n.code)return this.changeCurrentIndex(e,this.value[e]),l({message:n.message,type:"warning"}),!1}}catch(n){console.log("verify Error:",n,e,this.value[e])}return!0}}}),g=u;export{g as u};
|