shish 4 жил өмнө
parent
commit
d7ce768150

+ 0 - 4
hdApp/src/admin/order/detail.vue

@@ -52,10 +52,6 @@
               <view v-if="orderInfo.reachDate == '0000-00-00'" class="value"></view>
               <view v-else class="value"><span style="margin-right:10upx;">{{orderInfo.reachDate}}</span> <span v-if="orderInfo.reachPeriod == 0">上午</span><span v-else-if="orderInfo.reachPeriod == 1">下午</span><span v-else>晚上</span></view>
             </view>
-            <view v-if="orderInfo.reachDate != '0000-00-00'" class="msg-list">
-              <view class="label">贺卡:</view>
-              <view class="value">{{ orderInfo.needCard == 1 ? "需要" : '不需要' }}</view>
-            </view>
             <view class="msg-list">
               <view class="label">寄语:</view>
               <view class="value">{{ orderInfo.cardInfo || '' }}</view>

+ 1 - 11
hdApp/src/components/app-delivery.vue

@@ -68,14 +68,8 @@
       </template>
 
       <tui-list-cell class="line-cell" :hover="false">
-        <view class="tui-title">贺卡</view>
-        <button @tap="form.needCard = 1" class="admin-button-com mini-btn" :class="form.needCard == 1 ? 'blue' : 'default'">需要</button>
-        <button @tap="form.needCard = 0" class="admin-button-com mini-btn" style="margin-left:30upx;" :class="form.needCard == 0 ? 'blue' : 'default'">不需要</button>
-      </tui-list-cell>
-
-      <tui-list-cell class="line-cell" v-if="form.needCard == 1" :hover="false">
         <view class="tui-title">贺卡内容</view>
-        <input v-model="form.cardInfo" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="cardInfo" placeholder="请填写" />
+        <input v-model="form.cardInfo" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="cardInfo" placeholder="选填项" />
       </tui-list-cell>
 
       <template v-if="form.sendType != 1">
@@ -145,7 +139,6 @@ export default {
         bookMobile: "",
         reachDate: 0,
         reachPeriod: "0",
-        needCard: "1",
         cardInfo: "",
         remark: "",
         anonymity:0
@@ -197,9 +190,6 @@ export default {
     timeTodaySelFn(index) {
       this.form.reachPeriod = index;
     },
-    needCardChange() {
-      this.form.needCard = this.form.needCard == 1 ? 0 : 1;
-    },
     anonymityChange() {
       this.form.anonymity = this.form.anonymity == 1 ? 0 : 1;
     },

+ 0 - 19
mallApp/src/components/app-delivery.vue

@@ -80,19 +80,6 @@
       </tui-list-cell>
     </div>
 
-    <div class="module-com gift-wrap input-line-wrap">
-      <tui-list-cell class="line-cell" :hover="false">
-        <div class="tui-title">选择贺卡</div>
-        <div class="gift-content">
-          <div class="flex-center">
-              <radio-group @change="needCardChange">
-                <label class="radio"><radio value="1" checked="true" />需要</label>
-                <label class="radio"><radio value="0" />不需要</label>
-                </radio-group>
-          </div>
-        </div>
-      </tui-list-cell>
-
       <tui-list-cell class="line-cell" :hover="false" v-show="showCardInfo">
         <div class="tui-title">贺卡内容</div>
         <input v-model="form.cardInfo" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="cardInfo" style="width:100%;" placeholder="请填写内容,留空寄出空白贺卡" />
@@ -172,7 +159,6 @@ export default {
         bookMobile: "", // 订花人手机号
         reachDate: 0, // 配送时间
         reachPeriod: "0", // 配送时段,0上午1下午2晚上
-        needCard: "1", // 是否要贺卡 0不要 1要
         cardInfo: "", // 贺卡信息
         remark: "", // 备注
         anonymity:0
@@ -225,11 +211,6 @@ export default {
     timeTodaySelFn(index) {
       this.form.reachPeriod = index;
     },
-    needCardChange(e) {
-      this.form.needCard = e.target.value;
-      this.showCardInfo = e.target.value == 0 ? false : true;
-      this.form.cardInfo = '';
-    },
     anonymityChange(e) {
       this.form.anonymity = e.detail.value == 1 ? 1 : 0;
     },

+ 0 - 4
mallApp/src/pages/order/detail.vue

@@ -51,10 +51,6 @@
               <div v-else class="value">{{ data.reachDate ? data.reachDate+' '+reachPeriodInfo : '' }}</div>
             </div>
             <div class="msg-list">
-              <div class="label">贺卡</div>
-              <div class="value">{{ data.needCard == 1 ? "需要" : '不需要' }}</div>
-            </div>
-            <div class="msg-list" v-show="data.needCard == 1">
               <div class="label">贺卡内容</div>
               <div class="value">{{ data.cardInfo}}</div>
             </div>