Commit 4a64bc23 authored by zhengke's avatar zhengke

修改

parent ada6ffd1
......@@ -676,7 +676,7 @@
</div>
<div style="width:100%">
<div class="title">图片</div>
<el-form style="padding:20px 0;background:#fff" ref="addMsg" label-width="100px">
<el-form style="padding:20px 0;background:#fff" :model="vipMsg" ref="vipMsg" :rules="viprule" label-width="100px">
<el-form-item label="背景图片">
<el-button @click="openChangeDig(8)" size="mini">选择文件</el-button>
<el-button @click="vipMsg.BackImage=vipbackground" size="mini" type="primary">恢复默认</el-button>
......@@ -708,7 +708,7 @@
<el-form-item label="背景颜色">
<el-color-picker v-model="vipMsg.BackColor"></el-color-picker>
</el-form-item>
<el-form-item label="活动规则">
<el-form-item label="活动规则" prop="BottomRule">
<el-input type="textarea" :rows="4" style="width:60%" v-model="vipMsg.BottomRule"></el-input>
</el-form-item>
</el-form>
......@@ -716,7 +716,7 @@
</div>
</el-tab-pane>
<div style="padding-left:410px;padding-top:20px">
<el-button @click="saveVip" size="small" type="primary" v-if="activeName == 'sixth' ">保存</el-button>
<el-button @click="saveVipMsg('vipMsg')" size="small" type="primary" v-if="activeName == 'sixth' ">保存</el-button>
<el-button @click="save" size="small" type="primary" v-if="activeName != 'sixth' ">保存</el-button>
</div>
</el-tabs>
......@@ -789,7 +789,14 @@
VipICO:'', //vip图标
BackColor:'', //背景颜色
BottomRule:'' //活动规则
}
},
viprule: {
BottomRule: [{
required: true,
message: '请输入活动规则',
trigger: 'blur'
}]
},
}
},
created() {
......@@ -801,16 +808,26 @@
getVipInfo(){
this.apipost("/api/UserVip/GetFXGradeCustom", {}, res => {
if (res.data.resultCode == 1) {
console.log(res,'vip');
this.vipMsg=res.data.data;
}
})
},
saveVipMsg(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
this.saveVip();
} else {
return false;
}
});
},
//保存vip购买
saveVip(){
this.apipost("/api/UserVip/SetFXGradeCustom", this.vipMsg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
}else{
this.Error(res.data.message);
}
})
},
......
......@@ -173,15 +173,15 @@
<img @click="Delete(3,scope.row)" style="width:32px;height:32px" src="../../assets/img/userman/del.png"
alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="修改可提现佣金" placement="top-start">
<img @click="openYongjin(scope.row)" style="width:32px;height:32px"
src="../../assets/img/userman/edit.png" alt="">
</el-tooltip>
<!-- <img @click="OpenczjfDig(scope.row,1)" style="width:32px;height:32px;"
src="../../assets/img/userman/integral.png" alt="">
<img @click="OpenczjfDig(scope.row,2)" style="width:32px;height:32px"
src="../../assets/img/userman/balance.png" alt=""> -->
</template>
<el-tooltip class="item" effect="dark" content="修改可提现佣金" placement="top-start">
<img @click="openYongjin(scope.row)" style="width:32px;height:32px"
src="../../assets/img/userman/edit.png" alt="">
</el-tooltip>
</template>
</el-table-column>
</el-table>
......
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