Commit 21ed2e04 by liimin

Merge branch 'v1.0.0' of http://192.168.3.233:8090/saas/mini-program/hmd into v1.0.0

2 parents 05bf9d36 111d6342
Showing 42 changed files with 1857 additions and 124 deletions
...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false const manual = false
const release = false const release = false
let index = 1 let index = 2
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
...@@ -27,6 +27,7 @@ module.exports = { ...@@ -27,6 +27,7 @@ module.exports = {
...data ...data
}) })
}, },
/**领取优惠券 */ /**领取优惠券 */
toReciveCard(data) { toReciveCard(data) {
let { let {
......
import api from '../request/http'
module.exports = {
getServiceCode(data) {
return api.fetch('dracIm.api.entmicro.findMiniProgramIm',data)
}
}
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,7 @@ import systemApi from './system' ...@@ -8,6 +8,7 @@ import systemApi from './system'
import couponsApi from './coupons' import couponsApi from './coupons'
import equityApi from './equity' import equityApi from './equity'
import common from './common' import common from './common'
import entmicroApi from './entmicro'
module.exports = { module.exports = {
wechatApi, wechatApi,
...@@ -19,5 +20,6 @@ module.exports = { ...@@ -19,5 +20,6 @@ module.exports = {
systemApi, systemApi,
couponsApi, couponsApi,
equityApi, equityApi,
common common,
entmicroApi
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ import utils from "./utils/index"; ...@@ -10,7 +10,7 @@ import utils from "./utils/index";
// 埋点 有需要再引入 // 埋点 有需要再引入
// import './utils/track/Track' // import './utils/track/Track'
/**分享 */ /**分享 */
// import '~/utils/share' import '~/utils/share'
App({ App({
onLaunch(options) { onLaunch(options) {
getUpdateManager(); getUpdateManager();
......
...@@ -54,7 +54,9 @@ ...@@ -54,7 +54,9 @@
"root": "packageIndex", "root": "packageIndex",
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/bannerJumpPage/bannerJumpPage" "pages/bannerJumpPage/bannerJumpPage",
"pages/common/contact/contact",
"pages/serviceCode/serviceCode"
] ]
}, },
{ {
...@@ -86,7 +88,8 @@ ...@@ -86,7 +88,8 @@
"pages/shoppingCart/shoppingCart", "pages/shoppingCart/shoppingCart",
"pages/pay/pay", "pages/pay/pay",
"pages/detail/detail", "pages/detail/detail",
"pages/search/search" "pages/search/search",
"pages/coupon/coupon"
] ]
}, },
{ {
......
...@@ -48,7 +48,7 @@ module.exports = Behavior({ ...@@ -48,7 +48,7 @@ module.exports = Behavior({
}, },
fail({ errMsg }) { fail({ errMsg }) {
console.log(errMsg) console.log(errMsg)
wx.$api.showToast(errMsg) wx.p.wxApi.showToast(errMsg)
} }
}) })
else else
......
...@@ -22,7 +22,7 @@ Page({ ...@@ -22,7 +22,7 @@ Page({
}) })
if (options.showToast) { if (options.showToast) {
setTimeout(()=>{ setTimeout(()=>{
wx.$api.showToast('原商品及品牌均已下架,您可查看其他权益商品') wx.p.wxApi.showToast('原商品及品牌均已下架,您可查看其他权益商品')
},500) },500)
} }
}, },
......
...@@ -30,7 +30,7 @@ Page({ ...@@ -30,7 +30,7 @@ Page({
}) })
}) })
.catch(err => { .catch(err => {
// wx.$api.showToast('获取位置失败') // wx.p.wxApi.showToast('获取位置失败')
}) })
}, },
// 获取附近优惠数据 // 获取附近优惠数据
......
...@@ -46,14 +46,14 @@ Page({ ...@@ -46,14 +46,14 @@ Page({
} }
}, },
// 领取定向礼包 // 领取定向礼包
toRecivedGifts() { async toRecivedGifts() {
const { giftsData } = this.data const { giftsData } = this.data
const mPattern = /^[1]([3-9])[0-9]{9}$/ const mPattern = /^[1]([3-9])[0-9]{9}$/
const { merchantId } = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
const userInfo = wx.p.storage.get('userInfo') const userInfo = wx.p.storage.get('userInfo')
const receiveWay = giftsData.receiveWay const receiveWay = giftsData.receiveWay
if (!this.userPhone&& receiveWay == 1) return wx.p.wxApi.showToast('请输入手机号码') if (!this.userPhone&& receiveWay == 1) return wx.p.wxApi.showToast('请输入手机号码')
if (receiveWay == 1&&this.userPhone.match(mPattern)) return wx.p.wxApi.showToast('请输入正确的手机号') if (receiveWay == 1&&!this.userPhone.match(mPattern)) return wx.p.wxApi.showToast('请输入正确的手机号')
if (!this.userPhone&& receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取') if (!this.userPhone&& receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取')
if (this.userPhone.length < 6 && receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取') if (this.userPhone.length < 6 && receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取')
let para = { let para = {
...@@ -68,6 +68,9 @@ Page({ ...@@ -68,6 +68,9 @@ Page({
if (this.staff) { if (this.staff) {
Object.assign(para, this.staff) Object.assign(para, this.staff)
} }
// 先判断登录
const loginStatus = await wx.p.router.intercept()
if (loginStatus) return
wx.p.wxApi.showLoading('领取中') wx.p.wxApi.showLoading('领取中')
wx.p.api.couponsApi.giftsRecive(para).then(res => { wx.p.api.couponsApi.giftsRecive(para).then(res => {
wx.hideLoading(); wx.hideLoading();
......
...@@ -60,64 +60,29 @@ Page({ ...@@ -60,64 +60,29 @@ Page({
} }
}) })
}, },
tofreeReceive() { async tofreeReceive() {
// if(this.op){ // 先判断登录
// wx.p.wxApi.showLoading() const loginStatus = await wx.p.router.intercept()
// this.freeLogin() if (loginStatus) return
// return
// } const userInfo = wx.p.storage.get('userInfo')
let { loginInfo } = this.data let { merchantId, phone } = userInfo
let { merchantId, phone } = loginInfo
if (!phone) { if (!phone) {
return return
} }
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
this.toPostFreeCard(merchantId, phone, loginInfo) this.toPostFreeCard(merchantId, phone, userInfo)
},
login() {
wx.p.api.userApi.login().then(res => {
if (res.data) {
console.log(res.data)
let { phone, sessionId } = res.data
wx.p.authStatus = phone ? false : true
if (res.data.isLogin) {
wx.p.cache.storageApi.setUserInfo(res.data)
wx.p.cache.storageApi.setSessionId(res.data.sessionId)
// this.handlerCustomerId()
}
this.setData({
loginInfo: res.data,
showAuthBtn: phone ? false : true,
sessionId
})
}
})
},
getPhoneNumber({ detail }) {
const { sessionId } = this.data
if (!sessionId) return
wx.p.api.userApi.authUserPhone(detail, sessionId).then(({ data, code, message }) => {
wx.hideLoading()
if (code == '0') {
wx.p.authStatus = false
wx.p.cache.storageApi.setUserInfo(data)
wx.p.cache.storageApi.setSessionId(data.sessionId)
let { merchantId, phone } = data
this.toPostFreeCard(merchantId, phone, data)
// this.handlerCustomerId()
} else wx.p.wxApi.showToast(message)
})
}, },
onLoad(options) { onLoad(options) {
let system = wx.getSystemInfoSync() let system = wx.getSystemInfoSync()
const {merchantId} = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
// if (options && options.scene) {
if (options && options.scene) { // this.getLiveActivityId(decodeURIComponent(options.scene))
this.getLiveActivityId(decodeURIComponent(options.scene)) // } else {
} else { // this.toGetFreeCardDay(merchantId)
// }
this.toGetFreeCardDay(merchantId) this.toGetFreeCardDay(merchantId)
this.login()
}
this.setData({ this.setData({
paddingH: system.windowHeight * 0.11, paddingH: system.windowHeight * 0.11,
textpadding: system.windowHeight * 0.31 textpadding: system.windowHeight * 0.31
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
</view> </view>
<view class="wrapper1"> <view class="wrapper1">
<!-- <view class="btnText" bind:tap="tofreeReceive">免费领取</view> --> <!-- <view class="btnText" bind:tap="tofreeReceive">免费领取</view> -->
<block wx:if="{{showAuthBtn}}"> <!-- <block wx:if="{{showAuthBtn}}">
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button> <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button>
</block> </block> -->
<glsx-image webp bind:tap="tofreeReceive" webp class="bottomIcon animaiton" mode="widthFix" src="equity/freecard_btn_icon_new.png" /> <glsx-image webp bind:tap="tofreeReceive" webp class="bottomIcon animaiton" mode="widthFix" src="equity/freecard_btn_icon_new.png" />
</view> </view>
<view style="height:22rpx"></view> <view style="height:22rpx"></view>
......
...@@ -58,8 +58,8 @@ Page({ ...@@ -58,8 +58,8 @@ Page({
}, },
// 去购买会员 // 去购买会员
async openMemberFn() { async openMemberFn() {
const loginStatu = await wx.p.router.intercept() const loginStatus = await wx.p.router.intercept()
if (loginStatu) return if (loginStatus) return
const { const {
memberInfo memberInfo
} = this.data } = this.data
......
...@@ -15,13 +15,14 @@ Page({ ...@@ -15,13 +15,14 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: async function (options) {
this.setNaviTitle() this.setNaviTitle()
// decodeUrlLink(options) // decodeUrlLink(options)
if (!options.id) { if (!options.id) {
return return
} }
this.getPackageDetail(options.id) this.packageId = options.id
// this.getPackageDetail(options.id)
// if (options.shareStaffUuid) { // if (options.shareStaffUuid) {
// this.data.shareStaff = { // this.data.shareStaff = {
// shareStaffUuid: options.shareStaffUuid, // shareStaffUuid: options.shareStaffUuid,
...@@ -38,6 +39,12 @@ Page({ ...@@ -38,6 +39,12 @@ Page({
// wx.p.cache.storageApi.reportData(options, true, false) // wx.p.cache.storageApi.reportData(options, true, false)
// } // }
}, },
async onShow() {
this.getPackageDetail(this.packageId)
this.setData({ showAuthBtn: false })
const loginStatus = await wx.p.router.intercept(false)
if (loginStatus) return this.setData({ showAuthBtn: true })
},
// 登录 // 登录
// login() { // login() {
// wx.p.api.userApi.login().then(res => { // wx.p.api.userApi.login().then(res => {
...@@ -58,31 +65,33 @@ Page({ ...@@ -58,31 +65,33 @@ Page({
// }, // },
// 设置标题名称 // 设置标题名称
setNaviTitle(tile) { setNaviTitle(tile) {
const {merchantName} = wx.p.storage.get('merchant_info') const { merchantName } = wx.p.storage.get('merchant_info')
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title:merchantName title: merchantName
})
},
getPhoneNumber({ detail }) {
const { sessionId } = this.data
if (!sessionId) return
wx.p.api.userApi.authUserPhone(detail, sessionId).then(({ data, code, message }) => {
wx.hideLoading()
if (code == '0') {
// wx.$Track.setTrack({}, 3)
wx.p.authStatus = false
wx.p.cache.storageApi.setUserInfo(data)
wx.p.cache.storageApi.setSessionId(data.sessionId)
this.toCreatePackageNum()
// this.handlerCustomerId()
} else wx.p.wxApi.showToast(message)
}) })
}, },
// getPhoneNumber({ detail }) {
// const { sessionId } = this.data
// if (!sessionId) return
// wx.p.api.userApi.authUserPhone(detail, sessionId).then(({ data, code, message }) => {
// wx.hideLoading()
// if (code == '0') {
// // wx.$Track.setTrack({}, 3)
// wx.p.authStatus = false
// wx.p.cache.storageApi.setUserInfo(data)
// wx.p.cache.storageApi.setSessionId(data.sessionId)
// this.toCreatePackageNum()
// // this.handlerCustomerId()
// } else wx.p.wxApi.showToast(message)
// })
// },
// 获取套餐详情 // 获取套餐详情
getPackageDetail(id) { getPackageDetail(id) {
const { merchantId } = wx.p.storage.get('merchant_info')
wx.p.api.couponsApi wx.p.api.couponsApi
.packageInfo({ .packageInfo({
id id,
merchantId
}) })
.then(res => { .then(res => {
if (res.couponsDetailList.length) { if (res.couponsDetailList.length) {
...@@ -99,7 +108,9 @@ Page({ ...@@ -99,7 +108,9 @@ Page({
}) })
}, },
// 获取门店单号 // 获取门店单号
toCreatePackageNum() { async toCreatePackageNum() {
const loginStatus = await wx.p.router.intercept()
if (loginStatus) return
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
wx.p.api.couponsApi.createOrderNum().then(res => { wx.p.api.couponsApi.createOrderNum().then(res => {
wx.hideLoading() wx.hideLoading()
...@@ -166,7 +177,7 @@ Page({ ...@@ -166,7 +177,7 @@ Page({
}, },
// 客户id // 客户id
handlerCustomerId() { handlerCustomerId() {
// let customerId = wx.$storage.get('srcm_shopmall_customer_id') // let customerId = wx.p.storage.get('srcm_shopmall_customer_id')
// if (customerId) wx.p.api.userApi.updataCustomerPhone() // if (customerId) wx.p.api.userApi.updataCustomerPhone()
}, },
// 价格格式化 // 价格格式化
......
...@@ -44,13 +44,13 @@ ...@@ -44,13 +44,13 @@
</view> </view>
</block> --> </block> -->
<view class="fixed-button-wrap"> <view class="fixed-button-wrap">
<block wx:if="{{showAuthBtn}}"> <!-- <block wx:if="{{showAuthBtn}}">
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button> <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button>
</block> </block> -->
<view wx:if="{{packageInfo.isPayFlag}}" class="button-item" bind:tap="toCreatePackageNum"> <view wx:if="{{packageInfo.isPayFlag || showAuthBtn}}" class="button-item" bind:tap="toCreatePackageNum">
限时特价仅需¥{{packageInfo.packagePrice }},点击购买 限时特价仅需¥{{packageInfo.packagePrice }},点击购买
</view> </view>
<view wx:if="{{!packageInfo.isPayFlag}}" class="button-item grey-btn">非指定用户不可购买</view> <view wx:if="{{!packageInfo.isPayFlag&&!showAuthBtn}}" class="button-item grey-btn">非指定用户不可购买</view>
</view> </view>
<view style="height: 164rpx"></view> <view style="height: 164rpx"></view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -25,7 +25,7 @@ Page({ ...@@ -25,7 +25,7 @@ Page({
let { discountType, useChannel, useMemberType } = item let { discountType, useChannel, useMemberType } = item
let detailInfo = { xx: 'xx' } let detailInfo = { xx: 'xx' }
if (discountType == 2 || discountType == 4) { if (discountType == 2 || discountType == 4) {
wx.$router.go('/packageMall/pages/coupon/coupon', { wx.p.router.go('/packageMall/pages/coupon/coupon', {
userCouponId: item.id, userCouponId: item.id,
useMemberType, useMemberType,
detailInfo detailInfo
...@@ -38,7 +38,7 @@ Page({ ...@@ -38,7 +38,7 @@ Page({
// wx.p.wxApi.showToast('代金券已使用') // wx.p.wxApi.showToast('代金券已使用')
// return // return
// } // }
wx.$router.go('/packageMine/pages/coupon/recommend/recommend', { wx.p.router.go('/packageMine/pages/coupon/recommend/recommend', {
couponInfo: item couponInfo: item
}) })
return return
......
...@@ -28,7 +28,7 @@ Page({ ...@@ -28,7 +28,7 @@ Page({
toHtmlOrder() { toHtmlOrder() {
const { orderCode, name } = this.data.order const { orderCode, name } = this.data.order
// const sessionId = wx.$util.getSessionId() // const sessionId = wx.$util.getSessionId()
// let merchantId = wx.$storage.get('srcm_shopmall_merchant_id') // let merchantId = wx.p.storage.get('srcm_shopmall_merchant_id')
// merchantId = merchantId || defaultMerchantId // merchantId = merchantId || defaultMerchantId
// let para = { // let para = {
// sessionId, // sessionId,
......
// pages/serviceCode/serviceCode.js
Page({
/**
* 页面的初始数据
*/
data: {
list: ['业务问题解答', '维修保养预约', '专属权益提醒', '海量优惠活动'],
},
refresh() {
if (this.isClick) return
this.isClick = true
let userInfo = wx.p.storage.get('userInfo')
if (userInfo) {
this.getServiceCode()
return
}
this.setData({
showLogin: true
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if (options) {
this.setData({
options
})
// wx.$Track.setTrack(
// {
// options,
// type: '进入员工活码生成页面'
// },
// 6
// )
}
this.getServiceCode()
},
longtap() {
let {
options
} = this.data
// wx.$Track.setTrack(
// {
// options,
// type: '长按识别员工活码'
// },
// 7
// )
},
async getServiceCode() {
const loginStatus = await wx.p.router.intercept()
if (loginStatus) return
wx.p.wxApi.showLoading('加载中...')
let {
options
} = this.data
let userInfo = wx.p.storage.get('userInfo')
wx.p.api.entmicroApi
.findByActivityIdAndPhone({
...options,
phone: userInfo.phone
})
.then(({
code,
data,
message
}) => {
wx.hideLoading()
if (code == '0') {
this.setData({
detail: data,
userInfo
})
} else {
wx.showModal({
title: '提示',
content: message,
confirmText: '重试',
cancelText: '知道了',
confirmColor: '#F13C3D'
}).then(res => {
if (res.confirm) {
this.getServiceCode()
}
})
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "联系我"
}
\ No newline at end of file \ No newline at end of file
.layout {
padding: 40rpx 40rpx 100rpx;
}
.layout .logo {
width: 190rpx;
height: 48rpx;
margin-bottom: 32rpx;
}
.layout .box {
height: 1068rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 32rpx;
}
.box .merchant {
font-size: 36rpx;
color: #333333;
font-weight: 600;
}
.box .merchant .icon {
width: 96rpx;
height: 96rpx;
border-radius: 100%;
overflow: hidden;
margin-right: 16rpx;
flex-shrink: 0;
}
.box .merchant .name {
animation: show-text 2s forwards;
}
@keyframes show-text {
0% {
width: 0;
}
100% {
width: calc(100% - 112rpx);
}
}
.box .qr-box {
height: 624rpx;
/* background: #f8f8f8; */
border-radius: 16rpx;
margin: 32rpx 0 48rpx;
flex-direction: column;
justify-content: center;
}
.box .qr-box .text {
font-size: 28rpx;
color: #727272;
width: 450rpx;
text-align: left;
}
.qr-box .icon {
width: 42rpx;
height: 48rpx;
margin: 32rpx 0 26rpx;
}
.qr-box .qr {
width: 310rpx;
height: 310rpx;
background-color: #fff;
position: relative;
}
.qr-box .qr .btn{
position: absolute;
width: 112rpx;
height: 112rpx;
}
.qr-box .refresh{
color: #5850FF;
font-size: 24rpx;
margin: 8rpx 0 12rpx;
}
.box .title {
font-size: 28rpx;
color: #c2c2c2;
text-align: center;
margin-bottom: 32rpx;
}
.box .list {
display: grid;
grid-template-columns: repeat(2, 1fr);
font-size: 28rpx;
color: #727272;
gap: 20rpx 0;
}
.box .list .item .icon {
width: 24rpx;
height: 24rpx;
margin-right: 8rpx;
}
.layout > .tips {
font-size: 24rpx;
color: #a2a2a2;
margin-top: 64rpx;
text-align: center;
}
<view class="layout">
<view class="box">
<view class="merchant flex">
<view class="icon">
<glsx-image webp src="pages/default-merchant.png"></glsx-image>
</view>
<block wx:if="{{detail.merchantName}}">
<view class="name text-hide">{{detail.merchantName}}</view>
</block>
</view>
<view class="qr-box flex">
<view class="text">“您好,我是您的专属服务顾问。长按识别二维码,添加我的企业微信”</view>
<view class="icon">
<glsx-image webp src="pages/qr-icon.png"></glsx-image>
</view>
<view class="qr">
<glsx-image webp src="{{detail.url || 'pages/qr.png'}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
<block wx:if="{{!userInfo || !detail.url}}">
<view class="btn box-center" bindtap="refresh">
<glsx-image webp src="pages/btn.png"></glsx-image>
</view>
</block>
</view>
<block wx:if="{{!userInfo}}">
<view class="refresh">
点击刷新,重新授权
</view>
</block>
</view>
<view class="title">— 添加我的企业微信可获得以下服务 —</view>
<view class="list">
<block wx:for="{{list}}" wx:key="index">
<view class="item text-center">
<view class="icon">
<glsx-image webp src="pages/active-icon.png"></glsx-image>
</view>
{{item}}
</view>
</block>
</view>
</view>
<view class="tips">—— 顾客至上 服务第一 ——</view>
</view>
\ No newline at end of file \ No newline at end of file
// pages/serviceCode/serviceCode.js
Page({
/**
* 页面的初始数据
*/
data: {
list: ['业务问题解答', '维修保养预约', '专属权益提醒', '海量优惠活动'],
},
refresh() {
if (this.isClick) return
this.isClick = true
let userInfo = wx.p.storage.get('userInfo')
if (userInfo) {
this.getServiceCode()
return
}
this.setData({
showLogin: true
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if (options) {
this.setData({
options
})
// wx.$Track.setTrack(
// {
// options,
// type: '进入员工活码生成页面'
// },
// 6
// )
}
this.getServiceCode()
},
longtap() {
let {
options
} = this.data
// wx.$Track.setTrack(
// {
// options,
// type: '长按识别员工活码'
// },
// 7
// )
},
async getServiceCode() {
const loginStatus = await wx.p.router.intercept()
if (loginStatus) return
wx.p.wxApi.showLoading('加载中...')
let {
options
} = this.data
let userInfo = wx.p.storage.get('userInfo')
wx.p.api.entmicroApi
.findByActivityIdAndPhone({
...options,
phone: userInfo.phone
})
.then(({
code,
data,
message
}) => {
wx.hideLoading()
if (code == '0') {
this.setData({
detail: data,
userInfo
})
} else {
wx.showModal({
title: '提示',
content: message,
confirmText: '重试',
cancelText: '知道了',
confirmColor: '#F13C3D'
}).then(res => {
if (res.confirm) {
this.getServiceCode()
}
})
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "联系我"
}
\ No newline at end of file \ No newline at end of file
/* pages/serviceCode/serviceCode.wxss */
.layout {
padding: 40rpx 40rpx 100rpx;
}
.layout .logo {
width: 190rpx;
height: 48rpx;
margin-bottom: 32rpx;
}
.layout .box {
height: 1068rpx;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 32rpx;
}
.box .merchant {
font-size: 36rpx;
color: #333333;
font-weight: 600;
}
.box .merchant .icon {
width: 96rpx;
height: 96rpx;
border-radius: 100%;
overflow: hidden;
margin-right: 16rpx;
flex-shrink: 0;
}
.box .merchant .name {
animation: show-text 2s forwards;
}
@keyframes show-text {
0% {
width: 0;
}
100% {
width: calc(100% - 112rpx);
}
}
.box .qr-box {
height: 624rpx;
/* background: #f8f8f8; */
border-radius: 16rpx;
margin: 32rpx 0 48rpx;
flex-direction: column;
justify-content: center;
}
.box .qr-box .text {
font-size: 28rpx;
color: #727272;
width: 450rpx;
text-align: left;
}
.qr-box .icon {
width: 42rpx;
height: 48rpx;
margin: 32rpx 0 26rpx;
}
.qr-box .qr {
width: 310rpx;
height: 310rpx;
background-color: #fff;
position: relative;
}
.qr-box .qr .btn{
position: absolute;
width: 112rpx;
height: 112rpx;
}
.qr-box .refresh{
color: #5850FF;
font-size: 24rpx;
margin: 8rpx 0 12rpx;
}
.box .title {
font-size: 28rpx;
color: #c2c2c2;
text-align: center;
margin-bottom: 32rpx;
}
.box .list {
display: grid;
grid-template-columns: repeat(2, 1fr);
font-size: 28rpx;
color: #727272;
gap: 20rpx 0;
}
.box .list .item .icon {
width: 24rpx;
height: 24rpx;
margin-right: 8rpx;
}
.layout > .tips {
font-size: 24rpx;
color: #a2a2a2;
margin-top: 64rpx;
text-align: center;
}
<view class="layout">
<view class="box">
<view class="merchant flex">
<view class="icon">
<glsx-image webp src="pages/default-merchant.png"></glsx-image>
</view>
<block wx:if="{{detail.merchantName}}">
<view class="name text-hide">{{detail.merchantName}}</view>
</block>
</view>
<view class="qr-box flex">
<view class="text">“您好,我是您的专属服务顾问。长按识别二维码,添加我的企业微信”</view>
<view class="icon">
<glsx-image webp src="pages/qr-icon.png"></glsx-image>
</view>
<view class="qr">
<glsx-image webp src="{{detail.url || 'pages/qr.png'}}" show-menu-by-longpress="{{detail.url}}" bindlongtap="longtap"></glsx-image>
<block wx:if="{{!userInfo || !detail.url}}">
<view class="btn box-center" bindtap="refresh">
<glsx-image webp src="pages/btn.png"></glsx-image>
</view>
</block>
</view>
<block wx:if="{{!userInfo}}">
<view class="refresh">
点击刷新,重新授权
</view>
</block>
</view>
<view class="title">— 添加我的企业微信可获得以下服务 —</view>
<view class="list">
<block wx:for="{{list}}" wx:key="index">
<view class="item text-center">
<view class="icon">
<glsx-image webp src="pages/active-icon.png"></glsx-image>
</view>
{{item}}
</view>
</block>
</view>
</view>
<view class="tips">—— 顾客至上 服务第一 ——</view>
</view>
\ No newline at end of file \ No newline at end of file
// packageMall/pages/coupon/coupon.js
import {
wxqrcode as QR
} from "~/lib/index";
Page({
/**
* 页面的初始数据
*/
data: {
shareStaff: {},
discountType: {
1: '满减券',
2: '折扣券',
3: '代金券',
4: '兑换券',
5: '购车代金券',
6: '商品折扣券',
7: '会员服务券'
},
useMemberType: 0,
list: [],
pageNum: 1
},
navbarReady(e) {
this.setData({
navBarHeight: e.detail.height
})
},
unique(arr) {
let res = new Set()
return arr.filter(item => {
let id = JSON.stringify(item)
if (res.has(id)) {
return false
} else {
res.add(id)
return true
}
})
},
getCouponGoodsPage(res) {
wx.p.wxApi.showLoading()
let total = 0
let {
list,
pageNum
} = this.data
wx.p.api.shopmallApi
.getCouponGoodsPage({
pageNum,
couponId: res.couponId || res.id,
merchantId: res.merchantId
})
.then(data => {
console.log(data)
let lists = this.unique([...list, ...data.list])
this.setData({
list: lists,
total
})
wx.hideLoading()
})
},
jumpCommodity(e) {
let {
item
} = e.currentTarget.dataset
// console.log('item',item);
let {
id
} = item
let isActivity = false
wx.p.router.go('/packageMall/pages/detail/detail', {
id,
isActivity,
notIntercept: true
})
},
jump(e) {
let {
item
} = e.currentTarget.dataset
wx.openLocation({
latitude: item.lat,
longitude: item.lng,
name: item.merchantName,
address: item.merchantAddress
})
},
jumpMap() {
let {
couponDetail
} = this.data
wx.openLocation({
latitude: couponDetail.lat,
longitude: couponDetail.lng,
name: couponDetail.merchantName,
address: couponDetail.merchantAddress
})
},
jump() {
console.log()
let {
length
} = getCurrentPages()
if (length == 1) wx.p.router.redirectTo('/packageMine/pages/coupon/index/index')
else wx.p.router.back()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
// 0616添加推荐人
if (options.shareStaffUuid) {
this.data.shareStaff = {
shareStaffUuid: options.shareStaffUuid,
shareStaffName: options.shareStaffName
}
options.item_type = 2
options.action_type = 1
options.item_id = options.couponId
this.data.recommandOptions = options
// wx.$util.reportData(options, false, false, true)
}
// console.log('options',options);
const {
userCouponId,
useMemberType,
detailInfo
} = options
console.log(userCouponId)
wx.p.wxApi.showLoading('加载中...')
this.setData({
useMemberType,
detailInfo
})
wx.p.api.couponsApi
.getWWCoupon({
userCouponId
})
.then(res => {
wx.hideLoading()
wx.nextTick(() => {
this.setCouponData(res)
})
let code = res.verificationCode.replace(/(.{4})/g, '$1 ')
this.setData({
qr: QR.createQrCodeImg(`t=2&c=${res.verificationCode}`),
verificationCode: code
})
})
if (options && options.couponId) {
console.log(options)
wx.p.wxApi.showLoading('加载中...')
this.checkCoupon(options)
if (options.activity_id) {
this.data.activiOptions = options
// wx.$util.reportData(options, true, false)
}
} else {
let {
isReceive
} = this.data
if (isReceive) this.confirm()
}
},
checkCoupon(options, callBack) {
wx.p.api.couponsApi.checkCoupon(options).then(couponInfo => {
console.log(couponInfo)
if (couponInfo) {
couponInfo.receiveEndTime = new Date(couponInfo.receiveEndTime).format('yyyy.MM.dd hh:mm:ss')
couponInfo.receiveStartTime = new Date(couponInfo.receiveStartTime).format('yyyy.MM.dd hh:mm:ss')
couponInfo.receiveTime = new Date(couponInfo.receiveTime).format('yyyy.MM.dd hh:mm:ss')
}
this.setData({
detailInfo: couponInfo
})
// wx.hideLoading()
wx.p.api.couponsApi.getCouponInfo(options).then(res => {
this.setCouponData(res)
this.setData({
...options
})
if (couponInfo) {
let code = couponInfo.verificationCode.replace(/(.{4})/g, '$1 ')
console.log(couponInfo.verificationCode)
this.setData({
useMemberType: couponInfo.useMemberType,
qr: QR.createQrCodeImg(`t=2&c=${couponInfo.verificationCode}`),
verificationCode: code
})
} else {
if (callBack) callBack(couponInfo)
}
})
})
wx.hideLoading()
},
setCouponData(res) {
if (res.receiveStartTime) res.receiveStartTime = new Date(res.receiveStartTime).format('yyyy.MM.dd hh:mm:ss')
if (res.receiveEndTime) res.receiveEndTime = new Date(res.receiveEndTime).format('yyyy.MM.dd hh:mm:ss')
if (res.receiveTime) res.receiveTime = new Date(res.receiveTime).format('yyyy.MM.dd hh:mm:ss')
if (res.list) {
res.list.map(val => (val.verificationTime = new Date(val.verificationTime).format('yyyy.MM.dd hh:mm:ss')))
}
if (res.effectiveStartTime) res.effectiveStartTime = res.effectiveStartTime.replace(/-/g, '.')
if (res.effectiveEndTime) res.effectiveEndTime = res.effectiveEndTime.replace(/-/g, '.')
if (res.full) res.full = res.full / 100
if (res.discountType == 3 && res.useChannel == 1) {
this.getCouponGoodsPage(res)
}
console.log(res, '///////////')
this.setData({
couponDetail: res
})
// setTimeout(() => {
// this.setData({
// flag: true
// })
// }, 500)
},
confirm() {
let {
couponId,
issueName,
issueDate,
userCouponId,
merchantId,
shareSource
} = this.data
if (!couponId && !userCouponId) return
wx.p.router.intercept().then(response => {
if (response) {
this.setData({
isReceive: true
})
return
}
let obj = {
...this.data.shareStaff
}
if (userCouponId) obj.userCouponId = userCouponId
if (couponId) obj.couponId = couponId
if (issueName) obj.issueName = issueName
if (issueDate) obj.issueDate = issueDate
if (merchantId) obj.merchantId = merchantId
if (shareSource) obj.shareSource = shareSource
this.checkCoupon(obj, () => {
wx.p.api.couponsApi.receiveCoupon(obj).then(({
code,
data,
message
}) => {
if (code == '0') {
wx.$Track.setTrack({
data,
type: '领取优惠券'
},
7
)
console.log(data)
if (data.discountType == 3) {
this.jump()
return
}
this.setData({
qr: QR.createQrCodeImg(`t=2&c=${data.verificationCode}`),
verificationCode: data.verificationCode
})
wx.p.wxApi.showToast('领取成功')
this.checkCoupon(obj)
if (this.data.activiOptions) {
// wx.$util.reportData(this.data.activiOptions, false, true)
}
if (this.data.recommandOptions) {
let options = this.data.recommandOptions
options.item_type = 2
options.action_type = 2
options.item_id = options.couponId
// wx.$util.reportData(options, false, false, true)
}
} else {
wx.p.wxApi.showToast(message)
}
})
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
// wx.$util.customerbehavior(2)
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
})
\ No newline at end of file \ No newline at end of file
{
"navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
/* packageMall/pages/coupon/coupon.wxss */
.navigation-bar {
position: fixed;
top: 0;
left: 0;
z-index: 2;
}
.navigation {
width: 100%;
height: 100%;
position: relative;
}
.navigation .back {
width: 64rpx;
height: 64rpx;
background: rgba(255, 255, 255, 0.5);
border-radius: var(--margin);
position: absolute;
left: 20rpx;
}
.navigation .back .icon {
width: 36rpx;
height: 36rpx;
}
.navigation .text {
max-width: 50%;
font-size: 32rpx;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 500;
box-sizing: border-box;
text-align: center;
letter-spacing: 1rpx;
}
.layout {
padding: 32rpx;
}
.layout .box {
background: #ffffff;
box-shadow: 0px 8rpx 16rpx 0px rgba(224, 224, 224, 0.5);
border-radius: 8rpx;
}
.layout .qr-box {
padding: 32rpx 32rpx 20rpx 32rpx;
margin-bottom: 20rpx;
position: relative;
}
.layout .qr-box .type {
position: absolute;
right: 0;
top: 0;
width: 140rpx;
height: 120rpx;
background-color: var(--btnColor);
}
.layout .qr-box .type text {
color: #fff;
display: block;
transform: rotate(45deg);
font-size: 24rpx;
}
.layout .qr-box .top {
position: relative;
z-index: 2;
/* border-bottom: 2rpx solid #eeeeee;
padding-bottom: 32rpx; */
box-sizing: border-box;
}
.layout .qr-box .top .title {
font-weight: 600;
font-size: 36rpx;
color: #3a3a3a;
padding-bottom: 20rpx;
}
.layout .qr-box .top .title .coupon {
background-color: var(--btnColor);
margin-left: 20rpx;
font-size: 24rpx;
border-radius: 8rpx;
padding: 4rpx 20rpx;
color: #fff;
flex-shrink: 0;
}
.layout .qr-box .top .title .disabled {
background-color: #999999;
}
.layout .qr-box .top .time {
font-size: 24rpx;
color: #bebebe;
}
.layout .qr-box .bottom {
/* min-height: 506rpx; */
flex-direction: column;
}
.layout .qr-box .bottom .title {
padding: 22rpx 0 24rpx;
font-size: 32rpx;
}
.layout .qr-box .bottom .qr {
width: 280rpx;
height: 280rpx;
margin-bottom: 44rpx;
position: relative;
}
.layout .qr-box .bottom .qr .qr-text {
font-size: 24rpx;
color: #bebebe;
width: 200%;
text-align: center;
}
.layout .qr-box .bottom .qr .mask {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 28rpx;
font-weight: 500;
line-height: 32rpx;
width: 181rpx;
height: 84rpx;
background: #000;
border-radius: 8rpx;
opacity: 0.7;
color: #FFFFFF;
}
.layout .qr-box .bottom .qr .mask.lose {
font-size: 28rpx;
color: #999999;
}
.layout .qr-box .btn-box {
height: 304rpx;
background: #FFF5F3;
border-radius: 8rpx;
padding: 32rpx;
}
.layout .qr-box .btn-box .text {
width: 100%;
text-align: center;
font-size: 20rpx;
color: #FC5B32;
line-height: 28px;
}
.layout .qr-box .btn {
/* animation: huxi 2.5s infinite; */
/* margin-bottom: 40rpx; */
font-size: 28rpx;
color: #FFFFFF;
margin-top: 38rpx;
width: 400rpx;
height: 68rpx;
background: #FC5B32;
box-shadow: 0px 4rpx 12rpx 4rpx rgba(252, 91, 50, 0.1);
border-radius: 34rpx;
}
/* @keyframes huxi {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
} */
.layout .qr-box .bottom .code {
font-size: 28rpx;
}
.layout .info {
padding: 32rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #666666;
}
.layout .info .title {
color: #333333;
}
.layout .info .title .sprite-icon {
margin-right: 16rpx;
}
.icon-explain {
width: 32rpx;
height: 32rpx;
}
.layout .info .item {
margin-top: 24rpx;
word-break: break-all;
position: relative;
}
.layout .info .item .num {
position: absolute;
left: 0;
top: 0;
}
.bottom-box {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
z-index: 2;
background-color: #fff;
padding-top: 10rpx;
}
.default-btn {
margin: 0 auto 10rpx;
}
.isFullSucreen {
padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
}
.isFullSucreen-btn {
padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
}
.box-X {
border-radius: 8rpx;
background-color: #fff;
padding: 24rpx 24rpx 40rpx;
}
.associationBox .title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.associationBox .goods {
margin-top: 24rpx;
display: flex;
align-items: center;
height: 160rpx;
}
.associationBox .goods .icon {
width: 160rpx;
height: 100%;
overflow: hidden;
border-radius: 8rpx;
margin-right: 20rpx;
}
.associationBox .goods .info {
width: calc(100% - 180rpx);
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.associationBox .goods .info .name {
font-size: 30rpx;
color: #333;
}
.associationBox .goods .info .price {
display: flex;
color: var(--btnColor);
font-weight: 500;
}
.associationBox .goods .info .price-X {
margin-top: -8rpx;
font-size: 36rpx;
font-family: DINAlternate-Bold, DINAlternate;
}
.top .title .title_text {
font-size: 36rpx;
font-weight: 600;
max-width: 510rpx;
}
.top .title .baseImage {
width: 140rpx;
height: 138rpx;
background-size: cover;
position: absolute;
right: -40rpx;
top: -41rpx;
}
.qrText {
color: #FC5B32;
}
.changeColor {
color: #333;
}
.lines {
height: 2rpx;
background: #EEE;
margin: 32rpx 0 0;
}
.title .discount {
font-size: 40rpx;
font-weight: 600;
}
.title .discount_text {
font-size: 24rpx;
padding-top: 8rpx;
}
.title .discount_text_x {
font-size: 32rpx;
padding-left: 10rpx;
}
.numberColor {
color: #B4B4B4;
}
.darkColor {
color: #666;
}
.box .process {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 4rpx;
}
.process .process_text {
margin-left: 4rpx;
font-size: 24rpx;
color: #333;
}
.process image {
width: 24rpx;
height: 24rpx;
}
.process .rightArrow {
padding: 0 40rpx;
}
.qr-box .storeTitle {
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 32rpx;
}
.qr-box .store-box {
background: #F9F9F9;
border: 2rpx solid #E9E9E9;
border-radius: 8rpx;
padding: 16rpx 32rpx;
margin-bottom: 18rpx;
}
.qr-box .store-box:last-child {
margin-bottom: 0;
}
.qr-box .storeName {
font-size: 28rpx;
color: #333;
margin-top: -4rpx;
}
.qr-box .businessTime {
font-size: 24rpx;
color: #999;
margin-top: 4rpx;
padding-bottom: 18rpx;
}
.qr-box .line {
height: 2rpx;
background: #EEE;
}
.qr-box .addressBox {
padding-top: 20rpx;
font-size: 24rpx;
color: #666;
display: flex;
align-items: center;
}
.qr-box .addressBox .navigation-X {
width: 32rpx;
height: 32rpx;
}
.qr-box .couponBox-X {
max-width: 610rpx;
line-height: 48rpx;
}
.qr-box .couponBox-X .titleDay {
font-size: 28rpx;
font-weight: 500;
color: #333;
}
.titleDay_text {
font-size: 24rpx;
color: #666;
}
.darkColor {
color: #666;
}
.an_title_text {
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 20rpx;
}
.note_line {
box-sizing: border-box;
line-height: 48rpx;
}
.note_line .line_text_name {
font-size: 28rpx;
color: #333;
}
.note_line .line {
height: 2rpx;
background: #EEE;
margin: 16rpx 0 14rpx;
}
.line_text {
font-size: 24rpx;
color: #666;
}
.btn-box .title_text_X {
font-size: 36rpx;
font-weight: 600;
max-width: 510rpx;
}
.btn-box .baseImage{
width: 138rpx;
height: 138rpx;
background-size: cover;
position: absolute;
right: -9rpx;
top: -13rpx;
}
.btn-box .times {
font-size: 24rpx;
color: #D83C14;
margin: 20rpx 0 32rpx;
}
.qr-box .good {
display: flex;
padding-bottom: 12rpx;
}
.qr-box .good .icons {
width: 144rpx;
height: 144rpx;
}
.qr-box .good .infos {
margin-left: 32rpx;
}
.qr-box .good .infos .names {
font-size: 28rpx;
color: #282829;
}
.qr-box .good .infos .prices {
display: flex;
margin-top: 50rpx;
font-size: 36rpx;
font-weight: 600;
color: #FC5B32;
}
.qr-box .good .icons image {
border-radius: 8rpx;
}
.qr-box .good .infos .prices .prices-X {
margin-left: 10rpx;
}
.qr-box .liness {
height: 2rpx;
background: #EFF0F2;
margin: 20rpx 0 32rpx 0;
}
.coupon-X {
height: 203rpx;
margin: 0 -8rpx;
position: relative;
}
.coupon-X .left_box {
width: 230rpx;
height: 150rpx;
color: #FFFFFF;
font-size: 56rpx;
font-weight: 600;
text-align: center;
line-height: 150rpx;
}
.coupon-X .left_box .price_icon {
font-size: 24rpx;
font-weight: 500;
}
.coupon-X .right_box {
padding: 28rpx 28rpx 0 28rpx;
width: 464rpx;
}
.top_box {
height: 120rpx;
border-bottom: 2rpx dashed rgba(216, 60, 20, 0.1);
}
.top_box .voucherName {
font-size: 28rpx;
font-weight: 600;
padding-bottom: 8rpx;
}
.h4_text {
font-size: 20rpx;
font-weight: 400;
}
.brightColor {
color: #FC5B32;
}
.describeColor {
color: #D83C14;
}
.timeColor {
color: #999;
}
.bottom_box {
height: 42rpx;
line-height: 42rpx;
}
.coupon-X .bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.coupon-X .infoss {
position: relative;
z-index: 2;
display: flex;
width: 100%;
height: 100%;
right: 0;
top: 0;
}
\ No newline at end of file \ No newline at end of file
<navigation-bar custom bindnavbarReady="navbarReady" page-title="卡券详情">
<view class="navigation">
<view class="back text-center y-center" bindtap="jump">
<glsx-image webp src="mall/back.png" class="icon"></glsx-image>
</view>
<view class="text box-center">
卡券详情
</view>
</view>
</navigation-bar>
<view class="layout isFullSucreen" wx:if="{{couponDetail.couponName}}" style="margin-top: {{navBarHeight}}px;">
<block wx:if="{{qr}}">
<block wx:if="{{couponDetail.discountType == 3 && couponDetail.useChannel == 1}}">
<view class="coupon-X">
<glsx-image webp src="mine/coupon/daijin.png" class="bg"></glsx-image>
<view class="infoss">
<view class="left_box">
<text class="price_icon">¥</text>
<text>{{couponDetail.denomination / 100}}</text>
</view>
<view class="right_box">
<view class="top_box">
<view class="voucherName brightColor">{{couponDetail.couponName}}</view>
<view wx:if="{{couponDetail.useBarriers==1}}" class="h4_text describeColor">无门槛</view>
<view wx:if="{{couponDetail.useBarriers==2}}" class="h4_text describeColor">满{{couponDetail.full}}元可用</view>
</view>
<view class="bottom_box">
<view wx:if="{{couponDetail.effectiveType==3}}" class="h4_text timeColor">永久有效</view>
<view wx:if="{{couponDetail.effectiveType==2}}" class="h4_text timeColor">{{detailInfo.receiveStartTime}}-{{detailInfo.receiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1}}" class="h4_text timeColor">有效期至{{detailInfo.receiveEndTime}}</view>
</view>
</view>
</view>
</view>
<view style="height: 18rpx;"></view>
</block>
<block wx:else>
<view class="qr-box box">
<view class="top">
<view class="title flex">
<view class="title_text {{detailInfo.useMemberType == 0 || couponDetail.useMemberType == 0 ? 'qrText':'changeColor'}}">{{detailInfo.couponName || couponDetail.couponName}}</view>
<glsx-image webp class="baseImage" src="mine/coupon/{{useMemberType == 0 || couponDetail.useMemberType == 0 ?'':'un-'}}{{couponDetail.discountType}}.png"></glsx-image>
</view>
<view class="time">
<view wx:if="{{couponDetail.effectiveType==3}}">永久有效</view>
<view wx:if="{{couponDetail.effectiveType==2}}">{{detailInfo.receiveStartTime || couponDetail.receiveStartTime}}-{{detailInfo.receiveEndTime || couponDetail.receiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1}}">有效期至{{detailInfo.receiveEndTime || couponDetail.receiveEndTime}}</view>
</view>
</view>
<view class="lines"></view>
<view class="bottom flex">
<view class="title {{detailInfo.useMemberType == 0 || couponDetail.useMemberType == 0 ? 'qrText':'changeColor'}}">
<view class="flex" wx:if="{{couponDetail.discountType == 2}}">
<view class="discount" wx:if="{{couponDetail.discountIntensity}}">{{couponDetail.discountIntensity / 100}}</view>
<view class="discount_text" wx:if="{{couponDetail.discountIntensity}}">折</view>
<view class="discount_text_x" wx:if="{{couponDetail.useBarriers == 1}}">无门槛</view>
<view class="discount_text_x" wx:if="{{couponDetail.useBarriers == 2 && (detailInfo.full || couponDetail.full)}}">满{{detailInfo.full || couponDetail.full}}元可用</view>
</view>
</view>
<view class="qr">
<glsx-image webp src="{{qr}}"></glsx-image>
<block wx:if="{{useMemberType != 0}}">
<view class="mask text-center">
{{useMemberType==1?'已使用':'已失效'}}
</view>
</block>
</view>
<view class="code {{detailInfo.useMemberType == 0 || couponDetail.useMemberType == 0 ? 'darkColor':'numberColor'}}">{{verificationCode}}</view>
</view>
<view class="lines" style="margin: 20rpx 0 18rpx;"></view>
<view class="process">
<glsx-image webp src="mine/{{useMemberType == 0?'arrows':'unArrow'}}.png"></glsx-image>
<text class="process_text">导航到店</text>
<glsx-image webp class="rightArrow" src="mine/rightArrow.png" />
<glsx-image webp src="mine/{{useMemberType == 0?'car':'unCar'}}.png"></glsx-image>
<text class="process_text">开始服务</text>
<glsx-image webp class="rightArrow" src="mine/rightArrow.png" />
<glsx-image webp src="mine/{{useMemberType == 0?'ticket':'unTicket'}}.png"></glsx-image>
<text class="process_text">出示核销码</text>
</view>
</view>
</block>
</block>
<block wx:else>
<view class="qr-box box" style="padding: 0;">
<view class="btn-box">
<view class="flex">
<view class="title_text_X qrText">{{couponDetail.couponName}}</view>
<glsx-image webp class="baseImage" src="mine/coupon/{{couponDetail.discountType}}.png"></glsx-image>
</view>
<view class="times">
<view wx:if="{{couponDetail.effectiveType==3}}">永久有效</view>
<view wx:if="{{couponDetail.effectiveType==2}}">{{couponDetail.effectiveStartTime}}-{{couponDetail.effectiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1 && detailInfo}}">有效期至{{couponDetail.receiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1 && !detailInfo}}">领取后{{couponDetail.effectiveDays}}天内有效</view>
</view>
<view class="btn default-btn" bindtap="confirm">领取</view>
<view class="text">请点击领取按钮获取核销码</view>
</view>
</view>
</block>
<view class="qr-box box" style="padding-bottom: 32rpx;">
<view class="couponBox-X" style="padding-bottom: 16rpx;">
<view class="titleDay">有效日期:</view>
<view wx:if="{{couponDetail.effectiveType==3}}" class="titleDay_text darkColor">永久有效</view>
<view wx:if="{{couponDetail.effectiveType==2}}" class="titleDay_text darkColor">{{couponDetail.effectiveStartTime || couponDetail.receiveStartTime}}-{{couponDetail.effectiveEndTime || couponDetail.receiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1 && detailInfo}}" class="titleDay_text darkColor">有效期至{{detailInfo.receiveEndTime || couponDetail.receiveEndTime}}</view>
<view wx:if="{{couponDetail.effectiveType==1 && !detailInfo}}" class="titleDay_text darkColor">领取后{{couponDetail.effectiveDays}}天内有效</view>
</view>
<view class="couponBox-X" style="padding-bottom: 16rpx;" wx:if="{{detailInfo}}">
<view class="titleDay">获取日期:</view>
<view class="titleDay_text darkColor">{{detailInfo.receiveTime || couponDetail.receiveTime}}</view>
</view>
<view class="couponBox-X" style="line-height: 44rpx;">
<view class="titleDay">使用说明:</view>
<view class="titleDay_text darkColor" style="white-space:pre-wrap">{{couponDetail.useDescription || ''}}</view>
</view>
</view>
<view class="qr-box box" wx:if="{{couponDetail.list.length}}">
<view class="an_title_text">使用记录</view>
<view wx:for="{{couponDetail.list}}" wx:key="index" class="note_line">
<view class="line_text_name">{{item.verificationMerchantName}}</view>
<view class="line_text">{{item.verificationTime}}</view>
<view class="line" wx:if="{{index < couponDetail.list.length - 1}}"></view>
</view>
</view>
<view class="qr-box box" wx:if="{{list.length}}">
<view class="storeTitle">适用商品</view>
<block wx:for="{{list}}" wx:key="index">
<view class="good" catchtap="jumpCommodity" data-item="{{item}}">
<view class="icons">
<glsx-image webp src="{{item.goodsImage}}"></glsx-image>
</view>
<view class="infos">
<view class="names">{{item.goodsName}}</view>
<view class="prices">
¥<view class="prices-X">{{item.retailPrice / 100}}</view>
</view>
</view>
</view>
<view class="liness" wx:if="{{index < list.length - 1}}"></view>
</block>
</view>
<view class="qr-box box" style="margin-bottom: 32rpx;" wx:if="{{couponDetail.suitMerchantLists && couponDetail.suitMerchantLists.length}}">
<view class="storeTitle">适用门店</view>
<view wx:for="{{couponDetail.suitMerchantLists}}" wx:key="index" class="store-box">
<view class="storeName">{{item.merchantName}}</view>
<view wx:if="{{item.bussinessBegintime}}" class="businessTime">营业时间:{{item.bussinessBegintime}}-{{item.bussinessEndtime}}</view>
<view wx:else class="businessTime">营业时间:无</view>
<view class="line" wx:if="{{item.merchantAddress}}"></view>
<view class="addressBox" wx:if="{{item.merchantAddress}}">
<view style="width: 552rpx;padding-right: 24rpx;">{{item.merchantAddress}}</view>
<view class="navigation" catchtap="jump" data-item="{{item}}">
<glsx-image webp src="mine/icon-go.png"></glsx-image>
</view>
</view>
</view>
</view>
<view wx:else class="qr-box box" style="margin-bottom: 32rpx;">
<view class="storeTitle">适用门店</view>
<view class="storeName">{{couponDetail.merchantName}}</view>
<view wx:if="{{couponDetail.bussinessBegintime}}" class="businessTime">营业时间:{{couponDetail.bussinessBegintime}}-{{couponDetail.bussinessEndtime}}</view>
<view wx:else class="businessTime">营业时间:无</view>
<view class="line" wx:if="{{couponDetail.merchantAddress}}"></view>
<view class="addressBox" wx:if="{{couponDetail.merchantAddress}}">
<view style="width: 552rpx;padding-right: 24rpx;">{{couponDetail.merchantAddress}}</view>
<view class="navigation-X" catchtap="jumpMap">
<glsx-image webp src="mine/{{useMemberType == 0?'navigation':'unNavigation'}}.png"></glsx-image>
</view>
</view>
</view>
<view class="associationBox" wx:if="{{couponDetail.relatedGoodsId}}">
<view class="box-X">
<view class="title">关联商品</view>
<view class="goods">
<view class="icon">
<glsx-image webp src="{{couponDetail.relatedGoodsImage || ''}}"></glsx-image>
</view>
<view class="info">
<view>
<view class="name">{{couponDetail.relatedGoodsName || ''}}</view>
</view>
<view class="price">
¥<view class="price-X">{{couponDetail.relatedGoodsPrice || ''}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -235,8 +235,8 @@ Page({ ...@@ -235,8 +235,8 @@ Page({
}) })
}, },
async join(e) { async join(e) {
const loginStatu = await wx.p.router.intercept() const loginStatus = await wx.p.router.intercept()
if(loginStatu) return if(loginStatus) return
let params = e && e.detail let params = e && e.detail
if (!params) { if (!params) {
params = { params = {
......
...@@ -387,7 +387,7 @@ Page({ ...@@ -387,7 +387,7 @@ Page({
tem.action_type = 3 tem.action_type = 3
tem.item_id = tem.id tem.item_id = tem.id
tem.order_id = orderCode tem.order_id = orderCode
wx.$util.reportData(tem, false, false, true) // wx.$util.reportData(tem, false, false, true)
wx.p.storage.rm('shareStaffTracker') wx.p.storage.rm('shareStaffTracker')
} }
wx.p.storage.rm('shareStaff') wx.p.storage.rm('shareStaff')
......
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"usingComponents": { "usingComponents": {
"search-box": "/pages/tab/mall/components/SearchBox/SearchBox", "search-box": "/pages/tab/mall/components/SearchBox/SearchBox",
"goods": "/pages/tab/mall/components/Goods/Goods" "goods": "/pages/tab/mall/components/Goods/Goods"
} },
"navigationBarTitleText": "商城"
} }
\ No newline at end of file \ No newline at end of file
...@@ -24,7 +24,7 @@ Page({ ...@@ -24,7 +24,7 @@ Page({
let para = { let para = {
userCouponId: id userCouponId: id
} }
wx.$api.showLoading('加载中...') wx.p.wxApi.showLoading('加载中...')
wx.p.api.couponsApi.couponsDetail(para).then(res => { wx.p.api.couponsApi.couponsDetail(para).then(res => {
wx.hideLoading() wx.hideLoading()
let qrcodeURL = QR.createQrCodeImg(`t=2&c=${res.verificationCode}`) let qrcodeURL = QR.createQrCodeImg(`t=2&c=${res.verificationCode}`)
...@@ -73,7 +73,7 @@ Page({ ...@@ -73,7 +73,7 @@ Page({
}) })
}, },
onLoad(options) { onLoad(options) {
let couponInfo = options.item let couponInfo = JSON.parse(options.item)
this.getDetailData(couponInfo.id) this.getDetailData(couponInfo.id)
this.setData({ this.setData({
couponInfo couponInfo
......
...@@ -47,7 +47,7 @@ Page({ ...@@ -47,7 +47,7 @@ Page({
}, },
fail(res) { fail(res) {
if (res.errMsg == 'requestPayment:fail cancel') { if (res.errMsg == 'requestPayment:fail cancel') {
wx.$api.showToast('取消支付') wx.p.wxApi.showToast('取消支付')
} }
} }
}) })
......
...@@ -22,7 +22,7 @@ Page({ ...@@ -22,7 +22,7 @@ Page({
pageNum: 1, pageNum: 1,
tab: ['全部', '待付款', '待发货', '待收货', '退款/售后'], tab: ['全部', '待付款', '待发货', '待收货', '退款/售后'],
list: [], list: [],
hasUserInfo: false, hasUserInfo: true,
}, },
navbarReady(e) { navbarReady(e) {
wx.p.wxApi.getViewInfo('.tab', (res) => { wx.p.wxApi.getViewInfo('.tab', (res) => {
...@@ -163,7 +163,6 @@ Page({ ...@@ -163,7 +163,6 @@ Page({
onLoad: function (options) { onLoad: function (options) {
console.log(options,'=========') console.log(options,'=========')
this.setData({ this.setData({
hasUserInfo: true,
tabIndex: options.tabIndex, tabIndex: options.tabIndex,
orderStatusPart: orderStatusPartEnum[options.tabIndex], orderStatusPart: orderStatusPartEnum[options.tabIndex],
}) })
......
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
x{{item.orderSource == 5 ? 1: i.goodsNumber}} x{{item.orderSource == 5 ? 1: i.goodsNumber}}
</view> </view>
</view> </view>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length > 1}}"> <view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}"> <block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}"> <block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view> <view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
</view> </view>
</block> </block>
</block> </block>
<!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length == 1}}"> <view wx:if="{{item.orderGoods.length == 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}"> <block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}"> <block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view> <view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
...@@ -241,9 +241,12 @@ ...@@ -241,9 +241,12 @@
<view class="bottom"> <view class="bottom">
共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text> 共{{item.goodsNumber}}件商品,实付款<text class="price">¥{{item.payPrice}}</text>
</view> </view>
<!-- !hasUserInfo -->
<block wx:if="{{!hasUserInfo}}">
<view class="btn-box"> <view class="btn-box">
<view class="btn confirm" catchtap="boutiqueJump" data-order-code="{{item.orderCode}}">评价</view> <view class="btn confirm" catchtap="boutiqueJump" data-order-code="{{item.orderCode}}">评价</view>
</view> </view>
</block>
</view> </view>
</block> </block>
<block wx:if="{{item.orderClassify == 5}}"> <block wx:if="{{item.orderClassify == 5}}">
......
...@@ -22,8 +22,9 @@ Page({ ...@@ -22,8 +22,9 @@ Page({
if (options.url) { if (options.url) {
return this.login(options) return this.login(options)
} }
this.login()
}, },
async login(options) { async login(options = {}) {
if (options.merchantId) wx.$merchant_id = options.merchantId if (options.merchantId) wx.$merchant_id = options.merchantId
try { try {
const { const {
......
...@@ -19,8 +19,10 @@ Page({ ...@@ -19,8 +19,10 @@ Page({
}, },
search(e) { search(e) {
let value = e.detail let value = e.detail
let { goodsList } = this.data let {
wx.$router.go('/packageMall/pages/search/search', { goodsList
} = this.data
wx.p.router.go('/packageMall/pages/search/search', {
value, value,
goodsList goodsList
}) })
...@@ -29,7 +31,68 @@ Page({ ...@@ -29,7 +31,68 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getZoneInfo() // this.getZoneInfo()
this.getClassifyList()
},
getClassifyList(tagIndex) {
wx.p.wxApi.showLoading('加载中...')
wx.p.api.homeApi.getClassifyList().then(data => {
let tabList = [{
zoneName: '全部',
id: '',
zoneImg: `mall/default-banner.png`
}]
let classifyList = []
data.map(e => {
e.goodsList &&
e.goodsList.length &&
e.goodsList.map(i => {
i &&
i.length &&
i.map(c => {
c.goods.goodsStatistics = c.goodsStatistics
c.goods.id = c.goodsId
})
})
if (e.goodsList && e.goodsList.length) {
e.count = 0
// 处理数据
let [arr, obj] = [
[], {}
]
e.goodsList.forEach((val, id) => {
if (val instanceof Array) {
val.forEach((item, index) => {
arr.push(item.goods)
})
obj = {
goodsData: arr,
id: e.id
}
} else {
val.classifyName = e.classifyName
arr.push(val)
obj = {
activityData: arr,
id: e.id
}
}
})
classifyList.push(obj)
tabList.push({
zoneName: e.classifyName,
id: e.id
})
}
})
this.setData({
classifyList,
tabList,
flag: true
})
if (tagIndex) this.changeData(tagIndex)
this.getGoodsList()
})
}, },
getZoneInfo() { getZoneInfo() {
wx.p.api.discoveryApi.getZoneInfo(2).then(data => { wx.p.api.discoveryApi.getZoneInfo(2).then(data => {
...@@ -47,10 +110,17 @@ Page({ ...@@ -47,10 +110,17 @@ Page({
}) })
}, },
getGoodsList(zoneId) { getGoodsList(zoneId) {
wx.hideLoading()
const {
tagIndex
} = this.data
if (tagIndex != 0) return
wx.p.wxApi.showLoading('加载中...') wx.p.wxApi.showLoading('加载中...')
let params = {} let params = {}
if (zoneId) params.zoneId = zoneId if (zoneId) params.zoneId = zoneId
wx.p.api.shopmallApi.getGoodsList(params).then(({ list }) => { wx.p.api.shopmallApi.getGoodsList(params).then(({
list
}) => {
this.setData({ this.setData({
goodsList: list, goodsList: list,
goodsFlag: true goodsFlag: true
...@@ -69,31 +139,54 @@ Page({ ...@@ -69,31 +139,54 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
let { tabList, tagIndex } = this.data let {
tabList,
tagIndex
} = this.data
this.setData({ this.setData({
goodsList: [], goodsList: [],
goodsFlag: false goodsFlag: false
}) })
if (tabList.length == 0) return if (tabList.length == 0) return
this.getGoodsList(tabList[tagIndex].id) this.getClassifyList(tagIndex)
},
changeData(index) {
const {
classifyList,
tabList
} = this.data
if (tabList[index].id) {
classifyList.map(i => {
if (i.id == tabList[index].id) this.setData({
goodsList: i.goodsData,
goodsFlag: true
})
})
} else this.getGoodsList()
}, },
goShoppingCart() { goShoppingCart() {
wx.p.router.go('/packageMall/pages/shoppingCart/shoppingCart') wx.p.router.go('/packageMall/pages/shoppingCart/shoppingCart')
}, },
tabclick(e) { tabclick(e) {
let { index } = e.detail let {
let { tagIndex, tabList } = this.data index
} = e.detail
let {
tagIndex
} = this.data
if (index == tagIndex) return if (index == tagIndex) return
this.setData({ this.setData({
tagIndex: index, tagIndex: index,
goodsList: [], goodsList: [],
goodsFlag: false goodsFlag: false
}) })
this.getGoodsList(tabList[index].id) this.changeData(index)
}, },
search(e) { search(e) {
let value = e.detail let value = e.detail
let { goodsList } = this.data let {
goodsList
} = this.data
wx.p.router.go('/packageMall/pages/search/search', { wx.p.router.go('/packageMall/pages/search/search', {
value, value,
goodsList goodsList
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
.tab-view-box .title .icon { .tab-view-box .title .icon {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
flex-shrink: 0;
} }
.tab-view-box .goods-box { .tab-view-box .goods-box {
......
...@@ -16,6 +16,16 @@ Page({ ...@@ -16,6 +16,16 @@ Page({
url: '/packageMine/pages/address/index/index' url: '/packageMine/pages/address/index/index'
}, },
], ],
vipType:{
1: 'gold_vip_bg',
2: 'silver_vip_bg',
3: 'pt_vip_bg'
},
titleClass:{
1:'gold_title',
2:'sliver_title',
3:'card_title',
},
}, },
/** /**
...@@ -61,9 +71,6 @@ Page({ ...@@ -61,9 +71,6 @@ Page({
} else { } else {
wx.p.api.equityApi.checkOpenMember().then(res => { wx.p.api.equityApi.checkOpenMember().then(res => {
console.log(res,'----------') console.log(res,'----------')
res.data = {
}
let flag = false, let flag = false,
identity = 0 // 普通会员3 银卡2 金卡1 非会员 0 identity = 0 // 普通会员3 银卡2 金卡1 非会员 0
if (res.data && res.data.validitDate) { if (res.data && res.data.validitDate) {
......
...@@ -8,6 +8,50 @@ page { ...@@ -8,6 +8,50 @@ page {
position: relative; position: relative;
} }
.vip-box {
height: 360rpx;
margin: 32rpx 20rpx 0;
position: relative;
&-bg {
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
left: 0;
top: 0;
}
.vip-name {
padding: 24rpx;
font-weight: 500;
font-size: 32rpx;
}
.gold_title {
background: linear-gradient(125deg, #645E54 100%, #29271E 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
font-weight: 600;
font-size: 32rpx;
}
.card_title {
background: linear-gradient(125deg, #F0EED7 100%, #F2EAAB 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
}
.sliver_title {
background: linear-gradient(125deg, #C99113 100%, #A9790B 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
}
}
.navigation-bar { .navigation-bar {
position: fixed; position: fixed;
top: 0; top: 0;
...@@ -67,6 +111,7 @@ page { ...@@ -67,6 +111,7 @@ page {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 32rpx; font-size: 32rpx;
max-width: 80%;
} }
.user-info .setUp { .user-info .setUp {
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
</view> </view>
<!-- 会员卡 --> <!-- 会员卡 -->
<block wx:if="{{memberInfo}}"> <block wx:if="{{memberInfo}}">
<block wx:if="{{!isMember}}">
<view class="member-box"> <view class="member-box">
<view class="left-box"> <view class="left-box">
<view class="member-icon"> <view class="member-icon">
...@@ -51,19 +52,24 @@ ...@@ -51,19 +52,24 @@
<view class="describe" wx:else>{{vipInfo.time}} 到期</view> <view class="describe" wx:else>{{vipInfo.time}} 到期</view>
</view> </view>
</view> </view>
<block wx:if="{{!isMember}}">
<view class="member-button" bindtap="toBuyMember">开通会员</view> <view class="member-button" bindtap="toBuyMember">开通会员</view>
<view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">特惠¥{{memberInfo.goodPrice}}起</view> <view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">特惠¥{{memberInfo.goodPrice}}起</view>
</view>
</block> </block>
<block wx:else> <block wx:else>
<view class="goUseBox" bindtap="goInterests"> <view class="vip-box" bindtap="goInterests">
<view class="vip-box-bg">
<glsx-image src="equity/version/1_0_0/{{vipType[identity]}}.png"></glsx-image>
</view>
<view class="vip-name {{titleClass[identity]}}">{{memberInfo.equityName}}</view>
</view>
<!-- <view class="goUseBox" bindtap="goInterests">
去使用 去使用
<view class="goUseBox-icon"> <view class="goUseBox-icon">
<glsx-image webp src="mine/goUse.png"></glsx-image> <glsx-image webp src="mine/goUse.png"></glsx-image>
</view> </view>
</view> </view> -->
</block> </block>
</view>
</block> </block>
<!-- 我的券包 --> <!-- 我的券包 -->
<view class="coupon-box box flex" bindtap="jump" data-url="/packageMine/pages/coupon/index/index"> <view class="coupon-box box flex" bindtap="jump" data-url="/packageMine/pages/coupon/index/index">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!