Commit 209423dc by 谢中龙

修改图片地址

parent 4e6c43c7
<!--component/bannerAd/bannerAd.wxml--> <!--component/bannerAd/bannerAd.wxml-->
<view class="banner-ad"> <view class="banner-ad">
<image class="" src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/baner_plus.png" mode="widthFix" lazy-load="false" binderror="" bindload="" /> <image class="" src="https://img3.bigaka.com/prd/3001/202003/20200331/3001a88cba97-4d8a-4f60-812c-3985482010a6.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
</view> </view>
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
<view class='contact-us-modal' wx:if='{{contactShow}}'> <view class='contact-us-modal' wx:if='{{contactShow}}'>
<view class='top-back'> <view class='top-back'>
<label>退出小程序</label> <label>退出小程序</label>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_back_wx.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001a335f81e-e928-42d4-a3a0-8ea01bbcb6e0.png' mode='aspectFit'></image>
</view> </view>
<view style='margin-bottom:15rpx;'>在<label style='color:#FA6400;'>服务通知</label>中添加企业微信工作人员</view> <view style='margin-bottom:15rpx;'>在<label style='color:#FA6400;'>服务通知</label>中添加企业微信工作人员</view>
<view class='contact'>咨询更多服务哦!</view> <view class='contact'>咨询更多服务哦!</view>
<view class='gif'> <view class='gif'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_qiwei_guide.gif' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/30018a43ecbc-cde8-4673-a98f-48392e144717.gif' mode='aspectFit'></image>
</view> </view>
<view class='ikonw' bindtap='onTapClose'>知道了</view> <view class='ikonw' bindtap='onTapClose'>知道了</view>
</view> </view>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class='body'> <view class='body'>
<image bindtap='onTapClose' <image bindtap='onTapClose'
class='close' class='close'
src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_tips_close.png' mode='aspectFit'></image> src='https://img3.bigaka.com/prd/3001/202003/20200331/30018f5b020d-1486-4b92-b32c-7c5f38d1639a.png' mode='aspectFit'></image>
<view class='empty'>已抢光</view> <view class='empty'>已抢光</view>
<view>很遗憾,你来晚了~</view> <view>很遗憾,你来晚了~</view>
<view class='view-btn' bindtap='onTapViewMore'>查看其它活动</view> <view class='view-btn' bindtap='onTapViewMore'>查看其它活动</view>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<view class='body'> <view class='body'>
<image bindtap='onTapClose' <image bindtap='onTapClose'
class='close' class='close'
src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_tips_close.png' mode='aspectFit'></image> src='https://img3.bigaka.com/prd/3001/202003/20200331/30018f5b020d-1486-4b92-b32c-7c5f38d1639a.png' mode='aspectFit'></image>
<image class='tips-icon' src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/tips_icon.png' mode='aspectFit'></image> <image class='tips-icon' src='https://img3.bigaka.com/prd/3001/202003/20200331/3001ed2dd3ad-2dfa-4e99-9702-5fd9758c00f1.png' mode='aspectFit'></image>
<view>您已达到兑换上限</view> <view>您已达到兑换上限</view>
</view> </view>
</view> </view>
<!--component/empty/empty.wxml--> <!--component/empty/empty.wxml-->
<view class='page-empty'> <view class='page-empty'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/empty.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001155d0fc8-e1ae-4173-8a3e-49f257201750.png' mode='aspectFit'></image>
<view>{{text}}</view> <view>{{text}}</view>
</view> </view>
<!--component/exception/exception.wxml--> <!--component/exception/exception.wxml-->
<view class='exception-con'> <view class='exception-con'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/net_exption.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001adf4db72-ff56-4463-93cc-c5f0dd583ea1.png' mode='aspectFit'></image>
<view class='exception-tip'>哎呦!网络似乎开小差了~</view> <view class='exception-tip'>哎呦!网络似乎开小差了~</view>
<view class='exception-reconnet'> <view class='exception-reconnet'>
<button bindtap='onTapReCall'>点我重试</button> <button bindtap='onTapReCall'>点我重试</button>
......
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
</view> </view>
</view> </view>
<view class="img-plus-style" animation="{{animMenu}}" bindtap="bindShowOrCloseMenu"> <view class="img-plus-style" animation="{{animMenu}}" bindtap="bindShowOrCloseMenu">
<image src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/menu.png" mode="aspectFit"></image> <image src="https://img3.bigaka.com/prd/3001/202003/20200331/300114db5a7d-0963-4616-8513-bd2d665b6299.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<!--component/guidePageModal/guidePageModal.wxml--> <!--component/guidePageModal/guidePageModal.wxml-->
<view class="modal-container" bindtap="hidePopup" hidden="{{!show}}"></view> <view class="modal-container" bindtap="hidePopup" hidden="{{!show}}"></view>
<view class="modal-content" hidden="{{!show}}"> <view class="modal-content" hidden="{{!show}}">
<image class="guide-img" src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/guide.png" mode="widthFix"></image> <image class="guide-img" src="https://img3.bigaka.com/prd/3001/202003/20200331/300168a4170c-c931-4fe2-bc3b-f517a1d1374d.png" mode="widthFix"></image>
<view class="modal-close" bindtap="hidePopup">知道了</view> <view class="modal-close" bindtap="hidePopup">知道了</view>
</view> </view>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class=""> <view class="">
<image <image
class="img" class="img"
src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon.png" src="https://img3.bigaka.com/prd/3001/202003/20200331/3001e86ebf74-e30a-47b4-8710-e7d2d338db1b.png"
mode="widthFix" mode="widthFix"
lazy-load="false" lazy-load="false"
binderror="" binderror=""
......
...@@ -24,7 +24,7 @@ Component({ ...@@ -24,7 +24,7 @@ Component({
//图片加载失败 //图片加载失败
imgLoadError(e){ imgLoadError(e){
console.log(e) console.log(e)
let defaultUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; let defaultUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
let index = e.currentTarget.dataset.index; let index = e.currentTarget.dataset.index;
this.data.imageData[index].indexUrl = defaultUrl; this.data.imageData[index].indexUrl = defaultUrl;
this.setData({ this.setData({
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id // 修改 BRANCH_ID 为对应的商户id
// app.js 中brandId 修改为对应 // app.js 中brandId 修改为对应
const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre const PROJECT_ENV = 'test' // 生产 prod, 开发 dev, 测试 test , 测试门户 test_store, 预生产 pre
//仅生产环境时 配置 : //仅生产环境时 配置 :
//3001 3001 , wx313ec36b710125d4 //3001 3001 , wx313ec36b710125d4
//2006 泰华 , wx40fec8944623c8b3 //2006 泰华 , wx40fec8944623c8b3
...@@ -24,7 +24,7 @@ const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门 ...@@ -24,7 +24,7 @@ const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门
//2992 山东盛联微商城 wx53dedc202ae0d0c2 //2992 山东盛联微商城 wx53dedc202ae0d0c2
//2002 巴黎贝甜 wx21968cb3a486d4ab //2002 巴黎贝甜 wx21968cb3a486d4ab
const BRANCH_ID = 3001 const BRANCH_ID = 1002
const isMall = true const isMall = true
// const needMock = '' // // const needMock = '' //
...@@ -75,7 +75,8 @@ const prod_brand_config = { ...@@ -75,7 +75,8 @@ const prod_brand_config = {
isNeedGetLocation : true,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation : true,//是否开启小程序获取位置(提交订单时获取门店信息)
guiderCanScanQrcode : true,//导购是否有扫一扫功能 guiderCanScanQrcode : true,//导购是否有扫一扫功能
shareTitle: '【舞象星品荟-社交商城】', shareTitle: '【舞象星品荟-社交商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//泰华配置 //泰华配置
2006: { 2006: {
...@@ -97,7 +98,7 @@ const prod_brand_config = { ...@@ -97,7 +98,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【泰华微商城】', shareTitle: '【泰华微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/taihua_logo.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/30017df01559-a34f-4106-81a6-3e2ed7e6304c.png',
}, },
//多多一上 //多多一上
2007 : { 2007 : {
...@@ -118,7 +119,7 @@ const prod_brand_config = { ...@@ -118,7 +119,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【多多一上】', shareTitle: '【多多一上】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/duoduoyishang_logo.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/30013df6a0c2-7f3f-4475-8657-5c0ac87e02de.png',
}, },
//雪岛书屋 //雪岛书屋
2008 : { 2008 : {
...@@ -139,7 +140,7 @@ const prod_brand_config = { ...@@ -139,7 +140,7 @@ const prod_brand_config = {
isOpenSelfMention: false, // 是否开启门店自提 isOpenSelfMention: false, // 是否开启门店自提
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【雪岛书屋】', shareTitle: '【雪岛书屋】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//苏州邻里 //苏州邻里
2003 : { 2003 : {
...@@ -160,7 +161,7 @@ const prod_brand_config = { ...@@ -160,7 +161,7 @@ const prod_brand_config = {
isOpenSelfMention: false, // 是否开启门店自提 isOpenSelfMention: false, // 是否开启门店自提
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【苏州邻里】', shareTitle: '【苏州邻里】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//拉如小程序 //拉如小程序
2009 : { 2009 : {
...@@ -181,7 +182,7 @@ const prod_brand_config = { ...@@ -181,7 +182,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【LA RUTA DE VIA】',//分享海报上显示的小程序title shareTitle: '【LA RUTA DE VIA】',//分享海报上显示的小程序title
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/laru.jpg',//商户logo logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001c17ed02e-7c2b-4b61-a81d-f8dcde3301df.jpg',//商户logo
}, },
//热风 //热风
2010 : { 2010 : {
...@@ -202,7 +203,7 @@ const prod_brand_config = { ...@@ -202,7 +203,7 @@ const prod_brand_config = {
isOpenSelfMention: false, // 是否开启门店自提 isOpenSelfMention: false, // 是否开启门店自提
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【hotwind热风微商城】', shareTitle: '【hotwind热风微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/hotwind_logo.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001377a0bb9-8f7f-4b40-8966-9fc5f8a69cdd.png',
}, },
//悦芙媞 //悦芙媞
2012 : { 2012 : {
...@@ -223,7 +224,7 @@ const prod_brand_config = { ...@@ -223,7 +224,7 @@ const prod_brand_config = {
isOpenSelfMention: true, // 是否开启门店自提 isOpenSelfMention: true, // 是否开启门店自提
isNeedGetLocation: true,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: true,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【悦芙媞微商城】', shareTitle: '【悦芙媞微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/yufuti_logo.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/30010a5f2325-9818-455d-a707-e8afc373701e.png',
}, },
//阿特里里 //阿特里里
2013 : { 2013 : {
...@@ -244,7 +245,7 @@ const prod_brand_config = { ...@@ -244,7 +245,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【阿特里里微商城】', shareTitle: '【阿特里里微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//包鞋 //包鞋
2014: { 2014: {
...@@ -265,7 +266,7 @@ const prod_brand_config = { ...@@ -265,7 +266,7 @@ const prod_brand_config = {
isOpenSelfMention: false, // 是否开启门店自提 isOpenSelfMention: false, // 是否开启门店自提
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【包鞋微商城】', shareTitle: '【包鞋微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//花在花园 //花在花园
2015 : { 2015 : {
...@@ -286,7 +287,7 @@ const prod_brand_config = { ...@@ -286,7 +287,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【花在花园微商城】', shareTitle: '【花在花园微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//阿吉豆 //阿吉豆
2016: { 2016: {
...@@ -307,7 +308,7 @@ const prod_brand_config = { ...@@ -307,7 +308,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【阿吉豆微商城】', shareTitle: '【阿吉豆微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png',
}, },
//【ACTREE】 //【ACTREE】
2017: { 2017: {
...@@ -328,7 +329,7 @@ const prod_brand_config = { ...@@ -328,7 +329,7 @@ const prod_brand_config = {
isOpenSelfMention: false, // 是否开启门店自提 isOpenSelfMention: false, // 是否开启门店自提
isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: false,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【ACTREE】', shareTitle: '【ACTREE】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/actree_logo.png', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001df8c09f7-8e9b-4901-8627-a533daf2bf8d.png',
}, },
//山东盛联微商城 //山东盛联微商城
2992 : { 2992 : {
...@@ -349,7 +350,7 @@ const prod_brand_config = { ...@@ -349,7 +350,7 @@ const prod_brand_config = {
guiderCanScanQrcode: true,//导购是否有扫一扫功能 guiderCanScanQrcode: true,//导购是否有扫一扫功能
isNeedGetLocation: true,//是否开启小程序获取位置(提交订单时获取门店信息) isNeedGetLocation: true,//是否开启小程序获取位置(提交订单时获取门店信息)
shareTitle: '【山东盛联微商城】', shareTitle: '【山东盛联微商城】',
logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/shandongshenglian_logo.jpg', logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001edfaf8b7-0f9f-4d3e-8a74-73ed7398a4bc.jpg',
}, },
//2002 巴黎贝甜 //2002 巴黎贝甜
2002 : { 2002 : {
...@@ -378,9 +379,10 @@ const prod_brand_config = { ...@@ -378,9 +379,10 @@ const prod_brand_config = {
} }
//默认分享logo //默认分享logo
const defaultShareLogo = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/logo_head.png'; const defaultShareLogo = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001842823fb-2601-4b58-a648-79ad799ad425.png';
//推广商品页面banner //推广商品页面banner
const speadProductsBanner = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/tuiguangshangpin.jpg'; const speadProductsBanner = 'https://img3.bigaka.com/prd/3001/202003/20200331/30012d0886ca-a722-4f3a-ae64-ca2ffd3651a5.jpg';
// 开启联系我时 app.json plugin中添加此代码 // 开启联系我时 app.json plugin中添加此代码
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<view class="overdue-list clearflex"> <view class="overdue-list clearflex">
<view class="overdue-status">失效</view> <view class="overdue-status">失效</view>
<view class="pro-info"> <view class="pro-info">
<image class="pro-img" src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon.png" mode="widthFix" /> <image class="pro-img" src="https://img3.bigaka.com/prd/3001/202003/20200331/3001a1a3d3df-d083-426c-b4cd-388886e44360.png" mode="widthFix" />
<view class="pro-right-info"> <view class="pro-right-info">
<view class="pro-name overdue-name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view> <view class="pro-name overdue-name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="pro-sku">规格</view> <view class="pro-sku">规格</view>
......
...@@ -5,7 +5,7 @@ const utils = require('../../utils/util') ...@@ -5,7 +5,7 @@ const utils = require('../../utils/util')
const envInfo = require('../../config/index').envInfo const envInfo = require('../../config/index').envInfo
import { Integer } from '../../utils/integerDigitalConvertion' import { Integer } from '../../utils/integerDigitalConvertion'
const { memberId, member } = wx.getStorageSync('_baseUserInfo') const { memberId, member } = wx.getStorageSync('_baseUserInfo')
const defaultProImg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; const defaultProImg = 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
wxService.page({ wxService.page({
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<view class="buy-list" wx:if="{{extendProList.length}}" wx:for="{{extendProList}}" wx:key="{{index}}"> <view class="buy-list" wx:if="{{extendProList.length}}" wx:for="{{extendProList}}" wx:key="{{index}}">
<view class="prod-img"> <view class="prod-img">
<image <image
src="{{item.productImgUrl || 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'}}" src="{{item.productImgUrl || 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg'}}"
mode='aspectFit'/> mode='aspectFit'/>
</view> </view>
<view class="prod-info"> <view class="prod-info">
......
...@@ -89,7 +89,8 @@ wxService.page({ ...@@ -89,7 +89,8 @@ wxService.page({
this.data.cardStyle.bgColor = COLOR_OBJ[obj.color]; this.data.cardStyle.bgColor = COLOR_OBJ[obj.color];
} }
else{ else{
this.data.cardStyle.bgUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/711_08.png'; this.data.cardStyle.bgUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001a72d5206-87b3-46b4-a811-4119705248d0.png';
this.data.cardStyle.bgColor = ''; this.data.cardStyle.bgColor = '';
} }
......
...@@ -22,8 +22,6 @@ page{ ...@@ -22,8 +22,6 @@ page{
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: 100%; background-size: 100%;
/* style='background-image:url(https://img3.bigaka.com/prd/2006/201912/20191216/2006a5a44693-3c66-4f82-8379-f6b8b64468e5.png)' */
/* background-image: url('https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/711_08.png'); */
} }
.own-bg{ .own-bg{
width: 100%; width: 100%;
......
...@@ -14,7 +14,7 @@ wxService.page({ ...@@ -14,7 +14,7 @@ wxService.page({
imgHeight: 450, imgHeight: 450,
dialog: { dialog: {
show: false, show: false,
image: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/bgc.png', image: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001aa7a7a07-cc3d-45c7-8e14-d54a6bcef21d.png',
content: '优惠券和积分流水', content: '优惠券和积分流水',
tip: '立即查看' tip: '立即查看'
}, },
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
"appid": "wx313ec36b710125d4", "appid": "wxac09792264c49b5c",
"projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E", "projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
...@@ -34,33 +34,33 @@ Component({ ...@@ -34,33 +34,33 @@ Component({
data: { data: {
tabBar : [ tabBar : [
{ {
activeUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_01_a.png', activeUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/300125f7a40f-8d9b-4ca3-ac8d-dcfe3607abf3.png',
pageUrl: '/shoppingGuid/page/pages/college/college', pageUrl: '/shoppingGuid/page/pages/college/college',
defaultUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_01_d.png', defaultUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001744bdc3f-5bc1-4178-825b-8b39a4fe2bc3.png',
isActive : false isActive : false
}, },
{ {
activeUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_02_a.png', activeUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001bb29226a-4faf-4ed9-94da-d5036b17a9fe.png',
pageUrl: '/shoppingGuid/page/pages/qrcode/qrcode', pageUrl: '/shoppingGuid/page/pages/qrcode/qrcode',
defaultUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_02_d.png', defaultUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001a0e67d2d-bf2c-405a-b0ca-6738ab9f42d7.png',
isActive: false isActive: false
}, },
{ {
activeUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_03_a.png', activeUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/30010a0c94b2-4b51-4e92-a4d8-9f5a07f159e8.png',
pageUrl: '/shoppingGuid/page/pages/home/home', pageUrl: '/shoppingGuid/page/pages/home/home',
defaultUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_03_d.png', defaultUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001025b9273-e1c1-42f4-a670-77b89f0a4cf4.png',
isActive: true isActive: true
}, },
{ {
activeUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_04_a.png', activeUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001598b6ce5-0e82-42e8-a416-8cd304cf7a71.png',
pageUrl: '/shoppingGuid/page/pages/welfare/welfare', pageUrl: '/shoppingGuid/page/pages/welfare/welfare',
defaultUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_04_d.png', defaultUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001d3b53929-7bd9-4fc5-9572-5c2b4af8bff4.png',
isActive: false isActive: false
}, },
{ {
activeUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_05_a.png', activeUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/30016b9d9500-f529-4c05-be15-907ca6fe19e5.png',
pageUrl: '/shoppingGuid/page/pages/achievement/achievement', pageUrl: '/shoppingGuid/page/pages/achievement/achievement',
defaultUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/tab_bar_05_d.png', defaultUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/30018848b942-1c9e-448f-8f65-102114987b41.png',
isActive: false isActive: false
}, },
] ]
......
...@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService'); ...@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService');
const app = getApp(); const app = getApp();
// import wxCharts from '../../../../charts/wxcharts-min.js' // import wxCharts from '../../../../charts/wxcharts-min.js'
const wxCharts = require('../../../../charts/wxcharts-min.js') const wxCharts = require('../../../../charts/wxcharts-min.js')
// https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png
wxService.page({ wxService.page({
/** /**
...@@ -17,7 +17,7 @@ wxService.page({ ...@@ -17,7 +17,7 @@ wxService.page({
], ],
current : 1, current : 1,
currentOrderData : {}, currentOrderData : {},
avator: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png', avator: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png',
info : {}, info : {},
achievement : {}, achievement : {},
memberPreview : { memberPreview : {
......
...@@ -44,7 +44,7 @@ view{ ...@@ -44,7 +44,7 @@ view{
background-position: top; background-position: top;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_tpday_recuit.png); background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/300110534651-9409-41af-b1a7-116f711b2500.png);
z-index: 2; z-index: 2;
right: 30rpx; right: 30rpx;
top: 0; top: 0;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class='main-container'> <view class='main-container'>
<!-- 优惠券福利 --> <!-- 优惠券福利 -->
<view class='coupons'> <view class='coupons'>
<view class='coupon-item' style='background-image:url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg.png)'> <view class='coupon-item' style='background-image:url(https://img3.bigaka.com/prd/3001/202003/20200331/300183e872fa-7859-4c49-89a9-daf68543d8c7.png)'>
<view class='coupon-item-lf'> <view class='coupon-item-lf'>
<view class='coupon-price'> <view class='coupon-price'>
{{couponInfo.couponType != 2 ? '¥' : ''}} <text>{{couponInfo.price}}</text> {{couponInfo.couponType != 2 ? '¥' : ''}} <text>{{couponInfo.price}}</text>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class='main-container'> <view class='main-container'>
<!-- 优惠券福利 --> <!-- 优惠券福利 -->
<view class='coupons'> <view class='coupons'>
<view class='coupon-item' style='background-image:url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg.png)'> <view class='coupon-item' style='background-image:url(https://img3.bigaka.com/prd/3001/202003/20200331/300183e872fa-7859-4c49-89a9-daf68543d8c7.png)'>
<view class='coupon-item-lf'> <view class='coupon-item-lf'>
<image src="{{couponInfo.takeCouponBgimg}}" mode='aspectFit'></image> <image src="{{couponInfo.takeCouponBgimg}}" mode='aspectFit'></image>
</view> </view>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<block wx:for="{{enlistList.recruitInfo}}" wx:key="{{index}}" wx:for-item="item"> <block wx:for="{{enlistList.recruitInfo}}" wx:key="{{index}}" wx:for-item="item">
<view class='item'> <view class='item'>
<view class='u-info'> <view class='u-info'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png' mode='aspectFit'></image>
<text>{{item.mobile}}</text> <text>{{item.mobile}}</text>
</view> </view>
<view class='item-btn' data-item="{{item}}" bindtap='onTapRecall'>立即回访</view> <view class='item-btn' data-item="{{item}}" bindtap='onTapRecall'>立即回访</view>
......
...@@ -3,11 +3,11 @@ const wxService = require('../../../../utils/wxService') ...@@ -3,11 +3,11 @@ const wxService = require('../../../../utils/wxService')
import { Integer } from '../../../../utils/integerDigitalConvertion' import { Integer } from '../../../../utils/integerDigitalConvertion'
const app = getApp(); const app = getApp();
const discountBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dicount_coupon.png'; const discountBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001108068c0-09c6-4d60-a59c-3f27ce8dcf58.png';
const dingeBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dinge_coupon.png'; const dingeBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/300196a210e9-7c79-44ac-aab3-6df482e8ba7c.png';
const diyongBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_diyong_coupon.png'; const diyongBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001aba52f3a-cfb0-4da2-9f7b-f2c147c34ddd.png';
const defaultGoodsImg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; const defaultGoodsImg = 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
wxService.page({ wxService.page({
...@@ -21,7 +21,7 @@ wxService.page({ ...@@ -21,7 +21,7 @@ wxService.page({
store : [], store : [],
rankList:[], rankList:[],
storeList:[], storeList:[],
defaultAvatar: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/home_default_logo.png', defaultAvatar: 'https://img3.bigaka.com/prd/3001/202003/20200331/30018452a3be-b2da-4676-89ca-ebdc75a721a6.png',
loadingText : '数据加载中...', loadingText : '数据加载中...',
coupon : { coupon : {
couponTypeArr: [ couponTypeArr: [
...@@ -46,7 +46,9 @@ wxService.page({ ...@@ -46,7 +46,9 @@ wxService.page({
path : '', path : '',
imageUrl : '' imageUrl : ''
}, },
showModal : false showModal : false,
saleTaskList : [],
saleTaskIndex : 0,
}, },
/** /**
...@@ -56,7 +58,8 @@ wxService.page({ ...@@ -56,7 +58,8 @@ wxService.page({
wx.hideShareMenu(); wx.hideShareMenu();
console.log('guidBaseInfo----', wx.getStorageSync('guidBaseInfo')) console.log('guidBaseInfo----', wx.getStorageSync('guidBaseInfo'))
this.getCouponList(); this.getCouponList();
this.getGoodsList(); // this.getGoodsList();
this.getSaleTaskList();
}, },
/** /**
...@@ -65,9 +68,81 @@ wxService.page({ ...@@ -65,9 +68,81 @@ wxService.page({
onShow: function () { onShow: function () {
this.getRecruitRanking() // 招募榜 this.getRecruitRanking() // 招募榜
}, },
//销售任务选择改变
bindSaleTaskChange(e){
let index = e.detail.value;
this.data.saleTaskIndex = index;
this.setData({
saleTaskIndex : this.data.saleTaskIndex ,
});
let tempObj = this.data.saleTaskList[this.data.saleTaskIndex];
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
if(products.length > 0){
let ids = products.map(item => {
return item.id;
});
this.getProductsByProductsIds(ids);
}
},
//获取销售任务列表
getSaleTaskList(){
wxService.post(`/marketing/shoppingguide/task/page?pageSize=100000&pageNo=1`,{
brandId: app.globalData.brandId,
type: 1
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
let tempArr = [];
list.forEach(item => {
tempArr.push(item.task);
});
this.data.saleTaskList = tempArr;
this.setData({
saleTaskList : this.data.saleTaskList,
saleTaskIndex : 0
});
if(tempArr.length > 0){
let tempObj = tempArr[0];
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
if(products.length > 0){
let ids = products.map(item => {
return item.id;
});
this.getProductsByProductsIds(ids);
}
}
}
});
},
//根据商品ids获取商品信息
getProductsByProductsIds(proIds){
wx.showLoading({
title: '获取商品信息中..',
});
wxService.post(`/sale/product/listPage?pageNo=1&pageSize=10000`,{
productIds : proIds
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
this.data.goods.goodsList = list;
list.forEach(item => {
item.price = parseFloat(item.minSalePrice/10/10).toFixed(2);
item.productImgUrl = item.indexUrl;
});
this.setData({
goods : this.data.goods
});
}
})
},
//跳转到商品详情 //跳转到商品详情
onTapToGoodsDetail(e){ onTapToGoodsDetail(e){
console.log(e)
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
let productId = item.productId; let productId = item.productId;
wx.navigateTo({ wx.navigateTo({
...@@ -254,7 +329,7 @@ wxService.page({ ...@@ -254,7 +329,7 @@ wxService.page({
let content = { let content = {
title: item.title, title: item.title,
id: id, id: id,
url: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png' url: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png'
} }
let tentacleInfo = { let tentacleInfo = {
content: JSON.stringify(content), content: JSON.stringify(content),
...@@ -271,7 +346,7 @@ wxService.page({ ...@@ -271,7 +346,7 @@ wxService.page({
let inner_tentacleId = Integer.digit(tentacleId, 10, 64); let inner_tentacleId = Integer.digit(tentacleId, 10, 64);
var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId; var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId;
this.data.shareModel.title = item.title; this.data.shareModel.title = item.title;
this.data.shareModel.imageUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'; this.data.shareModel.imageUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png';
this.data.shareModel.path = path; this.data.shareModel.path = path;
this.setData({ this.setData({
shareModel: this.data.shareModel, shareModel: this.data.shareModel,
...@@ -293,7 +368,7 @@ wxService.page({ ...@@ -293,7 +368,7 @@ wxService.page({
let content = { let content = {
title: item.title, title: item.title,
id: item.id, id: item.id,
url: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png' url: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png'
} }
let tentacleInfo = { let tentacleInfo = {
...@@ -314,7 +389,7 @@ wxService.page({ ...@@ -314,7 +389,7 @@ wxService.page({
wx.qy.shareToExternalContact({ wx.qy.shareToExternalContact({
appid: app.globalData.appId,//小程序的appid appid: app.globalData.appId,//小程序的appid
title: item.title, //小程序消息的title title: item.title, //小程序消息的title
imgUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png',//小程序消息的封面图 imgUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png',//小程序消息的封面图
page: path, //小程序消息打开后的路径 page: path, //小程序消息打开后的路径
success: function (r) { success: function (r) {
wx.showToast({ wx.showToast({
...@@ -335,41 +410,6 @@ wxService.page({ ...@@ -335,41 +410,6 @@ wxService.page({
}); });
}, },
//切换商品筛选
onTapChangeGoodsType(e){
let index = e.currentTarget.dataset.index;
this.data.goods.goodsTypeArr.map(item => {
item.active = false;
});
this.data.goods.goodsTypeArr[index].active = true;
this.data.goods.currentGoodsType = this.data.goods.goodsTypeArr[index].type;
this.data.goods.goodsList = [];
this.getGoodsList();
this.setData({
goods: this.data.goods
});
},
//获取商品列表
getGoodsList(){
wx.showLoading({
title: '加载中..',
});
let order = this.data.goods.currentGoodsType;
wxService.post(`/merchant/share/productBonus/buyer/findPageOrder?pageNo=1&pageSize=3&order=${order}`, {}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
list.map(item => {
item.productImgUrl = item.productImgUrl ? item.productImgUrl : defaultGoodsImg;
});
this.data.goods.goodsList = list;
this.setData({
goods: this.data.goods
});
}
});
},
//定向发送 //定向发送
//定向转发商品给用户 分享功能 //定向转发商品给用户 分享功能
onTapToShare(e) { onTapToShare(e) {
...@@ -482,7 +522,7 @@ wxService.page({ ...@@ -482,7 +522,7 @@ wxService.page({
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
this.getCouponList(); this.getCouponList();
this.getGoodsList(); this.getSaleTaskList();
if (this.data.current == 1){ if (this.data.current == 1){
this.getRecruitRanking(); this.getRecruitRanking();
} }
......
...@@ -4,19 +4,19 @@ ...@@ -4,19 +4,19 @@
<view class='header'>常用工具</view> <view class='header'>常用工具</view>
<view class='tools-items'> <view class='tools-items'>
<view class='tools-item' bindtap='onTapToMall'> <view class='tools-item' bindtap='onTapToMall'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_mall.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/30012d12bb12-1642-450c-bba8-0a77cbbb6c0c.png' mode='aspectFit'></image>
<view class='tool-name'>官方商城</view> <view class='tool-name'>官方商城</view>
</view> </view>
<view class='tools-item' bindtap='onTapToTaskCenter'> <view class='tools-item' bindtap='onTapToTaskCenter'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_task.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001b3f5cabe-f088-4b78-aade-a261926bc020.png' mode='aspectFit'></image>
<view class='tool-name'>任务中心</view> <view class='tool-name'>任务中心</view>
</view> </view>
<view class='tools-item' bindtap='onTapToMember'> <view class='tools-item' bindtap='onTapToMember'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_member_center.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001a1ba11ea-57af-419e-bf6a-f803a18f92cd.png' mode='aspectFit'></image>
<view class='tool-name'>会员中心</view> <view class='tool-name'>会员中心</view>
</view> </view>
<view class='tools-item' bindtap='onTapScanQrcode'> <view class='tools-item' bindtap='onTapScanQrcode'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_scan_qrcode.jpg' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001a65c377d-f660-4962-ac1b-a4d77062b51b.jpg' mode='aspectFit'></image>
<view class='tool-name'>扫码核销</view> <view class='tool-name'>扫码核销</view>
</view> </view>
</view> </view>
...@@ -65,23 +65,19 @@ ...@@ -65,23 +65,19 @@
</view> </view>
<!-- 爆款推荐 --> <!-- 爆款推荐 -->
<view class='mg-b-40'> <view class='mg-b-40'>
<view class='header'>商城热卖</view> <!-- <view class='header'>商城热卖</view> -->
<view class='status-bar'> <view class="task-container">
<view class='status-items'> <view class="select-sale">
<view class='status-bar-item {{item.active ? "active" : ""}}' <text>销售任务</text>
wx:for="{{goods.goodsTypeArr}}" <picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
wx:for-item="item" <view class="picker">
bindtap='onTapChangeGoodsType' {{saleTaskList[saleTaskIndex].name}}
wx:for-index="idx"
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
</view> </view>
<view class='more-data' bindtap='onTapToMoreProducts'> </picker>
<label>更多</label> <image src="/assets/imgs/arrow-right.png"></image>
<image src='/assets/imgs/arrow-right-sku.png' mode='aspectFit'></image>
</view> </view>
</view> </view>
<!-- list --> <!-- 商品列表 -->
<view class='goods-list' wx:if="{{goods.goodsList.length > 0}}"> <view class='goods-list' wx:if="{{goods.goodsList.length > 0}}">
<view class='goods-item' <view class='goods-item'
wx:for="{{goods.goodsList}}" wx:for="{{goods.goodsList}}"
...@@ -94,14 +90,13 @@ ...@@ -94,14 +90,13 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image> <image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'> <view class='goods-rg-info'>
<view class='goods-title'>{{item.productName}}</view> <view class='goods-title'>{{item.productName}}</view>
<!-- <view class='goods-second-title'>这个是商品的描述</view> --> <view class='goods-second-title'>{{item.subtitle}}</view>
<view class='goods-price'> <view class='goods-price'>
<view class='price'> <view class='price'>
<view class='plus'> <view class='plus'>
<image src='/assets/imgs/point.png' mode='aspectFit'></image> <!-- <image src='/assets/imgs/point.png' mode='aspectFit'></image> -->
<text class='original-price'>{{item.point}}</text> <text class='original-price'>¥ {{item.price}}</text>
</view> </view>
<!-- <view class='original-price'>¥126.08</view> -->
</view> </view>
<view class='goods-share'> <view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view> <view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
...@@ -112,6 +107,10 @@ ...@@ -112,6 +107,10 @@
</view> </view>
</view> </view>
<empty text="商家暂无推荐商品~" wx:else/> <empty text="商家暂无推荐商品~" wx:else/>
<view class="more-saleTask" bindtap="onTapToMoreProducts">
<text>查看更多销售任务</text>
<image src="/assets/imgs/arrow-right.png"></image>
</view>
</view> </view>
<!-- 招募榜 --> <!-- 招募榜 -->
<view class='rank-container'> <view class='rank-container'>
......
...@@ -20,6 +20,70 @@ view{ ...@@ -20,6 +20,70 @@ view{
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
} }
.task-container{
width: 100%;
height: auto;
}
.task-container .select-sale{
width: 100%;
height: auto;
display: flex;
align-items: center;
font-size: 28rpx;
color: #333333;
padding-bottom: 15rpx;
margin-bottom: 10rpx;
}
.task-container .select-sale text{
color: #333333;
font-weight: bold;
}
.task-container .select-sale .center{
flex: 1;
padding: 0 10rpx;
display: flex;
justify-content: flex-end;
align-items: center;
height: auto;
}
.task-container .select-sale .center .picker{
flex: 1;
height: auto;
color: #ff3333;
}
.task-container .select-sale image{
width: 22rpx;
height: 30rpx;
}
.more-saleTask{
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 24rpx;
color: #999999;
padding: 10rpx 0;
}
.more-saleTask image{
width: 18rpx;
height: 26rpx;
margin-left: 8rpx;
}
.more-saleTask:active{
opacity: 0.7;
}
.top-items{ .top-items{
background: #ffffff; background: #ffffff;
width: 100%; width: 100%;
...@@ -158,7 +222,7 @@ view{ ...@@ -158,7 +222,7 @@ view{
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100%; background-size: 100%;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_coupon_bg.png); background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/3001e4df2b3e-f9a2-4af8-86b4-f3e9ca2f7c16.png);
padding: 20rpx 10rpx; padding: 20rpx 10rpx;
font-size: 24rpx; font-size: 24rpx;
} }
...@@ -358,7 +422,7 @@ view{ ...@@ -358,7 +422,7 @@ view{
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
display: flex; display: flex;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_bg_rank_top.png); background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/300183c2a2cf-379f-40df-8614-e2623101ff74.png);
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
......
...@@ -92,7 +92,7 @@ wxService.page({ ...@@ -92,7 +92,7 @@ wxService.page({
let inner_tentacleId = Integer.digit(tentacleId, 10, 64); let inner_tentacleId = Integer.digit(tentacleId, 10, 64);
var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId; var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId;
this.data.shareCouponObj.title = item.title; this.data.shareCouponObj.title = item.title;
this.data.shareCouponObj.imageUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'; this.data.shareCouponObj.imageUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png';
this.data.shareCouponObj.path = path; this.data.shareCouponObj.path = path;
this.setData({ this.setData({
shareCouponObj: this.data.shareCouponObj, shareCouponObj: this.data.shareCouponObj,
...@@ -135,7 +135,7 @@ wxService.page({ ...@@ -135,7 +135,7 @@ wxService.page({
wx.qy.shareToExternalContact({ wx.qy.shareToExternalContact({
appid: app.globalData.appId,//小程序的appid appid: app.globalData.appId,//小程序的appid
title: item.title, //小程序消息的title title: item.title, //小程序消息的title
imgUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png',//小程序消息的封面图 imgUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png',//小程序消息的封面图
page: path, //小程序消息打开后的路径 page: path, //小程序消息打开后的路径
success: function (r) { success: function (r) {
// wx.showToast({ // wx.showToast({
...@@ -188,7 +188,7 @@ wxService.page({ ...@@ -188,7 +188,7 @@ wxService.page({
let list = data.content ? data.content : []; let list = data.content ? data.content : [];
list.forEach(item => { list.forEach(item => {
item.canUse = (item.couponSetting.status == 0 || item.couponSetting.status == 2) ? false : true; item.canUse = (item.couponSetting.status == 0 || item.couponSetting.status == 2) ? false : true;
item.imageBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg.png'; item.imageBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/300183e872fa-7859-4c49-89a9-daf68543d8c7.png';
item.typeText = item.couponSetting.typeDesc; item.typeText = item.couponSetting.typeDesc;
item.price = parseFloat(item.couponSetting.faceAmount / 100).toFixed(2); item.price = parseFloat(item.couponSetting.faceAmount / 100).toFixed(2);
item.couponType = item.couponSetting.type; item.couponType = item.couponSetting.type;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
data-item="{{item}}" data-item="{{item}}"
style='background-image:url({{item.imageBg}})'> style='background-image:url({{item.imageBg}})'>
<view class='coupon-item-lf' data-item="{{item}}" bindtap='onTapShowQrcode'> <view class='coupon-item-lf' data-item="{{item}}" bindtap='onTapShowQrcode'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/daogou_qrcode.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001a67371e6-fb69-498b-a8be-862f48c066a6.png' mode='aspectFit'></image>
<view>查看详情</view> <view>查看详情</view>
</view> </view>
<view class='coupon-item-rg'> <view class='coupon-item-rg'>
......
...@@ -23,7 +23,9 @@ wxService.page({ ...@@ -23,7 +23,9 @@ wxService.page({
path: '' path: ''
}, },
recommandProductsNoData : false, recommandProductsNoData : false,
showShareModel : false showShareModel : false,
saleTaskList : [],
saleTaskIndex : 0,
}, },
/** /**
...@@ -47,7 +49,91 @@ wxService.page({ ...@@ -47,7 +49,91 @@ wxService.page({
} }
//获取优惠券列表 //获取优惠券列表
this.getGoodsList(); // this.getGoodsList();
this.getSaleTaskList();
},
//销售任务选择改变
bindSaleTaskChange(e){
let index = e.detail.value;
this.data.saleTaskIndex = index;
this.setData({
saleTaskIndex : this.data.saleTaskIndex ,
});
let tempObj = this.data.saleTaskList[this.data.saleTaskIndex];
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
if(products.length > 0){
let ids = products.map(item => {
return item.id;
});
this.getProductsByProductsIds(ids);
}
},
//获取销售任务列表
getSaleTaskList(refresh){
wxService.post(`/marketing/shoppingguide/task/page?pageSize=100000&pageNo=1`,{
brandId: app.globalData.brandId,
type: 1
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
let tempArr = [];
list.forEach(item => {
tempArr.push(item.task);
});
// this.data.saleTaskList = tempArr;
// this.setData({
// saleTaskList : this.data.saleTaskList,
// saleTaskIndex : 0
// });
//这里获取全部的销售任务商品
let allProIds = [];
tempArr.forEach(item => {
let tempObj = item;
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
products.forEach(p => {
allProIds.push(p.id);
});
});
if(allProIds.length > 0){
this.getProductsByProductsIds(allProIds);
}
}
if(refresh){
wx.stopPullDownRefresh();
wx.showToast({
title: '刷新成功',
});
}
});
},
//根据商品ids获取商品信息
getProductsByProductsIds(proIds){
wx.showLoading({
title: '获取商品信息中..',
});
wxService.post(`/sale/product/listPage?pageNo=1&pageSize=10000`,{
productIds : proIds
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
this.data.goods.goodsList = list;
list.forEach(item => {
item.price = parseFloat(item.minSalePrice/10/10).toFixed(2);
item.productImgUrl = item.indexUrl;
});
this.setData({
goods : this.data.goods
});
}
})
}, },
//跳转到商品详情 //跳转到商品详情
...@@ -88,7 +174,7 @@ wxService.page({ ...@@ -88,7 +174,7 @@ wxService.page({
let list = data.content ? data.content : []; let list = data.content ? data.content : [];
list.forEach(item => { list.forEach(item => {
item.productImgUrl = item.productImgUrl ? item.productImgUrl = item.productImgUrl ?
item.productImgUrl : 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/1571636466%281%29.jpg'; item.productImgUrl : 'https://img3.bigaka.com/prd/3001/202003/20200331/3001252b3e12-3d1b-45ec-a266-32bcb848f6b1.jpg';
}); });
if (list.length == 0) { if (list.length == 0) {
...@@ -206,7 +292,7 @@ wxService.page({ ...@@ -206,7 +292,7 @@ wxService.page({
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
this.data.goods.goodsList = []; this.data.goods.goodsList = [];
this.getGoodsList(true); this.getSaleTaskList(true);
}, },
/** /**
......
{ {
"navigationBarTitleText": "商城热卖", "navigationBarTitleText": "所有销售商品",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"usingComponents": {} "usingComponents": {}
} }
\ No newline at end of file
<!--shoppingGuid/page/pages/home/home.wxml--> <!--shoppingGuid/page/pages/home/home.wxml-->
<view class='status-bar'> <!-- <view class='status-bar'>
<view class='status-items'> <view class="task-container">
<view class='status-bar-item {{item.active ? "active" : ""}}' <view class="select-sale">
wx:for="{{goods.goodsTypeArr}}" <text>销售任务</text>
wx:for-item="item" <picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
bindtap='onTapChangeGoodsType' <view class="picker">
wx:for-index="idx" {{saleTaskList[saleTaskIndex].name}}
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
</view> </view>
</view> </picker>
<image src="/assets/imgs/arrow-right.png"></image>
</view>
</view>
</view> -->
<!-- 整体布局 --> <!-- 整体布局 -->
<view class='main-container'> <view class='main-container'>
<!-- 爆款推荐 --> <!-- 爆款推荐 -->
...@@ -26,14 +28,13 @@ ...@@ -26,14 +28,13 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image> <image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'> <view class='goods-rg-info'>
<view class='goods-title'>{{item.productName}}</view> <view class='goods-title'>{{item.productName}}</view>
<!-- <view class='goods-second-title'>这个是说明</view> --> <view class='goods-second-title'>{{item.subtitle}}</view>
<view class='goods-price'> <view class='goods-price'>
<view class='price'> <view class='price'>
<view class='plus'> <view class='plus'>
<image src='/assets/imgs/point.png' mode='aspectFit'></image> <!-- <image src='/assets/imgs/point.png' mode='aspectFit'></image> -->
<text class='original-price'>{{item.point}}</text> <text class='original-price'>¥ {{item.price}}</text>
</view> </view>
<!-- <view class='original-price'>¥126.08</view> -->
</view> </view>
<view class='goods-share'> <view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view> <view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
...@@ -46,7 +47,6 @@ ...@@ -46,7 +47,6 @@
</view> </view>
<view class='empty' wx:if="{{goods.goodsList.length == 0}}">暂无数据~</view> <view class='empty' wx:if="{{goods.goodsList.length == 0}}">暂无数据~</view>
</view> </view>
<!-- 分享 --> <!-- 分享 -->
......
...@@ -3,7 +3,6 @@ page{ ...@@ -3,7 +3,6 @@ page{
background: rgba(0, 0, 0, 0.04); background: rgba(0, 0, 0, 0.04);
box-sizing: border-box; box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
padding-top: 75rpx;
} }
/* *,*::after,*::before{ /* *,*::after,*::before{
...@@ -20,6 +19,45 @@ view{ ...@@ -20,6 +19,45 @@ view{
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
} }
.task-container{
width: 100%;
height: auto;
}
.task-container .select-sale{
width: 100%;
height: auto;
display: flex;
align-items: center;
font-size: 28rpx;
color: #333333;
}
.task-container .select-sale text{
color: #333333;
font-weight: bold;
}
.task-container .select-sale .center{
flex: 1;
padding: 0 10rpx;
display: flex;
justify-content: flex-end;
align-items: center;
height: auto;
}
.task-container .select-sale .center .picker{
flex: 1;
height: auto;
color: #ff3333;
}
.task-container .select-sale image{
width: 22rpx;
height: 30rpx;
}
/* 主要布局 */ /* 主要布局 */
.main-container{ .main-container{
...@@ -40,10 +78,12 @@ view{ ...@@ -40,10 +78,12 @@ view{
height: 75rpx; height: 75rpx;
position: fixed; position: fixed;
background: #ffffff; background: #ffffff;
padding-right: 120rpx; padding: 0 30rpx;
top: 0; top: 0;
left: 0; left: 0;
z-index: 2; z-index: 2;
display: flex;
align-items: center;
} }
.status-bar .status-items{ .status-bar .status-items{
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
const app = getApp() const app = getApp()
const wxService = require('../../../../utils/wxService') const wxService = require('../../../../utils/wxService')
import { Integer } from '../../../../utils/integerDigitalConvertion' import { Integer } from '../../../../utils/integerDigitalConvertion'
// {logo: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png', name : 'zhansgan'} // {logo: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png', name : 'zhansgan'}
wxService.page({ wxService.page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -31,7 +31,7 @@ wxService.page({ ...@@ -31,7 +31,7 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}); });
let defaultImg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png'; let defaultImg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png';
wxService.post(`/marketing/shoppingguide/recruit/list`).then(res => { wxService.post(`/marketing/shoppingguide/recruit/list`).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
......
...@@ -11,7 +11,7 @@ wxService.page({ ...@@ -11,7 +11,7 @@ wxService.page({
*/ */
data: { data: {
showOpenCardModal : false, showOpenCardModal : false,
imageUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_u_open_card_small.png' imageUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/300165c62762-b948-473b-9382-a3f42f13ead0.png'
}, },
/** /**
......
...@@ -7,7 +7,7 @@ wxService.page({ ...@@ -7,7 +7,7 @@ wxService.page({
* 页面的初始数据 * 页面的初始数据
*/ */
// https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/demo_qrcode.png // https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/demo_qrcode.png
// https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png // https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png
data: { data: {
codeImg: '', codeImg: '',
avator: '', avator: '',
...@@ -24,13 +24,13 @@ wxService.page({ ...@@ -24,13 +24,13 @@ wxService.page({
// }, // },
{ {
name: "企业微信", name: "企业微信",
url: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_qiye_wx_no_bg.png', url: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001510e4c76-0f39-4b19-8818-e226d43d8375.png',
active: true , active: true ,
type: 2 type: 2
}, },
{ {
name: "开卡页", name: "开卡页",
url: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_open_card_no_bg.png', url: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001304791d2-4da7-4733-9a69-abb6c7c12e9e.png',
active: false , active: false ,
type: 3 type: 3
}, },
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<view class='qrcode'> <view class='qrcode'>
<view class='taps'> <view class='taps'>
<text>添加为企微好友</text> <text>添加为企微好友</text>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_right_three.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001d3c37481-e69a-4a3c-9a40-c37757dea42c.png' mode='aspectFit'></image>
<text>发送欢迎语卡片</text> <text>发送欢迎语卡片</text>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_right_three.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001d3c37481-e69a-4a3c-9a40-c37757dea42c.png' mode='aspectFit'></image>
<text>引导注册成为会员</text> <text>引导注册成为会员</text>
</view> </view>
<view class='card'> <view class='card'>
......
...@@ -20,7 +20,7 @@ view{ ...@@ -20,7 +20,7 @@ view{
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_shoudi_mingp.png); background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/3001c27b71b2-9b91-46c2-992b-02483e82626a.png);
/* margin-top: 30rpx; */ /* margin-top: 30rpx; */
position: relative; position: relative;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</view> </view>
<!-- <view class='rg' bindtap='onTapToNotice'>活动说明?</view> --> <!-- <view class='rg' bindtap='onTapToNotice'>活动说明?</view> -->
<image class="rg" <image class="rg"
src="https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/git_button.gif" src="https://img3.bigaka.com/prd/3001/202003/20200331/3001300e1b8e-5d47-48b9-b48a-67b71a316c18.gif"
mode="aspectFit" mode="aspectFit"
bindtap='onTapToNotice'></image> bindtap='onTapToNotice'></image>
</view> </view>
......
...@@ -109,8 +109,8 @@ wxService.page({ ...@@ -109,8 +109,8 @@ wxService.page({
if (!res) return false; if (!res) return false;
let list = res.data.data.content ? res.data.data.content : []; let list = res.data.data.content ? res.data.data.content : [];
const canUse = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg.png', const canUse = 'https://img3.bigaka.com/prd/3001/202003/20200331/300183e872fa-7859-4c49-89a9-daf68543d8c7.png',
cantUse = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg_cantUse.png'; cantUse = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001b934d8e5-25fe-4c08-a06c-841f82b260cf.png';
list.forEach(item => { list.forEach(item => {
item.bg = item.status == 1 ? canUse : cantUse; item.bg = item.status == 1 ? canUse : cantUse;
}); });
...@@ -226,7 +226,7 @@ wxService.page({ ...@@ -226,7 +226,7 @@ wxService.page({
productName: p.productName, productName: p.productName,
productId: p.productId, productId: p.productId,
productCode: p.productCode, productCode: p.productCode,
image: p.skuImgUrl ? p.skuImgUrl : 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/1571636466%281%29.jpg', image: p.skuImgUrl ? p.skuImgUrl : 'https://img3.bigaka.com/prd/3001/202003/20200331/3001252b3e12-3d1b-45ec-a266-32bcb848f6b1.jpg',
skuId: p.skuId, skuId: p.skuId,
skuCode: p.skuCode, skuCode: p.skuCode,
} }
...@@ -262,7 +262,7 @@ wxService.page({ ...@@ -262,7 +262,7 @@ wxService.page({
productName: p.productName, productName: p.productName,
productId: p.productId, productId: p.productId,
productCode: p.productCode, productCode: p.productCode,
image: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/1571636466%281%29.jpg', image: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001252b3e12-3d1b-45ec-a266-32bcb848f6b1.jpg',
skuId: p.skuId, skuId: p.skuId,
skuCode: p.skuCode, skuCode: p.skuCode,
} }
...@@ -307,7 +307,7 @@ wxService.page({ ...@@ -307,7 +307,7 @@ wxService.page({
count = count + p.count; count = count + p.count;
let skuId = p.skuId; let skuId = p.skuId;
let filterArr = orderSkuList.filter(o => o.skuId == skuId); let filterArr = orderSkuList.filter(o => o.skuId == skuId);
let skuImgUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/1571636466%281%29.jpg'; let skuImgUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001252b3e12-3d1b-45ec-a266-32bcb848f6b1.jpg';
if (filterArr.length > 0){ if (filterArr.length > 0){
skuImgUrl = filterArr[0].skuImgUrl; skuImgUrl = filterArr[0].skuImgUrl;
} }
...@@ -346,7 +346,7 @@ wxService.page({ ...@@ -346,7 +346,7 @@ wxService.page({
return { return {
productId: p.productId, productId: p.productId,
productCode: p.productCode, productCode: p.productCode,
image: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/1571636466%281%29.jpg', image: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001252b3e12-3d1b-45ec-a266-32bcb848f6b1.jpg',
skuId: p.skuId, skuId: p.skuId,
skuCode: p.skuCode, skuCode: p.skuCode,
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class='user-info-container'> <view class='user-info-container'>
<view class='user-info'> <view class='user-info'>
<view class='u-logo'> <view class='u-logo'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png' mode='aspectFit'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png' mode='aspectFit'></image>
</view> </view>
<view class='u-rg'> <view class='u-rg'>
<view class='u-items'> <view class='u-items'>
......
...@@ -43,7 +43,7 @@ wxService.page({ ...@@ -43,7 +43,7 @@ wxService.page({
groupId, groupId,
type type
} }
let defaultImg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/biaka_default_u_logo.png'; let defaultImg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e.png';
wxService.post(`/marketing/shoppingguide/tag/member`, query).then(res => { wxService.post(`/marketing/shoppingguide/tag/member`, query).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
......
<!--shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml--> <!--shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml-->
<view class='login'> <view class='login'>
<image src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_welcom_guide.jpg' mode='widthFix'></image> <image src='https://img3.bigaka.com/prd/3001/202003/20200331/3001b5c63ee3-fd22-46e0-90da-ab02b0c57f9d.jpg' mode='widthFix'></image>
<view class='tips-dark' wx:if="{{show}}">对不起,导购功能只能在企业微信中使用!</view> <view class='tips-dark' wx:if="{{show}}">对不起,导购功能只能在企业微信中使用!</view>
<view class='tips'>使用微信快捷登录,可免去信息填写</view> <view class='tips'>使用微信快捷登录,可免去信息填写</view>
<button class='enter-guide' bindtap='onTapGetEnterpriseUserInfo'>确 认</button> <button class='enter-guide' bindtap='onTapGetEnterpriseUserInfo'>确 认</button>
......
...@@ -3,10 +3,10 @@ const wxService = require('../../../../utils/wxService') ...@@ -3,10 +3,10 @@ const wxService = require('../../../../utils/wxService')
import { Integer } from '../../../../utils/integerDigitalConvertion' import { Integer } from '../../../../utils/integerDigitalConvertion'
var app = getApp() var app = getApp()
const discountBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dicount_coupon.png'; const discountBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001108068c0-09c6-4d60-a59c-3f27ce8dcf58.png';
const dingeBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dinge_coupon.png'; const dingeBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/300196a210e9-7c79-44ac-aab3-6df482e8ba7c.png';
const diyongBg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_diyong_coupon.png'; const diyongBg = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001aba52f3a-cfb0-4da2-9f7b-f2c147c34ddd.png';
const defaultGoodsImg = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; const defaultGoodsImg = 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
wxService.page({ wxService.page({
/** /**
...@@ -37,7 +37,10 @@ wxService.page({ ...@@ -37,7 +37,10 @@ wxService.page({
title : '', title : '',
path : '', path : '',
imageUrl : '' imageUrl : ''
} },
saleTaskList : [],
saleTaskIndex : 0,
}, },
/** /**
...@@ -45,8 +48,9 @@ wxService.page({ ...@@ -45,8 +48,9 @@ wxService.page({
*/ */
onLoad: function (options) { onLoad: function (options) {
this.getCouponList(); this.getCouponList();
this.getGoodsList(); // this.getGoodsList();
wx.hideShareMenu(); wx.hideShareMenu();
this.getSaleTaskList();
}, },
/** /**
...@@ -58,6 +62,80 @@ wxService.page({ ...@@ -58,6 +62,80 @@ wxService.page({
}) })
}, },
//销售任务选择改变
bindSaleTaskChange(e){
let index = e.detail.value;
this.data.saleTaskIndex = index;
this.setData({
saleTaskIndex : this.data.saleTaskIndex ,
});
let tempObj = this.data.saleTaskList[this.data.saleTaskIndex];
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
if(products.length > 0){
let ids = products.map(item => {
return item.id;
});
this.getProductsByProductsIds(ids);
}
},
//获取销售任务列表
getSaleTaskList(){
wxService.post(`/marketing/shoppingguide/task/page?pageSize=100000&pageNo=1`,{
brandId: app.globalData.brandId,
type: 1
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
let tempArr = [];
list.forEach(item => {
tempArr.push(item.task);
});
this.data.saleTaskList = tempArr;
this.setData({
saleTaskList : this.data.saleTaskList,
saleTaskIndex : 0
});
if(tempArr.length > 0){
let tempObj = tempArr[0];
let products = tempObj.product ? JSON.parse(tempObj.product) : [];
if(products.length > 0){
let ids = products.map(item => {
return item.id;
});
this.getProductsByProductsIds(ids);
}
}
}
});
},
//根据商品ids获取商品信息
getProductsByProductsIds(proIds){
wx.showLoading({
title: '获取商品信息中..',
});
wxService.post(`/sale/product/listPage?pageNo=1&pageSize=10000`,{
productIds : proIds
}).then(res => {
if(res){
let list = res.data.data.content ? res.data.data.content : [];
this.data.goods.goodsList = list;
list.forEach(item => {
item.price = parseFloat(item.minSalePrice/10/10).toFixed(2);
item.productImgUrl = item.indexUrl;
});
this.setData({
goods : this.data.goods
});
}
})
},
//跳转到更多商品列表 //跳转到更多商品列表
onTapToMoreProducts() { onTapToMoreProducts() {
wx.navigateTo({ wx.navigateTo({
...@@ -155,7 +233,7 @@ wxService.page({ ...@@ -155,7 +233,7 @@ wxService.page({
let inner_tentacleId = Integer.digit(tentacleId, 10, 64); let inner_tentacleId = Integer.digit(tentacleId, 10, 64);
var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId; var path = 'subPackage/page/pages/scanCoupon/scanCoupon' + '?i=' + inner_id + '&t=' + inner_tentacleId;
this.data.shareModel.title = item.title; this.data.shareModel.title = item.title;
this.data.shareModel.imageUrl = 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'; this.data.shareModel.imageUrl = 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png';
this.data.shareModel.path = path; this.data.shareModel.path = path;
this.setData({ this.setData({
shareModel: this.data.shareModel, shareModel: this.data.shareModel,
...@@ -199,7 +277,7 @@ wxService.page({ ...@@ -199,7 +277,7 @@ wxService.page({
wx.qy.shareToExternalContact({ wx.qy.shareToExternalContact({
appid: app.globalData.appId,//小程序的appid appid: app.globalData.appId,//小程序的appid
title: item.couponName, //小程序消息的title title: item.couponName, //小程序消息的title
imgUrl: 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png',//小程序消息的封面图 imgUrl: 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png',//小程序消息的封面图
page: path, //小程序消息打开后的路径 page: path, //小程序消息打开后的路径
success: function (r) { success: function (r) {
wx.showToast({ wx.showToast({
...@@ -213,44 +291,6 @@ wxService.page({ ...@@ -213,44 +291,6 @@ wxService.page({
}); });
}, },
//商品筛选
//筛选点击
onTapChangeGoodsType(e) {
let index = e.currentTarget.dataset.index;
this.data.goods.goodsTypeArr.map(item => {
item.active = false;
});
this.data.goods.goodsTypeArr[index].active = true;
this.data.goods.currentGoodsType = this.data.goods.goodsTypeArr[index].type;
this.data.goods.goodsList = [];
this.getGoodsList();
this.setData({
goods: this.data.goods
});
},
//获取商品列表
getGoodsList() {
wx.showLoading({
title: '加载中..',
});
let order = this.data.goods.currentGoodsType;
wxService.post(`/merchant/share/productBonus/buyer/findPageOrder?pageNo=1&pageSize=5&order=${order}`, {}).then(res => {
if (res) {
let list = res.data.data.content ? res.data.data.content : [];
list.map(item => {
item.productImgUrl = item.productImgUrl ? item.productImgUrl : defaultGoodsImg;
});
this.data.goods.goodsList = list;
this.setData({
goods: this.data.goods
});
}
});
},
//定向发送 //定向发送
//定向转发商品给用户 分享功能 //定向转发商品给用户 分享功能
onTapToShare(e) { onTapToShare(e) {
......
...@@ -39,24 +39,20 @@ ...@@ -39,24 +39,20 @@
</view> </view>
<!-- 爆款推荐 --> <!-- 爆款推荐 -->
<view class='mg-b-40'> <view class='mg-b-40'>
<view class='header'>商城热卖</view> <!-- <view class='header'>商城热卖</view> -->
<view class='status-bar'> <view class="task-container">
<view class='status-items'> <view class="select-sale">
<view class='status-bar-item {{item.active ? "active" : ""}}' <text>销售任务</text>
wx:for="{{goods.goodsTypeArr}}" <picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
wx:for-item="item" <view class="picker">
bindtap='onTapChangeGoodsType' {{saleTaskList[saleTaskIndex].name}}
wx:for-index="idx"
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
</view> </view>
<view class='more-data' bindtap='onTapToMoreProducts'> </picker>
<label>更多</label> <image src="/assets/imgs/arrow-right.png"></image>
<image src='/assets/imgs/arrow-right-sku.png' mode='aspectFit'></image>
</view> </view>
</view> </view>
<!-- list --> <!-- list -->
<view class='goods-list'> <view class='goods-list' wx:if="{{goods.goodsList.length > 0}}">
<view class='goods-item' <view class='goods-item'
wx:for="{{goods.goodsList}}" wx:for="{{goods.goodsList}}"
wx:for-item="item" wx:for-item="item"
...@@ -66,14 +62,12 @@ ...@@ -66,14 +62,12 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image> <image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'> <view class='goods-rg-info'>
<view class='goods-title'>{{item.productName}}</view> <view class='goods-title'>{{item.productName}}</view>
<!-- <view class='goods-second-title'>这个是商品的描述</view> --> <view class='goods-second-title'>{{item.subtitle}}</view>
<view class='goods-price'> <view class='goods-price'>
<view class='price'> <view class='price'>
<view class='plus'> <view class='plus'>
<text>¥89.00</text> <text class='original-price'>¥ {{item.price}}</text>
<image src='/assets/imgs/7_1_0/plus-icon.png' mode='aspectFit'></image>
</view> </view>
<view class='original-price'>¥126.08</view>
</view> </view>
<view class='goods-share'> <view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view> <view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view>
...@@ -82,8 +76,14 @@ ...@@ -82,8 +76,14 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<empty text="商家暂无推荐商品~" wx:else/>
<view class="more-saleTask" bindtap="onTapToMoreProducts">
<text>查看更多销售任务</text>
<image src="/assets/imgs/arrow-right.png"></image>
</view> </view>
</view> </view>
<!-- 内容运营 --> <!-- 内容运营 -->
<!-- <view class='mg-b-40'> <!-- <view class='mg-b-40'>
......
...@@ -21,6 +21,68 @@ view{ ...@@ -21,6 +21,68 @@ view{
} }
.task-container{
width: 100%;
height: auto;
}
.task-container .select-sale{
width: 100%;
height: auto;
display: flex;
align-items: center;
font-size: 28rpx;
color: #333333;
padding-bottom: 15rpx;
margin-bottom: 10rpx;
}
.task-container .select-sale text{
color: #333333;
font-weight: bold;
}
.task-container .select-sale .center{
flex: 1;
padding: 0 10rpx;
display: flex;
justify-content: flex-end;
align-items: center;
height: auto;
}
.task-container .select-sale .center .picker{
flex: 1;
height: auto;
color: #ff3333;
}
.task-container .select-sale image{
width: 22rpx;
height: 30rpx;
}
.more-saleTask{
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 24rpx;
color: #999999;
padding: 10rpx 0;
}
.more-saleTask image{
width: 18rpx;
height: 26rpx;
margin-left: 8rpx;
}
.more-saleTask:active{
opacity: 0.7;
}
/* 主要布局 */ /* 主要布局 */
.main-container{ .main-container{
width: 100%; width: 100%;
...@@ -108,7 +170,7 @@ view{ ...@@ -108,7 +170,7 @@ view{
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100%; background-size: 100%;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_coupon_bg.png); background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/3001e4df2b3e-f9a2-4af8-86b4-f3e9ca2f7c16.png);
padding: 20rpx 10rpx; padding: 20rpx 10rpx;
font-size: 24rpx; font-size: 24rpx;
} }
......
...@@ -145,7 +145,7 @@ wxService.page({ ...@@ -145,7 +145,7 @@ wxService.page({
wx.hideLoading() wx.hideLoading()
this.data.proData = this.data.pageNo == 1 ? [...data.content] : [...this.data.proData, ...data.content]; this.data.proData = this.data.pageNo == 1 ? [...data.content] : [...this.data.proData, ...data.content];
this.data.proData.forEach(item => { this.data.proData.forEach(item => {
item.indexUrl = item.indexUrl ? item.indexUrl : 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; item.indexUrl = item.indexUrl ? item.indexUrl : 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
}); });
this.setData({ this.setData({
proData: this.data.proData, proData: this.data.proData,
...@@ -186,7 +186,7 @@ wxService.page({ ...@@ -186,7 +186,7 @@ wxService.page({
wx.hideLoading(); wx.hideLoading();
this.data.proData = this.data.pageNo == 1 ? [...data.content] : [...this.data.proData, ...data.content]; this.data.proData = this.data.pageNo == 1 ? [...data.content] : [...this.data.proData, ...data.content];
this.data.proData.forEach(item => { this.data.proData.forEach(item => {
item.indexUrl = item.indexUrl ? item.indexUrl : 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'; item.indexUrl = item.indexUrl ? item.indexUrl : 'https://img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jpg';
}); });
this.setData({ this.setData({
proData: this.data.proData, proData: this.data.proData,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class='coupon-img-title' data-id="{{item.acvivityId}}" bindtap="goCouponDetail"> <view class='coupon-img-title' data-id="{{item.acvivityId}}" bindtap="goCouponDetail">
<view class='coupon-img'> <view class='coupon-img'>
<image wx:if="{{item.listPicture}}" src='{{item.listPicture}}' mode="aspectFit"/> <image wx:if="{{item.listPicture}}" src='{{item.listPicture}}' mode="aspectFit"/>
<image wx:else src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png' /> <image wx:else src='https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png' />
</view> </view>
<view class='coupon-info'> <view class='coupon-info'>
<view class='coupon-name fs-28'>{{item.activityName}}</view> <view class='coupon-name fs-28'>{{item.activityName}}</view>
......
...@@ -73,7 +73,7 @@ wxService.page({ ...@@ -73,7 +73,7 @@ wxService.page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
let url = this.data.activityInfo.listPicture ? this.data.activityInfo.listPicture : 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png'; let url = this.data.activityInfo.listPicture ? this.data.activityInfo.listPicture : 'https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png';
return { return {
title: `我分享给你一张“${this.data.activityInfo.couponName}”的优惠券,赶快领取吧~`, title: `我分享给你一张“${this.data.activityInfo.couponName}”的优惠券,赶快领取吧~`,
path: `/subPackage/page/pages/couponCenterInfo/couponCenterInfo?id=${this.data.activityId}`, path: `/subPackage/page/pages/couponCenterInfo/couponCenterInfo?id=${this.data.activityId}`,
......
<!--subPackage/page/pages/couponCenterInfo/couponCenterInfo.wxml--> <!--subPackage/page/pages/couponCenterInfo/couponCenterInfo.wxml-->
<view class="coupon-info-con"> <view class="coupon-info-con">
<view class="coupon-info-bg" style="background-image:url('https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon-bg.png')"> <view class="coupon-info-bg" style="background-image:url('https://img3.bigaka.com/prd/3001/202003/20200331/3001df30305c-f4fe-4c35-bd73-5d87d4882f7a.png')">
<view class="lf-coupon-Bg"> <view class="lf-coupon-Bg">
<image wx:if="{{activityInfo.listPicture}}" mode="aspectFit" src="{{activityInfo.listPicture}}"></image> <image wx:if="{{activityInfo.listPicture}}" mode="aspectFit" src="{{activityInfo.listPicture}}"></image>
<image wx:else src='https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_get_coupon.png' /> <image wx:else src='https://img3.bigaka.com/prd/3001/202003/20200331/3001649f2f08-3b4e-4b5b-97c1-30cdf646651c.png' />
</view> </view>
<view class="rg-coupon-info"> <view class="rg-coupon-info">
<view class="coupon-title">{{activityInfo.couponName}}</view> <view class="coupon-title">{{activityInfo.couponName}}</view>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.go-home { .go-home {
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url(https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/no_point_activity_large.png) background-image: url(https://img3.bigaka.com/prd/3001/202003/20200331/3001a345889f-b5c3-4351-bc71-186eb2342e71.png)
} }
/* .btn-wrap{ /* .btn-wrap{
height: 100vh; height: 100vh;
......
...@@ -116,9 +116,11 @@ wxService.page({ ...@@ -116,9 +116,11 @@ wxService.page({
if (result == 0) { if (result == 0) {
let list = data ? data : []; let list = data ? data : [];
let integralGoodsList = list; let integralGoodsList = list;
if(integralGoodsList.length > 0){
this.findExchangeNumByIds(integralGoodsList); this.findExchangeNumByIds(integralGoodsList);
} }
} }
}
}).finally(() => { }).finally(() => {
wx.hideLoading(); wx.hideLoading();
}) })
......
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