Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
209423dc
Commit
209423dc
authored
Mar 31, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片地址
parent
4e6c43c7
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
583 additions
and
248 deletions
+583
-248
bannerAd.wxml
src/component/bannerAd/bannerAd.wxml
+1
-1
contactUsModal.wxml
src/component/contactUsModal/contactUsModal.wxml
+2
-2
dialogStockEmpty.wxml
src/component/dialogStockEmpty/dialogStockEmpty.wxml
+1
-1
dialogUserLimit.wxml
src/component/dialogUserLimit/dialogUserLimit.wxml
+2
-2
empty.wxml
src/component/empty/empty.wxml
+1
-1
exception.wxml
src/component/exception/exception.wxml
+1
-1
floatNav.wxml
src/component/floatNav/floatNav.wxml
+1
-1
guidePageModal.wxml
src/component/guidePageModal/guidePageModal.wxml
+1
-1
iconSwiper.wxml
src/component/iconSwiper/iconSwiper.wxml
+1
-1
productListStyleOne.js
src/component/productListStyleOne/productListStyleOne.js
+1
-1
index.js
src/config/index.js
+20
-18
cart.wxml
src/pages/cart/cart.wxml
+1
-1
extendProduct.js
src/pages/extendProduct/extendProduct.js
+1
-1
extendProduct.wxml
src/pages/extendProduct/extendProduct.wxml
+1
-1
memberOfOwn.js
src/pages/memberOfOwn/memberOfOwn.js
+2
-1
memberOfOwn.wxss
src/pages/memberOfOwn/memberOfOwn.wxss
+0
-2
pointDetail.js
src/pages/pointDetail/pointDetail.js
+1
-1
project.config.json
src/project.config.json
+1
-1
tabBar.js
src/shoppingGuid/component/tabBar/tabBar.js
+10
-10
achievement.js
src/shoppingGuid/page/pages/achievement/achievement.js
+2
-2
achievement.wxss
src/shoppingGuid/page/pages/achievement/achievement.wxss
+1
-1
couponQrcode.wxml
src/shoppingGuid/page/pages/couponQrcode/couponQrcode.wxml
+1
-1
couponWriteOff.wxml
...hoppingGuid/page/pages/couponWriteOff/couponWriteOff.wxml
+1
-1
enlistInfo.wxml
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxml
+1
-1
home.js
src/shoppingGuid/page/pages/home/home.js
+88
-48
home.wxml
src/shoppingGuid/page/pages/home/home.wxml
+23
-24
home.wxss
src/shoppingGuid/page/pages/home/home.wxss
+66
-2
moreCoupons.js
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.js
+3
-3
moreCoupons.wxml
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.wxml
+1
-1
moreProducts.js
src/shoppingGuid/page/pages/moreProducts/moreProducts.js
+90
-4
moreProducts.json
src/shoppingGuid/page/pages/moreProducts/moreProducts.json
+2
-1
moreProducts.wxml
src/shoppingGuid/page/pages/moreProducts/moreProducts.wxml
+15
-15
moreProducts.wxss
src/shoppingGuid/page/pages/moreProducts/moreProducts.wxss
+42
-2
myMemberList.js
src/shoppingGuid/page/pages/myMemberList/myMemberList.js
+2
-2
openCard.js
src/shoppingGuid/page/pages/openCard/openCard.js
+1
-1
qrcode.js
src/shoppingGuid/page/pages/qrcode/qrcode.js
+3
-3
qrcode.wxml
src/shoppingGuid/page/pages/qrcode/qrcode.wxml
+2
-2
qrcode.wxss
src/shoppingGuid/page/pages/qrcode/qrcode.wxss
+1
-1
saleTaskInfo.wxml
src/shoppingGuid/page/pages/saleTaskInfo/saleTaskInfo.wxml
+1
-1
userInfo.js
src/shoppingGuid/page/pages/userInfo/userInfo.js
+6
-6
userInfo.wxml
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
+1
-1
userList.js
src/shoppingGuid/page/pages/userList/userList.js
+1
-1
welcomGuider.wxml
src/shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml
+1
-1
welfare.js
src/shoppingGuid/page/pages/welfare/welfare.js
+86
-46
welfare.wxml
src/shoppingGuid/page/pages/welfare/welfare.wxml
+20
-20
welfare.wxss
src/shoppingGuid/page/pages/welfare/welfare.wxss
+63
-1
categoryPro.js
src/subPackage/page/pages/categoryPro/categoryPro.js
+2
-2
couponCenter.wxml
src/subPackage/page/pages/couponCenter/couponCenter.wxml
+1
-1
couponCenterInfo.js
...ubPackage/page/pages/couponCenterInfo/couponCenterInfo.js
+1
-1
couponCenterInfo.wxml
...Package/page/pages/couponCenterInfo/couponCenterInfo.wxml
+2
-2
goToHome.wxss
src/subPackage/page/pages/goToHome/goToHome.wxss
+1
-1
pointExchangeGoods.js
...kageA/page/pages/pointExchangeGoods/pointExchangeGoods.js
+3
-1
No files found.
src/component/bannerAd/bannerAd.wxml
View file @
209423dc
<!--component/bannerAd/bannerAd.wxml-->
<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>
src/component/contactUsModal/contactUsModal.wxml
View file @
209423dc
...
...
@@ -2,12 +2,12 @@
<view class='contact-us-modal' wx:if='{{contactShow}}'>
<view class='top-back'>
<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 style='margin-bottom:15rpx;'>在<label style='color:#FA6400;'>服务通知</label>中添加企业微信工作人员</view>
<view class='contact'>咨询更多服务哦!</view>
<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 class='ikonw' bindtap='onTapClose'>知道了</view>
</view>
src/component/dialogStockEmpty/dialogStockEmpty.wxml
View file @
209423dc
...
...
@@ -3,7 +3,7 @@
<view class='body'>
<image bindtap='onTapClose'
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>很遗憾,你来晚了~</view>
<view class='view-btn' bindtap='onTapViewMore'>查看其它活动</view>
...
...
src/component/dialogUserLimit/dialogUserLimit.wxml
View file @
209423dc
...
...
@@ -3,8 +3,8 @@
<view class='body'>
<image bindtap='onTapClose'
class='close'
src='https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/icon_tips_close
.png' mode='aspectFit'></image>
<image class='tips-icon' src='https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/tips_icon
.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://
img3.bigaka.com/prd/3001/202003/20200331/3001ed2dd3ad-2dfa-4e99-9702-5fd9758c00f1
.png' mode='aspectFit'></image>
<view>您已达到兑换上限</view>
</view>
</view>
src/component/empty/empty.wxml
View file @
209423dc
<!--component/empty/empty.wxml-->
<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>
src/component/exception/exception.wxml
View file @
209423dc
<!--component/exception/exception.wxml-->
<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-reconnet'>
<button bindtap='onTapReCall'>点我重试</button>
...
...
src/component/floatNav/floatNav.wxml
View file @
209423dc
...
...
@@ -16,6 +16,6 @@
</view>
</view>
<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>
src/component/guidePageModal/guidePageModal.wxml
View file @
209423dc
<!--component/guidePageModal/guidePageModal.wxml-->
<view class="modal-container" bindtap="hidePopup" hidden="{{!show}}"></view>
<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>
src/component/iconSwiper/iconSwiper.wxml
View file @
209423dc
...
...
@@ -5,7 +5,7 @@
<view class="">
<image
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"
lazy-load="false"
binderror=""
...
...
src/component/productListStyleOne/productListStyleOne.js
View file @
209423dc
...
...
@@ -24,7 +24,7 @@ Component({
//图片加载失败
imgLoadError
(
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
;
this
.
data
.
imageData
[
index
].
indexUrl
=
defaultUrl
;
this
.
setData
({
...
...
src/config/index.js
View file @
209423dc
...
...
@@ -6,7 +6,7 @@
// 修改 BRANCH_ID 为对应的商户id
// 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
//2006 泰华 , wx40fec8944623c8b3
...
...
@@ -24,7 +24,7 @@ const PROJECT_ENV = 'prod' // 生产 prod, 开发 dev, 测试 test , 测试门
//2992 山东盛联微商城 wx53dedc202ae0d0c2
//2002 巴黎贝甜 wx21968cb3a486d4ab
const
BRANCH_ID
=
3001
const
BRANCH_ID
=
1002
const
isMall
=
true
// const needMock = '' //
...
...
@@ -75,7 +75,8 @@ const prod_brand_config = {
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
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
:
{
...
...
@@ -97,7 +98,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -118,7 +119,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -139,7 +140,7 @@ const prod_brand_config = {
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -160,7 +161,7 @@ const prod_brand_config = {
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -181,7 +182,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -202,7 +203,7 @@ const prod_brand_config = {
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -223,7 +224,7 @@ const prod_brand_config = {
isOpenSelfMention
:
true
,
// 是否开启门店自提
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -244,7 +245,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -265,7 +266,7 @@ const prod_brand_config = {
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -286,7 +287,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -307,7 +308,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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】
2017
:
{
...
...
@@ -328,7 +329,7 @@ const prod_brand_config = {
isOpenSelfMention
:
false
,
// 是否开启门店自提
isNeedGetLocation
:
false
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -349,7 +350,7 @@ const prod_brand_config = {
guiderCanScanQrcode
:
true
,
//导购是否有扫一扫功能
isNeedGetLocation
:
true
,
//是否开启小程序获取位置(提交订单时获取门店信息)
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
:
{
...
...
@@ -378,9 +379,10 @@ const prod_brand_config = {
}
//默认分享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
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中添加此代码
...
...
src/pages/cart/cart.wxml
View file @
209423dc
...
...
@@ -19,7 +19,7 @@
<view class="overdue-list clearflex">
<view class="overdue-status">失效</view>
<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-name overdue-name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="pro-sku">规格</view>
...
...
src/pages/extendProduct/extendProduct.js
View file @
209423dc
...
...
@@ -5,7 +5,7 @@ const utils = require('../../utils/util')
const
envInfo
=
require
(
'../../config/index'
).
envInfo
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
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
({
...
...
src/pages/extendProduct/extendProduct.wxml
View file @
209423dc
...
...
@@ -52,7 +52,7 @@
<view class="buy-list" wx:if="{{extendProList.length}}" wx:for="{{extendProList}}" wx:key="{{index}}">
<view class="prod-img">
<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'/>
</view>
<view class="prod-info">
...
...
src/pages/memberOfOwn/memberOfOwn.js
View file @
209423dc
...
...
@@ -89,7 +89,8 @@ wxService.page({
this
.
data
.
cardStyle
.
bgColor
=
COLOR_OBJ
[
obj
.
color
];
}
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
=
''
;
}
...
...
src/pages/memberOfOwn/memberOfOwn.wxss
View file @
209423dc
...
...
@@ -22,8 +22,6 @@ page{
background-repeat: no-repeat;
background-position: center;
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{
width: 100%;
...
...
src/pages/pointDetail/pointDetail.js
View file @
209423dc
...
...
@@ -14,7 +14,7 @@ wxService.page({
imgHeight
:
450
,
dialog
:
{
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
:
'优惠券和积分流水'
,
tip
:
'立即查看'
},
...
...
src/project.config.json
View file @
209423dc
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
313ec36b710125d4
"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"projectname"
:
"%E5%BE%AE%E5%95%86%E5%9F%8E"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
src/shoppingGuid/component/tabBar/tabBar.js
View file @
209423dc
...
...
@@ -34,33 +34,33 @@ Component({
data
:
{
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'
,
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
},
{
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'
,
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
},
{
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'
,
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
},
{
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'
,
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
},
{
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'
,
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
},
]
...
...
src/shoppingGuid/page/pages/achievement/achievement.js
View file @
209423dc
...
...
@@ -3,7 +3,7 @@ const wxService = require('../../../../utils/wxService');
const
app
=
getApp
();
// import wxCharts from '../../../../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
({
/**
...
...
@@ -17,7 +17,7 @@ wxService.page({
],
current
:
1
,
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
:
{},
achievement
:
{},
memberPreview
:
{
...
...
src/shoppingGuid/page/pages/achievement/achievement.wxss
View file @
209423dc
...
...
@@ -44,7 +44,7 @@ view{
background-position: top;
background-repeat: no-repeat;
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;
right: 30rpx;
top: 0;
...
...
src/shoppingGuid/page/pages/couponQrcode/couponQrcode.wxml
View file @
209423dc
...
...
@@ -2,7 +2,7 @@
<view class='main-container'>
<!-- 优惠券福利 -->
<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-price'>
{{couponInfo.couponType != 2 ? '¥' : ''}} <text>{{couponInfo.price}}</text>
...
...
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.wxml
View file @
209423dc
...
...
@@ -2,7 +2,7 @@
<view class='main-container'>
<!-- 优惠券福利 -->
<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'>
<image src="{{couponInfo.takeCouponBgimg}}" mode='aspectFit'></image>
</view>
...
...
src/shoppingGuid/page/pages/enlistInfo/enlistInfo.wxml
View file @
209423dc
...
...
@@ -48,7 +48,7 @@
<block wx:for="{{enlistList.recruitInfo}}" wx:key="{{index}}" wx:for-item="item">
<view class='item'>
<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>
</view>
<view class='item-btn' data-item="{{item}}" bindtap='onTapRecall'>立即回访</view>
...
...
src/shoppingGuid/page/pages/home/home.js
View file @
209423dc
...
...
@@ -3,11 +3,11 @@ const wxService = require('../../../../utils/wxService')
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
const
app
=
getApp
();
const
discountBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dicount_coupon
.png'
;
const
dingeBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dinge_coupon
.png'
;
const
diyongBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_diyong_coupon
.png'
;
const
discountBg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/3001108068c0-09c6-4d60-a59c-3f27ce8dcf58
.png'
;
const
dingeBg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/300196a210e9-7c79-44ac-aab3-6df482e8ba7c
.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
({
...
...
@@ -21,7 +21,7 @@ wxService.page({
store
:
[],
rankList
:[],
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
:
'数据加载中...'
,
coupon
:
{
couponTypeArr
:
[
...
...
@@ -46,7 +46,9 @@ wxService.page({
path
:
''
,
imageUrl
:
''
},
showModal
:
false
showModal
:
false
,
saleTaskList
:
[],
saleTaskIndex
:
0
,
},
/**
...
...
@@ -56,7 +58,8 @@ wxService.page({
wx
.
hideShareMenu
();
console
.
log
(
'guidBaseInfo----'
,
wx
.
getStorageSync
(
'guidBaseInfo'
))
this
.
getCouponList
();
this
.
getGoodsList
();
// this.getGoodsList();
this
.
getSaleTaskList
();
},
/**
...
...
@@ -65,9 +68,81 @@ wxService.page({
onShow
:
function
()
{
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
){
console
.
log
(
e
)
let
item
=
e
.
currentTarget
.
dataset
.
item
;
let
productId
=
item
.
productId
;
wx
.
navigateTo
({
...
...
@@ -254,7 +329,7 @@ wxService.page({
let
content
=
{
title
:
item
.
title
,
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
=
{
content
:
JSON
.
stringify
(
content
),
...
...
@@ -271,7 +346,7 @@ wxService.page({
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
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
.
setData
({
shareModel
:
this
.
data
.
shareModel
,
...
...
@@ -293,7 +368,7 @@ wxService.page({
let
content
=
{
title
:
item
.
title
,
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
=
{
...
...
@@ -314,7 +389,7 @@ wxService.page({
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
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
,
//小程序消息打开后的路径
success
:
function
(
r
)
{
wx
.
showToast
({
...
...
@@ -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
)
{
...
...
@@ -482,7 +522,7 @@ wxService.page({
*/
onPullDownRefresh
:
function
()
{
this
.
getCouponList
();
this
.
get
Goods
List
();
this
.
get
SaleTask
List
();
if
(
this
.
data
.
current
==
1
){
this
.
getRecruitRanking
();
}
...
...
src/shoppingGuid/page/pages/home/home.wxml
View file @
209423dc
...
...
@@ -4,19 +4,19 @@
<view class='header'>常用工具</view>
<view class='tools-items'>
<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>
<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>
<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>
<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>
</view>
...
...
@@ -65,23 +65,19 @@
</view>
<!-- 爆款推荐 -->
<view class='mg-b-40'>
<view class='header'>商城热卖</view>
<view class='status-bar'>
<view class='status-items'>
<view class='status-bar-item {{item.active ? "active" : ""}}'
wx:for="{{goods.goodsTypeArr}}"
wx:for-item="item"
bindtap='onTapChangeGoodsType'
wx:for-index="idx"
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
</view>
<view class='more-data' bindtap='onTapToMoreProducts'>
<label>更多</label>
<image src='/assets/imgs/arrow-right-sku.png' mode='aspectFit'></image>
<!-- <view class='header'>商城热卖</view> -->
<view class="task-container">
<view class="select-sale">
<text>销售任务</text>
<picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
<view class="picker">
{{saleTaskList[saleTaskIndex].name}}
</view>
</picker>
<image src="/assets/imgs/arrow-right.png"></image>
</view>
</view>
<!--
list
-->
<!--
商品列表
-->
<view class='goods-list' wx:if="{{goods.goodsList.length > 0}}">
<view class='goods-item'
wx:for="{{goods.goodsList}}"
...
...
@@ -94,14 +90,13 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'>
<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='price'>
<view class='plus'>
<
image src='/assets/imgs/point.png' mode='aspectFit'></image
>
<text class='original-price'>
{{item.point
}}</text>
<
!-- <image src='/assets/imgs/point.png' mode='aspectFit'></image> --
>
<text class='original-price'>
¥ {{item.price
}}</text>
</view>
<!-- <view class='original-price'>¥126.08</view> -->
</view>
<view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
...
...
@@ -110,8 +105,12 @@
</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>
<empty text="商家暂无推荐商品~" wx:else/>
</view>
<!-- 招募榜 -->
<view class='rank-container'>
...
...
src/shoppingGuid/page/pages/home/home.wxss
View file @
209423dc
...
...
@@ -20,6 +20,70 @@ view{
-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{
background: #ffffff;
width: 100%;
...
...
@@ -158,7 +222,7 @@ view{
background-position: center;
background-repeat: no-repeat;
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;
font-size: 24rpx;
}
...
...
@@ -358,7 +422,7 @@ view{
width: 100%;
height: 80rpx;
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-repeat: no-repeat;
background-position: center;
...
...
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.js
View file @
209423dc
...
...
@@ -92,7 +92,7 @@ wxService.page({
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
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
.
setData
({
shareCouponObj
:
this
.
data
.
shareCouponObj
,
...
...
@@ -135,7 +135,7 @@ wxService.page({
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
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
,
//小程序消息打开后的路径
success
:
function
(
r
)
{
// wx.showToast({
...
...
@@ -188,7 +188,7 @@ wxService.page({
let
list
=
data
.
content
?
data
.
content
:
[];
list
.
forEach
(
item
=>
{
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
.
price
=
parseFloat
(
item
.
couponSetting
.
faceAmount
/
100
).
toFixed
(
2
);
item
.
couponType
=
item
.
couponSetting
.
type
;
...
...
src/shoppingGuid/page/pages/moreCoupons/moreCoupons.wxml
View file @
209423dc
...
...
@@ -25,7 +25,7 @@
data-item="{{item}}"
style='background-image:url({{item.imageBg}})'>
<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 class='coupon-item-rg'>
...
...
src/shoppingGuid/page/pages/moreProducts/moreProducts.js
View file @
209423dc
...
...
@@ -23,7 +23,9 @@ wxService.page({
path
:
''
},
recommandProductsNoData
:
false
,
showShareModel
:
false
showShareModel
:
false
,
saleTaskList
:
[],
saleTaskIndex
:
0
,
},
/**
...
...
@@ -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({
let
list
=
data
.
content
?
data
.
content
:
[];
list
.
forEach
(
item
=>
{
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
)
{
...
...
@@ -206,7 +292,7 @@ wxService.page({
*/
onPullDownRefresh
:
function
()
{
this
.
data
.
goods
.
goodsList
=
[];
this
.
get
Goods
List
(
true
);
this
.
get
SaleTask
List
(
true
);
},
/**
...
...
src/shoppingGuid/page/pages/moreProducts/moreProducts.json
View file @
209423dc
{
"navigationBarTitleText"
:
"
商城热卖
"
,
"navigationBarTitleText"
:
"
所有销售商品
"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/shoppingGuid/page/pages/moreProducts/moreProducts.wxml
View file @
209423dc
<!--shoppingGuid/page/pages/home/home.wxml-->
<view class='status-bar'>
<view class='status-items'>
<view class='status-bar-item {{item.active ? "active" : ""}}'
wx:for="{{goods.goodsTypeArr}}"
wx:for-item="item"
bindtap='onTapChangeGoodsType'
wx:for-index="idx"
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
<!-- <view class='status-bar'>
<view class="task-container">
<view class="select-sale">
<text>销售任务</text>
<picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
<view class="picker">
{{saleTaskList[saleTaskIndex].name}}
</view>
</picker>
<image src="/assets/imgs/arrow-right.png"></image>
</view>
</view>
</view>
</view>
-->
<!-- 整体布局 -->
<view class='main-container'>
<!-- 爆款推荐 -->
...
...
@@ -26,14 +28,13 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'>
<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='price'>
<view class='plus'>
<
image src='/assets/imgs/point.png' mode='aspectFit'></image
>
<text class='original-price'>
{{item.point
}}</text>
<
!-- <image src='/assets/imgs/point.png' mode='aspectFit'></image> --
>
<text class='original-price'>
¥ {{item.price
}}</text>
</view>
<!-- <view class='original-price'>¥126.08</view> -->
</view>
<view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" catchtap='onTapToShare'>定向发送</view>
...
...
@@ -46,7 +47,6 @@
</view>
<view class='empty' wx:if="{{goods.goodsList.length == 0}}">暂无数据~</view>
</view>
<!-- 分享 -->
...
...
src/shoppingGuid/page/pages/moreProducts/moreProducts.wxss
View file @
209423dc
...
...
@@ -3,7 +3,6 @@ page{
background: rgba(0, 0, 0, 0.04);
box-sizing: border-box;
-webkit-box-sizing: border-box;
padding-top: 75rpx;
}
/* *,*::after,*::before{
...
...
@@ -20,6 +19,45 @@ view{
-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{
...
...
@@ -40,10 +78,12 @@ view{
height: 75rpx;
position: fixed;
background: #ffffff;
padding
-right: 12
0rpx;
padding
: 0 3
0rpx;
top: 0;
left: 0;
z-index: 2;
display: flex;
align-items: center;
}
.status-bar .status-items{
...
...
src/shoppingGuid/page/pages/myMemberList/myMemberList.js
View file @
209423dc
...
...
@@ -2,7 +2,7 @@
const
app
=
getApp
()
const
wxService
=
require
(
'../../../../utils/wxService'
)
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
({
/**
* 页面的初始数据
...
...
@@ -31,7 +31,7 @@ wxService.page({
wx
.
showLoading
({
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
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
...
...
src/shoppingGuid/page/pages/openCard/openCard.js
View file @
209423dc
...
...
@@ -11,7 +11,7 @@ wxService.page({
*/
data
:
{
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'
},
/**
...
...
src/shoppingGuid/page/pages/qrcode/qrcode.js
View file @
209423dc
...
...
@@ -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/biaka_default_u_logo
.png
// https://
img3.bigaka.com/prd/3001/202003/20200331/3001e669048a-b2e6-452f-9ae5-f659a56be66e
.png
data
:
{
codeImg
:
''
,
avator
:
''
,
...
...
@@ -24,13 +24,13 @@ wxService.page({
// },
{
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
,
type
:
2
},
{
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
,
type
:
3
},
...
...
src/shoppingGuid/page/pages/qrcode/qrcode.wxml
View file @
209423dc
...
...
@@ -2,9 +2,9 @@
<view class='qrcode'>
<view class='taps'>
<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>
<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>
</view>
<view class='card'>
...
...
src/shoppingGuid/page/pages/qrcode/qrcode.wxss
View file @
209423dc
...
...
@@ -20,7 +20,7 @@ view{
background-position: center;
background-repeat: no-repeat;
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; */
position: relative;
}
...
...
src/shoppingGuid/page/pages/saleTaskInfo/saleTaskInfo.wxml
View file @
209423dc
...
...
@@ -8,7 +8,7 @@
</view>
<!-- <view class='rg' bindtap='onTapToNotice'>活动说明?</view> -->
<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"
bindtap='onTapToNotice'></image>
</view>
...
...
src/shoppingGuid/page/pages/userInfo/userInfo.js
View file @
209423dc
...
...
@@ -109,8 +109,8 @@ wxService.page({
if
(
!
res
)
return
false
;
let
list
=
res
.
data
.
data
.
content
?
res
.
data
.
data
.
content
:
[];
const
canUse
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg
.png'
,
cantUse
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg_cantUse
.png'
;
const
canUse
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/300183e872fa-7859-4c49-89a9-daf68543d8c7
.png'
,
cantUse
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/3001b934d8e5-25fe-4c08-a06c-841f82b260cf
.png'
;
list
.
forEach
(
item
=>
{
item
.
bg
=
item
.
status
==
1
?
canUse
:
cantUse
;
});
...
...
@@ -226,7 +226,7 @@ wxService.page({
productName
:
p
.
productName
,
productId
:
p
.
productId
,
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
,
skuCode
:
p
.
skuCode
,
}
...
...
@@ -262,7 +262,7 @@ wxService.page({
productName
:
p
.
productName
,
productId
:
p
.
productId
,
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
,
skuCode
:
p
.
skuCode
,
}
...
...
@@ -307,7 +307,7 @@ wxService.page({
count
=
count
+
p
.
count
;
let
skuId
=
p
.
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
){
skuImgUrl
=
filterArr
[
0
].
skuImgUrl
;
}
...
...
@@ -346,7 +346,7 @@ wxService.page({
return
{
productId
:
p
.
productId
,
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
,
skuCode
:
p
.
skuCode
,
}
...
...
src/shoppingGuid/page/pages/userInfo/userInfo.wxml
View file @
209423dc
...
...
@@ -2,7 +2,7 @@
<view class='user-info-container'>
<view class='user-info'>
<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 class='u-rg'>
<view class='u-items'>
...
...
src/shoppingGuid/page/pages/userList/userList.js
View file @
209423dc
...
...
@@ -43,7 +43,7 @@ wxService.page({
groupId
,
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
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
...
...
src/shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml
View file @
209423dc
<!--shoppingGuid/page/pages/welcomGuider/welcomGuider.wxml-->
<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'>使用微信快捷登录,可免去信息填写</view>
<button class='enter-guide' bindtap='onTapGetEnterpriseUserInfo'>确 认</button>
...
...
src/shoppingGuid/page/pages/welfare/welfare.js
View file @
209423dc
...
...
@@ -3,10 +3,10 @@ const wxService = require('../../../../utils/wxService')
import
{
Integer
}
from
'../../../../utils/integerDigitalConvertion'
var
app
=
getApp
()
const
discountBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dicount_coupon
.png'
;
const
dingeBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_dinge_coupon
.png'
;
const
diyongBg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/7_3_0/icon_diyong_coupon
.png'
;
const
defaultGoodsImg
=
'https://
bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut
.jpg'
;
const
discountBg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/3001108068c0-09c6-4d60-a59c-3f27ce8dcf58
.png'
;
const
dingeBg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/300196a210e9-7c79-44ac-aab3-6df482e8ba7c
.png'
;
const
diyongBg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/3001aba52f3a-cfb0-4da2-9f7b-f2c147c34ddd
.png'
;
const
defaultGoodsImg
=
'https://
img3.bigaka.com/prd/3001/202003/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8
.jpg'
;
wxService
.
page
({
/**
...
...
@@ -37,7 +37,10 @@ wxService.page({
title
:
''
,
path
:
''
,
imageUrl
:
''
}
},
saleTaskList
:
[],
saleTaskIndex
:
0
,
},
/**
...
...
@@ -45,8 +48,9 @@ wxService.page({
*/
onLoad
:
function
(
options
)
{
this
.
getCouponList
();
this
.
getGoodsList
();
//
this.getGoodsList();
wx
.
hideShareMenu
();
this
.
getSaleTaskList
();
},
/**
...
...
@@ -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
()
{
wx
.
navigateTo
({
...
...
@@ -155,7 +233,7 @@ wxService.page({
let
inner_tentacleId
=
Integer
.
digit
(
tentacleId
,
10
,
64
);
var
path
=
'subPackage/page/pages/scanCoupon/scanCoupon'
+
'?i='
+
inner_id
+
'&t='
+
inner_tentacleId
;
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
.
setData
({
shareModel
:
this
.
data
.
shareModel
,
...
...
@@ -199,7 +277,7 @@ wxService.page({
wx
.
qy
.
shareToExternalContact
({
appid
:
app
.
globalData
.
appId
,
//小程序的appid
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
,
//小程序消息打开后的路径
success
:
function
(
r
)
{
wx
.
showToast
({
...
...
@@ -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
)
{
...
...
src/shoppingGuid/page/pages/welfare/welfare.wxml
View file @
209423dc
...
...
@@ -39,24 +39,20 @@
</view>
<!-- 爆款推荐 -->
<view class='mg-b-40'>
<view class='header'>商城热卖</view>
<view class='status-bar'>
<view class='status-items'>
<view class='status-bar-item {{item.active ? "active" : ""}}'
wx:for="{{goods.goodsTypeArr}}"
wx:for-item="item"
bindtap='onTapChangeGoodsType'
wx:for-index="idx"
wx:key="goods{{idx}}"
data-index="{{idx}}">{{item.name}}</view>
</view>
<view class='more-data' bindtap='onTapToMoreProducts'>
<label>更多</label>
<image src='/assets/imgs/arrow-right-sku.png' mode='aspectFit'></image>
<!-- <view class='header'>商城热卖</view> -->
<view class="task-container">
<view class="select-sale">
<text>销售任务</text>
<picker bindchange="bindSaleTaskChange" class="center" value="{{index}}" range="{{saleTaskList}}" range-key="name">
<view class="picker">
{{saleTaskList[saleTaskIndex].name}}
</view>
</picker>
<image src="/assets/imgs/arrow-right.png"></image>
</view>
</view>
<!-- list -->
<view class='goods-list'>
<view class='goods-list'
wx:if="{{goods.goodsList.length > 0}}"
>
<view class='goods-item'
wx:for="{{goods.goodsList}}"
wx:for-item="item"
...
...
@@ -66,14 +62,12 @@
<image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
<view class='goods-rg-info'>
<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='price'>
<view class='plus'>
<text>¥89.00</text>
<image src='/assets/imgs/7_1_0/plus-icon.png' mode='aspectFit'></image>
<text class='original-price'>¥ {{item.price}}</text>
</view>
<view class='original-price'>¥126.08</view>
</view>
<view class='goods-share'>
<view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view>
...
...
@@ -82,8 +76,14 @@
</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 class='mg-b-40'>
...
...
src/shoppingGuid/page/pages/welfare/welfare.wxss
View file @
209423dc
...
...
@@ -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{
width: 100%;
...
...
@@ -108,7 +170,7 @@ view{
background-position: center;
background-repeat: no-repeat;
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;
font-size: 24rpx;
}
...
...
src/subPackage/page/pages/categoryPro/categoryPro.js
View file @
209423dc
...
...
@@ -145,7 +145,7 @@ wxService.page({
wx
.
hideLoading
()
this
.
data
.
proData
=
this
.
data
.
pageNo
==
1
?
[...
data
.
content
]
:
[...
this
.
data
.
proData
,
...
data
.
content
];
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
({
proData
:
this
.
data
.
proData
,
...
...
@@ -186,7 +186,7 @@ wxService.page({
wx
.
hideLoading
();
this
.
data
.
proData
=
this
.
data
.
pageNo
==
1
?
[...
data
.
content
]
:
[...
this
.
data
.
proData
,
...
data
.
content
];
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
({
proData
:
this
.
data
.
proData
,
...
...
src/subPackage/page/pages/couponCenter/couponCenter.wxml
View file @
209423dc
...
...
@@ -15,7 +15,7 @@
<view class='coupon-img-title' data-id="{{item.acvivityId}}" bindtap="goCouponDetail">
<view class='coupon-img'>
<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 class='coupon-info'>
<view class='coupon-name fs-28'>{{item.activityName}}</view>
...
...
src/subPackage/page/pages/couponCenterInfo/couponCenterInfo.js
View file @
209423dc
...
...
@@ -73,7 +73,7 @@ wxService.page({
* 用户点击右上角分享
*/
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
{
title
:
`我分享给你一张“
${
this
.
data
.
activityInfo
.
couponName
}
”的优惠券,赶快领取吧~`
,
path
:
`/subPackage/page/pages/couponCenterInfo/couponCenterInfo?id=
${
this
.
data
.
activityId
}
`
,
...
...
src/subPackage/page/pages/couponCenterInfo/couponCenterInfo.wxml
View file @
209423dc
<!--subPackage/page/pages/couponCenterInfo/couponCenterInfo.wxml-->
<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">
<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 class="rg-coupon-info">
<view class="coupon-title">{{activityInfo.couponName}}</view>
...
...
src/subPackage/page/pages/goToHome/goToHome.wxss
View file @
209423dc
...
...
@@ -2,7 +2,7 @@
.go-home {
background-size: 100% 100%;
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{
height: 100vh;
...
...
src/subPackageA/page/pages/pointExchangeGoods/pointExchangeGoods.js
View file @
209423dc
...
...
@@ -116,7 +116,9 @@ wxService.page({
if
(
result
==
0
)
{
let
list
=
data
?
data
:
[];
let
integralGoodsList
=
list
;
this
.
findExchangeNumByIds
(
integralGoodsList
);
if
(
integralGoodsList
.
length
>
0
){
this
.
findExchangeNumByIds
(
integralGoodsList
);
}
}
}
}).
finally
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment