Commit 6e8d6265 by 张立顺

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

2 parents 782b03f0 304fb7a4
Showing 49 changed files with 597 additions and 158 deletions
...@@ -204,7 +204,7 @@ module.exports = { ...@@ -204,7 +204,7 @@ module.exports = {
return api.post({ return api.post({
method: "scrm.api.shopmall.goods.get.shared", method: "scrm.api.shopmall.goods.get.shared",
id, id,
}); },true);
}, },
removeBuuCar(data) { removeBuuCar(data) {
return api.post({ return api.post({
......
...@@ -83,7 +83,10 @@ class UsersApi { ...@@ -83,7 +83,10 @@ class UsersApi {
/**更新客户手机号 */ /**更新客户手机号 */
updataCustomerPhone() { updataCustomerPhone() {
let customerId = wx.p.storage.get('srcm_shopmall_customer_id'), let customerId = wx.p.storage.get('srcm_shopmall_customer_id'),
merchantId = wx.p.storage.get('srcm_shopmall_merchant_id') // merchantId = wx.p.storage.get('srcm_shopmall_merchant_id')
{
merchantId
} = wx.p.storage.get('merchant_info')
api api
.post({ .post({
method: 'scrm.api.sso.weapp.mark.phone', method: 'scrm.api.sso.weapp.mark.phone',
......
...@@ -121,11 +121,11 @@ ...@@ -121,11 +121,11 @@
"provider": "wxd5b8312c3a09901a" "provider": "wxd5b8312c3a09901a"
}, },
"express-plugin": { "express-plugin": {
"version": "1.2.0", "version": "1.2.1",
"provider": "wx1b1f66316b427c74" "provider": "wx1b1f66316b427c74"
}, },
"collectionPlugin": { "collectionPlugin": {
"version": "1.2.0", "version": "1.2.1",
"provider": "wx5e90fdd843841356" "provider": "wx5e90fdd843841356"
} }
} }
...@@ -145,7 +145,9 @@ ...@@ -145,7 +145,9 @@
"pages/kaqDetail/kaqDetail", "pages/kaqDetail/kaqDetail",
"pages/chargeWait/chargeWait", "pages/chargeWait/chargeWait",
"pages/open/open", "pages/open/open",
"pages/agreement/index" "pages/agreement/index",
"pages/saleApply/saleApply",
"pages/saleDetail/saleDetail"
] ]
}, },
{ {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
position: relative; position: relative;
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
z-index: 0;
} }
.title::after { .title::after {
content: ""; content: "";
...@@ -15,5 +16,6 @@ ...@@ -15,5 +16,6 @@
background-image: linear-gradient(90deg, #61a5ff00 0%, #2699fd 100%); background-image: linear-gradient(90deg, #61a5ff00 0%, #2699fd 100%);
border-radius: 6rpx; border-radius: 6rpx;
position: absolute; position: absolute;
bottom: -4rpx; bottom: 4rpx;
z-index: -1;
} }
page { page {
background: white; background: white !important;
} }
.container { .container {
......
...@@ -43,7 +43,9 @@ Component({ ...@@ -43,7 +43,9 @@ Component({
*/ */
methods: { methods: {
getCoupon(e) { getCoupon(e) {
let merchantId = wx.p.storage.get('srcm_shopmall_merchant_id') const {
merchantId
} = wx.p.storage.get('merchant_info')
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
wx.p.wxApi.showLoading('领取中...') wx.p.wxApi.showLoading('领取中...')
wx.p.api.shopmallApi wx.p.api.shopmallApi
......
...@@ -56,8 +56,12 @@ Page({ ...@@ -56,8 +56,12 @@ Page({
el.isPay = false el.isPay = false
ids.push(el.goodsId) ids.push(el.goodsId)
if (el.expressFee && el.expressFee > expressFee) { if (el.expressFee && el.expressFee > expressFee) {
if(obj.pageForm!='goodsDetail'){
expressFee = NP.divide(el.expressFee,100)
}else{
expressFee = el.expressFee expressFee = el.expressFee
} }
}
goodsNumber = goodsNumber + el.goodsNumber goodsNumber = goodsNumber + el.goodsNumber
}) })
this.ids = ids this.ids = ids
......
...@@ -116,7 +116,7 @@ Page({ ...@@ -116,7 +116,7 @@ Page({
} }
if (code == 0) { if (code == 0) {
// 获取会员卡信息 // 获取会员卡信息
wx.p.api.equityApi.checkOpenMember().then(res => { wx.p.api.equityApi.checkOpenMember({ isTrialCardFlag: 1 }).then(res => {
if (res.code == 0 && res.data) { if (res.code == 0 && res.data) {
this.receiveRed(res.data.equityFreeCardId) this.receiveRed(res.data.equityFreeCardId)
} }
...@@ -124,27 +124,34 @@ Page({ ...@@ -124,27 +124,34 @@ Page({
} }
}) })
}, },
jumpMine() {
wx.p.router.switchTab('/pages/tab/mine/index', {
isMemberShow: true,
})
},
receiveRed(equityFreeCardId) { receiveRed(equityFreeCardId) {
let { isOpenMember } = this.data let { isOpenMember } = this.data
let params = { let params = {
equityFreeCardId equityFreeCardId
} }
wx.p.api.equityApi.checkReceiveRed(params).then(res => { wx.p.api.equityApi.checkReceiveRed(params).then(res => {
console.log(res) console.log(res, 'checkReceiveRed---')
let { code, message, data } = res let { code, message, data } = res
if (code != 0) { if (code != 0) {
this.showTips(message || '服务不可用') this.showTips(message || '服务不可用')
return return
} }
if (!data.isActivityRedEnvelopeFlag) {
this.jumpMine()
} else {
if (!data.isReceiveFlag) { if (!data.isReceiveFlag) {
wx.p.router.go('/packageEquity/pages/receiveRed/receiveRed', { wx.p.router.go('/packageEquity/pages/receiveRed/receiveRed', {
isOpenMember: isOpenMember, isOpenMember: isOpenMember,
activityRedEnvelopeLink: data.activityRedEnvelopeLink activityRedEnvelopeLink: data.activityRedEnvelopeLink
}) })
} else if (isOpenMember) { } else {
wx.p.router.switchTab('/pages/tab/mine/index', { this.jumpMine()
isMemberShow: true, }
});
} }
}) })
}, },
...@@ -153,7 +160,7 @@ Page({ ...@@ -153,7 +160,7 @@ Page({
// 先判断登录 // 先判断登录
const authStatus = await wx.p.router.intercept(false) const authStatus = await wx.p.router.intercept(false)
if (authStatus) return if (authStatus) return
wx.p.api.equityApi.checkOpenMember().then(res => { wx.p.api.equityApi.checkOpenMember({ isTrialCardFlag: 1 }).then(res => {
let flag = false let flag = false
if (res.code == 0 && res.data) { if (res.code == 0 && res.data) {
flag = true flag = true
...@@ -168,32 +175,26 @@ Page({ ...@@ -168,32 +175,26 @@ Page({
}) })
}, },
// sceneGetId(id) { sceneGetId(id) {
// wx.p.api.equityApi.sceneGetId({ id }).then(res => { wx.p.api.equityApi.sceneGetId({ id }).then(res => {
// let { code, data, message } = res let { code, data, message } = res
// if (code == 0) { if (code == 0) {
// this.setData({ this.setData({
// merchantId: data?.scene.split('=')[1] merchantId: data?.scene.split('=')[1]
// }) })
// } else { } else {
// this.showTips(message) this.showTips(message)
// } }
// }) })
// }, },
async onLoad(options) { async onLoad(options) {
let system = wx.getSystemInfoSync() let system = wx.getSystemInfoSync()
const authStatus = await wx.p.router.intercept(false) const authStatus = await wx.p.router.intercept(false)
const merchantId = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
this.setData({ this.setData({
merchantId merchantId
}) })
// let appEnter = wx.getEnterOptionsSync()
// console.log(appEnter, 'appEnter--')
// if (appEnter?.query?.scene) {
// console.log(appEnter?.query?.scene, 'appEnter?.query?.scene---')
// this.sceneGetId(decodeURIComponent(appEnter.query.scene).split('=')[1])
// }
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
const { const {
data, data,
......
page { page {
background: white; background: white !important;
} }
.map-box { .map-box {
......
...@@ -50,29 +50,30 @@ Component({ ...@@ -50,29 +50,30 @@ Component({
// 省心出行 // 省心出行
toNewPage(e) { toNewPage(e) {
const { item } = e.currentTarget.dataset const { item } = e.currentTarget.dataset
let url = '' let url = '',para={}
if (item.supplier == 'GL_ROAD_RESCUE') { if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageEquity/pages/road/index/index' url = '/packageEquity/pages/road/index/index'
} else if (item.appearance == 1) { } else if (item.appearance == 1) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
location: true location: true
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/detail/detail?param=' + temp url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) { } else if (item.appearance == 2) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
icon: item.equityIcon icon: item.equityIcon
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/chargeDetail/chargeDetail?param=' + temp url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
} }
wx.navigateTo({ wx.p.router.go(url, {param:para,notIntercept:true})
url // wx.navigateTo({
}) // url
// })
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="qr-box box" style="padding: 0;"> <view class="qr-box box" style="padding: 0;">
<view class="btn-box"> <view class="btn-box btn_box_no_center">
<view class="flex"> <view class="flex">
<view class="title_text_X qrText">{{couponDetail.couponName}}</view> <view class="title_text_X qrText">{{couponDetail.couponName}}</view>
<image webp class="baseImage" src="{{IMGURL}}mine/coupon/{{couponDetail.discountType}}.png?v={{img_version}}"></image> <image webp class="baseImage" src="{{IMGURL}}mine/coupon/{{couponDetail.discountType}}.png?v={{img_version}}"></image>
......
...@@ -141,6 +141,8 @@ ...@@ -141,6 +141,8 @@
background: #FFF5F3; background: #FFF5F3;
border-radius: 8rpx; border-radius: 8rpx;
padding: 32rpx; padding: 32rpx;
display: flex;
flex-direction: column;
} }
.layout .qr-box .btn-box .text { .layout .qr-box .btn-box .text {
width: 100%; width: 100%;
...@@ -531,3 +533,6 @@ ...@@ -531,3 +533,6 @@
right: 0; right: 0;
top: 0; top: 0;
} }
.btn_box_no_center{
align-items: flex-start;
}
\ No newline at end of file \ No newline at end of file
...@@ -45,6 +45,9 @@ Page({ ...@@ -45,6 +45,9 @@ Page({
{ {
openId openId
} = await USERAPI.getWXUserInfo() } = await USERAPI.getWXUserInfo()
const {
merchantId
} = wx.p.storage.get('merchant_info')
let data = { let data = {
open_id: openId || null, open_id: openId || null,
create_time: this.firstEnter ? this.data.enter_time : new Date().format('yyyy-MM-dd hh:mm:ss'), // 离开时间 create_time: this.firstEnter ? this.data.enter_time : new Date().format('yyyy-MM-dd hh:mm:ss'), // 离开时间
...@@ -56,9 +59,9 @@ Page({ ...@@ -56,9 +59,9 @@ Page({
item_id: id, item_id: id,
business_type: 1, business_type: 1,
add_way: 104, add_way: 104,
merchant_id: wx.p.storage.get('srcm_shopmall_merchant_id'), merchant_id: merchantId,
guest_no: wx.p.$Track.getGuestNo(), //游客ID, guest_no: wx.p.$Track.getGuestNo(), //游客ID,
user_open_id:this.shareOpenId || '' user_open_id: this.shareOpenId || ''
} }
this.firstEnter = false this.firstEnter = false
const jsonList = [JSON.stringify(data)] const jsonList = [JSON.stringify(data)]
...@@ -232,7 +235,7 @@ Page({ ...@@ -232,7 +235,7 @@ Page({
hasCouponFlag hasCouponFlag
} = this.options } = this.options
if ((upgrade || isCarOwner) && hasCouponFlag) { if ((upgrade || isCarOwner) && hasCouponFlag) {
wx.p.router.go(`/packageMall/pages/getCoupon/getCoupon?discoverGoodsType=${upgrade? 1: 2}&from=${upgrade? 1: 2}`, { wx.p.router.go(`/packageMall/pages/getCoupon/getCoupon?discoverGoodsType=${upgrade ? 1 : 2}&from=${upgrade ? 1 : 2}`, {
notIntercept: true notIntercept: true
}); });
} else { } else {
...@@ -311,12 +314,13 @@ Page({ ...@@ -311,12 +314,13 @@ Page({
} }
console.log(this.data.goodsInfo, 'goodsInfo') console.log(this.data.goodsInfo, 'goodsInfo')
wx.p.router.go('/packageDiscovery/pages/pay/index', { wx.p.router.go('/packageDiscovery/pages/pay/index', {
goodsList: upgrade ? goodsList : [goodsList] , goodsList: upgrade ? goodsList : [goodsList],
deliveryType: upgrade ? 1 : 0, deliveryType: upgrade ? 1 : 0,
showAddr: (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 0 : 1, showAddr: (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 0 : 1,
// deliveryType: upgrade || (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 1 : 0, // deliveryType: upgrade || (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 1 : 0,
buyType: 'pay', buyType: 'pay',
discoverGoodsSource:goodsInfo.discoverGoodsSource discoverGoodsSource: goodsInfo.discoverGoodsSource,
pageForm: 'goodsDetail'
}) })
return return
} }
...@@ -398,8 +402,8 @@ Page({ ...@@ -398,8 +402,8 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(options,'options'); console.log(options, 'options');
if(options&&options.openId){ if (options && options.openId) {
this.shareOpenId = options.openId this.shareOpenId = options.openId
} }
this.data.enter_time = new Date().format('yyyy-MM-dd hh:mm:ss') this.data.enter_time = new Date().format('yyyy-MM-dd hh:mm:ss')
...@@ -494,7 +498,11 @@ Page({ ...@@ -494,7 +498,11 @@ Page({
const [key, val] = item.split('=') const [key, val] = item.split('=')
op[key] = val op[key] = val
}) })
if (op.merchantId) wx.p.storage.set('srcm_shopmall_merchant_id', op.merchantId) if (op.merchantId) {
wx.p.storage.set('merchant_info', {
merchantId: op.merchantId,
})
}
if (op.isActivity) { if (op.isActivity) {
this.setData({ this.setData({
isActivity: true isActivity: true
...@@ -557,7 +565,7 @@ Page({ ...@@ -557,7 +565,7 @@ Page({
code, code,
data, data,
message message
}) => {}) }) => { })
} else { } else {
wx.p.api.shopmallApi[target](id).then(({ wx.p.api.shopmallApi[target](id).then(({
code, code,
...@@ -661,6 +669,8 @@ Page({ ...@@ -661,6 +669,8 @@ Page({
addressFlag: true addressFlag: true
}) })
wx.hideLoading() wx.hideLoading()
// 分享埋点设置
this.handlerShareQuery()
} else { } else {
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
...@@ -794,7 +804,7 @@ Page({ ...@@ -794,7 +804,7 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
...@@ -809,29 +819,32 @@ Page({ ...@@ -809,29 +819,32 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
const merchantId = wx.p.storage.get('srcm_shopmall_merchant_id')
},
handlerShareQuery() {
const {
merchantId
} = wx.p.storage.get('merchant_info')
const userInfo = wx.p.cache.userInfo.getUserInfo() const userInfo = wx.p.cache.userInfo.getUserInfo()
let { let {
isActivity, isActivity,
isLive, isLive,
goodsInfo goodsInfo
} = this.data,open_id = '' } = this.data, open_id = ''
this.trackQuery.view = 4 if (userInfo) open_id = userInfo.openId
this.addTrack(this.trackQuery)
if(userInfo)open_id = userInfo.openId
let title = goodsInfo.goodsName let title = goodsInfo.goodsName
let path = `${this.route}?id=${goodsInfo.id}&openId=${open_id}` let path = `id=${goodsInfo.id}&openId=${open_id}`
let imageUrl = '' let imageUrl = ''
goodsInfo.goodsDetailImageList.map(e => { goodsInfo.goodsDetailImageList.map(e => {
if (e.resType == 1 && !imageUrl) imageUrl = e.content if (e.resType == 1 && !imageUrl) imageUrl = e.content
...@@ -842,11 +855,18 @@ Page({ ...@@ -842,11 +855,18 @@ Page({
} }
if (isLive) path = `${path}&isLive=true` if (isLive) path = `${path}&isLive=true`
if (merchantId) path = `${path}&merchantId=${merchantId}&isUpgrade=${this.isUpgrade || false}&isCarOwner=${this.isCarOwner || false}` if (merchantId) path = `${path}&merchantId=${merchantId}&isUpgrade=${this.isUpgrade || false}&isCarOwner=${this.isCarOwner || false}`
return { this.shareTitle = title;
imageUrl, this.shareImage = imageUrl
title, this.shareQuery = path
path this.trackQuery.view = 4
this.shareFun = () => {
this.addTrack(this.trackQuery)
} }
// return {
// imageUrl,
// title,
// path
// }
}, },
countDown(params) { countDown(params) {
let { let {
...@@ -884,7 +904,7 @@ Page({ ...@@ -884,7 +904,7 @@ Page({
let type = { let type = {
1: '距开始', 1: '距开始',
2: '距结束' 2: '距结束'
} [activityStatus] }[activityStatus]
if (this.time) clearTimeout(this.time) if (this.time) clearTimeout(this.time)
this.time = setTimeout(() => { this.time = setTimeout(() => {
let dayList = [h, m, s] let dayList = [h, m, s]
......
...@@ -13,13 +13,14 @@ Page({ ...@@ -13,13 +13,14 @@ Page({
}) })
}, },
jump() { jump() {
let pageList = getCurrentPages() wx.p.router.reLaunch('/pages/tab/mall/index')
if (pageList.at(-2)?.route == 'pages/tab/shopMall/index') wx.p.router.back(pre => { // let pageList = getCurrentPages()
pre.changeTabBar({ // if (pageList.at(-2)?.route == 'pages/tab/mall/index') wx.p.router.back(pre => {
detail: 2 // pre.changeTabBar({
}) // detail: 2
}) // })
else wx.p.router.reLaunch('/pages/tab/shopMall/index') // })
// else wx.p.router.reLaunch('/pages/tab/mall/index')
}, },
changeCount(e) { changeCount(e) {
console.log(e) console.log(e)
......
...@@ -103,4 +103,7 @@ ...@@ -103,4 +103,7 @@
} }
.default-btn{ .default-btn{
margin-top: 206rpx; margin-top: 206rpx;
background: #3772EC;
border-radius: 48rpx;
height: 88rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -78,4 +78,4 @@ ...@@ -78,4 +78,4 @@
</view> </view>
<authorize scopeType="userLocation" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize> <authorize scopeType="userLocation" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<glsx-privacy appletName="海马刀"></glsx-privacy>
\ No newline at end of file \ No newline at end of file
<!-- <glsx-privacy appletName="海马刀"></glsx-privacy> -->
\ No newline at end of file \ No newline at end of file
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
justify-content: flex-end; justify-content: flex-end;
} }
.address-item .bottom .choose.default{ .address-item .bottom .choose.default{
color: var(--btnColor); color: #3772EC;
} }
.address-item .bottom .choose icon{ .address-item .bottom .choose icon{
margin-right: 20rpx; margin-right: 20rpx;
...@@ -74,9 +74,9 @@ ...@@ -74,9 +74,9 @@
.btn-box .btn{ .btn-box .btn{
width: 100% !important; width: 100% !important;
margin: 6rpx var(--margin); margin: 6rpx var(--margin);
background-color:var(--btnColor); background-color:#3772EC;
height: 88rpx; height: 88rpx;
color: #fff; color: #fff;
font-size: var(--margin); font-size: var(--margin);
border-radius:var(--borderRadius); border-radius:48rpx;
} }
\ No newline at end of file \ No newline at end of file
page { page {
background: white; background: white !important;
} }
.box_wrapper { .box_wrapper {
width: 100%; width: 100%;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// 获取应用实例 // 获取应用实例
Page({ Page({
data: { data: {
tabs: ['店铺优惠券', '权益优惠券'], tabs: ['甄选优惠券', '权益优惠券'],
curTabIndex: 0, curTabIndex: 0,
couponsList: [], couponsList: [],
imgBaseURL: 'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/mini/', imgBaseURL: 'https://img01.glsx.com.cn/weapp/resource/equity-h5-new/mini/',
......
...@@ -364,7 +364,7 @@ Page({ ...@@ -364,7 +364,7 @@ Page({
const { const {
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.p.router.go('/packageEquity/pages/kaqDetail/kaqDetail', { wx.p.router.go('/packageSaveMoney/pages/kaqDetail/kaqDetail', {
orderCode: item.orderCode orderCode: item.orderCode
}) })
}, },
...@@ -383,7 +383,7 @@ Page({ ...@@ -383,7 +383,7 @@ Page({
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
item.pageFrom = 'coupons' item.pageFrom = 'coupons'
wx.p.router.go('/packageEquity/pages/saleApply/saleApply', item) wx.p.router.go('/packageSaveMoney/pages/saleApply/saleApply', item)
}, },
// 卡卷 确认收货 // 卡卷 确认收货
toComfirmPage(e) { toComfirmPage(e) {
......
...@@ -3,7 +3,7 @@ page { ...@@ -3,7 +3,7 @@ page {
} }
.ctn { .ctn {
margin-top: 8rpx; margin: 30rpx;
} }
.topCtn { .topCtn {
...@@ -13,7 +13,7 @@ page { ...@@ -13,7 +13,7 @@ page {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
box-sizing: border-box; box-sizing: border-box;
padding: 12rpx 48rpx; padding: 12rpx 20rpx;
line-height: 64rpx; line-height: 64rpx;
} }
...@@ -26,7 +26,7 @@ page { ...@@ -26,7 +26,7 @@ page {
.default-btn { .default-btn {
background: #3772EC; background: #3772EC;
border-radius: 8rpx; border-radius: 48rpx;
position: fixed; position: fixed;
bottom: 70rpx; bottom: 70rpx;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="topCtn" bindtap="goAgreement"> <view class="topCtn" bindtap="goAgreement">
<view class="text">隐私政策</view> <view class="text">隐私政策</view>
<view> <view>
<glsx-image webp mode="widthFix" class="setting-icon" src="home/setting-icon.png"></glsx-image> <glsx-image webp mode="widthFix" class="setting-icon" src="login/setting-icon.png"></glsx-image>
</view> </view>
</view> </view>
<view class="default-btn x-center" bindtap="logout">退出登录</view> <view class="default-btn x-center" bindtap="logout">退出登录</view>
......
/* components/CarBrands/CarBrands.wxss */ /* components/CarBrands/CarBrands.wxss */
page{ page{
background: white; background: white !important;
} }
.y-center { .y-center {
display: flex; display: flex;
......
page { page {
background: white; background: white !important;
} }
.agree-container-page { .agree-container-page {
......
// import { equityApi } from '~/api/api' // import { equityApi } from '~/api/api'
import { isMember } from '~/utils/cache/storageApi' // import { isMember } from '~/utils/cache/storageApi'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -22,7 +22,7 @@ Page({ ...@@ -22,7 +22,7 @@ Page({
cHeight: system.windowHeight cHeight: system.windowHeight
}, },
() => { () => {
isMember(true) // isMember(true)
} }
) )
if (options.showToast) { if (options.showToast) {
...@@ -108,41 +108,42 @@ Page({ ...@@ -108,41 +108,42 @@ Page({
}, },
toNewPage(e) { toNewPage(e) {
const { item } = e.currentTarget.dataset const { item } = e.currentTarget.dataset
let url = '' let url = '',para={}
if (item.supplier == 'GL_OIL') { if (item.supplier == 'GL_OIL') {
let sid = wx.$util.getSessionId() // let sid = wx.$util.getSessionId()
if (!sid) { // if (!sid) {
url = '/packageShopmall/packageEquity/pages/oil/oil?open=2' // url = '/packageShopmall/packageEquity/pages/oil/oil?open=2'
} else { // } else {
const vip = isMember() // // const vip = isMember()
url = '/packageShopmall/packageEquity/pages/oil/oil?open=' + `${vip ? 1 : 2}` // // url = '/packageShopmall/packageEquity/pages/oil/oil?open=' + `${vip ? 1 : 2}`
} // }
// let para = 'https://mp.weixin.qq.com/s/Gj3PE3n31PHMOMc5S1CYkg' // let para = 'https://mp.weixin.qq.com/s/Gj3PE3n31PHMOMc5S1CYkg'
} else if (item.supplier == 'GL_ROAD_RESCUE') { } else if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageShopmall/packageEquity/pages/road/index/index' url = '/packageEquity/pages/road/index/index'
} else if (item.supplier == 'EDJ') { } else if (item.supplier == 'EDJ') {
let para = wx.p.storage.get('edjurl') || '' // let para = wx.p.storage.get('edjurl') || ''
para = encodeURIComponent(para) // para = encodeURIComponent(para)
url = '/pages/webView/webView?url=' + para // url = '/pages/webView/webView'
} else if (item.appearance == 1) { } else if (item.appearance == 1) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
location: true location: true
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageShopmall/packageEquity/pages/commodity/detail/detail?param=' + temp url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) { } else if (item.appearance == 2) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
icon: item.equityIcon icon: item.equityIcon
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageShopmall/packageEquity/pages/commodity/chargeDetail/chargeDetail?param=' + temp url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
} }
wx.navigateTo({ wx.p.router.go(url, {param:para,notIntercept:true})
url // wx.navigateTo({
}) // url
// })
} }
}) })
/* packageEquity/pages/allEquity/allEquity.wxss */ /* packageEquity/pages/allEquity/allEquity.wxss */
page { page {
background: #F7F8FA; background: #F7F8FA !important;
} }
.allEquity-container { .allEquity-container {
......
page { page {
background: white; background: white !important;
} }
.box_wrapper { .box_wrapper {
......
import { equityApi } from '~/api/api'
Page({ Page({
data: {}, data: {},
onLoad: function (options) { onLoad: function (options) {
this.getOrderInfo(options.orderCode) this.getOrderInfo(options.orderCode)
}, },
getOrderInfo(orderCode) { getOrderInfo(orderCode) {
equityApi.orderDetailData({ orderCode }).then(res => { wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => {
let richText = res.useNotes let richText = res.useNotes
res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : '' res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : ''
if (richText) { if (richText) {
...@@ -18,13 +17,13 @@ Page({ ...@@ -18,13 +17,13 @@ Page({
}) })
}, },
previewImage() { previewImage() {
wx.$api.previewImage({ wx.p.wxApi.previewImage({
current: this.data.order.qrcode, current: this.data.order.qrcode,
urls: [this.data.order.qrcode] urls: [this.data.order.qrcode]
}) })
}, },
setCopyData(e) { setCopyData(e) {
wx.$api.setCopyData(e.currentTarget.dataset.item, () => { wx.p.wxApi.setCopyData(e.currentTarget.dataset.item, () => {
wx.p.wxApi.showToast('复制成功') wx.p.wxApi.showToast('复制成功')
}) })
} }
......
/* pages/couponDetail/couponDetail.wxss */ /* pages/couponDetail/couponDetail.wxss */
page{ page{
background: white; background: white !important;
} }
.coupon_info{ .coupon_info{
display: flex; display: flex;
......
{ {
"usingComponents": {} "usingComponents": {},
"navigationBarTitleText": "开通会员"
} }
\ No newline at end of file \ No newline at end of file
<view class="open-container-page"> <view class="open-container-page">
<view class="top_widget"> <view class="top_widget">
<image webp mode="widthFix" class="top_icon_bg" webp src="{{IMGURL}}equity/scrm_index_bg.png?v={{img_version}}" /> <image webp mode="widthFix" class="top_icon_bg" webp src="{{IMGURL}}equity/member_card_banner.png" />
<view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view> <!-- <view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view> -->
<view class="card_title">{{memberInfo.equityName}}</view> <view class="card_title">{{memberInfo.equityName}}</view>
<view class="card_title_1">尊享100+专属权益</view> <view class="card_title_1">尊享100+专属权益</view>
</view> </view>
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
.top_widget { .top_widget {
box-sizing: border-box; box-sizing: border-box;
margin: 0 32rpx; margin: 0 32rpx;
height: 250rpx; height: 288rpx;
position: relative; position: relative;
} }
.top_icon_bg { .top_icon_bg {
height: 250rpx !important; height: 288rpx !important;
} }
.mini_title { .mini_title {
...@@ -28,17 +28,23 @@ ...@@ -28,17 +28,23 @@
position: absolute; position: absolute;
left: 40rpx; left: 40rpx;
top: 36rpx; top: 36rpx;
background: linear-gradient(180deg, #FCE5CF 100%, #F7C6A1 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
font-size: 36rpx; font-size: 36rpx;
color: #8e5310; font-weight: 600;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24); /* font-size: 36rpx;
color: #FCE4CD;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24); */
} }
.card_title_1 { .card_title_1 {
position: absolute; position: absolute;
left: 40rpx; left: 40rpx;
top: 102rpx; bottom: 40rpx;
font-size: 24rpx; font-size: 24rpx;
color: #8e5310; color: #FCE4CD;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24); text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24);
} }
...@@ -75,17 +81,17 @@ ...@@ -75,17 +81,17 @@
.btn_element { .btn_element {
width: calc(100% - 64rpx); width: calc(100% - 64rpx);
height: 70rpx; height: 88rpx;
background: #aaaaaa; background: #aaaaaa;
border-radius: 8rpx; border-radius: 48rpx;
font-size: 32rpx; font-size: 32rpx;
color: #ffffff; color: #ffffff;
text-align: center; text-align: center;
line-height: 70rpx; line-height: 88rpx;
} }
.btn_element_active { .btn_element_active {
background: #f37844; background: #3772EC;
} }
.card_desc { .card_desc {
...@@ -97,13 +103,14 @@ ...@@ -97,13 +103,14 @@
} }
.desc_tip { .desc_tip {
font-size: 28rpx; font-weight: 400;
color: #333; font-size: 24rpx;
color: #565656;
} }
.desc_tip_a { .desc_tip_a {
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #565656;
text-decoration: underline; text-decoration: underline;
} }
......
import { IMG_URL } from '~/config';
Page({
/**
* 页面的初始数据
*/
data: {
upImageURL: [],
showWaiting: false,
query: null,
IMGURL:IMG_URL
},
onLoad: function (options) {
let query = null
let isPackage = false
if (options) {
query = {
orderCode: options.orderCode,
orderPrices: options.payPrice
}
isPackage = options.pageFrom == 'package' ? true : false
}
this.setData({
query,
isPackage
})
},
//填写描述
bindinput(e) {
this.data.desc = e.detail.value
},
// 上传图片
toUploadImage() {
let _this = this
wx.chooseImage({
count: 1,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success(res) {
const [tempFiles] = res.tempFilePaths
let imgType = tempFiles.split('.')[1]
let type = imgType == 'unknown' ? 'jpg' : imgType
wx.getFileSystemManager().readFile({
filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式
success(_res) {
wx.p.wxApi.showLoading('上传中...')
wx.p.api.common.uploadImg({
file: `${type}@${_res.data}`
})
.then(img => {
wx.p.wxApi.hideLoading()
_this.data.upImageURL = []
_this.data.upImageURL.push(img)
_this.setData({
upImageURL: _this.data.upImageURL
})
})
}
})
}
})
},
// 提交
sumbit() {
if (this.data.isPackage) {
wx.p.wxApi.showLoading()
this.packageSumbit()
return
}
if (!this.data.desc) {
wx.p.wxApi.showToast('请输入申请描述')
return
}
if (!this.data.upImageURL.length) {
wx.p.wxApi.showToast('请上传图片')
return
}
const { query, desc, upImageURL, isPackage } = this.data
wx.p.wxApi.showLoading()
let para = {
orderCode: query.orderCode,
reason: desc,
refundImg: upImageURL[0]
}
wx.p.api.equityApi.createdSale(para).then(res => {
wx.hideLoading()
this.setData({
showWaiting: true
})
setTimeout(() => {
if (isPackage) {
wx.redirectTo({
url: '/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode
})
} else {
wx.redirectTo({
url: '/packageSaveMoney/pages/saleDetail/saleDetail?orderCode=' + query.orderCode
})
}
}, 3000)
})
},
// 套餐提交申请售后
packageSumbit() {
const { query, desc } = this.data
let para = {
orderCode: query.orderCode,
reason: desc
}
wx.p.api.equityApi.packageApply(para).then(res => {
wx.hideLoading()
this.setData({
showWaiting: true
})
setTimeout(() => {
wx.redirectTo({
url: '/packageEquity/pages/packageDetail/packageDetail?orderCode=' + query.orderCode
})
// wx.navigateBack({
// delta: 1
// })
}, 3000)
})
}
})
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<view class="apply-container">
<block wx:if="{{!showWaiting}}">
<view class="box">
<view class="box_title">申请描述</view>
<view class="box_input">
<textarea class="textarea_wrap" bind:input="bindinput" disable-default-padding maxlength="230" placeholder-class="textarea-placeholder" placeholder="请您详细描述申请说明"></textarea>
</view>
</view>
<view wx:if="{{!isPackage}}" class="box">
<view class="box_title">上传图片</view>
<image webp wx:if="{{!upImageURL.length}}" bind:tap="toUploadImage" class="image_up_load" src="{{IMGURL}}equity/upload.png?v={{img_version}}" />
<image webp wx:else bind:tap="toUploadImage" class="image_up_load" src="{{upImageURL[0]}}" />
</view>
<view class="box_wrap">
<view class="box_title">申请金额</view>
<view class="box_price">¥{{query.orderPrices}}</view>
</view>
<view class="apply_btn" bind:tap="sumbit">提交申请</view>
</block>
<block wx:if="{{showWaiting}}">
<view class="sales-h">
<image webp class="successIcon" src="{{IMGURL}}equity/return_success.png?v={{img_version}}" />
<view class="sales-status-1">等待处理</view>
<view class="sales-status-2">已提交申请,等待处理</view>
</view>
</block>
</view>
<glsx-privacy appletName="车生活助手"></glsx-privacy>
\ No newline at end of file \ No newline at end of file
.apply-container{
box-sizing: border-box;
padding: 30rpx;
}
.box{
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 20rpx;
}
.box_title{
font-size: 32rpx;
line-height: 60rpx;
font-weight: 500;
color: #333333;
}
.textarea-placeholder{
padding: 0;
}
/* .box_input{
min-height: 240rpx;
} */
.textarea_wrap{
width: 100%;
min-height: 240rpx;
word-break: break-all;
}
.image_up_load{
margin: 20rpx 0px;
width: 160rpx;
height: 160rpx;
position: relative;
}
.box_wrap{
height: 100rpx;
background: #FFFFFF;
border-radius: 12rpx;
padding: 0px 32rpx;
margin-bottom: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.box_price{
font-size: 40rpx;
font-weight: 500;
color: #3772EC;
}
.apply_btn{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 88rpx;
color: #FFFFFF;
font-weight: 500;
background: #3772EC;
border-radius: 44rpx;
margin: 40rpx auto;
font-size: 36rpx;
}
.sales-h{
margin-bottom: 60rpx;
text-align: center;
line-height: 60rpx;
}
.successIcon{
width: 100rpx;
height: 100rpx;
margin-top: 200rpx;
}
.sales-icon {
font-size: 100rpx;
color: #19c341;
margin-top: 100rpx;
}
.sales-status-1{
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.sales-status-2 {
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
\ No newline at end of file \ No newline at end of file
Page({
/**
* 页面的初始数据
*/
data: {},
onLoad: function (options) {
this.getSaleDetail(options.orderCode)
},
// 获取售后详情
getSaleDetail(orderCode) {
wx.p.api.equityApi.saleDetailInfo({ orderCode }).then(res => {
res.reason = decodeURIComponent(res.reason)
res.createDate = new Date(res.createDate).format('yyyy-MM-dd hh:mm:ss')
this.setData({
detail: res
})
})
},
previewImage() {
wx.p.wxApi.previewImage({
current: this.data.detail.img,
urls: [this.data.detail.img]
})
}
})
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<view class="sale_detail_page">
<view wx:if="{{detail.refundStatus==1}}" class="box">
<view class="title">售后中</view>
<view class="tip">等待平台处理</view>
</view>
<view wx:if="{{detail.refundStatus==3}}" class="box">
<view class="title">已退款</view>
<view class="tip">钱款将原路退回至您的账户</view>
</view>
<view wx:if="{{detail.refundStatus==2}}" class="box">
<view class="title">拒绝售后</view>
<view class="tip">该商品已退换兑换或不支持售后</view>
</view>
<view class="sale_content">
<view class="content_line">
<view class="title_line">售后商品:</view>
<view class="content_info">{{detail.productName}}</view>
</view>
<view class="content_line">
<view class="title_line">申请金额:</view>
<view class="content_info title_price">{{detail.orderPrice}}</view>
</view>
<view class="content_line">
<view class="title_line">申请时间:</view>
<view class="content_info">{{detail.createDate}}</view>
</view>
<view class="content_line">
<view class="title_line">申请描述:</view>
<view class="content_info">{{detail.reason}}</view>
</view>
<view class="content_line">
<view class="title_line">售后编号:</view>
<view class="content_info">{{detail.refundCode}}</view>
</view>
<view class="content_line">
<view class="title_line">订单编号:</view>
<view class="content_info">{{detail.orderCode}}</view>
</view>
</view>
<view class="iamge_wrap">
<image webp bind:tap="previewImage" mode="widthFix" class="sale_image" src="{{detail.img}}" />
</view>
</view>
\ No newline at end of file \ No newline at end of file
page{
background: white !important;
}
.sale_detail_page{
box-sizing: border-box;
padding: 30rpx;
width: 100%;
}
.box{
display: flex;
flex-direction: column;
justify-content: center;
}
.title{
text-align: center;
height: 66rpx;
font-size: 48rpx;
font-weight: 500;
color: #333333;
line-height: 66rpx;
}
.tip{
text-align: center;
font-size: 32rpx;
font-weight: 400;
color: #999999;
line-height: 44rpx;
margin-top: 16rpx;
}
.sale_content{
margin-top: 40rpx;
}
.content_line{
display: flex;
align-items: center;
margin-top: 20rpx;
}
.title_line{
font-size: 28rpx;
font-weight: 400;
color: #333333;
}
.content_info{
font-size: 28rpx;
font-weight: 500;
color: #999999;
}
.title_price{
color: #FF9900;
}
.iamge_wrap{
width: 100%;
display: flex;
justify-content: center;
}
.sale_image{
margin-top: 40rpx;
width: 192rpx;
height: auto;
}
\ No newline at end of file \ No newline at end of file
...@@ -68,9 +68,12 @@ Page({ ...@@ -68,9 +68,12 @@ Page({
const { code, data } = await wx.p.api.wechatApi.getSceneById({ const { code, data } = await wx.p.api.wechatApi.getSceneById({
id id
}) })
const params = data.scene.split('url='), const params = data.scene.split('&url='),options = {}
options = {} data.scene.split('&').map(item => {
if (params.length > 1) options.url = params.at(-1) const [key, val] = item.split('=')
options[key] = val
})
// if (params.length > 1) options.url = params.at(-1)
if (code == 0) this.login(options) if (code == 0) this.login(options)
else throw {} else throw {}
} catch (error) { } catch (error) {
......
...@@ -9,29 +9,31 @@ Component({ ...@@ -9,29 +9,31 @@ Component({
methods: { methods: {
toNewPage(e) { toNewPage(e) {
const { item } = e.currentTarget.dataset const { item } = e.currentTarget.dataset
let url = '' let url = '', para = {}
if (item.supplier == 'GL_ROAD_RESCUE') { if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageEquity/pages/road/index/index' url = '/packageEquity/pages/road/index/index'
} else if (item.appearance == 1) { } else if (item.appearance == 1) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
location: true location: true
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/detail/detail?param=' + temp url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) { } else if (item.appearance == 2) {
let para = { para = {
supplier: item.supplier, supplier: item.supplier,
brandName: item.brandName, brandName: item.brandName,
icon: item.equityIcon icon: item.equityIcon
} }
const temp = JSON.stringify(para) const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/chargeDetail/chargeDetail?param=' + temp url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
} }
wx.navigateTo({
url wx.p.router.go(url, {param:para,notIntercept:true})
}) // wx.navigateTo({
// url
// })
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -32,10 +32,11 @@ Component({ ...@@ -32,10 +32,11 @@ Component({
lat: address.location.lat, lat: address.location.lat,
lng: address.location.lng, lng: address.location.lng,
} }
const temp = JSON.stringify(query) wx.p.router.go('/packageSaveMoney/pages/detail/detail', {param:query,notIntercept:true})
wx.navigateTo({ // const temp = JSON.stringify(query)
url: '/packageSaveMoney/pages/detail/detail?param=' + temp // wx.navigateTo({
}) // url: '/packageSaveMoney/pages/detail/detail?param=' + temp
// })
}, },
toDetailPage(e) { toDetailPage(e) {
const { item } = e.currentTarget.dataset const { item } = e.currentTarget.dataset
...@@ -47,10 +48,11 @@ Component({ ...@@ -47,10 +48,11 @@ Component({
lng: address.location.lng, lng: address.location.lng,
id: item.id id: item.id
} }
const temp = JSON.stringify(query) wx.p.router.go('/packageSaveMoney/pages/detail/detail', {param:query,notIntercept:true})
wx.navigateTo({ // const temp = JSON.stringify(query)
url: '/packageSaveMoney/pages/detail/detail?param=' + temp // wx.navigateTo({
}) // url: '/packageSaveMoney/pages/detail/detail?param=' + temp
// })
}, },
// 图片报错 // 图片报错
binderror(e){ binderror(e){
......
...@@ -111,7 +111,6 @@ Page({ ...@@ -111,7 +111,6 @@ Page({
'production': [44209566, 44209565], 'production': [44209566, 44209565],
} }
const MerchantList = merchantObj[env] const MerchantList = merchantObj[env]
console.log(MerchantList, 'MerchantList');
let storeList = [], index = 0 let storeList = [], index = 0
MerchantList.forEach((el, i) => { MerchantList.forEach((el, i) => {
wx.$merchant_id = el wx.$merchant_id = el
...@@ -133,13 +132,11 @@ Page({ ...@@ -133,13 +132,11 @@ Page({
}) })
if (storeList.length > 1) { if (storeList.length > 1) {
storeList.forEach((ele, i) => { storeList.forEach((ele, i) => {
console.log(i, this.defaultMerchant);
if (this.defaultMerchant == i) { if (this.defaultMerchant == i) {
index = i index = i
} }
}) })
const currentStore = storeList[index] const currentStore = storeList[index]
console.log(currentStore, index, 'currentStore');
wx.$merchant_id = currentStore.merchantId wx.$merchant_id = currentStore.merchantId
wx.p.storage.set('merchant_info', { wx.p.storage.set('merchant_info', {
merchantId: currentStore.merchantId, merchantId: currentStore.merchantId,
......
...@@ -2,6 +2,5 @@ ...@@ -2,6 +2,5 @@
"usingComponents": { "usingComponents": {
"carOwner": "./components/CarOwner/CarOwner" "carOwner": "./components/CarOwner/CarOwner"
}, },
"navigationBarTitleText": "商城",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
...@@ -235,14 +235,15 @@ page { ...@@ -235,14 +235,15 @@ page {
.member-box { .member-box {
height: 136rpx; height: 136rpx;
background-image: linear-gradient(165deg, #303030 2%, #070707 98%); // background-image: linear-gradient(165deg, #303030 2%, #070707 98%);
border-radius: 16rpx; border-radius: 8rpx;
margin: 32rpx 20rpx 0; margin: 32rpx 20rpx 0;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/wuye/mine/mine-member-banner.png?v=1.0.3'); background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/wuye/mine/mine-member-banner.png?v=1.0.3');
background-size: 100% 100%;
} }
.member-box .left-box { .member-box .left-box {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<text class="member-price-text">{{memberInfo.goodPrice}}元</text> <text class="member-price-text">{{memberInfo.goodPrice}}元</text>
/年 /年
</view> </view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view> <view class="describe" wx:else>{{vipInfo.renewDay}} 天后到期</view>
</view> </view>
</view> </view>
<view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view> <view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!