Commit 2e9358d5 by 李伟康

commit SOP联调

1 parent 0fc6a91f
Showing 49 changed files with 44 additions and 558 deletions
...@@ -9,50 +9,31 @@ ...@@ -9,50 +9,31 @@
<transition name="fade"> <transition name="fade">
<router-view v-if="!$route.meta.keepAlive"></router-view> <router-view v-if="!$route.meta.keepAlive"></router-view>
</transition> </transition>
<template v-if="$route.meta.isTab && entry != 'normal'">
<tab-bar :data="tabList"></tab-bar>
</template>
</template> </template>
</div> </div>
</template> </template>
<script> <script>
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
export default { export default {
name: 'App', name: 'App',
data() { data () {
return { return {
entry: IS_PROD ? 'normal' :'chat_attachment',
tabList: [
{
title: '卡券',
name: 'coupon',
active: require('@/assets/images/tabbar/coupon_active.png'),
inactive: require('@/assets/images/tabbar/coupon.png')
},
{
title: '活动',
name: 'activity',
active: require('@/assets/images/tabbar/activity_active.png'),
inactive: require('@/assets/images/tabbar/activity.png')
}
]
} }
}, },
watch: { watch: {
watchFlag: { watchFlag: {
immediate: true, immediate: true,
handler(newval) { handler (newval) {
this.showWindow = newval this.showWindow = newval
this.hideLoading() this.hideLoading()
} }
} }
}, },
computed: { computed: {
watchFlag() { watchFlag () {
return this.$store.state.app.showWindow return this.$store.state.app.showWindow
} }
}, },
mounted() { mounted () {
}, },
methods: {} methods: {}
......
const url = '/rop-scrm-shopmall/router'
export default {
/** 分页查询活动 */
getActivityList (currentPage) {
let data = {
method: 'scrm.api.shopmall.activity.page',
pageSize: 10,
currentPage
}
return window.$HTTP({
url,
data
})
},
/** 获取分享链接 */
getShared (data) {
data.method = 'scrm.api.shopmall.activity.get.shared'
return window.$HTTP({
url,
data
})
},
}
\ No newline at end of file \ No newline at end of file
const url = '/rop-scrm-boutiquecoupon/router'
export default {
/**精品礼券分页查询 */
getBoutiqueCouponList(data) {
data.method = 'scrm.api.boutiquecoupon.wework.coupon.page'
data.pageSize = 10
return window.$HTTP({
// url: 'http://192.168.3.222:8489/rop-scrm-boutiquecoupon/router',
url,
data
})
},
/**精品礼券领取链接 */
getBoutiqueCoupon(data) {
data.method = 'scrm.api.boutiquecoupon.wework.coupon.receiveUrl'
return window.$HTTP({
// url: 'http://192.168.3.222:8489/rop-scrm-boutiquecoupon/router',
url,
data
})
},
/** 分页查询用户券列表(待核销、已核销) */
getCustomerCouponList(data) {
data.method = 'scrm.api.boutiquecoupon.wework.customerCoupon.page'
data.pageSize = 10
return window.$HTTP({
url,
data
})
},
}
\ No newline at end of file \ No newline at end of file
const url = '/rop-scrm-coupon/router'
const pageSize = 10
export default {
/**商城优惠券列表 */
getMerchantCouponList(data) {
// data.method = 'scrm.api.coupon.list.merchant'
data.method = 'scrm.wechat.activity.coupon.list'
data.pageSize = pageSize
data.validType = 'valid'
data.discountTypes = [2,3,4]
return window.$HTTP({
url,
data
})
},
/** 获取优惠卷分享链接 */
getCouponShared(data) {
data.method = 'scrm.api.coupon.share'
return window.$HTTP({
url,
data
})
},
/** 已经核销列表 */
getVerificationList(data) {
data.method = 'scrm.api.coupon.verification.code.verification.list'
data.pageSize = pageSize
return window.$HTTP({
url,
data
})
},
/** 查询已领取 未核销 */
getUserCouponList(data) {
data.method = 'scrm.api.coupon.user.list.merchant'
data.pageSize = pageSize
return window.$HTTP({
url,
data
})
},
/** 根据核销码查询卷信息 */
scan(data) {
data.method = 'scrm.api.coupon.verification.code.scan'
return window.$HTTP({
url,
data
})
},
/** 核销核销码 */
verificationCode(data) {
data.method = 'scrm.api.coupon.verification.code.verification'
return window.$HTTP({
url,
data
})
}
}
\ No newline at end of file \ No newline at end of file
const url = '/rop-scrm-coupon/router'
const pageSize = 10
export default {
/**根据条件获取定向礼包列表(企微) */
getGiftList (data) {
data.method = 'scrm.api.coupon.weChat.directional.gift.list'
data.pageSize = pageSize
return window.$HTTP({
url,
data
})
},
/** 根据id删除定向礼包 */
deleteGift (data) {
data.method = 'scrm.api.coupon.directional.gift.delete'
return window.$HTTP({
url,
data
})
},
/**根据id获取定向礼包详情(企微) */
getGiftDetail (id) {
let data = {
method: 'scrm.api.coupon.weChat.directional.gift.detail',
id
}
return window.$HTTP({
url,
data
})
},
/**定向礼包专用优惠券列表(嘀加后台和企微) */
getCouponList (data) {
data.method = 'scrm.api.coupon.directional.gift.coupon.list'
data.pageSize = 9999
return window.$HTTP({
url,
data
})
},
/**创建或修改礼包,修改时礼包id必传 */
createOrupdataGift (data) {
data.method = 'scrm.api.coupon.directional.gift.create'
return window.$HTTP({
url,
data
})
},
/**根据定向礼包id获取二维码路径 */
createQr (data) {
data.method = 'scrm.api.coupon.directional.gift.qr.code'
return window.$HTTP({
url,
data
})
}
}
\ No newline at end of file \ No newline at end of file
...@@ -7,23 +7,11 @@ ...@@ -7,23 +7,11 @@
* @LastEditTime: 2021-06-17 18:23:27 * @LastEditTime: 2021-06-17 18:23:27
*/ */
import ssoApi from './ssoApi' import ssoApi from './ssoApi'
import liveApi from './liveApi' import sopApi from './sopApi'
import couponApi from './couponApi'
import activityApi from './activityApi'
import wxConfig from './wxConfig' import wxConfig from './wxConfig'
import shopmallApi from './shopmallApi'
import boutiquecouponApi from './boutiquecouponApi'
import equityApi from './equityApi'
import giftApi from './giftApi'
export { export {
ssoApi, ssoApi,
couponApi,
wxConfig, wxConfig,
shopmallApi, sopApi,
activityApi,
liveApi,
boutiquecouponApi,
equityApi,
giftApi
} }
\ No newline at end of file \ No newline at end of file
const url = '/rop-scrm-live/router'
export default {
/** 分页查询活动 */
getLiveList(pageNum) {
let data = {
method: 'scrm.api.live.live.room.list',
pageSize: 10,
pageNum
}
return window.$HTTP({
url,
data,
})
},
getShared(data) {
data.method = 'scrm.api.live.get.shared.code'
return window.$HTTP({
url,
data
})
},
}
\ No newline at end of file \ No newline at end of file
const url = '/rop-scrm-shopmall/router'
export default {
/** 获取门店商品列表 */
getGoodsList(currentPage) {
let data = {
method: 'scrm.api.shopmall.goods.wework.page',
pageSize: 10,
currentPage
}
return window.$HTTP({
url,
data
})
},
/**获取商品海报 */
getGoodsPoster(data) {
data.method = 'scrm.api.shopmall.goods.wework.posterUrl'
return window.$HTTP({
url,
data
})
},
/** 获取商品链接 */
getGoodsLink(data) {
data.method = 'scrm.api.shopmall.goods.wework.url'
return window.$HTTP({
url,
data
})
},
/** 获取商品海报企业微信素材mediaId */
getGoodsPosterMediaId(data) {
data.method = 'scrm.api.shopmall.goods.wework.posterWorkWxMediaId'
return window.$HTTP({
url,
data
})
},
/** 分页查询商品订单核销列表(待核销、已核销用查询参数区分) */
getGoodsVerficationList(data = {}) {
data.method = 'scrm.api.shopmall.wework.order.verfication.page'
data.pageSize = 10
return window.$HTTP({
url,
data
})
},
/**根据商城订单核销码获取商城订单详情以备核销 */
getGoodsVerficationDetail(verificationCode) {
let data = {
method: 'scrm.api.shopmall.wework.order.detail.toVerfication',
verificationCode: verificationCode
}
return window.$HTTP({
url,
data
})
},
/** 商品订单核销 */
verficationGoods(verificationCode) {
let data = {
method: 'scrm.api.shopmall.wework.order.verfication',
verificationCode: verificationCode
}
return window.$HTTP({
url,
data
})
}
}
const url = '/rop-scrm-equity/router' const url = '/rop-scrm-sop/router'
export default { export default {
/**套餐分页查询 */ /** 获取任务详情*/
getEquityList (pageNum) { getSopDetail (taskId) {
let data = { let data = {
method: 'scrm.api.equity.package.info.list.with.page', method: 'scrm.api.sop.task.getById',
pageSize: 10, taskId
state: 1,
pageNum
} }
return window.$HTTP({ return window.$HTTP({
url, url,
data data
}) })
}, },
/**套餐详情 */ /** 获取朋友圈发送所需素材信息 */
getEquityDetail (data) { getMedia (taskId) {
data.method = 'scrm.api.equity.main.page.package.detail.get' let data = {
method: 'scrm.api.sop.task.wwMoment.getMedia',
taskId
}
return window.$HTTP({ return window.$HTTP({
url, url,
data data
}) })
}, },
/** 获取套餐分享链接 */ /** 发送朋友圈成功后调用 */
getEquityShared (data) { successFinished (taskId) {
data.method = 'scrm.api.equity.package.info.share' let data = {
method: 'scrm.api.sop.task.wwMoment.successFinished',
taskId
}
return window.$HTTP({ return window.$HTTP({
url, url,
data data
}) })
}, }
} }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ const WxConfig = { ...@@ -8,7 +8,7 @@ const WxConfig = {
if (e == 'chooseImage') jsApiList.push('getLocalImgData') if (e == 'chooseImage') jsApiList.push('getLocalImgData')
}) })
let [redirectUrl] = window.location.href.split('#') let [redirectUrl] = window.location.href.split('#')
const { corpId } = util.getLocalStorage('dj_scrm_corpId') const { corpId } = util.getLocalStorage('dj_scrm_corpId') || util.getQuery()
/** 获取企微应用AgentConfig */ /** 获取企微应用AgentConfig */
let data = { let data = {
corpId, corpId,
...@@ -57,7 +57,7 @@ const WxConfig = { ...@@ -57,7 +57,7 @@ const WxConfig = {
* expireTime 失效时间 * expireTime 失效时间
* expireInterval 失效间隔 * expireInterval 失效间隔
* appId 微信应用ID * appId 微信应用ID
* envVersion 要打开的小程序版本。正式版为:release,体验版为:trial,开发版为:develop,仅在微信外打开时生效 * envVersion 要打开的小程序版本。正式版为:release 体验版为:trial 开发版为:develop,仅在微信外打开时生效
*/ */
console.log('请求', data) console.log('请求', data)
return window.$HTTP({ return window.$HTTP({
...@@ -174,10 +174,13 @@ const WxConfig = { ...@@ -174,10 +174,13 @@ const WxConfig = {
/**发表内容到客户朋友圈 */ /**发表内容到客户朋友圈 */
shareToExternalMoments (params) { shareToExternalMoments (params) {
return new Promise(resolve => { return new Promise((resolve, reject) => {
console.log(params)
wx.invoke('shareToExternalMoments', params, res => { wx.invoke('shareToExternalMoments', params, res => {
if (res.err_msg == 'shareToExternalMoments:ok') { if (res.err_msg == 'shareToExternalMoments:ok') {
resolve() resolve()
} else {
reject(res)
} }
}) })
}) })
...@@ -185,7 +188,7 @@ const WxConfig = { ...@@ -185,7 +188,7 @@ const WxConfig = {
/**打开会话 */ /**打开会话 */
openEnterpriseChat ({ externalUserIds = [], groupName = '', userIds = [], chatId = '' }) { openEnterpriseChat ({ externalUserIds = [], groupName = '', userIds = [], chatId = '' }) {
return new Promise(resolve => { return new Promise((resolve, reject) => {
userIds = userIds.join(';') userIds = userIds.join(';')
externalUserIds = externalUserIds.join(';') externalUserIds = externalUserIds.join(';')
wx.openEnterpriseChat({ wx.openEnterpriseChat({
...@@ -201,6 +204,7 @@ const WxConfig = { ...@@ -201,6 +204,7 @@ const WxConfig = {
if (res.errMsg.indexOf('function not exist') > -1) { if (res.errMsg.indexOf('function not exist') > -1) {
Notify('版本过低请升级') Notify('版本过低请升级')
} }
reject()
} }
}) })
}) })
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 290px 250px;}
.icon-coupon-0 { width: 32px; height: 32px; background-position: -134px -180px;}
.icon-coupon-1 { width: 32px; height: 32px; background-position: -176px -180px;}
.icon-coupon-lose { width: 70px; height: 70px; background-position: -180px -90px;}
.icon-coupon-success { width: 70px; height: 70px; background-position: 0px -180px;}
.icon-coupon { width: 80px; height: 80px; background-position: 0px 0px;}
.icon-discount { width: 80px; height: 80px; background-position: -90px 0px;}
.icon-down { width: 12px; height: 12px; background-position: -270px -110px;}
.icon-exchange { width: 80px; height: 80px; background-position: 0px -90px;}
.icon-gift-add { width: 12px; height: 12px; background-position: -270px -132px;}
.icon-gift-bg { width: 80px; height: 80px; background-position: -90px -90px;}
.icon-gift-create { width: 16px; height: 16px; background-position: -270px -58px;}
.icon-gift-del { width: 18px; height: 18px; background-position: -270px -30px;}
.icon-gift-icon { width: 44px; height: 44px; background-position: -80px -180px;}
.icon-poster-close { width: 20px; height: 20px; background-position: -218px -180px;}
.icon-scan { width: 16px; height: 16px; background-position: -270px -84px;}
.icon-share { width: 20px; height: 20px; background-position: -270px 0px;}
.icon-vip { width: 80px; height: 80px; background-position: -180px 0px;}
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(../images/sprite.png);background-size: 7px 10px;}
.icon-arrow { width: 7px; height: 10px; background-position: 0px 0px;}
\ No newline at end of file \ No newline at end of file

119 KB | W: | H:

511 Bytes | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -8,16 +8,15 @@ ...@@ -8,16 +8,15 @@
*/ */
// 本地环境配置 // 本地环境配置
module.exports = { module.exports = {
envVersion: "develop", envVersion: 'trial',
title: '嘀加企微管家',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
withCredentials: true, withCredentials: true,
// 返回数据类型 // 返回数据类型
responseType: 'json' responseType: 'json',
}, },
response: { response: {
data_key: 'data', data_key: 'data',
...@@ -38,4 +37,4 @@ module.exports = { ...@@ -38,4 +37,4 @@ module.exports = {
v: "1.0.0", v: "1.0.0",
}, },
vconsole: true vconsole: true
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -15,7 +15,8 @@ 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.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-activity-config', {}).then(res => res.json()) return window.fetch('http://192.168.3.171:7300/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-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 = {
install(vue, config) { install(vue, config) {
......
...@@ -40,7 +40,7 @@ Vue.config.productionTip = false ...@@ -40,7 +40,7 @@ Vue.config.productionTip = false
import VConsole from 'vconsole' import VConsole from 'vconsole'
const isMock = ['prod'].includes(process.env.NODE_ENV) const isMock = ['prod','production'].includes(process.env.NODE_ENV)
fetchConfig(!isMock).then(res => { fetchConfig(!isMock).then(res => {
// 从配置服务器获取动态配置 // 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
......
const pages = { const pages = {
test: [{ home: [{
name: 'index', name: 'index',
meta: { meta: {
...@@ -11,7 +11,7 @@ const pages = { ...@@ -11,7 +11,7 @@ const pages = {
let routes = [ let routes = [
{ {
path:'/', path:'/',
redirect: '/test' redirect: '/home'
} }
] ]
const keepAlives = [] const keepAlives = []
......
<template>
<div class="sop-container">
<div class="sop-box">
<div class="sop-title">{{ pushChannelTitle }}</div>
<!-- 朋友圈模板 -->
<div class="sop-content" v-if="editForm.additionalType == '4'">
<div>{{ editForm.wwMomentContent.text }}</div>
<div ref="wechatMutiImg" v-if="['1', '2'].includes(editForm.wwMomentContent.contentType)" class="wechat-muti-img">
<img ref="mutiImgItem" class="muti-img-item" v-for="(item, index) in editForm.wwMomentContent.imgUrls" :key="index" :src="item" />
</div>
</div>
<!-- 短链(素材,活动,优惠券) -->
<div class="sop-content" v-else>
<div>{{ editForm.eventContent }}</div>
<div v-show="editForm.urlContent.title" class="flex sop-url">
<img class="url-img" :src="editForm.urlContent.imgUrl" />
<p class="url-txt txt-ellipsis">{{ editForm.urlContent.title }}</p>
</div>
</div>
<!-- 用户 -->
<div class="sop-avatar">
<div>可见用户:{{ editForm.customers[0].customerName }}{{ editForm.customerCount > 1 ? '等' + editForm.customerCount : editForm.customerCount }}名用户</div>
<div class="arrow" @click="handleCustomerList">
<img class="avatar-img" v-for="(item, index) in editForm.customers.slice(0, 3)" :key="index" :src="item.avatar" />
</div>
</div>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data() {
return {
pushChannelTitle: '',
editForm: {
sopId: '',
eventId: '',
// 任务状态(1待处理,2已处理)
taskStatus: '1',
// 附加对象类型(1素材,2活动,3优惠券,4朋友圈模板)
additionalType: '1',
// 营销渠道(1:企业微信,3:微信朋友圈)
pushChannelType: '1',
userId: '',
userName: '',
customerCount: '3',
customers: [{
customerId: '',
customerName: 'xxx',
avatar: 'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
corpName: ''
}, {
customerId: '',
customerName: 'xxx',
avatar: 'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
corpName: ''
}, {
customerId: '',
customerName: 'xxx',
avatar: 'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
corpName: ''
}, {
customerId: '',
customerName: 'xxx',
avatar: 'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
corpName: ''
}],
// 链接内容
urlContent: {
url: '',
imgUrl: 'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
title: '链接的标题333333333333333333333322222222222'
},
eventContent: '新车发布会,冬季最惠,今晚八点直播,扫码查看详情!扫码查看详情!',
// 朋友圈内容
wwMomentContent: {
text: '新车发布会,冬季最惠,今晚八点直播,扫码查看详情!扫码查看详情!',
// 0-纯文字,1-单图+文,2-多图+文,3-视频+文,4-链接+文
contentType: '2',
imgUrls: [
'https://img1.baidu.com/it/u=4105462482,2122378712&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=846',
'https://img2.baidu.com/it/u=1864225125,776123786&fm=253&fmt=auto&app=138&f=JPEG?w=350&h=350',
'https://img2.baidu.com/it/u=288087432,301955349&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=889',
'https://img2.baidu.com/it/u=1864225125,776123786&fm=253&fmt=auto&app=138&f=JPEG?w=350&h=350',
'https://img2.baidu.com/it/u=1279417617,2011354595&fm=253&fmt=auto&app=138&f=JPEG?w=375&h=500',
'https://img2.baidu.com/it/u=637228177,297876597&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=357',
'https://img1.baidu.com/it/u=1942928812,1521681685&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500'
],
videoContent: {
videoUrl: '',
imgUrl: ''
},
// 朋友圈内容-Url
urlContent: {
title: '',
imgUrl: '',
url: ''
}
}
},
channelToTitle: {
'1': '企业微信群发',
'3': '发送客户朋友圈'
},
baseDate: {
}
}
},
created() {
this.pushChannelTitle = this.channelToTitle[this.editForm.pushChannelType]
},
mounted() {
// 朋友圈模板,单/多图
if (this.editForm.additionalType === '4' && ['1', '2'].includes(this.editForm.wwMomentContent.contentType)) {
this.setMutiHeight()
}
},
methods: {
setMutiHeight() {
var mutiImgDom = this.$refs.mutiImgItem
var imgWidth = mutiImgDom[0].clientWidth
mutiImgDom.forEach((item, idx) => {
this.$refs.mutiImgItem[idx].style.height = imgWidth + 'px'
})
},
handleCustomerList() { }
}
}
</script>
<style scoped lang='scss'>
.sop-container {
.flex {
display: flex;
align-items: center;
}
.txt-ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: break-all;
}
.sop-box {
padding: 0 10px;
margin: 16px;
box-shadow: 0px 2px 4px 0px rgba(206, 209, 222, 0.12), 0px 2px 8px 0px rgba(206, 209, 222, 0.4);
border-radius: 4px;
.sop-title {
height: 48px;
line-height: 48px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.sop-content {
font-size: 12px;
color: #666666;
padding: 16px 0;
.wechat-muti-img {
display: flex;
flex-wrap: wrap;
.muti-img-item {
width: calc((100% - 20px) / 3);
margin: 10px 10px 0 0;
}
.muti-img-item:nth-child(3n + 0) {
margin-right: 0;
}
}
.sop-url {
height: 68px;
line-height: 68px;
background-color: #eeeeee;
margin-top: 16px;
.url-img {
width: 44px;
height: 44px;
margin: 0 12px;
}
.url-txt {
width: calc(100% - 68px);
}
}
}
.sop-avatar {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
font-size: 14px;
padding: 14px 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
.avatar-img {
width: 24px;
height: 24px;
border-radius: 24px;
}
}
.arrow::after {
content: '>';
display: inline-block;
height: 24px;
line-height: 24px;
margin-left: 18px;
}
}
}
</style>
...@@ -50,7 +50,7 @@ const spritesmithFunction = data => { ...@@ -50,7 +50,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}` return `${shared}\n${perSprite}`
} }
module.exports = { module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-cwq/', // 本地调试时需登录时使用 publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-lwk/', // 本地调试时需登录时使用
// publicPath: './', // publicPath: './',
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用 // publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir: 'dist', // 生产环境构建文件的目录 outputDir: 'dist', // 生产环境构建文件的目录
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!