shish 4 лет назад
Родитель
Сommit
a8eccbfa5b

+ 6 - 13
mallApp/src/components/app-delivery.vue

@@ -139,14 +139,13 @@
 
       </tui-list-cell>
 
-      <!-- <block v-if="form.anonymity"> -->
       <tui-list-cell class="line-cell" :hover="false">
         <div class="none-name-delivery flex-center" style="padding-left:0upx;">
           <div class="tui-title">派送方式</div>
- <checkbox-group @change="anonymityChange">
-          <checkbox class="ljd-checkbox" value="1" id="noneNameText" ></checkbox>
-          <label for="noneNameText" class="none-name-text">匿名派送</label>
-</checkbox-group>
+            <checkbox-group @change="anonymityChange">
+                <checkbox class="ljd-checkbox" value="1" id="noneNameText" ></checkbox>
+                <label for="noneNameText" class="none-name-text">匿名派送</label>
+            </checkbox-group>
         </div>
       </tui-list-cell>
       <!-- </block> -->
@@ -197,12 +196,6 @@ export default {
     AppDatePicker,
     SimpleAddress
   },
-  props: {
-    anonymity: {
-      type: Number,
-      default: 0
-    }
-  },
   data() {
     return {
       region: [],
@@ -221,7 +214,8 @@ export default {
         reachPeriod: "0", // 配送时段,0上午1下午2晚上
         needCard: "1", // 是否要贺卡 0不要 1要
         cardInfo: "", // 贺卡信息
-        remark: "" // 备注
+        remark: "", // 备注
+        anonymity:0
       },
       region: {
         latitude: 0,
@@ -251,7 +245,6 @@ export default {
         ? this.orderShop.shop.city
         : "";
     }
-    this.form.anonymity = "0"
   },
   methods: {
     selTimeFn(e) {

+ 2 - 2
mallApp/src/pages/goods/components/buy-foot.vue

@@ -1,11 +1,11 @@
 <template>
 	<div class="app-footer">
         <div class="btn-left">
-            <div class="btn-wrap" @click="$msg('开发中');">
+            <div class="btn-wrap">
                 <i class="iconfont iconxiaoxi"></i>
                 <div class="btn-text">客服</div>
             </div>
-            <div class="btn-wrap" @click="goShop">
+            <div class="btn-wrap">
                 <i class="iconfont icondianpu"></i>
                 <div class="btn-text">店铺</div>
             </div>

+ 1 - 1
mallApp/src/pages/goods/detail.vue

@@ -4,7 +4,7 @@
     <view class="shop-intro">
       <view class="app-price app-bold">
         <text>¥</text>
-        <text class="app-size-34">{{ data.price }}</text>
+        <text class="app-size-34">{{ data.price?parseFloat(data.price):0 }}</text>
       </view>
       <view class="tui-pro-titbox">
         <view class="tui-pro-title app-size-32">{{ data.name }}</view>

+ 1 - 6
mallApp/src/pages/order/buy.vue

@@ -97,7 +97,6 @@ export default {
       ],
       showAlert: false,
       form: {
-        anonymity: "0", // 是否匿名 0不 1要
         sendDistance: "", // 配送距离,根据腾讯js进行计算
         goodsId: "", // 【商城下单特有字段】商品id
         goodsStyleId: "", // 【商城下单特有字段】商品款式id
@@ -158,9 +157,6 @@ export default {
     hideAlert() {
       this.showAlert = false;
     },
-    anonymityChange(e) {
-      this.form.anonymity = this.form.anonymity == 1 ? 0 : 1;
-    },
     //计算客户距离和运费
     changeAddress(e) {
       let lat = this.$refs.appDelivery.region.latitude;
@@ -182,8 +178,7 @@ export default {
     },
     createOrderFn() {
       let addForm = {};
-      let form =
-        this.tabIndex == 0 ? this.$refs.appDelivery.form : this.mentionForm;
+      let form = this.tabIndex == 0 ? this.$refs.appDelivery.form : this.mentionForm
       let region = this.tabIndex == 0 ? this.$refs.appDelivery.region : {};
       if (this.$refs.couponSel) {
         addForm.couponId = this.$refs.couponSel.couponId;