diff --git a/src/assets/style/style.css b/src/assets/style/style.css index b1077c2d..0ebbe619 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -1989,7 +1989,7 @@ textarea:focus { display: flex; float: left; align-items: center; - padding: 1.5rem 2rem; + padding: 1rem 2rem; background-color: #fff; flex: 1; height: auto; @@ -2314,6 +2314,8 @@ textarea:focus { top: 0rem; flex: 1; border: 1px solid #dcdfe6; + width: calc(var(--width) + 6rem); + padding: 1rem; } .generage_btn_box { position: relative; diff --git a/src/assets/style/style.less b/src/assets/style/style.less index ce1c3905..db55a3e7 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -2057,7 +2057,7 @@ textarea:focus{ display: flex; float: left; align-items: center; - padding: 1.5rem 2rem; + padding: 1rem 2rem; // padding-right: 0; background-color: #fff; flex: 1; @@ -2200,6 +2200,8 @@ textarea:focus{ top: 0rem; flex: 1; border: 1px solid #dcdfe6; + width: calc(var(--width) + 6rem); + padding: 1rem; } // span{ diff --git a/src/component/Account/frontPage/bindPage.vue b/src/component/Account/frontPage/bindPage.vue index 0557f7e9..61e81949 100644 --- a/src/component/Account/frontPage/bindPage.vue +++ b/src/component/Account/frontPage/bindPage.vue @@ -27,10 +27,10 @@
--> -
- - - +
+ +
+
@@ -138,12 +138,13 @@ export default defineComponent({ bindPageDom.bindEmail.init('Modify') } - const toGmailLogin = ()=>{ - message.info(t('account.canNotUtilize')) - } onMounted(async ()=>{ - return - let GOOGLE_CLIENT_ID = '29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com' + let GOOGLE_CLIENT_ID + if(import.meta.env.VITE_USER_NODE_ENV == 'development'){ + GOOGLE_CLIENT_ID = '157095842121-kdd1fdf8m8nudvj9sprstb2k2prnf9e4.apps.googleusercontent.com' + }else{ + GOOGLE_CLIENT_ID = '29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com' + } var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`); if(!window.isAddGmail){ if(!existingScript){ @@ -206,7 +207,6 @@ export default defineComponent({ ungroupGoogleModel, ungroupWeiXinModel, modifyEmail, - toGmailLogin, } }, data(){ @@ -271,14 +271,21 @@ export default defineComponent({ } >.gmail_btn{ position: relative; + border-radius: 4rem; + overflow: hidden; + > .gallery_btn{ + position: relative; + z-index: 2; + pointer-events: none; + } #g_id_bind{ position: absolute; left: 0; top: 0; width: 100%; height: 100%; - opacity: 0; - z-index: 2; + // opacity: 0; + z-index: 1; :deep(.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe){ width: 100%; } diff --git a/src/component/Account/frontPage/mylnformation.vue b/src/component/Account/frontPage/mylnformation.vue index e5df3e55..80175852 100644 --- a/src/component/Account/frontPage/mylnformation.vue +++ b/src/component/Account/frontPage/mylnformation.vue @@ -28,7 +28,7 @@ optionFilterProp="label" :options="countryList" :field-names="{ label: locale == 'CHINESE_SIMPLIFIED'?'labelCn':'label' }" - placeholder="Please select" + :placeholder="`${$t('account.plaseSelect')} ${$t('account.Country')}`" allowClear show-search > diff --git a/src/component/Administrator/SE/recentActiveChart.vue b/src/component/Administrator/SE/recentActiveChart.vue index d9251b36..fe27f030 100644 --- a/src/component/Administrator/SE/recentActiveChart.vue +++ b/src/component/Administrator/SE/recentActiveChart.vue @@ -77,10 +77,12 @@ import { PieChart } from 'echarts/charts'; import { LabelLayout } from 'echarts/features'; import { useStore } from "vuex"; import { CanvasRenderer } from 'echarts/renderers'; +import { useI18n } from 'vue-i18n' export default defineComponent({ components: { }, setup() { + const {t} = useI18n() const store:any = useStore() let filter:any = reactive({ dataList:computed(()=>{ @@ -115,7 +117,7 @@ export default defineComponent({ let data:any = [] rv.names.forEach((item:any,index:number) => { let obj = { - name : item, + name : t(`admin.${item}`), value:rv.values[index], } data.push(obj) diff --git a/src/component/Administrator/Transaction/TransactionTable.vue b/src/component/Administrator/Transaction/TransactionTable.vue index 8e153108..48c4d595 100644 --- a/src/component/Administrator/Transaction/TransactionTable.vue +++ b/src/component/Administrator/Transaction/TransactionTable.vue @@ -365,11 +365,11 @@ export default defineComponent({ ellipsis:true }, { - title: "Country", + title: "Country or Region", align: "center", dataIndex: "country", key: "country", - width:150, + width:200, ellipsis:true }, { diff --git a/src/component/Administrator/allUser.vue b/src/component/Administrator/allUser.vue index e162e58d..2bff6e11 100644 --- a/src/component/Administrator/allUser.vue +++ b/src/component/Administrator/allUser.vue @@ -292,11 +292,11 @@ export default defineComponent({ }, }, { - title: "Country", + title: "Country or Region", align: "center", dataIndex: "country", key: "country", - width:100, + width:200, }, { title: "Create Date", diff --git a/src/component/Administrator/coupons/addAllUser.vue b/src/component/Administrator/coupons/addAllUser.vue index a279de62..4825fd42 100644 --- a/src/component/Administrator/coupons/addAllUser.vue +++ b/src/component/Administrator/coupons/addAllUser.vue @@ -1,298 +1,331 @@ - - - + + + \ No newline at end of file diff --git a/src/component/Administrator/recentActiveUser.vue b/src/component/Administrator/recentActiveUser.vue index 421ef4af..9a8cd832 100644 --- a/src/component/Administrator/recentActiveUser.vue +++ b/src/component/Administrator/recentActiveUser.vue @@ -150,11 +150,11 @@ export default defineComponent({ }, }, { - title: "Country", + title: "Country or Region", align: "center", dataIndex: "country", key: "country", - width:100, + width:200, }, { title: "Create Date", diff --git a/src/component/Administrator/recentNewUser.vue b/src/component/Administrator/recentNewUser.vue index da8a628a..33bed9d4 100644 --- a/src/component/Administrator/recentNewUser.vue +++ b/src/component/Administrator/recentNewUser.vue @@ -177,11 +177,11 @@ export default defineComponent({ }, }, { - title: "Country", + title: "Country or Region", align: "center", dataIndex: "country", key: "country", - width:100, + width:200, }, { title: "Create Date", diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index fed0013e..0e4dcde1 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -298,7 +298,11 @@ export default defineComponent({ // 0.35822305 // ] let isCurrent = list[i].id == detailData?.selectDetail?.id - let color = (detailData.currentDetailType == 'color' && isCurrent && newData?.rgba?.r)?(newData?.rgba?.r?`${newData.rgba.r} ${newData.rgba.g} ${newData.rgba.b}`:''):(list[i].color?.rgba?.r?`${list[i].color.rgba.r} ${list[i].color.rgba.g} ${list[i].color.rgba.b}`:'') + let color = (detailData.currentDetailType == 'color' && isCurrent && !detailData.isEditPattern.value)? + (newData?.rgba?.r?`${newData.rgba.r} ${newData.rgba.g} ${newData.rgba.b}`:''): + (list[i].color?.rgba?.r? + `${list[i].color.rgba.r} ${list[i].color.rgba.g} ${list[i].color.rgba.b}`: + '') if(detailData.currentDetailType == 'sketch' && newData){ color = detailData.designDetail.clothes[0].color?.rgba?.r?`${detailData.designDetail.clothes[0].color.rgba.r} ${detailData.designDetail.clothes[0].color.rgba.g} ${detailData.designDetail.clothes[0].color.rgba.b}`:'' detailData.selectDetail.maskUrl = '' @@ -307,8 +311,8 @@ export default defineComponent({ let data:any = { changed:false, color, - designType:(newData && detailData.currentDetailType == 'sketch' && isCurrent)?newData.designType:list[i].designType, - id:(newData && detailData.currentDetailType == 'sketch' && isCurrent)?newData.id:list[i].id, + designType:(newData && detailData.currentDetailType == 'sketch' && isCurrent && !detailData.isEditPattern.value)?newData.designType:list[i].designType, + id:(newData && detailData.currentDetailType == 'sketch' && isCurrent && !detailData.isEditPattern.value)?newData.id:list[i].id, maskMinioUrl:(newData && detailData.currentDetailType == 'sketch')?'':list[i]?.maskMinioUrl, // maskUrl:'', maskUrl:(newData && detailData.currentDetailType == 'sketch')?'':list[i]?.maskUrl, @@ -319,19 +323,19 @@ export default defineComponent({ offset, partialDesign:list[i].partialDesign || {}, // partialDesign:detailData.isEditPattern.value?list[i].partialDesign:{}, - path:(newData && detailData.currentDetailType == 'sketch' && isCurrent)?newData.minIOPath:list[i].minIOPath, - printObject:(newData && detailData.currentDetailType == 'print' && isCurrent)?{prints:newData}:list[i].printObject?list[i].printObject:{prints:[]}, + path:(newData && detailData.currentDetailType == 'sketch' && isCurrent && !detailData.isEditPattern.value)?newData.minIOPath:list[i].minIOPath, + printObject:(newData && detailData.currentDetailType == 'print' && isCurrent && !detailData.isEditPattern.value)?{prints:newData}:list[i].printObject?list[i].printObject:{prints:[]}, priority, // scale:[ // 0.5, // 0.35822305 // ], scale:[scale[0]?scale[0]:1,scale[1]?scale[1]:1], - type:(newData && detailData.currentDetailType == 'sketch' && isCurrent)?newData.level2Type || newData.categoryValue:list[i].type, + type:(newData && detailData.currentDetailType == 'sketch' && isCurrent && !detailData.isEditPattern.value)?newData.level2Type || newData.categoryValue:list[i].type, sketchString:list[i].sketchString?list[i].sketchString:'', - trims:(newData && detailData.currentDetailType == 'element' && isCurrent)?{prints:newData}:list[i].trims?.prints?list[i].trims:{prints:[]}, + trims:(newData && detailData.currentDetailType == 'element' && isCurrent && !detailData.isEditPattern.value)?{prints:newData}:list[i].trims?.prints?list[i].trims:{prints:[]}, } - if((list[i].color?.gradient || list[i].newDetail?.color?.gradient)){ + if((list[i].color?.gradient || list[i].newDetail?.color?.gradient) && !detailData.isEditPattern.value){ gradient = list[i].newDetail?.color?.gradient || list[i].color.gradient gradient.colorImg = await setGradual(gradient,320,700) data.gradient = gradient @@ -374,6 +378,7 @@ export default defineComponent({ delete detailData.designDetail.newModel store.commit('DesignDetail/setPraeview',value) detailData.loadingShow = false + canvasReload() // setRevocation() }).catch(res=>{ detailData.loadingShow = false @@ -387,7 +392,7 @@ export default defineComponent({ designSingleItemDTOList:clothes, isPreview:false, // ifSubmit:designItemDetail.isPreview, - gender:workspace?.sex == 'Male'?1:0, + gender:workspace?.sex, sketchString:'', modelId:(detailData.currentDetailType == 'models' && detailData.designDetail.newModel)?detailData.designDetail.newModel.id:detailData.designDetail.oldModel?detailData.designDetail.oldModel.id:'', modelType:(detailData.currentDetailType == 'models' && detailData.designDetail.newModel)?detailData.designDetail.newModel.type:detailData.designDetail.oldModel?detailData.designDetail.oldModel.type:'', diff --git a/src/component/Detail/canvas/index.vue b/src/component/Detail/canvas/index.vue index 875d8d6b..d096b738 100644 --- a/src/component/Detail/canvas/index.vue +++ b/src/component/Detail/canvas/index.vue @@ -35,7 +35,7 @@ --> { instance.appContext.config.globalProperties.$dropdownEvents.onClose(removeOpenSpeed) + if(props.msg == 'Sketchboard'){ + speed.speedData = speed.speedList[1] + } }) onUnmounted(() => { @@ -1008,6 +1011,7 @@ export default defineComponent({ this.searchPictureName = ""; }, onPaste(e:any){ + if(this.sketchboardList.length != 0)return if(e.clipboardData.files[0] && !this.isTextarea && this.upload.level1Type !== 'Moodboard' && this.scene?.value != 'Slogan' && this.scene?.value != 'Logo'){ let param = new FormData(); param.append('inPin','0') diff --git a/src/component/HomePage/bindEmail.vue b/src/component/HomePage/bindEmail.vue index 872278b0..409e5fe6 100644 --- a/src/component/HomePage/bindEmail.vue +++ b/src/component/HomePage/bindEmail.vue @@ -365,6 +365,7 @@ export default defineComponent({ title:this.selectSex, surname:this.surname, givenName:this.givenName, + userId:this.userDetail?.userId, }; if(this.loginTime){ this.loginTime = false diff --git a/src/component/LoginPage/googleLogin.vue b/src/component/LoginPage/googleLogin.vue index 74b17e88..47839f26 100644 --- a/src/component/LoginPage/googleLogin.vue +++ b/src/component/LoginPage/googleLogin.vue @@ -1,9 +1,10 @@