Ver código fonte

海报、图片处理

vtnttrx 1 ano atrás
pai
commit
086d18a188

+ 14 - 7
src/pages/index/index.vue

@@ -40,10 +40,10 @@
             <!-- 专区-end -->
             <!-- 活动 -->
             <view class="activity" v-if="homeImg.length">
-                <image class="act_img act_one_img" :src="homeImg[0].image" @click="toConsumerGold" mode=""></image>
+                <image class="act_img act_one_img" :src="homeImg[0].image" @click="toActivePage(homeImg[0])" mode=""></image>
                 <view class="act_other">
-                    <image class="act_img act_two_img" :src="homeImg[1].image" mode="" @click="goVipGift"></image>
-                    <image class="act_img act_two_img" :src="homeImg[2].image" @click="goto('/pages/consumerGold/specialCategory?name='+homeImg[2].name +'&id=11' +'&type=4')" mode=""></image>
+                    <image class="act_img act_two_img" :src="homeImg[1].image" mode="" @click="toActivePage(homeImg[1])"></image>
+                    <image class="act_img act_two_img" :src="homeImg[2].image" @click="toActivePage(homeImg[2])" mode=""></image>
                 </view>
             </view>
             <!-- 活动-end -->
@@ -235,10 +235,17 @@ export default {
                 return false;
             }
         },
