Commit d80bb73d authored by xieyishang's avatar xieyishang

addxx

parent 06f90d83
......@@ -2,6 +2,10 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"app-plus" :
{
"launchtype" : "remote"
},
"default" :
{
"launchtype" : "remote"
......
......@@ -2,8 +2,8 @@
"name" : "鹿马商家助手",
"appid" : "__UNI__1EA80F1", //这个是 web
"description" : "商家",
"versionName" : "1.156",
"versionCode" : 1156,
"versionName" : "1.158",
"versionCode" : 1158,
"transformPx" : false,
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
......
......@@ -99,6 +99,14 @@
placeholder-class="plclass" placeholder="请填写产品商城价" />
</view>
</view>
<view class="noecellbox noecellboxtwo">
<view class="title">会员价(PLUS) ¥</view>
<view class="inputbox flex">
<input class="input flex1" maxlength="15" type="number" v-model="canform.min_price" value=""
placeholder-class="plclass" placeholder="请填写产品会员价" />
</view>
</view>
<view class="noecellbox noecellboxtwo">
<view class="title">市场价 ¥</view>
......@@ -180,7 +188,8 @@
<view class="checkboxs">
<view class="title">标识:</view>
<!-- 表特和类目 -->
<view class="chindlost ali-c flex flex-wrap">
<!-- ali-c flex flex-wrap -->
<view class="chindlost ">
<checkbox-group @change="checkboxChange">
<label class="lableitem flex ali-c" v-for="(item,index) in listchind" :key="index">
......@@ -221,6 +230,16 @@
</view>
<view class="titles">是否首页展示</view>
</label>
<label class="lableitem flex ali-c">
<view>
<checkbox-group @change="changeviptag">
<checkbox color="#FF6900" value="2" :checked="canform.is_member==2" />
</checkbox-group>
</view>
<view class="titles">是否会员产品</view>
</label>
</view>
......@@ -347,6 +366,7 @@
num: "", //库存 num
price: "", // 市场价
mall_price: "", //商城价
min_price:"",//会员价
is_agent_price: "", //代理价
goods_freight: 0, //运费
orderby: 100, //排序
......@@ -357,6 +377,7 @@
is_new: "0", //0 1 是否新产品
is_hot: "0", //0 1 是否热卖产品
is_tuijian: "0", //0 1是否首页推荐
is_member:"1",//是否是会员产品 1否 2是
is_seckill: "0", //0 1 是否秒杀产品
activity_id: '0', //秒杀activity_id
activity_list: '', //秒杀列表
......@@ -426,6 +447,13 @@
this.canform.is_tuijian = "0";
}
},
changeviptag(e){
if (e.target.value.indexOf("2") != -1) { //选中了
this.canform.is_member = "2";
} else {
this.canform.is_member = "1";
}
},
confirm(e) {
console.log(e)
this.cate_name = e.item.value;
......@@ -469,6 +497,7 @@
this.canform.intro = res.data.intro;
this.canform.price = (res.data.price / 100).toFixed(2); // 市场价
this.canform.mall_price = (res.data.mall_price / 100).toFixed(2); //商城价
this.canform.min_price = (res.data.min_price / 100).toFixed(2); //会员价
this.canform.is_agent_price = (res.data.is_agent_price / 100).toFixed(2); //代理价
this.canform.goods_freight = (res.data.goods_freight / 100).toFixed(2); //运费
this.canform.orderby = res.data.orderby; //排序
......@@ -480,6 +509,7 @@
this.canform.money = res.data.money; //佣金
this.canform.activity_id = res.data.activity_id;
this.canform.is_tuijian = res.data.is_tuijian ? res.data.is_tuijian : '0'; //是否推荐 是否首页推荐
this.canform.is_member = res.data.is_member?res.data.is_member:"1";
//处理分类初始值
for (let i = 0; i < this.goodsCate.length; i++) {
let itemone = this.goodsCate[i].children;
......@@ -584,12 +614,13 @@
}
})
// if(res.data.is_new==1){
// this.selchildList.push("is_new");
// }
// if(res.data.is_hot==1){
// this.selchildList.push("is_hot");
// }
//2021年8月24日11:08:58 change
if(res.data.is_new==1){
this.selchildList.push("is_new");
}
if(res.data.is_hot==1){
this.selchildList.push("is_hot");
}
} else {
this.$api.msg(res.msg);
......@@ -704,6 +735,7 @@
}
this.canform.is_tuijian = parseInt(this.canform.is_tuijian);
this.canform.is_member = parseInt(this.canform.is_member);
console.info("i", this.canform);
console.info("this.canform.is_tuijian", this.canform.is_tuijian);
// return false;
......
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