DaMowang 2 lat temu
rodzic
commit
71839d5362

+ 0 - 4
src/App.vue

@@ -15,10 +15,6 @@ export default {
       mask: true,
     });
   },
-  // 接口未传递有效参数值的错误提示
-  parameter(authName) {
-    throw new Error("'" + authName + "' cat't be empty!");
-  },
   onLaunch() {
     var logs = uni.getStorageSync("logs") || [];
     logs.unshift(Date.now());

+ 6 - 8
src/pages/invi-img/index.vue

@@ -79,8 +79,7 @@ export default {
         },
 
         save() {
-            var bgSrc = this.bgSrc,
-                that = this;
+            var bgSrc = this.bgSrc, that = this;
             uni.getImageInfo({
                 src: bgSrc,
                 success: function(ret) {
@@ -131,16 +130,16 @@ export default {
             });
         },
 
-        saveImage(path = appEv.parameter("path")) {
+        saveImage(path) {
             var that = this;
-            uni.hideLoading();
             uni.getSetting({
                 success: (res) => {
+                    uni.hideLoading();
                     //如果没有相册权限
                     console.log(res.authSetting); //授权信息
                     if (!res.authSetting["scope.writePhotosAlbum"]) {
                         console.log("没有授权,调用授权!");
-                        //向用户发起授权请求
+                        // 向用户发起授权请求
                         uni.authorize({
                             scope: "scope.writePhotosAlbum",
                             success: () => {
@@ -156,7 +155,6 @@ export default {
                                         if(res.confirm){
                                             uni.openSetting({
                                                 success: (res) =>{
-                                                    console.log(res);
                                                     that.savefun(path);
                                                 }
                                             })
@@ -209,7 +207,7 @@ page {
 }
 .fanhui{
     position: absolute;
-    left: 0;
+    left: -50rpx;
     top: 100rpx;
     color: #fff;
     font-size: 66rpx;
@@ -218,7 +216,7 @@ page {
 .container {
     width: 600rpx;
     margin: 0 auto;
-    overflow: hidden;
+    overflow: initial;
     position: relative;
 	padding-top: 190rpx;
 }

+ 3 - 3
src/pages/product/productRetail.vue

@@ -9,12 +9,12 @@
                     <view :class="['product-title', 'ellipsis2']">{{ i.goods_name }}</view>
                     <view class="product-price">
                         <text class="product-price-favour" v-if="type==6">{{i.cost_price}}</text>
-                        <text class="product-price-original" v-if="type==4">{{ $h.Sub(i.price,i.consume) }}</text>
+                        <text class="product-price-original" v-if="type==4">{{ i.price }}</text>
                         <text class="product-price-original" v-else>{{ i.price }}</text>
                         <text class="product-text" v-if="['3','4'].includes(type)">赠<text class="corFE2C15">{{ i.give_cha_bao }}</text>茶宝</text>
                     </view>
                     <view class="product-txt" v-if="type == 4">
-                        <text class="product-price-favour">{{i.price}}</text>
+                        <text class="product-price-favour">{{i.market_price}}</text>
                         <text class="product-text">消费金抵</text>
                         <span class="corFE2C15">¥{{ Number(i.consume) }}</span>
                     </view>
@@ -23,7 +23,7 @@
                     <view class="product-txt" v-if="['3','4'].includes(type)">限时赠送<text class="corFE2C15">{{ i.teac }}</text>TeaC</view>
                     <view class="product-txt fenxiang" v-if="['3','4'].includes(type)">
                         <text class="iconfont red">&#xe62b;</text>
-                        <text class="red">分享约获得{{ i.first_teac }}TeaC</text>
+                        <text class="red">分享约获得{{ i.first_teac }}现金</text>
                     </view>
                 </view>
             </view>

+ 2 - 2
src/request/config.js

@@ -15,6 +15,6 @@ if (process.env.UNI_PLATFORM === "h5") {
 export default apis == 1 ? {
 	Hhost: "https://shop-api.haocha13.cn/",
 } : {
-	// Hhost: "https://shop-api.haocha13.cn/",  //正式接口
-	Hhost: "https://test-api.haocha13.cn/",
+	Hhost: "https://shop-api.haocha13.cn/",  //正式接口
+	// Hhost: "https://test-api.haocha13.cn/",
 }