Browse Source

位置精确

sharp-agezi 6 years ago
parent
commit
1104a74e85

+ 4 - 4
customized/pages/index/index.js

@@ -14,7 +14,7 @@ Page({
       src:'/customized/images/customized/cup_black_small.png',
       name:'奶缸-黑色 350ml',
       price:'¥45.00',
-      btnText:'定制',
+      btnText:'定制',
       btnDisabled:false,
       state:true,
       },
@@ -22,7 +22,7 @@ Page({
         src: '/customized/images/customized/cup_black_small_2.png',
         name: '奶缸-白色 350ml',
         price: '¥45.00',
-        btnText: '定制',
+        btnText: '定制',
         btnDisabled: true,
         state: false,
       },
@@ -30,7 +30,7 @@ Page({
         src: '/customized/images/customized/cup_black_small_3.png',
         name: '马克杯-白色 450ml',
         price: '¥45.00',
-        btnText: '定制',
+        btnText: '定制',
         btnDisabled: true,
         state: false,
       },
@@ -38,7 +38,7 @@ Page({
         src: '/customized/images/customized/cup_black_small_4.png',
         name: '马克杯-白色 300ml',
         price: '¥45.00',
-        btnText: '定制',
+        btnText: '定制',
         btnDisabled: true,
         state: false,
       }

+ 1 - 1
customized/pages/index/index.wxml

@@ -10,7 +10,7 @@
      
      <view class='f-box mar-t20 f-s32 f-align-items-center'>
       <view class='f-item'>
-        <navigator class="{{item.btnDisabled ? 'disabled' : ''}} cust-btn  f-s32 c-green">{{item.btnText}}</navigator>
+        <navigator class="{{item.btnDisabled ? 'disabled' : ''}} cust-btn  f-s30 c-green">{{item.btnText}}</navigator>
        </view>
        <view class='tu-icon f-box f-align-items-center'>
         <image src='/customized/images/customized/tu_icon.png' mode="aspectFit"></image>

+ 1 - 1
customized/pages/index/index.wxss

@@ -50,7 +50,7 @@ page{
 }
 .cust-btn{
   display: inline-block;
-  width:100rpx;
+  width:120rpx;
   height:60rpx;
   line-height:60rpx;
   border-radius:10rpx;

+ 1 - 1
customized/pages/made/comb/comb.wxss

@@ -18,7 +18,7 @@ page{
 }
 .comb-img3,.comb-font3{
   width:70rpx;
-  height:248rpx;
+  height:246rpx;
 }
 .comb-img4,.comb-font4{
   width:218rpx;

+ 2 - 2
customized/pages/made/made.js

@@ -7,8 +7,8 @@ Page({
    */
   data: {
     dataPositionObj: { //正面数据
-      top: 182,
-      left: 312,
+      top: 184,
+      left: 305,
       width: 218,
       height: 218,
     },

+ 8 - 8
customized/pages/made/madeFont/madeFont.js

@@ -7,16 +7,16 @@ Page({
    */
   data: {
     dataPositionObj: { //正面数据
-      top: 156,
-      left: 286,
-      width:270,
-      height: 270
+      top: 184,
+      left: 305,
+      width: 218,
+      height: 218,
     },
     propSize: {
-      top: '8cm',
-      right: '8cm',
-      bottom: '8cm',
-      left: '8cm',
+      top: '5cm',
+      right: '5cm',
+      bottom: '5cm',
+      left: '5cm',
     },
 
     isActive: '1', // 默认是正面

+ 8 - 8
customized/pages/made/madeImg/madeImg.js

@@ -9,17 +9,17 @@ Page({
    */
   data: {
     dataPositionObj: { //正面数据
-      top: 156,
-      left: 286,
-      width: 270,
-      height: 270,
+      top: 184,
+      left: 305,
+      width: 218,
+      height: 218,
 
     },
     propSize: {
-      top: '8cm',
-      right: '8cm',
-      bottom: '8cm',
-      left: '8cm',
+      top: '5cm',
+      right: '5cm',
+      bottom: '5cm',
+      left: '5cm',
     },
     host: null,
     obverseImgObject: {

+ 9 - 9
utils/util.js

@@ -23,8 +23,8 @@ function changeCup(e) {
     case '1':
       // console.log('正面')
       dataPositionObj = { // 正面数据
-        top: 182,
-        left: 312,
+        top: 184,
+        left: 305,
         width: 218,
         height: 218
       };
@@ -37,8 +37,8 @@ function changeCup(e) {
       break;
     case '2':
       dataPositionObj = { // 侧面数据
-        top: 182,
-        left: 206,
+        top: 184,
+        left: 218,
         width: 218,
         height: 218
       };
@@ -51,11 +51,11 @@ function changeCup(e) {
       // console.log('背面');
       break;
     case '3':
-      dataPositionObj = { // 正面数据
-        top: 166,
-        left: 348,
+      dataPositionObj = { // 手柄数据
+        top: 172,
+        left: 346,
         width: 70,
-        height: 248
+        height: 246
       };
       propSize = {
         top: '1cm',
@@ -67,7 +67,7 @@ function changeCup(e) {
       break;
     case '4':
       dataPositionObj = { // 正面数据
-        top: 174,
+        top: 184,
         left: 224,
         width: 218,
         height: 218