Commit 575c7adb authored by 黄奎's avatar 黄奎

页面修改

parent 6938705f
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</el-tooltip> </el-tooltip>
<div class="app-gallery-item"> <div class="app-gallery-item">
<el-button @click="userInfo.IconPath='',userInfo.Icon=''" v-if="userInfo.IconPath!=''" type="danger" icon="el-icon-close" circle></el-button> <el-button @click="userInfo.IconPath='',userInfo.Icon=''" v-if="userInfo.IconPath!=''" type="danger" icon="el-icon-close" circle></el-button>
<img style="width:100px;height:100px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.IconPath" alt=""> <img style="width:100px;height:100px" :src="getIconLink(userInfo.IconPath)" alt="">
</div> </div>
</el-form-item> </el-form-item>
<el-form-item class="commonLabel discount" label="分类大图"> <el-form-item class="commonLabel discount" label="分类大图">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</el-tooltip> </el-tooltip>
<div class="app-gallery-item"> <div class="app-gallery-item">
<el-button @click="userInfo.BigIconPath='',userInfo.BigIcon=''" v-if="userInfo.BigIconPath!=''" type="danger" icon="el-icon-close" circle></el-button> <el-button @click="userInfo.BigIconPath='',userInfo.BigIcon=''" v-if="userInfo.BigIconPath!=''" type="danger" icon="el-icon-close" circle></el-button>
<img style="width:100px;height:100px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.BigIconPath" alt=""> <img style="width:100px;height:100px" :src="getIconLink(userInfo.BigIconPath)" alt="">
</div> </div>
<p class="blue f12"> <p class="blue f12">
<span @click="czjfDig=true,imgDig=1" class="point">查看图例</span> <span @click="czjfDig=true,imgDig=1" class="point">查看图例</span>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</el-tooltip> </el-tooltip>
<div class="app-gallery-item"> <div class="app-gallery-item">
<el-button @click="userInfo.AdvertisingImagePath='',userInfo.AdvertisingImage=''" v-if="userInfo.AdvertisingImagePath!=''" size="mini" type="danger" icon="el-icon-close" circle></el-button> <el-button @click="userInfo.AdvertisingImagePath='',userInfo.AdvertisingImage=''" v-if="userInfo.AdvertisingImagePath!=''" size="mini" type="danger" icon="el-icon-close" circle></el-button>
<img style="width:100px;height:100px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+userInfo.AdvertisingImagePath" alt=""> <img style="width:100px;height:100px" :src="getIconLink(userInfo.AdvertisingImagePath)" alt="">
</div> </div>
<p class="blue f12"> <p class="blue f12">
<span @click="czjfDig=true,imgDig=2" class="point">查看图例</span> <span @click="czjfDig=true,imgDig=2" class="point">查看图例</span>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</el-col> </el-col>
<el-col :span="11" flex="cross:center"> <el-col :span="11" flex="cross:center">
<div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div> <div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div>
<div v-else class="app-image cat-icon" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath + ')',backgroundSize:'cover'}"></div> <div v-else class="app-image cat-icon" :style="{backgroundImage:'url(' + getIconLink(item.IconPath) + ')',backgroundSize:'cover'}"></div>
<div class="cat-name-info"> <div class="cat-name-info">
<el-tooltip class="item" effect="dark" :content="item.Name" placement="top"> <el-tooltip class="item" effect="dark" :content="item.Name" placement="top">
<span>{{item.Name}}</span> <span>{{item.Name}}</span>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</el-col> </el-col>
<el-col :span="11" flex="cross:center"> <el-col :span="11" flex="cross:center">
<div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div> <div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div>
<div v-else class="app-image cat-icon" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath + ')',backgroundSize:'cover'}"></div> <div v-else class="app-image cat-icon" :style="{backgroundImage:'url(' + getIconLink(item.IconPath) + ')',backgroundSize:'cover'}"></div>
<div class="cat-name-info"> <div class="cat-name-info">
<el-tooltip class="item" effect="dark" :content="item.Name" placement="top"> <el-tooltip class="item" effect="dark" :content="item.Name" placement="top">
<span>{{item.Name}}</span> <span>{{item.Name}}</span>
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
</el-col> </el-col>
<el-col :span="11" flex="cross:center"> <el-col :span="11" flex="cross:center">
<div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div> <div v-if="item.IconPath==''" class="app-image cat-icon noIcon"></div>
<div v-else class="app-image cat-icon" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.IconPath + ')',backgroundSize:'cover'}"></div> <div v-else class="app-image cat-icon" :style="{backgroundImage:'url(' + getIconLink(item.IconPath) + ')',backgroundSize:'cover'}"></div>
<div class="cat-name-info"> <div class="cat-name-info">
<el-tooltip class="item" effect="dark" :content="item.Name" placement="top"> <el-tooltip class="item" effect="dark" :content="item.Name" placement="top">
<span>{{item.Name}}</span> <span>{{item.Name}}</span>
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
width="300"> width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<span> <span>
<img v-if="scope.row.IconPath!=''" style="width:30px;height:30px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.IconPath" alt=""> <img v-if="scope.row.IconPath!=''" style="width:30px;height:30px" :src="getIconLink(scope.row.IconPath)" alt="">
{{scope.row.Name}} {{scope.row.Name}}
</span> </span>
</template> </template>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</div> </div>
<el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start"> <el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start">
<div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" class="el-tooltip item material-item "> <div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" class="el-tooltip item material-item ">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path" class="material-img" style="width: 140px; height: 140px;"> <img :src="getIconLink(item.Path)" class="material-img" style="width: 140px; height: 140px;">
<div flex="dir:left" style="margin-top: 5px;"> <div flex="dir:left" style="margin-top: 5px;">
<div class="material-name">{{item.Name}}</div> <div class="material-name">{{item.Name}}</div>
<div style="margin: 0px 5px;">|</div> <div style="margin: 0px 5px;">|</div>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</div> </div>
<el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start"> <el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start">
<div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" class="el-tooltip item material-item "> <div @click="PageSelect(item,index)" :class="item.Selected ? 'selected' :''" class="el-tooltip item material-item ">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'" class="material-img" style="width: 140px; height: 140px;"> <img :src="getIconLink(item.Path)+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'" class="material-img" style="width: 140px; height: 140px;">
<div class="material-video-info"><i class="el-icon-video-play"></i> <span>{{Time(item.VideoTime)}}</span></div> <div class="material-video-info"><i class="el-icon-video-play"></i> <span>{{Time(item.VideoTime)}}</span></div>
<div flex="dir:left" style="margin-top: 5px;"> <div flex="dir:left" style="margin-top: 5px;">
<div class="material-name">{{item.Name}}</div> <div class="material-name">{{item.Name}}</div>
......
<template> <template>
<div v-loading="loading" class="baseSet"> <div v-loading="loading" class="baseSet">
<div class="head-title"> <div class="head-title">
<span @click="goUrl" class="point">基础设置</span> <span @click="goUrl" class="point">基础设置</span>
</div> </div>
<div class="content"> <div class="content">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>分销设置</span> <span>分销设置</span>
</div> </div>
<div> <div>
<el-form-item label="分销层级" prop="DistributorTier"> <el-form-item label="分销层级" prop="DistributorTier">
<el-radio v-model="addMsg.DistributorTier" :label="0">关闭</el-radio> <el-radio v-model="addMsg.DistributorTier" :label="0">关闭</el-radio>
<el-radio v-model="addMsg.DistributorTier" :label="1">一级分销</el-radio> <el-radio v-model="addMsg.DistributorTier" :label="1">一级分销</el-radio>
<el-radio v-model="addMsg.DistributorTier" :label="2">二级分销</el-radio> <el-radio v-model="addMsg.DistributorTier" :label="2">二级分销</el-radio>
<el-radio v-model="addMsg.DistributorTier" :label="3">三级分销</el-radio> <el-radio v-model="addMsg.DistributorTier" :label="3">三级分销</el-radio>
</el-form-item> </el-form-item>
<el-form-item class="nocommonLabel" label="分销内购" prop="InPurchasing"> <el-form-item class="nocommonLabel" label="分销内购" prop="InPurchasing">
<el-tooltip class="item" effect="dark" content="开启分销内购,分销商自己购买商品,享受一级佣金,上级享受二级佣金,上上级享受三级佣金" placement="top"> <el-tooltip class="item" effect="dark" content="开启分销内购,分销商自己购买商品,享受一级佣金,上级享受二级佣金,上上级享受三级佣金"
<i class="topelzk elzk el-tooltip el-icon-info"></i> placement="top">
</el-tooltip> <i class="topelzk elzk el-tooltip el-icon-info"></i>
<el-switch </el-tooltip>
v-model="addMsg.InPurchasing" <el-switch v-model="addMsg.InPurchasing" active-color="#409EFF" :active-value="1" :inactive-value="2">
active-color="#409EFF" </el-switch>
:active-value="1" </el-form-item>
:inactive-value="2"> <el-form-item label="成为下线的条件" prop="ReferralsCondition">
</el-switch> <el-radio v-for="(item,index) in ReferralsList" v-model="addMsg.ReferralsCondition" :key="index"
</el-form-item> :label="item.Id">{{item.Name}}</el-radio>
<el-form-item label="成为下线的条件" prop="ReferralsCondition"> </el-form-item>
<el-radio v-for="(item,index) in ReferralsList" v-model="addMsg.ReferralsCondition" :key="index" :label="item.Id">{{item.Name}}</el-radio> <el-form-item label="申请成为分销商" prop="ApplyFor">
</el-form-item> <el-radio v-for="(item,index) in EnumList" v-model="addMsg.ApplyFor" :key="index" :label="item.Id">
<el-form-item label="申请成为分销商" prop="ApplyFor"> {{item.Name}}</el-radio>
<el-radio v-for="(item,index) in EnumList" v-model="addMsg.ApplyFor" :key="index" :label="item.Id">{{item.Name}}</el-radio> </el-form-item>
</el-form-item> <el-form-item label="成为分销商的条件" prop="DistributorCondition">
<el-form-item label="成为分销商的条件" prop="DistributorCondition"> <el-radio v-for="(item,index) in conditionList" v-model="addMsg.DistributorCondition" :key="index"
<el-radio v-for="(item,index) in conditionList" v-model="addMsg.DistributorCondition" :key="index" :label="item.Id">{{item.Name}}</el-radio> :label="item.Id">{{item.Name}}</el-radio>
</el-form-item> </el-form-item>
</div> </div>
</el-card> </el-card>
<el-card class="box-card" style="margin-top:10px"> <el-card class="box-card" style="margin-top:10px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>分销佣金设置</span> <span>分销佣金设置</span>
<el-tooltip class="item" effect="dark" content="需要开启分销层级,才能设置对应的分销佣金" placement="top"> <el-tooltip class="item" effect="dark" content="需要开启分销层级,才能设置对应的分销佣金" placement="top">
<i class="elzk el-tooltip el-icon-info"></i> <i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<div> <div>
<el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3" label="分销佣金类型" prop="DistributorTier"> <el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
<el-radio v-model="addMsg.DistributorCommissionType" :label="1">百分比</el-radio> label="分销佣金类型" prop="DistributorTier">
<el-radio v-model="addMsg.DistributorCommissionType" :label="2">固定金额</el-radio> <el-radio v-model="addMsg.DistributorCommissionType" :label="1">百分比</el-radio>
</el-form-item> <el-radio v-model="addMsg.DistributorCommissionType" :label="2">固定金额</el-radio>
<el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3" class="commonLabel" label="一级佣金" > </el-form-item>
<el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入" v-model="addMsg.OneCommission" class="input-with-select"> <el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
<el-button slot="append"> class="commonLabel" label="一级佣金">
<span v-if="addMsg.DistributorCommissionType==1">%</span> <el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入"
<span v-if="addMsg.DistributorCommissionType==2"></span> v-model="addMsg.OneCommission" class="input-with-select">
</el-button> <el-button slot="append">
</el-input> <span v-if="addMsg.DistributorCommissionType==1">%</span>
</el-form-item> <span v-if="addMsg.DistributorCommissionType==2"></span>
<el-form-item v-if="addMsg.DistributorTier==2 || addMsg.DistributorTier==3" class="commonLabel" label="二级佣金"> </el-button>
<el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入" v-model="addMsg.TwoCommission" class="input-with-select"> </el-input>
<el-button slot="append"> </el-form-item>
<span v-if="addMsg.DistributorCommissionType==1">%</span> <el-form-item v-if="addMsg.DistributorTier==2 || addMsg.DistributorTier==3" class="commonLabel"
<span v-if="addMsg.DistributorCommissionType==2"></span> label="二级佣金">
</el-button> <el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入"
</el-input> v-model="addMsg.TwoCommission" class="input-with-select">
</el-form-item> <el-button slot="append">
<el-form-item v-if="addMsg.DistributorTier==3" class="commonLabel" label="三级佣金"> <span v-if="addMsg.DistributorCommissionType==1">%</span>
<el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入" v-model="addMsg.ThreeCommission" class="input-with-select"> <span v-if="addMsg.DistributorCommissionType==2"></span>
<el-button slot="append"> </el-button>
<span v-if="addMsg.DistributorCommissionType==1">%</span> </el-input>
<span v-if="addMsg.DistributorCommissionType==2"></span> </el-form-item>
</el-button> <el-form-item v-if="addMsg.DistributorTier==3" class="commonLabel" label="三级佣金">
</el-input> <el-input style="width:293px;" type="number" min="1" size="small" placeholder="请输入"
</el-form-item> v-model="addMsg.ThreeCommission" class="input-with-select">
<el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3" label="佣金是否提完" prop="IsCommissionResidue"> <el-button slot="append">
<el-radio v-model="addMsg.IsCommissionResidue" :label="1"></el-radio> <span v-if="addMsg.DistributorCommissionType==1">%</span>
<el-radio v-model="addMsg.IsCommissionResidue" :label="2"></el-radio> <span v-if="addMsg.DistributorCommissionType==2"></span>
</el-form-item> </el-button>
</el-input>
</div> </el-form-item>
</el-card> <el-form-item v-if="addMsg.DistributorTier==1 || addMsg.DistributorTier==2 || addMsg.DistributorTier==3"
<el-card class="box-card" style="margin-top:10px"> label="佣金是否提完" prop="IsCommissionResidue">
<div slot="header" class="clearfix"> <el-radio v-model="addMsg.IsCommissionResidue" :label="1"></el-radio>
<span>分销商等级设置</span> <el-radio v-model="addMsg.IsCommissionResidue" :label="2"></el-radio>
<el-tooltip class="item" effect="dark" content="需要开启分销层级,才能设置对应的分销佣金" placement="top"> </el-form-item>
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip> </div>
</div> </el-card>
<div> <el-card class="box-card" style="margin-top:10px">
<el-form-item label="分销商等级入口"> <div slot="header" class="clearfix">
<el-switch <span>分销商等级设置</span>
v-model="addMsg.GradeEntrance" <el-tooltip class="item" effect="dark" content="需要开启分销层级,才能设置对应的分销佣金" placement="top">
active-color="#409EFF" <i class="elzk el-tooltip el-icon-info"></i>
:active-value="1" </el-tooltip>
:inactive-value="2"> </div>
</el-switch> <div>
<p style="margin-left:-60px" class="blue f12"> <el-form-item label="分销商等级入口">
<span @click="czjfDig=true" class="point">查看图例</span> <el-switch v-model="addMsg.GradeEntrance" active-color="#409EFF" :active-value="1" :inactive-value="2">
</p> </el-switch>
</el-form-item> <p style="margin-left:-60px" class="blue f12">
</div> <span @click="czjfDig=true" class="point">查看图例</span>
</el-card> </p>
<el-card class="box-card" style="margin-top:10px"> </el-form-item>
<div slot="header" class="clearfix"> </div>
<span>提现设置</span> </el-card>
</div> <el-card class="box-card" style="margin-top:10px">
<div> <div slot="header" class="clearfix">
<el-form-item class="nocommonLabel" label="提现方式" prop="WithdrawWayList"> <span>提现设置</span>
<el-tooltip class="item" effect="dark" content="自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能" placement="top"> </div>
<i class="topelzk elzk el-tooltip el-icon-info"></i> <div>
</el-tooltip> <el-form-item class="nocommonLabel" label="提现方式" prop="WithdrawWayList">
<el-checkbox-group v-model="addMsg.WithdrawWayList"> <el-tooltip class="item" effect="dark" content="自动打款支付,需要申请相应小程序的相应功能,例如:微信需要申请企业付款到零钱功能" placement="top">
<el-checkbox v-for="item in WithdrawWayList" :label="item.Id" :key="item.id">{{item.Name}}</el-checkbox> <i class="topelzk elzk el-tooltip el-icon-info"></i>
</el-checkbox-group> </el-tooltip>
</el-form-item> <el-checkbox-group v-model="addMsg.WithdrawWayList">
<el-form-item class="commonLabel" label="最少提现额度" prop="MinimumWithdrawalLimit"> <el-checkbox v-for="item in WithdrawWayList" :label="item.Id" :key="item.id">{{item.Name}}</el-checkbox>
<el-input v-model="addMsg.MinimumWithdrawalLimit" style="width:293px;" type="number" min="1" size="small" placeholder="请输入" class="input-with-select"> </el-checkbox-group>
<el-button slot="append"></el-button> </el-form-item>
</el-input> <el-form-item class="commonLabel" label="最少提现额度" prop="MinimumWithdrawalLimit">
</el-form-item> <el-input v-model="addMsg.MinimumWithdrawalLimit" style="width:293px;" type="number" min="1" size="small"
<el-form-item class="discount commonLabel" label="每次提现上限" prop="DailyWithdrawalLimit"> placeholder="请输入" class="input-with-select">
<el-tooltip class="item" effect="dark" content="-1元表示不限制每日提现金额" placement="top-start"> <el-button slot="append"></el-button>
<i class=" elzk el-tooltip el-icon-info"></i> </el-input>
</el-tooltip> </el-form-item>
<el-input v-model="addMsg.DailyWithdrawalLimit" style="width:293px;" type="number" min="1" size="small" placeholder="请输入" class="input-with-select"> <el-form-item class="discount commonLabel" label="每次提现上限" prop="DailyWithdrawalLimit">
<el-button slot="append"></el-button> <el-tooltip class="item" effect="dark" content="-1元表示不限制每日提现金额" placement="top-start">
</el-input> <i class=" elzk el-tooltip el-icon-info"></i>
</el-form-item> </el-tooltip>
<el-form-item class="discount commonLabel" label="提现手续费" prop="WithdrawFee"> <el-input v-model="addMsg.DailyWithdrawalLimit" style="width:293px;" type="number" min="1" size="small"
<el-tooltip class="item" effect="dark" content="0表示不设置提现手续费" placement="top-start"> placeholder="请输入" class="input-with-select">
<i class=" elzk el-tooltip el-icon-info"></i> <el-button slot="append"></el-button>
</el-tooltip> </el-input>
<el-input v-model="addMsg.WithdrawFee" style="width:293px;" type="number" min="1" size="small" placeholder="请输入" class="input-with-select"> </el-form-item>
<el-button slot="append">%</el-button> <el-form-item class="discount commonLabel" label="提现手续费" prop="WithdrawFee">
</el-input> <el-tooltip class="item" effect="dark" content="0表示不设置提现手续费" placement="top-start">
<p>提现手续费额外从提现中扣除</p> <i class=" elzk el-tooltip el-icon-info"></i>
<p>例如:<span class="cred">10%</span>的提现手续费:</p> </el-tooltip>
<p>提现<span class="cred">100</span>元,扣除手续费<span class="cred">10</span>元, 实际到手<span class="cred">90</span></p> <el-input v-model="addMsg.WithdrawFee" style="width:293px;" type="number" min="1" size="small"
</el-form-item> placeholder="请输入" class="input-with-select">
</div> <el-button slot="append">%</el-button>
</el-card> </el-input>
<el-card class="box-card" style="margin-top:10px"> <p>提现手续费额外从提现中扣除</p>
<div slot="header" class="clearfix"> <p>例如:<span class="cred">10%</span>的提现手续费:</p>
<span>页面设置</span> <p>提现<span class="cred">100</span>元,扣除手续费<span class="cred">10</span>元, 实际到手<span class="cred">90</span>
</div> </p>
<div> </el-form-item>
<el-form-item label="申请协议"> </div>
<el-input style="width:293px" </el-card>
type="textarea" <el-card class="box-card" style="margin-top:10px">
:rows="2" <div slot="header" class="clearfix">
placeholder="申请协议" <span>页面设置</span>
v-model="addMsg.ApplicationProtocol"> </div>
</el-input> <div>
</el-form-item> <el-form-item label="申请协议">
<el-form-item label="用户须知"> <el-input style="width:293px" type="textarea" :rows="2" placeholder="申请协议"
<el-input style="width:293px" v-model="addMsg.ApplicationProtocol">
type="textarea" </el-input>
:rows="2" </el-form-item>
placeholder="用户须知" <el-form-item label="用户须知">
v-model="addMsg.UserNotes"> <el-input style="width:293px" type="textarea" :rows="2" placeholder="用户须知" v-model="addMsg.UserNotes">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="待审核页面背景图片"> <el-form-item label="待审核页面背景图片">
<el-button @click="openChangeDig(1)" size="small">选择图片</el-button> <el-button @click="openChangeDig(1)" size="small">选择图片</el-button>
<div class="app-gallery-item"> <div class="app-gallery-item">
<img style="width:100px;height:100px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.BackgroundImagePath" alt=""> <img style="width:100px;height:100px"
</div> :src="getIconLink(addMsg.BackgroundImagePath)" alt="">
</el-form-item> </div>
<el-form-item label="首页背景图片" > </el-form-item>
<el-button @click="openChangeDig(2)" size="small">选择图片</el-button> <el-form-item label="首页背景图片">
<div class="app-gallery-item"> <el-button @click="openChangeDig(2)" size="small">选择图片</el-button>
<img style="width:100px;height:100px" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.IndexImagePath" alt=""> <div class="app-gallery-item">
</div> <img style="width:100px;height:100px"
</el-form-item> :src="getIconLink(addMsg.IndexImagePath)" alt="">
</div>
</div> </el-form-item>
</el-card>
</el-form> </div>
</el-card>
</el-form>
</div> </div>
<div style="margin-top:20px"> <div style="margin-top:20px">
<el-button size="small" type="primary" @click="Save('addMsg')">保存</el-button> <el-button size="small" type="primary" @click="Save('addMsg')">保存</el-button>
</div> </div>
<!-- 选择文件 --> <!-- 选择文件 -->
<el-dialog title="选择文件" :visible.sync="changeState" width="1240px"> <el-dialog title="选择文件" :visible.sync="changeState" width="1240px">
<ChooseImg @SelectId="SelectId"></ChooseImg> <ChooseImg @SelectId="SelectId"></ChooseImg>
</el-dialog> </el-dialog>
<!-- 查看图例 --> <!-- 查看图例 -->
<el-dialog title="查看分销商等级入口示例" :visible.sync="czjfDig" width="600px"> <el-dialog title="查看分销商等级入口示例" :visible.sync="czjfDig" width="600px">
<div class="center"> <div class="center">
<img style="width:280px" src="../../assets/img/userman/is_show_share_level.png" alt=""> <img style="width:280px" src="../../assets/img/userman/is_show_share_level.png" alt="">
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="czjfDig = false">我知道了</el-button> <el-button type="primary" size="small" @click="czjfDig = false">我知道了</el-button>
...@@ -200,200 +201,219 @@ ...@@ -200,200 +201,219 @@
</div> </div>
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
components: { components: {
ChooseImg ChooseImg
}, },
data() { data() {
return { return {
loading:false, loading: false,
czjfDig:false, czjfDig: false,
checkedCities:[], checkedCities: [],
currentPage4:3, currentPage4: 3,
changeState:false, changeState: false,
val:'', val: '',
addMsg:{ addMsg: {
Id:0, Id: 0,
DistributorTier:2, DistributorTier: 2,
InPurchasing:1, InPurchasing: 1,
ReferralsCondition:3, ReferralsCondition: 3,
ApplyFor:1, ApplyFor: 1,
DistributorCondition:3, DistributorCondition: 3,
DistributorCommissionType:1, DistributorCommissionType: 1,
OneCommission:0, OneCommission: 0,
TwoCommission:0, TwoCommission: 0,
ThreeCommission:0, ThreeCommission: 0,
GradeEntrance:1, GradeEntrance: 1,
WithdrawWay:[1], WithdrawWay: [1],
MinimumWithdrawalLimit:50, MinimumWithdrawalLimit: 50,
DailyWithdrawalLimit:0, DailyWithdrawalLimit: 0,
WithdrawFee:0, WithdrawFee: 0,
WithdrawWayList:[], WithdrawWayList: [],
ApplicationProtocol:'', ApplicationProtocol: '',
UserNotes:'', UserNotes: '',
BackgroundImage:'', BackgroundImage: '',
BackgroundImagePath:'', BackgroundImagePath: '',
IndexImage:'', IndexImage: '',
IndexImagePath:'', IndexImagePath: '',
IsCommissionResidue:1, IsCommissionResidue: 1,
}, },
dialogVisible:false, dialogVisible: false,
value:'', value: '',
options:[], options: [],
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:15, pageSize: 15,
}, },
total:0, total: 0,
rules: { rules: {
DistributorTier:[ DistributorTier: [{
{ required: true, message: '请选择分销层级', trigger: 'change' } required: true,
], message: '请选择分销层级',
ReferralsCondition:[ trigger: 'change'
{ required: true, message: '请选择成为下线条件', trigger: 'change' } }],
], ReferralsCondition: [{
ApplyFor:[ required: true,
{ required: true, message: '请选择申请为分销商', trigger: 'change' } message: '请选择成为下线条件',
], trigger: 'change'
DistributorCondition:[ }],
{ required: true, message: '请选择成为分销商条件', trigger: 'change' } ApplyFor: [{
], required: true,
DistributorCommissionType:[ message: '请选择申请为分销商',
{ required: true, message: '请选择分销佣金类型', trigger: 'change' } trigger: 'change'
], }],
WithdrawWay: [ DistributorCondition: [{
{ type: 'array', required: true, message: '请至少选择一个提现方式', trigger: 'change' } required: true,
], message: '请选择成为分销商条件',
MinimumWithdrawalLimit: [ trigger: 'change'
{ required: true, message: '请输入最少提现额度', trigger: 'blur' } }],
], DistributorCommissionType: [{
DailyWithdrawalLimit: [ required: true,
{ required: true, message: '请输入每日提现上限', trigger: 'blur' } message: '请选择分销佣金类型',
], trigger: 'change'
WithdrawFee: [ }],
{ required: true, message: '请输入提现手续费', trigger: 'blur' } WithdrawWay: [{
], type: 'array',
required: true,
message: '请至少选择一个提现方式',
trigger: 'change'
}],
MinimumWithdrawalLimit: [{
required: true,
message: '请输入最少提现额度',
trigger: 'blur'
}],
DailyWithdrawalLimit: [{
required: true,
message: '请输入每日提现上限',
trigger: 'blur'
}],
WithdrawFee: [{
required: true,
message: '请输入提现手续费',
trigger: 'blur'
}],
}, },
conditionList:[], conditionList: [],
EnumList:[], EnumList: [],
ReferralsList:[], ReferralsList: [],
WithdrawWayList:[], WithdrawWayList: [],
imgType:1, imgType: 1,
}; };
}, },
created() { created() {
this.ApplyForEnumList(); this.ApplyForEnumList();
this.ConditionEnumList(); this.ConditionEnumList();
this.ReferralsEnumList(); this.ReferralsEnumList();
this.WithdrawWayEnumList(); this.WithdrawWayEnumList();
this.getData(); this.getData();
}, },
methods: { methods: {
Save(formName){ Save(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
let cmd="/api/user/SetDistributorBasicsInfo"; let cmd = "/api/user/SetDistributorBasicsInfo";
this.apipost(cmd,this.addMsg, this.apipost(cmd, this.addMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getData(); this.getData();
} else {
this.Error(res.data.message);
}
},
null
);
} else { } else {
return false; this.Error(res.data.message);
}
});
},
SelectId(msg){
if(this.imgType==1){
this.addMsg.BackgroundImage=msg.selectId;
this.addMsg.BackgroundImagePath=msg.url;
}else{
this.addMsg.IndexImage=msg.selectId;
this.addMsg.IndexImagePath=msg.url;
}
this.changeState=false;
},
openChangeDig(val){
this.changeState=true;
this.imgType=val;
},
goUrl(){
this.$router.push({
name: 'MembershipGrade',
query: {
blank: "y"
}
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getData(){
this.loading=true;
this.apipost("/api/user/GetDistributorBasicsInfo", {}, res => {
this.loading=false;
if(res.data.resultCode==1){
this.addMsg=res.data.data;
}
})
},
WithdrawWayEnumList(){
this.apipost("/api/user/GetDistrbutorWithdrawWayEnumList", {}, res => {
if(res.data.resultCode==1){
this.WithdrawWayList=res.data.data;
}
})
},
ApplyForEnumList(){
this.apipost("/api/user/GetDistributorApplyForEnumList", {}, res => {
if(res.data.resultCode==1){
this.EnumList=res.data.data;
}
})
},
ConditionEnumList(){
this.apipost("/api/user/GetDistributorConditionEnumList", {}, res => {
if(res.data.resultCode==1){
this.conditionList=res.data.data;
}
})
},
ReferralsEnumList(){
this.apipost("/api/user/GetDistrbutorReferralsEnumList", {}, res => {
if(res.data.resultCode==1){
this.ReferralsList=res.data.data;
} }
},
}) null
}, );
} else {
return false;
}
});
},
SelectId(msg) {
if (this.imgType == 1) {
this.addMsg.BackgroundImage = msg.selectId;
this.addMsg.BackgroundImagePath = msg.url;
} else {
this.addMsg.IndexImage = msg.selectId;
this.addMsg.IndexImagePath = msg.url;
}
this.changeState = false;
},
openChangeDig(val) {
this.changeState = true;
this.imgType = val;
},
goUrl() {
this.$router.push({
name: 'MembershipGrade',
query: {
blank: "y"
}
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getData() {
this.loading = true;
this.apipost("/api/user/GetDistributorBasicsInfo", {}, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
}
})
},
WithdrawWayEnumList() {
this.apipost("/api/user/GetDistrbutorWithdrawWayEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.WithdrawWayList = res.data.data;
}
})
},
ApplyForEnumList() {
this.apipost("/api/user/GetDistributorApplyForEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.EnumList = res.data.data;
}
})
},
ConditionEnumList() {
this.apipost("/api/user/GetDistributorConditionEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.conditionList = res.data.data;
}
})
},
ReferralsEnumList() {
this.apipost("/api/user/GetDistrbutorReferralsEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.ReferralsList = res.data.data;
}
})
},
}, },
mounted() { mounted() {
} }
}; };
</script> </script>
<style> <style>
.baseSet .app-gallery-item{ .baseSet .app-gallery-item {
width: 100px; width: 100px;
height: 100px; height: 100px;
border: 1px solid #e3e3e3; border: 1px solid #e3e3e3;
...@@ -401,36 +421,44 @@ import ChooseImg from "@/components/global/ChooseImg.vue"; ...@@ -401,36 +421,44 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
} }
.baseSet .el-form-item .topelzk{
top: 12px!important; .baseSet .el-form-item .topelzk {
} top: 12px !important;
.baseSet .el-form-item .elzk { }
.baseSet .el-form-item .elzk {
position: absolute; position: absolute;
left: -25px; left: -25px;
top: 8px; top: 8px;
} }
.baseSet .el-checkbox-group{
.baseSet .el-checkbox-group {
display: inline-block; display: inline-block;
} }
.baseSet .nocommonLabel .el-form-item__label{
margin-top: 0px; .baseSet .nocommonLabel .el-form-item__label {
margin-top: 0px;
padding-right: 30px; padding-right: 30px;
} }
.baseSet .commonLabel .el-form-item__label{
margin-top: -4px; .baseSet .commonLabel .el-form-item__label {
} margin-top: -4px;
.baseSet .discount .el-form-item__label{ }
.baseSet .discount .el-form-item__label {
padding-right: 30px; padding-right: 30px;
margin-top: -4px; margin-top: -4px;
} }
.baseSet .blue{
color:#409EFF; .baseSet .blue {
color: #409EFF;
}
.baseSet .content{ }
margin-top:10px;
.baseSet .content {
margin-top: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
</style> </style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="el-scrollbar__view"> <div class="el-scrollbar__view">
<div> <div>
<div class="el-image" style="display: block; width: 100%; height: 150px;"> <div class="el-image" style="display: block; width: 100%; height: 150px;">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.HeadImagePath" <img :src="getIconLink(addMsg.HeadImagePath)"
class="el-image__inner"> class="el-image__inner">
</div> </div>
<div style="background: rgb(255, 255, 255); height: 40px; padding: 0px 14px;"> <div style="background: rgb(255, 255, 255); height: 40px; padding: 0px 14px;">
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
{{addMsg.ButtonText}} {{addMsg.ButtonText}}
</div> </div>
<div class="el-image" style="display: block; width: 100%;"> <div class="el-image" style="display: block; width: 100%;">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.BottomImagePath" <img :src="getIconLink(addMsg.BottomImagePath)"
class="el-image__inner"> class="el-image__inner">
</div> </div>
</div> </div>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<img @click="openChangeDig(1)" v-if="addMsg.HeadImagePath==''" style="width:100px;height:100px" <img @click="openChangeDig(1)" v-if="addMsg.HeadImagePath==''" style="width:100px;height:100px"
src="../../assets/img/default.png" alt=""> src="../../assets/img/default.png" alt="">
<div v-else class="app-image" <div v-else class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.HeadImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.HeadImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<button @click="addMsg.HeadImagePath=''" type="button" <button @click="addMsg.HeadImagePath=''" type="button"
class="el-button del-btn el-button--danger el-button--mini is-circle"><i class="el-button del-btn el-button--danger el-button--mini is-circle"><i
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<img @click="openChangeDig(2)" v-if="addMsg.BottomImagePath==''" style="width:100px;height:100px" <img @click="openChangeDig(2)" v-if="addMsg.BottomImagePath==''" style="width:100px;height:100px"
src="../../assets/img/default.png" alt=""> src="../../assets/img/default.png" alt="">
<div v-else class="app-image" <div v-else class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.BottomImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.BottomImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<button @click="addMsg.BottomImagePath=''" type="button" <button @click="addMsg.BottomImagePath=''" type="button"
class="el-button del-btn el-button--danger el-button--mini is-circle"><i class="el-button del-btn el-button--danger el-button--mini is-circle"><i
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<div flex="dir:top cross:center main:center" class="text-center" <div flex="dir:top cross:center main:center" class="text-center"
style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"> style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;">
<img <img
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.DistributionCommissionImagePath" :src="getIconLink(addMsg.DistributionCommissionImagePath)"
style="width: 35px; height: 35px;"> style="width: 35px; height: 35px;">
<div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"> <div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);">
{{addMsg.DistributionCommissionName}} {{addMsg.DistributionCommissionName}}
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
<div flex="dir:top cross:center main:center" class="text-center" <div flex="dir:top cross:center main:center" class="text-center"
style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"> style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;">
<img <img
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.DistributionOrderImagePath" :src="getIconLink(addMsg.DistributionOrderImagePath)"
style="width: 35px; height: 35px;"> style="width: 35px; height: 35px;">
<div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"> <div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);">
{{addMsg.DistributionOrderName}} {{addMsg.DistributionOrderName}}
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
</div> </div>
<div flex="dir:top cross:center main:center" class="text-center" <div flex="dir:top cross:center main:center" class="text-center"
style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"> style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.WithdrawDetialsImagePath" <img :src="getIconLink(addMsg.WithdrawDetialsImagePath)"
style="width: 35px; height: 35px;"> style="width: 35px; height: 35px;">
<div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"> <div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);">
{{addMsg.WithdrawDetialsName}} {{addMsg.WithdrawDetialsName}}
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</div> </div>
<div flex="dir:top cross:center main:center" class="text-center" <div flex="dir:top cross:center main:center" class="text-center"
style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"> style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.MyTeamImagePath" <img :src="getIconLink(addMsg.MyTeamImagePath)"
style="width: 35px; height: 35px;"> style="width: 35px; height: 35px;">
<div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"> <div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);">
{{addMsg.MyTeamName}} {{addMsg.MyTeamName}}
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
</div> </div>
<div flex="dir:top cross:center main:center" class="text-center" <div flex="dir:top cross:center main:center" class="text-center"
style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;"> style="border-right: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226); width: 125px; height: 110px;">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.PromoteQRCodeImagePath" <img :src="getIconLink(addMsg.PromoteQRCodeImagePath)"
style="width: 35px; height: 35px;"> style="width: 35px; height: 35px;">
<div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);"> <div style="transform: scale(0.8); font-size: 16px; padding-top: 8px; color: rgb(102, 102, 102);">
{{addMsg.PromoteQRCodeName}} {{addMsg.PromoteQRCodeName}}
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
flex="dir:top main:center cross:center" flex="dir:top main:center cross:center"
style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"> style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.DistributionCommissionImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.DistributionCommissionImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<div style="margin-top: 8px;">{{addMsg.DistributionCommissionName}}</div> <div style="margin-top: 8px;">{{addMsg.DistributionCommissionName}}</div>
</span> </span>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
flex="dir:top main:center cross:center" flex="dir:top main:center cross:center"
style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"> style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.DistributionOrderImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.DistributionOrderImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<div style="margin-top: 8px;">{{addMsg.DistributionOrderName}}</div> <div style="margin-top: 8px;">{{addMsg.DistributionOrderName}}</div>
</span> </span>
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
flex="dir:top main:center cross:center" flex="dir:top main:center cross:center"
style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"> style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.WithdrawDetialsImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.WithdrawDetialsImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<div style="margin-top: 8px;"> {{addMsg.WithdrawDetialsName}}</div> <div style="margin-top: 8px;"> {{addMsg.WithdrawDetialsName}}</div>
</span> </span>
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
flex="dir:top main:center cross:center" flex="dir:top main:center cross:center"
style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"> style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.MyTeamImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.MyTeamImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<div style="margin-top: 8px;">{{addMsg.MyTeamName}}</div> <div style="margin-top: 8px;">{{addMsg.MyTeamName}}</div>
</span> </span>
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
flex="dir:top main:center cross:center" flex="dir:top main:center cross:center"
style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;"> style="cursor: pointer; height: 100px; width: 100px; border: 1px solid rgb(227, 227, 227); margin-left: -1px;">
<div class="app-image" <div class="app-image"
:style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + addMsg.PromoteQRCodeImagePath + ')',backgroundSize:'cover'}"> :style="{backgroundImage:'url(' + getIconLink(addMsg.PromoteQRCodeImagePath) + ')',backgroundSize:'cover'}">
</div> </div>
<div style="margin-top: 8px;">{{addMsg.PromoteQRCodeName}}</div> <div style="margin-top: 8px;">{{addMsg.PromoteQRCodeName}}</div>
</span> </span>
...@@ -657,7 +657,7 @@ ...@@ -657,7 +657,7 @@
<el-button @click="openChangeDig(imgType)" size="small">选择文件</el-button> <el-button @click="openChangeDig(imgType)" size="small">选择文件</el-button>
<div> <div>
<img style="width:80px;height:80px" <img style="width:80px;height:80px"
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+iconMsg.Path" alt=""> :src="getIconLink(iconMsg.Path)" alt="">
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -500,7 +500,7 @@ ...@@ -500,7 +500,7 @@
SelectId(msg) { SelectId(msg) {
this.changeState = false; this.changeState = false;
this.addMsg.Image = msg.id; this.addMsg.Image = msg.id;
this.imgurl = "http://viitto-1301420277.cos.ap-chengdu.myqcloud.com" + msg.url; this.imgurl =this.getIconLink(msg.url);
}, },
EditgoUrl(row) { EditgoUrl(row) {
this.$router.push({ this.$router.push({
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div> <div>
<img v-if="addMsg.IconPath==''" style="width:80px;height:80px" src="../../assets/img/default.png" alt=""> <img v-if="addMsg.IconPath==''" style="width:80px;height:80px" src="../../assets/img/default.png" alt="">
<img v-else style="width:80px;height:80px" <img v-else style="width:80px;height:80px"
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.IconPath" alt=""> :src="getIconLink(addMsg.IconPath)" alt="">
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="会员背景色" prop="BackgroundImage"> <el-form-item label="会员背景色" prop="BackgroundImage">
...@@ -41,8 +41,7 @@ ...@@ -41,8 +41,7 @@
<img v-if="addMsg.BackgroundImagePath==''" style="width:80px;height:80px" src="../../assets/img/default.png" <img v-if="addMsg.BackgroundImagePath==''" style="width:80px;height:80px" src="../../assets/img/default.png"
alt=""> alt="">
<img v-else style="width:80px;height:80px" <img v-else style="width:80px;height:80px"
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+addMsg.BackgroundImagePath" alt=""> :src="getIconLink(addMsg.BackgroundImagePath)" alt="">
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="累计金额自动升级"> <el-form-item label="累计金额自动升级">
...@@ -80,7 +79,7 @@ ...@@ -80,7 +79,7 @@
<img v-if="scope.row.ImagePath==''" style="margin-left: 10px;width:50px;height:50px" <img v-if="scope.row.ImagePath==''" style="margin-left: 10px;width:50px;height:50px"
src="../../assets/img/default.png" alt=""> src="../../assets/img/default.png" alt="">
<img v-else style="margin-left: 10px;width:50px;height:50px" <img v-else style="margin-left: 10px;width:50px;height:50px"
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.ImagePath" alt=""> :src="getIconLink(scope.row.ImagePath)" alt="">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" width="500px" label="权益内容"> <el-table-column prop="address" width="500px" label="权益内容">
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
SelectId(msg) { SelectId(msg) {
this.changeState = false; this.changeState = false;
this.addMsg.Image = msg.id; this.addMsg.Image = msg.id;
this.imgurl = "http://viitto-1301420277.cos.ap-chengdu.myqcloud.com" + msg.url; this.imgurl =this.getIconLink(msg.url);
}, },
EditgoUrl(row) { EditgoUrl(row) {
this.$router.push({ this.$router.push({
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-table-column prop="name" label="名称"> <el-table-column prop="name" label="名称">
<template slot-scope="scope"> <template slot-scope="scope">
<div flex="cross:center dir:left"> <div flex="cross:center dir:left">
<img style="width:50px;height:50px;margin-right:10px;" :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+scope.row.CoverImage"/> <img style="width:50px;height:50px;margin-right:10px;" :src="getIconLink(scope.row.CoverImage)"/>
<div>{{ scope.row.Name }}</div> <div>{{ scope.row.Name }}</div>
</div> </div>
</template> </template>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
<el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start"> <el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start">
<div @click="PageSelect(item,index)" :class="selectId==item.Id ? 'selected' :''" class="el-tooltip item app-attachment-item" > <div @click="PageSelect(item,index)" :class="selectId==item.Id ? 'selected' :''" class="el-tooltip item app-attachment-item" >
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path" class="app-attachment-img" style="width: 100px; height: 100px;"> <img :src="getIconLink(item.Path)" class="app-attachment-img" style="width: 100px; height: 100px;">
<div class="app-attachment-name">{{item.Name}}</div> <div class="app-attachment-name">{{item.Name}}</div>
</div> </div>
</el-tooltip> </el-tooltip>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
<el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start"> <el-tooltip v-for="(item,index) in PageList" :key="index" class="item" effect="dark" :content="item.Name" placement="top-start">
<div @click="PageSelect(item,index)" :class="selectId==item.Id ? 'selected' :''" class="el-tooltip item material-item "> <div @click="PageSelect(item,index)" :class="selectId==item.Id ? 'selected' :''" class="el-tooltip item material-item ">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.Path+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'" class="material-img" style="width: 100px; height: 100px;"> <img :src="getIconLink(item.Path)+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'" class="material-img" style="width: 100px; height: 100px;">
<div class="material-video-info"><i class="el-icon-video-play"></i> <span>{{item.VideoTime}}</span></div> <div class="material-video-info"><i class="el-icon-video-play"></i> <span>{{item.VideoTime}}</span></div>
<div flex="dir:left" style="margin-top: 5px;"> <div flex="dir:left" style="margin-top: 5px;">
<div class="material-name">{{item.Name}}</div> <div class="material-name">{{item.Name}}</div>
......
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
}, },
SelectId(msg){ SelectId(msg){
this.changeState=false; this.changeState=false;
this.msg.CouponIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.CouponIco= this.getIconLink(msg.url);
}, },
} }
......
...@@ -129,12 +129,12 @@ ...@@ -129,12 +129,12 @@
<div class="banner-container" :style="{height:banData.data.height+'px'}"> <div class="banner-container" :style="{height:banData.data.height+'px'}">
<el-carousel :interval="3000" arrow="always" v-if="banData.data.style==1" :height="banData.data.height+'px'"> <el-carousel :interval="3000" arrow="always" v-if="banData.data.style==1" :height="banData.data.height+'px'">
<el-carousel-item v-for="(item,index) in banData.data.banners" :key="index"> <el-carousel-item v-for="(item,index) in banData.data.banners" :key="index">
<div class="banner-img" :class="banData.data.fill==1?'banner-img-cover':'banner-img-contain'" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.picUrl+')'}"></div> <div class="banner-img" :class="banData.data.fill==1?'banner-img-cover':'banner-img-contain'" :style="{backgroundImage:'url('+getIconLink(item.picUrl)+')'}"></div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
<el-carousel v-else :interval="4000" type="card" :height="banData.data.height+'px'"> <el-carousel v-else :interval="4000" type="card" :height="banData.data.height+'px'">
<el-carousel-item v-for="(item,index) in banData.data.banners" :key="index"> <el-carousel-item v-for="(item,index) in banData.data.banners" :key="index">
<div class="banner-img" :class="banData.data.fill==1?'banner-img-cover':'banner-img-contain'" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.picUrl+')'}"></div> <div class="banner-img" :class="banData.data.fill==1?'banner-img-cover':'banner-img-contain'" :style="{backgroundImage:'url('+getIconLink(item.picUrl)+')'}"></div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
<div flex="box:first"> <div flex="box:first">
<div> <div>
<div class="banner_image_upload" style="margin-right:5px;"> <div class="banner_image_upload" style="margin-right:5px;">
<div flex="main:center cross:center" @click="choiceMyImg(index)" class="pic-box" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + item.picUrl + ')'}"> <div flex="main:center cross:center" @click="choiceMyImg(index)" class="pic-box" :style="{backgroundImage:'url(' + getIconLink(item.picUrl) + ')'}">
<i style="font-size:22px;color:#909399;" class="el-icon-picture-outline" v-if="item.picUrl==''"></i> <i style="font-size:22px;color:#909399;" class="el-icon-picture-outline" v-if="item.picUrl==''"></i>
<div class="size-tip">720 × 250</div> <div class="size-tip">720 × 250</div>
<el-button type="danger" v-if="item.picUrl!=''" class="image-delete" size="mini" icon="el-icon-close" @click.stop="item.picUrl=''" circle></el-button> <el-button type="danger" v-if="item.picUrl!=''" class="image-delete" size="mini" icon="el-icon-close" @click.stop="item.picUrl=''" circle></el-button>
......
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
<div :style="cGoodsItemStyle" :flex="cGoodsItemFlex" style="position: relative;"> <div :style="cGoodsItemStyle" :flex="cGoodsItemFlex" style="position: relative;">
<div class="goods-pic" <div class="goods-pic"
:class="'goods-pic-'+data.goodsCoverProportion+' goods-pic-fill-'+data.fill" :class="'goods-pic-'+data.goodsCoverProportion+' goods-pic-fill-'+data.fill"
:style="'background-image: url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage+')'"> :style="'background-image: url('+getIconLink(goods.CoverImage)+')'">
<div v-if="data.showGoodsTag" class="goods-tag" <div v-if="data.showGoodsTag" class="goods-tag"
:style="'background-image: url('+ getIconLink(data.goodsTagPicUrl)+')'"></div> :style="'background-image: url('+ getIconLink(data.goodsTagPicUrl)+')'"></div>
</div> </div>
...@@ -410,7 +410,7 @@ ...@@ -410,7 +410,7 @@
<el-button @click="deleteGoods(goodsIndex,catIndex)" circle class="goods-delete" type="danger" <el-button @click="deleteGoods(goodsIndex,catIndex)" circle class="goods-delete" type="danger"
icon="el-icon-close"></el-button> icon="el-icon-close"></el-button>
</el-tooltip> </el-tooltip>
<div class="goods-pic" :style="'background-image:url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage+')'"></div> <div class="goods-pic" :style="'background-image:url('+getIconLink(goods.CoverImage)+')'"></div>
</div> </div>
</draggable> </draggable>
<div class="goods-add"> <div class="goods-add">
...@@ -437,7 +437,7 @@ ...@@ -437,7 +437,7 @@
<el-button @click="deleteGoods(goodsIndex,null)" circle class="goods-delete" type="danger" <el-button @click="deleteGoods(goodsIndex,null)" circle class="goods-delete" type="danger"
icon="el-icon-close"></el-button> icon="el-icon-close"></el-button>
</el-tooltip> </el-tooltip>
<div class="goods-pic" :style="'background-image:url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+goods.CoverImage+')'"></div> <div class="goods-pic" :style="'background-image:url('+getIconLink(goods.CoverImage)+')'"></div>
</div> </div>
</draggable> </draggable>
<div class="goods-add"> <div class="goods-add">
...@@ -506,7 +506,7 @@ ...@@ -506,7 +506,7 @@
<el-radio v-model="data.customizeGoodsTag" :label="true" @change="customizeGoodsTagChange">自定义</el-radio> <el-radio v-model="data.customizeGoodsTag" :label="true" @change="customizeGoodsTagChange">自定义</el-radio>
</el-form-item> </el-form-item>
<el-form-item label="自定义商品角标" v-if="data.showGoodsTag&&data.customizeGoodsTag"> <el-form-item label="自定义商品角标" v-if="data.showGoodsTag&&data.customizeGoodsTag">
<div flex="main:center cross:center" @click="choicImg=true" class="Goodspic-box" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+data.goodsTagPicUrl+')'}"> <div flex="main:center cross:center" @click="choicImg=true" class="Goodspic-box" :style="{backgroundImage:'url('+getIconLink(data.goodsTagPicUrl)+')'}">
<i v-if="data.goodsTagPicUrl==''" class="el-icon-picture-outline"></i> <i v-if="data.goodsTagPicUrl==''" class="el-icon-picture-outline"></i>
<div class="size-tip">64 × 64</div> <div class="size-tip">64 × 64</div>
</div> </div>
......
...@@ -150,10 +150,10 @@ ...@@ -150,10 +150,10 @@
</div> </div>
<div class="diy-component-preview"> <div class="diy-component-preview">
<div class="diynav-container" :style="{backgroundColor:navData.data.backgroundColor,overflowX:navData.data.scroll?'auto':'hidden',backgroundPosition:bgPostion, <div class="diynav-container" :style="{backgroundColor:navData.data.backgroundColor,overflowX:navData.data.scroll?'auto':'hidden',backgroundPosition:bgPostion,
backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + navData.data.backgroundPicUrl + ')'}"> backgroundImage:'url(' + getIconLink(navData.data.backgroundPicUrl) + ')'}">
<div flex="dir:left" style="width:750px;flex-wrap:wrap;"> <div flex="dir:left" style="width:750px;flex-wrap:wrap;">
<div class="Headernav-item" v-for="(item,index) in navData.data.navs" :key="index" :style="{width:getNavWidth(navData.data.columns)}"> <div class="Headernav-item" v-for="(item,index) in navData.data.navs" :key="index" :style="{width:getNavWidth(navData.data.columns)}">
<img :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+item.icon"/> <img :src="getIconLink(item.icon)"/>
<div style="color: rgb(53, 53, 53);">{{item.name}}</div> <div style="color: rgb(53, 53, 53);">{{item.name}}</div>
</div> </div>
</div> </div>
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</el-form-item> </el-form-item>
<el-form-item label="上传背景" v-if="navData.data.showImg"> <el-form-item label="上传背景" v-if="navData.data.showImg">
<div style="line-height:normal;display:inline-block;"> <div style="line-height:normal;display:inline-block;">
<div class="navigation_pic_boxDiv" @click="choicImg=true,selectType=1" flex="main:center cross:center" :style="{backgroundImage:'url(http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + navData.data.backgroundPicUrl + ')'}"> <div class="navigation_pic_boxDiv" @click="choicImg=true,selectType=1" flex="main:center cross:center" :style="{backgroundImage:'url(' + getIconLink(navData.data.backgroundPicUrl) + ')'}">
<i class="el-icon-picture-outline" v-if="navData.data.backgroundPicUrl==''"></i> <i class="el-icon-picture-outline" v-if="navData.data.backgroundPicUrl==''"></i>
<el-button type="danger" class="image-delete" v-if="navData.data.backgroundPicUrl!=''" size="mini" icon="el-icon-close" @click.stop="navData.data.backgroundPicUrl=''" circle></el-button> <el-button type="danger" class="image-delete" v-if="navData.data.backgroundPicUrl!=''" size="mini" icon="el-icon-close" @click.stop="navData.data.backgroundPicUrl=''" circle></el-button>
</div> </div>
......
...@@ -89,12 +89,12 @@ ...@@ -89,12 +89,12 @@
icon="el-icon-close" circle @click.stop="deleteRubik(index)"></el-button> icon="el-icon-close" circle @click.stop="deleteRubik(index)"></el-button>
</template> </template>
<span v-if="!rubData.data.list[index].pic_url">{{rubikSize(index)}}</span> <span v-if="!rubData.data.list[index].pic_url">{{rubikSize(index)}}</span>
<img v-else :src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[index].pic_url" <img v-else :src="getIconLink(rubData.data.list[index].pic_url)"
style="width: 100%;visibility: hidden;"> style="width: 100%;visibility: hidden;">
</div> </div>
<div class="rubik" :style="emptyStyle(index)" v-if="rubData.data.style == 8" :key="index"></div> <div class="rubik" :style="emptyStyle(index)" v-if="rubData.data.style == 8" :key="index"></div>
<img v-if="rubData.data.list[index].pic_url && rubData.data.style == 0" <img v-if="rubData.data.list[index].pic_url && rubData.data.style == 0"
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[index].pic_url" :src="getIconLink(rubData.data.list[index].pic_url)"
:key="index" style="width: 100%;visibility: hidden;display: block"> :key="index" style="width: 100%;visibility: hidden;display: block">
</template> </template>
</div> </div>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<div flex="main:center cross:center" class="app-gallery-item" <div flex="main:center cross:center" class="app-gallery-item"
style="height: 100px; width: 100px;"> style="height: 100px; width: 100px;">
<img <img
:src="'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com'+rubData.data.list[rubik].pic_url" :src="getIconLink(rubData.data.list[rubik].pic_url)"
style="width:100%;height:100%;"> style="width:100%;height:100%;">
</div> </div>
</div> </div>
...@@ -555,7 +555,7 @@ ...@@ -555,7 +555,7 @@
style = this.getStyle(style, this.rubData.data, true, true); style = this.getStyle(style, this.rubData.data, true, true);
if (style.pic_url) { if (style.pic_url) {
style.backgroundImage = `url('http://viitto-1301420277.cos.ap-chengdu.myqcloud.com${style.pic_url}')`; style.backgroundImage = `url('${this.getIconLink(style.pic_url)}')`;
style.backgroundRepeat = 'no-repeat'; style.backgroundRepeat = 'no-repeat';
style.backgroundSize = 'cover'; style.backgroundSize = 'cover';
style.backgroundPosition = 'center'; style.backgroundPosition = 'center';
......
...@@ -155,12 +155,11 @@ ...@@ -155,12 +155,11 @@
SelectId(msg){ SelectId(msg){
this.changeState=false; this.changeState=false;
if(this.Choiceimg == 1){ if(this.Choiceimg == 1){
this.msg.BackImg="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.BackImg= this.getIconLink(msg.url);
}else if(this.Choiceimg == 2){ }else if(this.Choiceimg == 2){
this.msg.AdvertisingImg="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.AdvertisingImg=this.getIconLink(msg.url);
}else if(this.Choiceimg == 3){ }else if(this.Choiceimg == 3){
this.msg.ExplainIco ="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.ExplainIco =this.getIconLink(msg.url);
} }
}, },
//获取选择链接 //获取选择链接
......
...@@ -1099,32 +1099,31 @@ ...@@ -1099,32 +1099,31 @@
this.changeState=false; this.changeState=false;
// this.addMsg.Image=msg.id; // this.addMsg.Image=msg.id;
if(this.Choiceimg == 1){ if(this.Choiceimg == 1){
this.msg.MinShareIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.MinShareIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==2){ }else if(this.Choiceimg ==2){
this.msg.UnfoldIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.UnfoldIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==3){ }else if(this.Choiceimg ==3){
this.msg.PackUpIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.PackUpIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==4){ }else if(this.Choiceimg ==4){
this.msg.OnlineServiceIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.OnlineServiceIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==5){ }else if(this.Choiceimg ==5){
this.msg.BackTopNavigationIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.BackTopNavigationIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==6){ }else if(this.Choiceimg ==6){
this.msg.OneCallIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.OneCallIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==7){ }else if(this.Choiceimg ==7){
this.msg.ServiceOutLinkIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.ServiceOutLinkIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==8){ }else if(this.Choiceimg ==8){
this.msg.ShortcutNavigationIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.ShortcutNavigationIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==9){ }else if(this.Choiceimg ==9){
this.msg.TurnMiniIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.TurnMiniIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==10){ }else if(this.Choiceimg ==10){
this.msg.TurnIco="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.TurnIco=this.getIconLink(msg.url);
}else if(this.Choiceimg ==11){ }else if(this.Choiceimg ==11){
this.msg.SellOutDefaultIco=0 this.msg.SellOutDefaultIco=0
this.msg.GoodsNormalPic="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url; this.msg.GoodsNormalPic=this.getIconLink(msg.url);
}else if(this.Choiceimg ==12){ }else if(this.Choiceimg ==12){
this.msg.SellOutDefaultIco=0 this.msg.SellOutDefaultIco=0
this.msg.GoodsZoomPic=this.getIconLink(msg.url);
this.msg.GoodsZoomPic="http://viitto-1301420277.cos.ap-chengdu.myqcloud.com"+msg.url;
} }
}, },
preserve(){ preserve(){
......
...@@ -55,10 +55,8 @@ export default { ...@@ -55,10 +55,8 @@ export default {
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = ''; let domainUrl = '';
//domainUrl = "http://192.168.2.214:8200"; //domainUrl = "http://192.168.2.214:8200";
// domainUrl = "https://localhost:5001"; domainUrl = "https://localhost:5001";
domainUrl = "http://192.168.0.102:8200";
// domainUrl = "http://192.168.2.17:8088";
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) { if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com"; domainUrl = "http://testapi.oytour.com";
...@@ -70,7 +68,7 @@ export default { ...@@ -70,7 +68,7 @@ export default {
DomainUrl: domainUrl, DomainUrl: domainUrl,
//常用提交数据URL //常用提交数据URL
PostUrl: domainUrl + "/api/common/post", PostUrl: domainUrl + "/api/common/post",
ImageUrl:'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com' ImageUrl: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com'
}; };
return obj; return obj;
}, },
...@@ -182,19 +180,19 @@ export default { ...@@ -182,19 +180,19 @@ export default {
query: obj query: obj
}); });
} }
//公用判断图片地址 判断是否包含http //公用判断图片地址 判断是否包含http
Vue.prototype.getIconLink = function (url) { Vue.prototype.getIconLink = function (url) {
let str = '' let str = ''
if(url!=''){ if (url && url != '') {
if (url.indexOf('http') != -1) { if (url.indexOf('http') != -1) {
str = url str = url
} else { } else {
str = 'http://viitto-1301420277.cos.ap-chengdu.myqcloud.com' + url str = this.domainManager().ImageUrl + url;
}
return str;
} }
return str;
} }
}
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
...@@ -203,10 +201,10 @@ export default { ...@@ -203,10 +201,10 @@ export default {
var apiurl = this.domainManager().DomainUrl + cmd; var apiurl = this.domainManager().DomainUrl + cmd;
var timestamp = (new Date()).valueOf(); var timestamp = (new Date()).valueOf();
this.apiurl = apiurl; this.apiurl = apiurl;
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" &&
&& this.$route.path.toLowerCase() != "/login" this.$route.path.toLowerCase() != "/login" &&
&& this.$route.path.toLowerCase() != "/register" this.$route.path.toLowerCase() != "/register" &&
&& this.$route.path.toLowerCase() != "/forgetpassword" this.$route.path.toLowerCase() != "/forgetpassword"
) { ) {
this.$router.push({ this.$router.push({
path: '/login' path: '/login'
......
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