shish 1 год назад
Родитель
Сommit
3ea780c9c4
2 измененных файлов с 10 добавлено и 24 удалено
  1. 7 1
      ghsApp/src/admin/shop/add.vue
  2. 3 23
      ghsApp/src/pagesOrder/detail.vue

+ 7 - 1
ghsApp/src/admin/shop/add.vue

@@ -153,12 +153,17 @@
 				</tui-list-cell>
 
 				<tui-list-cell class="line-cell" :hover="false">
-					<view class="tui-title">售后申请</view>
+					<view class="tui-title">自主售后申请</view>
 					<view>
 						<switch style="transform:scale(0.7,0.7)" :checked="form.afterSale == 0 ? false : true" @change="afterSaleChange" /> {{form.afterSale==1 ? '允许' : '禁止'}}
 					</view>
 				</tui-list-cell>
 
+				<tui-list-cell class="line-cell" :hover="false" v-if="form.afterSale ==1">
+					<view class="tui-title">申请售后时限</view>
+					<input v-model="form.saleHour" @focus="form.saleHour=''" placeholder-class="phcolor" class="tui-input" name="saleHour" placeholder="下单几小时内可申请,0不限时" type="number" />
+				</tui-list-cell>
+
 				<tui-list-cell class="line-cell" :hover="false">
 					<view class="tui-title">昆明批发</view>
 					<view>
@@ -285,6 +290,7 @@ export default {
 				showStock:1,
 				showSold:0,
 				afterSale:1,
+				saleHour:12,
 				pfLevel:0,
 				cgUnitType:0,
 				overAllowDebt:1,

+ 3 - 23
ghsApp/src/pagesOrder/detail.vue

@@ -17,7 +17,7 @@
 				<view style="position: relative;">
 					<i @click.stop="callUp(detailInfo.customMobile)" class="iconfont icondianhua1"></i>
 					<i @click.stop="navigateTo(detailInfo.lat,detailInfo.long,detailInfo.customName)" class="iconfont icondianhua" style="font-size:53upx;margin-left:40upx;margin-right:25upx;color:#3385ff;"></i>
-					<button class="admin-button-com bule" @click.stop="copyCustom(detailInfo)" style="position: absolute;right:25upx;top:90upx;width:140upx;height:70upx;line-height:50upx;">复制</button>
+					<button class="admin-button-com bule" @click.stop="copyCustom(detailInfo)" style="position: absolute;right:25upx;top:70upx;width:140upx;height:80upx;line-height:60upx;">复制</button>
 				</view>
 			</view>
 
@@ -692,12 +692,7 @@ export default {
 			that.$util.confirmModal({content:'请选择操作项',okText:'修改',cancelText:'复制',cacelTextColor:'#38ADFF',okTextColor:'#37863a'},() => {
 				that.beginModify(val)
 			},()=>{
-				// #ifdef MP-WEIXIN
-				that.$msg('APP上才能用复制功能')
-				// #endif
-				// #ifdef APP-PLUS
 				that.copyRemark(val)
-				// #endif
 			})
 		},
 		backBefore(){
@@ -726,26 +721,11 @@ export default {
 			}
 			let val = address+"\n"+customName+" "+customMobile
 			const self = this
-			// #ifdef MP-WEIXIN
-			self.$msg('APP上才能发起复制,请下载APP')
-			// #endif
-			// #ifdef APP-PLUS
-			uni.setClipboardData({
-				data: val,
-				success: function() {
-					self.$msg("客户资料复制成功")
-				}
-			})
-			// #endif
+			uni.setClipboardData({ data: val, success: function() { self.$msg("复制成功") } })
 		},
 		copyRemark(val){
 			const self = this
-			uni.setClipboardData({
-				data: val,
-				success: function() {
-					self.$msg("复制成功")
-				}
-			});
+			uni.setClipboardData({ data: val, success: function() { self.$msg("复制成功") } })
 		},
 		giveItemFn(item){
 			this.givePopShow = true