Commit fcabbffd by 李伟康

Merge branch 'master' into 'develop'

Master

See merge request !20
2 parents d00b9a6b 2f2c296d
...@@ -15,6 +15,9 @@ export const fetchConfig = function(isEnv = true) { ...@@ -15,6 +15,9 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout }) Object.assign(request, { timeout })
return Promise.resolve(config) return Promise.resolve(config)
} }
//测试
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json())
//生产
return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json()) return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json())
} }
export const cfg = { export const cfg = {
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
shopmall_appid, shopmall_appid,
request: { baseURL } request: { baseURL }
} = window.$fetchConfig } = window.$fetchConfig
let { merchantId, merchantName, userName, sapCode, uuid } = this.getLocalStorage('dj_scrm_userInfo') let { merchantId, merchantName, userName, sapCode, uuid, channelType } = this.getLocalStorage('dj_scrm_userInfo')
let { tabIndex, entry } = this let { tabIndex, entry } = this
let { name } = this.$route let { name } = this.$route
let { userId, id, couponName, activityName, packageName, goodsName, goodsImage, discountType, shareType, marketingType } = i let { userId, id, couponName, activityName, packageName, goodsName, goodsImage, discountType, shareType, marketingType } = i
...@@ -66,17 +66,17 @@ export default { ...@@ -66,17 +66,17 @@ export default {
this.showLoading() this.showLoading()
let params = { let params = {
coupon: { coupon: {
path: 'packageMine/pages/boutique/gift/gift', path: channelType == 2 ? 'packageMine/pages/boutique/gift/gift' : 'packageShopmall/packageMine/pages/boutique/gift/gift',
desc: '您的专属服务顾问为您发来了优惠券,请点击领取~', desc: '您的专属服务顾问为您发来了优惠券,请点击领取~',
imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png' imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-yh-10004.png'
}, },
activity: { activity: {
path: 'packageMall/pages/detail/detail', path: channelType == 2 ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail',
desc: '您有一个秒杀活动可参加', desc: '您有一个秒杀活动可参加',
imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png' imgUrl: 'http://img01.glsx.com.cn/upload/biz/dracMini-ms-10004.png'
}, },
merchant: { merchant: {
path: 'pages/tab/index/index', path: channelType == 2 ? 'pages/tab/index/index' : 'pages/tab/shopMall/index',
desc: '', desc: '',
imgUrl: 'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg' imgUrl: 'https://img01.glsx.com.cn/weapp/resource/scrm-mobile/activity/miniprogram-cover.jpg'
} }
...@@ -90,10 +90,9 @@ export default { ...@@ -90,10 +90,9 @@ export default {
if (name === 'coupon') { if (name === 'coupon') {
/**卡券 */ /**卡券 */
if (tabIndex == 0) { if (tabIndex == 0) {
if(!sapCode) params.path = 'packageShopmall/packageMine/pages/boutique/gift/gift'
query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}` query = `id=${id}&userId=${userId}&employName=${this.toUnicode(i.employeeName)}&${query}`
} else { } else {
params.path = !sapCode ? 'packageShopmall/packageMall/pages/coupon/coupon' : 'packageMall/pages/coupon/coupon' params.path = channelType == 2 ? 'packageMall/pages/coupon/coupon' : 'packageShopmall/packageMall/pages/coupon/coupon'
query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `couponId=${id}&${query}&issueName=${this.toUnicode(userName)}&issueDate=${new Date().getTime()}&shareSource=1&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
title = `${couponName}(${window.$discountType[discountType]}券)` title = `${couponName}(${window.$discountType[discountType]}券)`
this.couponShare(i) this.couponShare(i)
...@@ -105,7 +104,6 @@ export default { ...@@ -105,7 +104,6 @@ export default {
// 1-普通秒杀;2-直播间秒杀;3-众筹 // 1-普通秒杀;2-直播间秒杀;3-众筹
switch (marketingType) { switch (marketingType) {
case 1: case 1:
if(!sapCode) params.path = 'packageShopmall/packageMall/pages/detail/detail'
query = `isActivity=true&id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `isActivity=true&id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
break break
case 2: case 2:
...@@ -136,9 +134,8 @@ export default { ...@@ -136,9 +134,8 @@ export default {
switch (+tabIndex) { switch (+tabIndex) {
case 1: case 1:
let isjt = i.packageType == 2 let isjt = i.packageType == 2
const STORE_PATH = sapCode ? 'packageEquity/pages/package/package' : 'packageShopmall/packageEquity/pages/package/package' const STORE_PATH = channelType == 2 ? 'packageEquity/pages/package/package' : 'packageShopmall/packageEquity/pages/package/package'
const JT_PATH = sapCode ? 'packageEquity/pages/open/open' : 'packageShopmall/packageEquity/pages/open/open' const JT_PATH = channelType == 2 ? 'packageEquity/pages/open/open' : 'packageShopmall/packageEquity/pages/open/open'
// params.path = 'packageEquity/pages/package/package'
params.path = isjt ? JT_PATH : STORE_PATH params.path = isjt ? JT_PATH : STORE_PATH
params.imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png' params.imgUrl = 'http://img01.glsx.com.cn/upload/biz/dracMini-qy-10004.png'
params.desc = '您的专属客服顾问为您发来了会员套餐,点击查看哦' params.desc = '您的专属客服顾问为您发来了会员套餐,点击查看哦'
...@@ -146,7 +143,7 @@ export default { ...@@ -146,7 +143,7 @@ export default {
title = packageName title = packageName
break break
case 2: case 2:
params.path = sapCode ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail' params.path = channelType == 2 ? 'packageMall/pages/detail/detail' : 'packageShopmall/packageMall/pages/detail/detail'
params.imgUrl = goodsImage params.imgUrl = goodsImage
params.desc = '' params.desc = ''
query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}` query = `id=${id}&${query}&shareStaffName=${this.toUnicode(userName)}&shareStaffUuid=${uuid}`
...@@ -198,7 +195,7 @@ export default { ...@@ -198,7 +195,7 @@ export default {
{ {
path: params.path, path: params.path,
query, query,
appId: i.packageType == 2 ? 'wxfe82b8d65d07808f' : shopmall_appid appId: shopmall_appid
}, },
{ {
desc: params.desc, desc: params.desc,
......
<template> <template>
<div class="index"> <div class="index">
<search-box class="search" <search-box
class="search"
@search="search" @search="search"
:keyword="name" :keyword="name"
:showDropdown="false" :showDropdown="false"
...@@ -11,10 +12,21 @@ ...@@ -11,10 +12,21 @@
@change="change" @change="change"
ref="myTab" ref="myTab"
/> />
<div class="secondary-tab" v-if="tabIndex===0"> <div
class="secondary-tab"
v-if="tabIndex===0"
>
<div class="tab-btn"> <div class="tab-btn">
<span class="tab-item" :class="[activeTab ==1?'activeTab':'']" @click="setSecondTab(1)">可发送</span> <span
<span class="tab-item" :class="[activeTab ==2?'activeTab':'']" @click="setSecondTab(2)">待完善发送</span> class="tab-item"
:class="[activeTab ==1?'activeTab':'']"
@click="setSecondTab(1)"
>可发送</span>
<span
class="tab-item"
:class="[activeTab ==2?'activeTab':'']"
@click="setSecondTab(2)"
>待完善发送</span>
</div> </div>
</div> </div>
<template v-if="flag"> <template v-if="flag">
...@@ -33,21 +45,45 @@ ...@@ -33,21 +45,45 @@
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<van-swipe-cell> <van-swipe-cell>
<div class="title flex"> <div class="title flex">
<span>{{i.name}}<span class="group-label" v-if="i.merchantType==2">集团</span></span> <span>{{i.name}}<span
<span class="send" v-if="activeTab==1" @click.stop="send(i)">发送</span> class="group-label"
v-if="i.merchantType==2"
>集团</span></span>
<span
class="send"
v-if="activeTab==1"
@click.stop="send(i)"
>发送</span>
</div> </div>
<div class="content"> <div class="content">
<div class="icon"> <div class="icon">
<div class="sprite-icon icon-gift-bg"></div> <div class="sprite-icon icon-gift-bg"></div>
</div> </div>
<div class="info"> <div class="info">
<div v-if="!(i.perfectFlag==2 || i.receiveRule==3)" class="text">指定领取{{i.receiveWay == 1?'手机号':'车架号'}}:{{i.receiveDetails||'--'}}</div> <div
<div v-if="i.perfectFlag!=2" class="text-name"><span style="white-space:nowrap;">备注名称:</span><div class="remark">{{i.remarkName}}</div></div> v-if="!(i.perfectFlag==2 || i.receiveRule==3)"
<div v-if="i.perfectFlag==2" style="color:red;">赠送给客户时需指定领取条件</div> class="text"
<div class="qr-text" @click.stop="createQr(i)">{{activeTab==1?'领取二维码': i.perfectFlag==1 ? '申请赠送' : '去指定领取条件'}}</div> >指定领取{{i.receiveWay == 1?'手机号':'车架号'}}:{{i.receiveDetails||'--'}}</div>
<div
v-if="i.perfectFlag!=2"
class="text-name"
><span style="white-space:nowrap;">备注名称:</span>
<div class="remark">{{i.remarkName}}</div>
</div>
<div
v-if="i.perfectFlag==2"
style="color:red;"
>赠送给客户时需指定领取条件</div>
<div
class="qr-text"
@click.stop="createQr(i)"
>{{activeTab==1?'领取二维码': i.perfectFlag==1 ? '申请赠送' : '去指定领取条件'}}</div>
</div> </div>
</div> </div>
<div class="remainNum" style="display:flex;"> <div
class="remainNum"
style="display:flex;"
>
<span>{{activeTab==1 ?'可直接发送' : '剩余礼包'}}:<span style="color: #3975C6;">{{i.surplusStock}}</span></span> <span>{{activeTab==1 ?'可直接发送' : '剩余礼包'}}:<span style="color: #3975C6;">{{i.surplusStock}}</span></span>
<span>已领礼包:{{i.receivedStock}}</span> <span>已领礼包:{{i.receivedStock}}</span>
</div> </div>
...@@ -84,8 +120,14 @@ ...@@ -84,8 +120,14 @@
</div> </div>
</div> </div>
<div class="gift-box"> <div class="gift-box">
<div class="title">{{i.name}}<span class="group-label" v-if="i.merchantType==2">集团</span></div> <div class="title">{{i.name}}<span
<div class="text" v-if="i.receiveRule!=3">指定领取{{i.receiveWay == 1?'手机号':'车架号'}}:{{i.receiveDetail}}</div> class="group-label"
v-if="i.merchantType==2"
>集团</span></div>
<div
class="text"
v-if="i.receiveRule!=3"
>指定领取{{i.receiveWay == 1?'手机号':'车架号'}}:{{i.receiveDetail}}</div>
<div class="text">备注名称:{{i.remarkName}}</div> <div class="text">备注名称:{{i.remarkName}}</div>
</div> </div>
<div class="time flex">{{new Date(i.receivedDate).format('yyyy-MM-dd hh:mm:ss')}}</div> <div class="time flex">{{new Date(i.receivedDate).format('yyyy-MM-dd hh:mm:ss')}}</div>
...@@ -93,23 +135,42 @@ ...@@ -93,23 +135,42 @@
<template v-if="tabIndex == 2"> <template v-if="tabIndex == 2">
<van-swipe-cell> <van-swipe-cell>
<div class="title flex"> <div class="title flex">
<span>{{i.name}}<span class="group-label" v-if="i.merchantType==2">集团</span></span> <span>{{i.name}}<span
<span v-if="i.approveStatus==5" class="approve-btn" @click.stop="toAppprove(i)"> class="group-label"
v-if="i.merchantType==2"
>集团</span></span>
<span
v-if="i.approveStatus==5"
class="approve-btn"
@click.stop="toAppprove(i)"
>
发起审批 发起审批
</span> </span>
</div> </div>
<div class="content"> <div class="content">
<div class="text item-flex"><span class="nowrap">备注名称:</span><div>{{i.remarkName}}</div></div> <div class="text item-flex"><span class="nowrap">备注名称:</span>
<div>{{i.remarkName}}</div>
</div>
<div class="text">预估成本:<span style="font-weight:600;">{{(i.anticipatedCost/100).toFixed(2)}}</span>元</div> <div class="text">预估成本:<span style="font-weight:600;">{{(i.anticipatedCost/100).toFixed(2)}}</span>元</div>
<div class="text item-flex"><span class="nowrap">赠送原因:</span><div>{{i.giveReason}}</div></div> <div class="text item-flex"><span class="nowrap">赠送原因:</span>
<div v-if="i.approveStatus==1 || i.approveStatus==3 || i.approveStatus==5" class="text item-flex"> <div>{{i.giveReason}}</div>
</div>
<div
v-if="i.approveStatus==1 || i.approveStatus==3 || i.approveStatus==5"
class="text item-flex"
>
<span class="nowrap">审批状态:</span> <span class="nowrap">审批状态:</span>
<div> <div>
<span :style="{color: i.approveStatus==1 || i.approveStatus==5 ? '#3975C6':'#F1515C','margin-right':'5px'}">{{i.approveStatus==1 ? '审批中':i.approveStatus==5 ? '待审批': '已驳回'}}</span> <span :style="{color: i.approveStatus==1 || i.approveStatus==5 ? '#3975C6':'#F1515C','margin-right':'5px'}">{{i.approveStatus==1 ? '审批中':i.approveStatus==5 ? '待审批': '已驳回'}}</span>
<span v-if="i.approveStatus!=5">({{i.approveBy}})</span> <span v-if="i.approveStatus!=5">({{i.approveBy}})</span>
</div> </div>
</div> </div>
<div class="text item-flex" v-if="i.approveStatus==3"><span class="nowrap">驳回原因:</span><div style="color: #F1515C;">{{i.approveExplain || '--'}}</div></div> <div
class="text item-flex"
v-if="i.approveStatus==3"
><span class="nowrap">驳回原因:</span>
<div style="color: #F1515C;">{{i.approveExplain || '--'}}</div>
</div>
</div> </div>
</van-swipe-cell> </van-swipe-cell>
</template> </template>
...@@ -175,9 +236,9 @@ export default { ...@@ -175,9 +236,9 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
let { params: { giftToast } } = from let { params: { giftToast } } = from
const { query: { approveStatus } } = from const { query: { approveStatus } } = from
next(vm =>{ next(vm => {
if (giftToast) vm.giftToast = giftToast; if (giftToast) vm.giftToast = giftToast;
if(approveStatus) { if (approveStatus) {
vm.handleChangeTab(2) vm.handleChangeTab(2)
vm.change(2) vm.change(2)
} }
...@@ -191,53 +252,53 @@ export default { ...@@ -191,53 +252,53 @@ export default {
this.getList() this.getList()
}) })
} else this.getList() } else this.getList()
wxConfig.init(['shareAppMessage','thirdPartyOpenPage']) wxConfig.init(['shareAppMessage', 'thirdPartyOpenPage'])
}, },
methods: { methods: {
setSecondTab(val){ setSecondTab (val) {
this.activeTab = val this.activeTab = val
this.clearData() this.clearData()
}, },
toAppprove({id,childId}){ toAppprove ({ id, childId }) {
this.showLoading() this.showLoading()
giftApi.toApproveById({id,childId}).then(res => { giftApi.toApproveById({ id, childId }).then(res => {
this.hideLoading() this.hideLoading()
if(res.approveFlag ===2){ if (res.approveFlag === 2) {
wxConfig.thirdPartyOpenPage(setApproveParam(res)) wxConfig.thirdPartyOpenPage(setApproveParam(res))
.then((resp) => { .then((resp) => {
console.log(resp,'已发起审批') console.log(resp, '已发起审批')
}) })
}else{ } else {
this.showToast('礼包已提交审批,请勿重复提交!') this.showToast('礼包已提交审批,请勿重复提交!')
} }
}) })
}, },
handleChangeTab(id){ handleChangeTab (id) {
this.$refs.myTab.handleChange(id) this.$refs.myTab.handleChange(id)
}, },
getList (type) { getList (type) {
let { uuid } = this.getLocalStorage('dj_scrm_userInfo') let { uuid } = this.getLocalStorage('dj_scrm_userInfo')
let { pageNum, tabIndex, list, name, giftToast } = this let { pageNum, tabIndex, list, name, giftToast } = this
if (giftToast) this.giftToast = '' if (giftToast) this.giftToast = ''
if(type!=='inApprove')this.showLoading() if (type !== 'inApprove') this.showLoading()
const apiFunc = tabIndex === 1 ? giftApi.getReceivedGiftList :((type==='inApprove'|| tabIndex === 2) ? giftApi.getInApproveGiftList : (this.activeTab == 1 ? giftApi.getGiftList:giftApi.getUnPerfectGiftList)) const apiFunc = tabIndex === 1 ? giftApi.getReceivedGiftList : ((type === 'inApprove' || tabIndex === 2) ? giftApi.getInApproveGiftList : (this.activeTab == 1 ? giftApi.getGiftList : giftApi.getUnPerfectGiftList))
apiFunc({ apiFunc({
pageNum, pageNum,
name, name,
receivedFlag: (type==='inApprove'|| tabIndex === 2) ? '' : (tabIndex == 0 ? 1 : 2), receivedFlag: (type === 'inApprove' || tabIndex === 2) ? '' : (tabIndex == 0 ? 1 : 2),
staffUUID: uuid staffUUID: uuid
}).then(res => { }).then(res => {
if(type==='inApprove'){ if (type === 'inApprove') {
this.$set(this.tab,2,`审批中(${res.total})`); this.$set(this.tab, 2, `审批中(${res.total})`);
}else{ } else {
this.flag = true this.flag = true
this.list = list.concat(res.list) this.list = list.concat(res.list)
this.total = res.total this.total = res.total
if(tabIndex === 2) this.$set(this.tab,2,`审批中(${res.total})`); if (tabIndex === 2) this.$set(this.tab, 2, `审批中(${res.total})`);
} }
if(type!=='inApprove') this.hideLoading() if (type !== 'inApprove') this.hideLoading()
}) })
}, },
search (e) { search (e) {
...@@ -246,7 +307,7 @@ export default { ...@@ -246,7 +307,7 @@ export default {
}, },
change (e) { change (e) {
this.tabIndex = e this.tabIndex = e
if(e===0){ if (e === 0) {
this.activeTab = 1 this.activeTab = 1
} }
this.clearData() this.clearData()
...@@ -282,10 +343,10 @@ export default { ...@@ -282,10 +343,10 @@ export default {
this.getList() this.getList()
}, },
jump (item) { jump (item) {
const params = {id : item.id,tabIndex : this.tabIndex} const params = { id: item.id, tabIndex: this.tabIndex }
params.approveStatus =this.tabIndex==2 ? item.approveStatus : 0 params.approveStatus = this.tabIndex == 2 ? item.approveStatus : 0
params.pageIdx = this.tabIndex params.pageIdx = this.tabIndex
if(this.tabIndex==0 && this.activeTab==2) { if (this.tabIndex == 0 && this.activeTab == 2) {
params.perfectFlag = item.perfectFlag params.perfectFlag = item.perfectFlag
params.pageIdx = 3 params.pageIdx = 3
} }
...@@ -293,10 +354,10 @@ export default { ...@@ -293,10 +354,10 @@ export default {
this.$router.push({ name: 'gift.detail', query: params }) this.$router.push({ name: 'gift.detail', query: params })
}, },
getMiniParams (e) { getMiniParams (e) {
let { merchantId, sapCode, uuid } = this.getLocalStorage('dj_scrm_userInfo') let { merchantId, sapCode, uuid, channelType } = this.getLocalStorage('dj_scrm_userInfo')
const { shopmall_appid } = window.$fetchConfig const { shopmall_appid } = window.$fetchConfig
let scene = `id=${e.id}&merchantId=${merchantId}&staffUUID=${uuid}` let scene = `id=${e.id}&merchantId=${merchantId}&staffUUID=${uuid}`
if(e.receiveRule == 2){ if (e.receiveRule == 2) {
scene = `id=${e.id}&merchantId=${merchantId}&staffUUID=${uuid}&childId=${e.childId}` scene = `id=${e.id}&merchantId=${merchantId}&staffUUID=${uuid}&childId=${e.childId}`
} }
if (sapCode) scene = `${scene}&storeCode=${sapCode}` if (sapCode) scene = `${scene}&storeCode=${sapCode}`
...@@ -304,14 +365,15 @@ export default { ...@@ -304,14 +365,15 @@ export default {
return { return {
appId: shopmall_appid, appId: shopmall_appid,
query: scene, query: scene,
sapCode sapCode,
channelType
} }
}, },
send (e) { send (e) {
let { query, appId, sapCode } = this.getMiniParams(e) let { query, appId, channelType } = this.getMiniParams(e)
wxConfig wxConfig
.createMiniprogramUrlLink({ .createMiniprogramUrlLink({
path: sapCode ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional', path: channelType == 2 ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional',
query, query,
appId appId
}) })
...@@ -332,22 +394,22 @@ export default { ...@@ -332,22 +394,22 @@ export default {
}) })
}, },
createQr (e) { createQr (e) {
if(this.activeTab==2 && e.perfectFlag==1){ if (this.activeTab == 2 && e.perfectFlag == 1) {
this.toAppprove(e) this.toAppprove(e)
}else if(this.activeTab==2 && e.perfectFlag==2){ } else if (this.activeTab == 2 && e.perfectFlag == 2) {
let params = { let params = {
id: e.id, id: e.id,
perfectFlag:e.perfectFlag, perfectFlag: e.perfectFlag,
pageIdx: this.tabIndex==0 && this.activeTab==2 ? 3 : this.tabIndex pageIdx: this.tabIndex == 0 && this.activeTab == 2 ? 3 : this.tabIndex
} }
this.$router.push({ name: 'gift.create', query: params }) this.$router.push({ name: 'gift.create', query: params })
}else{ } else {
const { envVersion } = window.$fetchConfig const { envVersion } = window.$fetchConfig
let { query, appId, sapCode } = this.getMiniParams(e) let { query, appId , channelType} = this.getMiniParams(e)
// 正式版为:release 体验版为:trial 开发版为:develop // 正式版为:release 体验版为:trial 开发版为:develop
giftApi.createQr({ giftApi.createQr({
appId, appId,
path: sapCode ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional', path: channelType == 2 ? 'packageEquity/pages/directional/directional' : 'packageShopmall/packageEquity/pages/directional/directional',
envVersion, envVersion,
scene: query scene: query
}).then(img => { }).then(img => {
...@@ -359,32 +421,32 @@ export default { ...@@ -359,32 +421,32 @@ export default {
} }
}) })
} }
} }
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
/deep/ .search{ /deep/ .search {
.van-icon{ .van-icon {
color: #CDD1D4; color: #cdd1d4;
} }
} }
.secondary-tab{ .secondary-tab {
width:100%; width: 100%;
height:28px; height: 28px;
padding: 0 16px; padding: 0 16px;
margin-top: 10px; margin-top: 10px;
box-sizing: border-box; box-sizing: border-box;
.tab-btn{ .tab-btn {
background-color:#EBEFF5; background-color: #ebeff5;
border-radius: 6px; border-radius: 6px;
height:100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 2px; padding: 2px;
.tab-item{ .tab-item {
flex: 1; flex: 1;
width: 168px; width: 168px;
height: 24px; height: 24px;
...@@ -395,14 +457,14 @@ export default { ...@@ -395,14 +457,14 @@ export default {
border-radius: 4px; border-radius: 4px;
font-weight: 400; font-weight: 400;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
border: 1px solid #EBEFF5; border: 1px solid #ebeff5;
} }
.activeTab{ .activeTab {
background: #FFFFFF; background: #ffffff;
box-shadow: 0px 1px 2px 0px rgba(94, 97, 102, 0.2); box-shadow: 0px 1px 2px 0px rgba(94, 97, 102, 0.2);
border: 1px solid rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.04);
font-weight: 500; font-weight: 500;
color: #3975C6; color: #3975c6;
} }
} }
} }
...@@ -424,37 +486,37 @@ export default { ...@@ -424,37 +486,37 @@ export default {
} }
} }
} }
.group-label{ .group-label {
width: 42px; width: 42px;
height: 20px; height: 20px;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgba(255,101,61,0.15); background: rgba(255, 101, 61, 0.15);
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 12px;
margin-left: 8px; margin-left: 8px;
color: #FF653D; color: #ff653d;
} }
.type-0 { .type-0 {
height: calc(100vh - 148px); height: calc(100vh - 148px);
.item { .item {
.remainNum{ .remainNum {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: 36px; height: 36px;
padding: 0 10px; padding: 0 10px;
align-items: center; align-items: center;
border-top: 1px solid rgba(195, 195, 195, 0.3); border-top: 1px solid rgba(195, 195, 195, 0.3);
span{ span {
font-size: 12px; font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 16px; line-height: 16px;
} }
span:last-child{ span:last-child {
color: #999; color: #999;
} }
} }
.delete-button { .delete-button {
...@@ -494,17 +556,17 @@ export default { ...@@ -494,17 +556,17 @@ export default {
.text { .text {
line-height: 16px; line-height: 16px;
margin-bottom: 8px; margin-bottom: 8px;
overflow:hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.text-name{ .text-name {
line-height: 16px; line-height: 16px;
display: flex; display: flex;
.remark{ .remark {
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
} }
} }
...@@ -515,11 +577,10 @@ export default { ...@@ -515,11 +577,10 @@ export default {
font-size: 12px; font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #3975C6; color: #3975c6;
text-align: center; text-align: center;
} }
} }
} }
} }
} }
...@@ -572,52 +633,52 @@ export default { ...@@ -572,52 +633,52 @@ export default {
color: #999999; color: #999999;
} }
} }
.type-2{ .type-2 {
.title { .title {
min-height: 19px; min-height: 19px;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
padding: 16px 16px 10px; padding: 16px 16px 10px;
border-bottom: 1px solid rgba(195, 195, 195, 0.3); border-bottom: 1px solid rgba(195, 195, 195, 0.3);
justify-content: space-between; justify-content: space-between;
.approve-btn{ .approve-btn {
width: 66px; width: 66px;
height: 24px; height: 24px;
background: #3975C6; background: #3975c6;
border-radius: 12px; border-radius: 12px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border: 1px solid #3975C6; border: 1px solid #3975c6;
font-size: 10px; font-size: 10px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #ffffff;
} }
} }
.content { .content {
padding: 10px 16px 16px; padding: 10px 16px 16px;
.item-flex{ .item-flex {
display: flex; display: flex;
.nowrap{ .nowrap {
white-space: nowrap; white-space: nowrap;
} }
.text-overflow{ .text-overflow {
white-space:nowrap; white-space: nowrap;
text-overflow:ellipsis; text-overflow: ellipsis;
-o-text-overflow:ellipsis; -o-text-overflow: ellipsis;
overflow:hidden; overflow: hidden;
} }
} }
.text{ .text {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
line-height: 16px; line-height: 16px;
font-weight: 400; font-weight: 400;
margin-bottom: 10px; margin-bottom: 10px;
&:last-child{ &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!