Commit 563d4e49 authored by home's avatar home

zxf

parents e7dcf492 f7354028
......@@ -5,10 +5,11 @@
"description" : "商家",
"versionName" : "1.0.98",
"versionCode" : 198,
"transformPx" : false,
"compatible" : {
"ignoreVersion" : true, //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
"runtimeVersion" : "2.9.7,2.9.8", //兼容的uni-app运行环境版本号,多个版本使用,分割
"runtimeVersion" : "2.9.3,2.9.7,2.9.8", //兼容的uni-app运行环境版本号,多个版本使用,分割
"compilerVersion" : "2.9.8" //兼容的编译器版本号
},
/* 5+App特有相关weex */
......
......@@ -390,44 +390,40 @@
checked:'2'
}],
ischeckedtime:[0],//默认选中,
myProps: {
label: 'cate_name',
value: 'cate_id',
},
name: 'product',
result:[],
form: {
// mandatory:'2',
// linkage_id:'',
// //cost_price 成本价 stock 商品库存purchase 进货价钱code 条形编码commission 返佣比例original_name 原始商品名
// specifications:'',//商品规格
// stock:'', //商品库存
// cost_price:'', //进货价钱
// code:'' ,//条形编码
// commission:'', //返佣比例
// sell_type:0,// 售卖类型
// commodity_data:{}, //原始商品名
// quality_guarantee_period:0, //保质期(月)
// manufacture_date:'' , //生产日期
// manufacturer :'', ///生产厂商
// brand :'', // 品牌
// checkbox: [],//断选
// product_id:"",//修改的时候的产品id
// product_name:"",//产品名称
// desc:"",//产品描述
// cate_id:"",//产品分类id
// photo:"",//产品图片
// lunch_box_fee:'',//餐盒费
// is_new:"",//是否新产品
// is_hot:"",//是否热卖产品
// action:"add",// 方式(添加:add,修改:edit)
// price:"",//价格
// activity_price:"",//秒杀价
// store_count:"" ,// 秒杀库存
// is_seckill:"0",//0 1 是否秒杀产品
// activity_id:'0',//秒杀activity_id
// activity_list:'',//秒杀列表
// limit_num:"0" //秒杀限购数量 0 不限制
mandatory:'2',
linkage_id:'',
//cost_price 成本价 stock 商品库存purchase 进货价钱code 条形编码commission 返佣比例original_name 原始商品名
specifications:'',//商品规格
stock:'', //商品库存
cost_price:'', //进货价钱
code:'' ,//条形编码
commission:'', //返佣比例
sell_type:0,// 售卖类型
commodity_data:{}, //原始商品名
quality_guarantee_period:0, //保质期(月)
manufacture_date:'' , //生产日期
manufacturer :'', ///生产厂商
brand :'', // 品牌
checkbox: [],//断选
product_id:"",//修改的时候的产品id
product_name:"",//产品名称
desc:"",//产品描述
cate_id:"",//产品分类id
photo:"",//产品图片
lunch_box_fee:'',//餐盒费
is_new:"",//是否新产品
is_hot:"",//是否热卖产品
action:"add",// 方式(添加:add,修改:edit)
price:"",//价格
activity_price:"",//秒杀价
store_count:"" ,// 秒杀库存
is_seckill:"0",//0 1 是否秒杀产品
activity_id:'0',//秒杀activity_id
activity_list:'',//秒杀列表
limit_num:"0" //秒杀限购数量 0 不限制
},
timeList:[
{}
......@@ -452,13 +448,16 @@
activity_type:"",//判断是否可以秒杀
seckilltimelist:[],//秒杀时段列表
selchildList:[],
cate_name:"",
index:0,
isScanCode:true,//是不是点击了扫码
codeDisabled:false,//条形码是否能输入
update:true,
detail_photos:[],//详情图片
video_photos:[],//轮播图片
video_photos:[],//轮播图片
cate_name:"", //分类名
}
},
computed: {
......@@ -765,8 +764,15 @@
let res = await eleProductInfo({
product_id:this.product_id,
});
console.log(res,'法大师傅大师傅大师傅士大夫大师傅');
if(res.code==0){
this.form.cate_id = res.data.cate_id;//分类id
for(var i = 0; i < this.chindformList.length; i++) {
if(this.chindformList[i].cate_id==res.data.cate_id){
this.cate_name=this.chindformList[i].cate_name;
break;
}
}
this.linkage_product_id = res.data.linkage_product_id
this.bools = res.data.product_name;
this.defaultinfo = res.data;
......@@ -777,7 +783,7 @@
this.form.photo = res.data.photo;//图片
this.form.activity_price = res.data.activity_price //秒杀价
this.form.store_count = res.data.store_count //秒杀库存
this.form.cate_id = res.data.cate_id;//分类id
this.form.activity_id = res.data.activity_id//秒杀时段id
this.form.limit_num = res.data.limit_num
this.form.specifications = res.data.gram
......@@ -836,7 +842,6 @@
}else{
this.classValue = '';
}
//属性选默认值
if(res.data.is_new==1){
......@@ -875,16 +880,19 @@
}
},
getForm() {
if(this.isshowsetkilltime && (this.form.activity_price==""||this.form.store_count==""||this.form.limit_num=="") ){
this.$api.msg("请填写完整秒杀数据");
return false;
}
if(!this.isInteger(this.form.limit_num) || !this.isInteger(this.form.store_count)){
this.$api.msg("秒杀库存或限购数量不能为小数");
return false;
}
// if(this.isshowsetkilltime && (this.form.activity_price==""||this.form.store_count==""||this.form.limit_num=="") ){
// this.$api.msg("请填写完整秒杀数据");
// return false;
// }
// console.log(this.form.limit_num,this.form.store_count)
// if(!this.isInteger(this.form.limit_num) || !this.isInteger(this.form.store_count)){
// this.$api.msg("秒杀库存或限购数量不能为小数");
// return false;
// }
let can = {
action:this.product_id==''?'add':'edit',
linkage_id:this.linkage_id,
mandatory:this.form.mandatory,
gram:this.form.specifications, //商品规格
......@@ -901,7 +909,6 @@
product_name:this.form.product_name,//产品名称
desc:this.form.desc,//产品描述
lunch_box_fee:this.form.lunch_box_fee,//餐盒费
action:this.form.action,//方式(添加:add,修改:edit)
price:this.form.price,//价格
photo: this.c_pics.length == 0?'': this.c_pics[0].data, //图片
activity_price:this.form.activity_price,//秒杀价
......@@ -911,6 +918,7 @@
limit_num:this.form.limit_num ,//秒杀限购数量
detail_photos:this.detail_photos,//详情图
video_photos:this.video_photos,//轮播图
cate_id:this.form.cate_id,
};
......@@ -940,11 +948,11 @@
can.is_hot = 0;
}
if(this.product_id!="" && this.is_datashow !=false ){
can.action = "edit";
can.product_id = this.product_id;
}
//添加修改外卖产品
addEditEleProduct(can).then((res1)=>{
console.log(res1,'成功了');
if(res1.code==0){
this.$api.msg(res1.msg);
setTimeout(()=>{
......@@ -953,6 +961,8 @@
}else{
this.$api.msg(res1.msg);
}
}).catch(err=>{
console.log(err,'失败了');
})
},
......
......@@ -97,7 +97,7 @@
<!-- <navigator url="/pages/edit/pro_manage/pro_manage"> -->
<view class="jiu_min">
<view>
<image class="img" src="/static/icon/20.png" mode=""></image>
<image class="img" src="/static/icon/spgl.png" mode=""></image>
</view>
<view>商品管理</view>
</view>
......@@ -144,7 +144,7 @@
<navigator url="/pages/storeCategory/storeCategory?type=1">
<view class="jiu_min">
<view>
<image class="img" src="/static/icon/6.png" mode=""></image>
<image class="img" src="/static/icon/eleclass.png" mode=""></image>
</view>
<view>商品分类</view>
</view>
......@@ -186,12 +186,12 @@
</navigator>
</view>
<view class="jiu_max" v-if="shop_type == 'goods'">
<view class="jiu_max" v-if="shop_type == 'goods'">
<!-- 商城订单 -->
<navigator url="/pages/order/shopOrder">
<view class="jiu_min">
<view>
<image class="img" src="/static/icon/8.png" mode=""></image>
<image class="img" src="/static/icon/eleguanli.png" mode=""></image>
</view>
<view>订单管理</view>
</view>
......@@ -204,7 +204,7 @@
<navigator url="/pages/hotelOrder/hotelOrder">
<view class="jiu_min">
<view>
<image class="img" src="/static/icon/8.png" mode=""></image>
<image class="img" src="/static/icon/eleguanli.png" mode=""></image>
</view>
<view>订单管理</view>
</view>
......@@ -227,7 +227,7 @@
<navigator url="/pages/LuckDraw/homenav/homenav">
<view class="jiu_min">
<view>
<image class="img" src="/static/news/liwuiocn.png" mode=""></image>
<image class="img" src="/static/icon/liwuiocn.png" mode=""></image>
</view>
<view>抽奖活动</view>
</view>
......@@ -245,7 +245,7 @@
</navigator>
</view>
<view class="jiu_max ">
<view class="jiu_max " v-if="shop_type == 'ele'">
<navigator url="/pages/Printer/AddPrinter">
<view class="jiu_min">
<view>
......@@ -256,7 +256,7 @@
</navigator>
</view>
<view class="jiu_max " @tap="shops">
<view class="jiu_max " @tap="shops" v-if="shop_type == 'ele'">
<view class="jiu_min">
<view>
<image class="img" src="/static/news/turntable.png" mode=""></image>
......@@ -265,7 +265,7 @@
</view>
</view>
<view class="jiu_max ">
<view class="jiu_max " v-if="shop_type == 'ele'">
<navigator url="/pages/deliveryCost/deliveryCost">
<view class="jiu_min">
<view>
......@@ -277,7 +277,7 @@
</view>
<!-- hgService.showSafeSetting(); -->
<view class="jiu_max " v-if="is_bld">
<view class="jiu_max " v-if="shop_type == 'ele'&&is_bld">
<navigator url="/pages/eleProduct/eleProduct?edit=1">
<view class="jiu_min">
<view>
......@@ -288,7 +288,7 @@
</navigator>
</view>
<view class="jiu_max " v-if="is_bld">
<view class="jiu_max " v-if="shop_type == 'ele'&&is_bld">
<navigator url="/pages/eleProduct/eleProduct?edit=2">
<view class="jiu_min">
<view>
......@@ -300,9 +300,9 @@
</view>
<view class="jiu_max " @click="download" v-if="is_bld">
<view class="jiu_max " @click="download" v-if="shop_type == 'ele'&&is_bld">
<view>
<view class="jiu_min">
<view class="jiu_min">
<view>
<image class="img" src="/static/icon/download.png" mode=""></image>
</view>
......@@ -313,11 +313,11 @@
<!-- url="/pages/publishActivities/activityList/activityList" -->
<view class="jiu_max ">
<view class="jiu_max " v-if="shop_type == 'ele'">
<navigator url="/pages/publishActivities/activityList/activityList">
<view class="jiu_min">
<view>
<image class="img" src="https://luma.jxdsy.cn/static/applet5/images/download.png" mode=""></image>
<image class="img" src="/static/icon/0yuan.png" mode=""></image>
</view>
<view>0元领活动</view>
</view>
......@@ -564,7 +564,7 @@
this.is_luck_draw = res.data.shop_info.is_luck_draw
this.money_type = res.data.shop_info.money_type
this.activity_type = res.data.shop_info.activity_type //判断是否有秒杀资格
console.log(this.shop_type,'aa')
} else {
this.$api.msg(res.msg);
}
......
......@@ -23,7 +23,9 @@
</label> -->
<image class="thumbnail" :src="staticUrl + item.picture" mode=""></image>
<view class="infobox" style="width: 70%;">
<view class="title oneline" style="height:44upx ;">{{item.goods_name}}</view>
<view class="title oneline" style="height:45upx ;">{{item.goods_name}}</view>
<!-- <view class="time">上架时间:{{item.create_time}}</view> -->
<view>
<view style="font-size:26rpx;font-weight:bold;">领取时间:</view>
......@@ -49,7 +51,7 @@
</view>
<view v-if="start_activity.length <= 0" style="text-align: center;width: 100%;height:1000upx;line-height: 1000upx;font-size: 50upx;color:#8C8C8C ;">
快发布活动吧~~
<image src="https://luma.jxdsy.cn//static/applet5/images/uts/meiyoule.png" mode=""></image>
</view>
</view>
......@@ -86,7 +88,7 @@
</checkbox-group>
</view>
<view v-if="end_activity.length <= 0" style="text-align: center;width: 100%;height:1000upx;line-height: 1000upx;font-size: 50upx;color:#8C8C8C ;">
没有过期活动~~
<image src="https://luma.jxdsy.cn//static/applet5/images/uts/meiyoule.png" mode=""></image>
</view>
</view>
......
static/icon/20.png

4.24 KB | W: | H:

static/icon/20.png

1.81 KB | W: | H:

static/icon/20.png
static/icon/20.png
static/icon/20.png
static/icon/20.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,26 +3,15 @@
module.exports = {
//是否为开发调试环境 true为本地环境 false 为正式环境
isdebug:false,//正式
// isdebug:true,//测试
xqdebug:false,//正式权限
// xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
isdebug:false,//正式
// isdebug:true,//测试
// xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
// #ifdef APP-PLUS
// isdebug:false,//正式 APP里面绝对是正式
// #endif
/**
* PS
*
* 正式环境 选 false !
* 本地开发环境 选 true
*
* */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment