diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/ymhZjz/miniprogram_npm/color-picker/color-picker.wxss b/ymhZjz/miniprogram_npm/color-picker/color-picker.wxss index 49073b2..aa3c199 100644 --- a/ymhZjz/miniprogram_npm/color-picker/color-picker.wxss +++ b/ymhZjz/miniprogram_npm/color-picker/color-picker.wxss @@ -1,7 +1,7 @@ .dialog { visibility: hidden; opacity: 0; - transition: all 0.3s; + /* transition: all 0.3s; */ } .dialog_show { diff --git a/ymhZjz/pages/edit/index.js b/ymhZjz/pages/edit/index.js index 5497e6d..6ae75ed 100644 --- a/ymhZjz/pages/edit/index.js +++ b/ymhZjz/pages/edit/index.js @@ -14,6 +14,20 @@ let twoPoint = { import Dialog from '@vant/weapp/dialog/dialog' Page({ data: { + backColor: [ + //蓝色 + {color: "#438edb", style: "background-color:#438edb"}, + //白色 + {color: "#ffffff", style: "background-color:#ffffff"}, + //红色 + {color: "#ff0000", style: "background-color:#ff0000"}, + //浅蓝色 + {color: "#66b5f2", style: "background-color:#66b5f2"}, + //绿色 + {color: "#07c160", style: "background-color:#07c160"}, + //黄色 + {color: "#ffc300", style: "background-color:#ffc300"} + ], imageData: {}, showScale: 480 / 295, width: 0, @@ -260,7 +274,6 @@ Page({ }); }, - // 解决用户拒绝相册问题 checkq() { wx.getSetting({ diff --git a/ymhZjz/pages/edit/index.wxml b/ymhZjz/pages/edit/index.wxml index 00f3e96..97851b3 100644 --- a/ymhZjz/pages/edit/index.wxml +++ b/ymhZjz/pages/edit/index.wxml @@ -1,44 +1,31 @@ - - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + - + 自定义 + diff --git a/ymhZjz/pages/edit/index.wxss b/ymhZjz/pages/edit/index.wxss index 0a7499c..7f438f9 100644 --- a/ymhZjz/pages/edit/index.wxss +++ b/ymhZjz/pages/edit/index.wxss @@ -66,17 +66,23 @@ .container .photo-edit-content .canvas-view { position: relative; - width: 100%; - height: 300px; margin: 0 auto; box-sizing: content-box; overflow: hidden; + background-color:#fff; + width: 240.0px; + height: 336px } .container .photo-edit-content .canvas-view .people-photo { position: absolute; width: 100%; transform-origin: center center; + width: 240.0px; + height: 336px; + left: 120.0px; + top: 164.0px; + transform: translate(-50%, -50%) scale(1) rotate(0deg); } .download-view { @@ -178,9 +184,20 @@ } .nowx_mask { - margin: auto; - position: absolute; bottom: 0; - left: 0; - right: 0; +} + +.van-tab__pane { + overflow: hidden; +} + +.frontImg { + top:30px; + left:70px; +} + +.custom { + display: flex; + align-items: center; + justify-content: center; } diff --git a/ymhZjz/pages/humanMatting/index.js b/ymhZjz/pages/humanMatting/index.js index 4901c67..b736722 100644 --- a/ymhZjz/pages/humanMatting/index.js +++ b/ymhZjz/pages/humanMatting/index.js @@ -11,7 +11,6 @@ Page({ }, chooseImg() { - console.log(1111) if (wx.getStorageSync("token") == "") { wx.navigateTo({ url: '/pages/login/index',