-        toConsumerGold(){
-            uni.switchTab({
-                url: "/pages/consumerGold/index"
-            })
+        toActivePage(item){
+            let istab = item.url.indexOf('tab=1') 
+            if(istab>0){
+                let url = item.url.split('?')[0]
+                uni.switchTab({
+                    url: url
+                })
+            }else{
+                this.goto(item.url)
+            }
+            
         },
         goVipGift() {
             this.goto("/pages/product/productRetail", { type: 4, is_vip: 1 });

+ 3 - 1
src/pages/invi-img/index.vue

@@ -26,6 +26,7 @@ export default {
             WIDTH: 1080,
             HEIGHT: 1848,
             E_WIDTH: 290,
+            E_HEIGHT: 330,
             imgUrl: "",
             bgImgList: [],
             bgSrc: "",
@@ -90,6 +91,7 @@ export default {
                 WIDTH = this.WIDTH,
                 HEIGHT = this.HEIGHT,
                 E_WIDTH = this.E_WIDTH,
+                E_HEIGHT = this.E_HEIGHT,
                 that = this;
             var path;
             uni.getImageInfo({
@@ -101,7 +103,7 @@ export default {
 
                     ctx.save();
                     ctx.drawImage(bgSrc, 0, 0, WIDTH, HEIGHT);
-                    ctx.drawImage(path, (WIDTH - E_WIDTH) / 2, EWM_Y, E_WIDTH, E_WIDTH);
+                    ctx.drawImage(path, (WIDTH - E_WIDTH) / 2, EWM_Y, E_WIDTH, E_HEIGHT);
                     ctx.restore();
 
                     ctx.draw(false, function(e) {

+ 9 - 9
src/pagesB/cinema/selectSeat.vue

@@ -16,9 +16,9 @@
                     <view class="pt-f pa-v-2 b-d-1" :style="'height:'+seatRow*(20+seatSize*pxNum)+'rpx;top:110rpx;width:0'"></view>
                     <view v-for="(item,index) in seatArray" :key="index" class="dp-f jc-c mt-20" :style="'width:'+boxWidth+'px;height:'+seatSize+'px'">
                         <view v-for="(seat,col) in item" :key="col" class="dp-ib" :style="'width:'+seatSize+'px;height:'+seatSize+'px'" @click="handleChooseSeat(index,col)">
-                            <image v-if="seat.type===0" class="w-100 h-100" src="https://test-api.haocha13.cn/static/img/optional.png" mode="aspectFit"></image>
-                            <image v-else-if="seat.type===1" class="w-100 h-100" src="https://test-api.haocha13.cn/static/img/set.png" mode="aspectFit"></image>
-                            <image v-else-if="seat.type===2" class="w-100 h-100" src="https://test-api.haocha13.cn/static/img/sold.png" mode="aspectFit"></image>
+                            <image v-if="seat.type===0" class="w-100 h-100" src="https://shop-api.haocha13.cn/static/img/optional.png" mode="aspectFit"></image>
+                            <image v-else-if="seat.type===1" class="w-100 h-100" src="https://shop-api.haocha13.cn/static/img/set.png" mode="aspectFit"></image>
+                            <image v-else-if="seat.type===2" class="w-100 h-100" src="https://shop-api.haocha13.cn/static/img/sold.png" mode="aspectFit"></image>
                         </view>
                     </view>
                     <view class="pt-f bg-line br-15 over-h" :style="'left: '+(10-moveX/scale)+'px;top:110rpx;width:30rpx;'">
@@ -51,13 +51,13 @@
                 </view>
                 <view class="dp-f jc-c ai-c mb-20 fz-28" v-if="showTis">
                     <view class="dp-f jc-c ai-c m-0-10">
-                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://test-api.haocha13.cn/static/img/optional.png" mode="aspectFit"></image><span class="ml-10">可选</span>
+                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://shop-api.haocha13.cn/static/img/optional.png" mode="aspectFit"></image><span class="ml-10">可选</span>
                     </view>
                     <view class="dp-f jc-c ai-c m-0-10">
-                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://test-api.haocha13.cn/static/img/sold.png" mode="aspectFit"></image><span class="ml-10">不可选</span>
+                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://shop-api.haocha13.cn/static/img/sold.png" mode="aspectFit"></image><span class="ml-10">不可选</span>
                     </view>
                     <view class="dp-f jc-c ai-c m-0-10">
-                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://test-api.haocha13.cn/static/img/set.png" mode="aspectFit"></image><span class="ml-10">选中</span>
+                        <image :style="'width:'+seatSize+'px;height:'+seatSize+'px'" src="https://shop-api.haocha13.cn/static/img/set.png" mode="aspectFit"></image><span class="ml-10">选中</span>
                     </view>
                 </view>
             </view>
@@ -698,17 +698,17 @@ export default {
 }
 
 .sel-seat {
-    background: url('https://test-api.haocha13.cn/static/img/set.png') center center no-repeat;
+    background: url('https://shop-api.haocha13.cn/static/img/set.png') center center no-repeat;
     background-size: 100% 100%;
 }
 
 .unsel-seat {
-    background: url('https://test-api.haocha13.cn/static/img/optional.png') center center no-repeat;
+    background: url('https://shop-api.haocha13.cn/static/img/optional.png') center center no-repeat;
     background-size: 100% 100%;
 }
 
 .bought-seat {
-    background: url('https://test-api.haocha13.cn/static/img/sold.png') center center no-repeat;
+    background: url('https://shop-api.haocha13.cn/static/img/sold.png') center center no-repeat;
     background-size: 100% 100%;
 }
 </style>

+ 1 - 1
src/pagesB/orderingfood/orderingfood.vue

@@ -182,7 +182,7 @@
                     <view class="gfooter">
                         <view class="price">
                             <view class="left">
-                                <view v-if="childProductData.spec_price" class="text" :style="'color:'+template.color.color1">¥{{childProductData.spec_price + goodsOneData.product_price}}</view>
+                                <view v-if="childProductData.spec_price" class="text" :style="'color:'+template.color.color1">¥{{childProductData.spec_price*1 + goodsOneData.product_price*1}}</view>
                                 <view v-else class="text" :style="'color:'+template.color.color1">¥{{goodsOneData.product_price}}</view>
                                 <view class="label" v-if="childProductData.selectSpecification" :style="'color:'+template.color.color3">
                                     <text v-for="(value, name) in childProductData.selectSpecification" :key="name" class="good_spec">{{value}} </text>

BIN
src/static/my/f_img_code.png


BIN
src/static/my/f_img_code1.png