Commit 8643ebad by 匡雅琴

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

2 parents a6b0d517 37e23277
Showing 43 changed files with 571 additions and 158 deletions
......@@ -204,7 +204,7 @@ module.exports = {
return api.post({
method: "scrm.api.shopmall.goods.get.shared",
id,
});
},true);
},
removeBuuCar(data) {
return api.post({
......
......@@ -121,11 +121,11 @@
"provider": "wxd5b8312c3a09901a"
},
"express-plugin": {
"version": "1.2.0",
"version": "1.2.1",
"provider": "wx1b1f66316b427c74"
},
"collectionPlugin": {
"version": "1.2.0",
"version": "1.2.1",
"provider": "wx5e90fdd843841356"
}
}
......@@ -145,7 +145,9 @@
"pages/kaqDetail/kaqDetail",
"pages/chargeWait/chargeWait",
"pages/open/open",
"pages/agreement/index"
"pages/agreement/index",
"pages/saleApply/saleApply",
"pages/saleDetail/saleDetail"
]
},
{
......
page {
background: white;
background: white !important;
}
.container {
......
......@@ -56,7 +56,7 @@ Page({
el.isPay = false
ids.push(el.goodsId)
if (el.expressFee && el.expressFee > expressFee) {
expressFee = el.expressFee
expressFee = NP.divide(el.expressFee,100)
}
goodsNumber = goodsNumber + el.goodsNumber
})
......
......@@ -116,7 +116,7 @@ Page({
}
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) {
this.receiveRed(res.data.equityFreeCardId)
}
......@@ -124,27 +124,34 @@ Page({
}
})
},
jumpMine() {
wx.p.router.switchTab('/pages/tab/mine/index', {
isMemberShow: true,
})
},
receiveRed(equityFreeCardId) {
let { isOpenMember } = this.data
let params = {
equityFreeCardId
}
wx.p.api.equityApi.checkReceiveRed(params).then(res => {
console.log(res)
console.log(res, 'checkReceiveRed---')
let { code, message, data } = res
if (code != 0) {
this.showTips(message || '服务不可用')
return
}
if (!data.isReceiveFlag) {
wx.p.router.go('/packageEquity/pages/receiveRed/receiveRed', {
isOpenMember: isOpenMember,
activityRedEnvelopeLink: data.activityRedEnvelopeLink
})
} else if (isOpenMember) {
wx.p.router.switchTab('/pages/tab/mine/index', {
isMemberShow: true,
});
if (!data.isActivityRedEnvelopeFlag) {
this.jumpMine()
} else {
if (!data.isReceiveFlag) {
wx.p.router.go('/packageEquity/pages/receiveRed/receiveRed', {
isOpenMember: isOpenMember,
activityRedEnvelopeLink: data.activityRedEnvelopeLink
})
} else {
this.jumpMine()
}
}
})
},
......@@ -153,7 +160,7 @@ Page({
// 先判断登录
const authStatus = await wx.p.router.intercept(false)
if (authStatus) return
wx.p.api.equityApi.checkOpenMember().then(res => {
wx.p.api.equityApi.checkOpenMember({ isTrialCardFlag: 1 }).then(res => {
let flag = false
if (res.code == 0 && res.data) {
flag = true
......@@ -184,10 +191,13 @@ Page({
async onLoad(options) {
let system = wx.getSystemInfoSync()
const authStatus = await wx.p.router.intercept(false)
let appEnter = wx.getEnterOptionsSync()
if (appEnter?.query?.scene) {
this.sceneGetId(decodeURIComponent(appEnter.query.scene).split('=')[1])
}
// const { merchantId } = wx.p.storage.get('merchant_info')
// this.setData({
// merchantId
// })
this.setData({
merchantId: options.merchantId
})
wx.p.wxApi.showLoading()
const {
data,
......
......@@ -4,7 +4,6 @@
position: absolute;
left: 0;
top: 0;
// z-index: -1;
.image-class {
background-color: #fff;
......@@ -15,7 +14,6 @@
.img-card {
position: absolute;
bottom: 0;
// left: calc((100vw - 630rpx) /2);
left: 4%;
width: 630rpx;
height: 288rpx;
......@@ -59,6 +57,7 @@
border-radius: 24rpx 24rpx 24rpx 4rpx;
text-align: center;
font-size: 26rpx;
z-index: 2;
}
.btn-defalut {
......
......@@ -4,18 +4,20 @@
<glsx-image src="equity/card.png" class="img-card" />
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}">
<glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button>
<view wx:else>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
<view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight + 110}}px);">
<glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">登陆</button>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">头像昵称</button>
<view wx:else>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<!-- <view class="btn-defalut" bindtap="tofreeReceive">免费领取</view> -->
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
</view>
</view>
</view>
</scroll-view>
......
page {
background: white;
background: white !important;
}
.map-box {
......
......@@ -50,29 +50,30 @@ Component({
// 省心出行
toNewPage(e) {
const { item } = e.currentTarget.dataset
let url = ''
let url = '',para={}
if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageEquity/pages/road/index/index'
} else if (item.appearance == 1) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
location: true
}
const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/detail/detail?param=' + temp
url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
icon: item.equityIcon
}
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
......@@ -45,6 +45,9 @@ Page({
{
openId
} = await USERAPI.getWXUserInfo()
const {
merchantId
} = wx.p.storage.get('merchant_info')
let data = {
open_id: openId || null,
create_time: this.firstEnter ? this.data.enter_time : new Date().format('yyyy-MM-dd hh:mm:ss'), // 离开时间
......@@ -56,7 +59,7 @@ Page({
item_id: id,
business_type: 1,
add_way: 104,
merchant_id: wx.p.storage.get('srcm_shopmall_merchant_id'),
merchant_id: merchantId,
guest_no: wx.p.$Track.getGuestNo(), //游客ID,
user_open_id:this.shareOpenId || ''
}
......
......@@ -13,13 +13,14 @@ Page({
})
},
jump() {
let pageList = getCurrentPages()
if (pageList.at(-2)?.route == 'pages/tab/shopMall/index') wx.p.router.back(pre => {
pre.changeTabBar({
detail: 2
})
})
else wx.p.router.reLaunch('/pages/tab/shopMall/index')
wx.p.router.reLaunch('/pages/tab/mall/index')
// let pageList = getCurrentPages()
// if (pageList.at(-2)?.route == 'pages/tab/mall/index') wx.p.router.back(pre => {
// pre.changeTabBar({
// detail: 2
// })
// })
// else wx.p.router.reLaunch('/pages/tab/mall/index')
},
changeCount(e) {
console.log(e)
......
......@@ -103,4 +103,7 @@
}
.default-btn{
margin-top: 206rpx;
background: #3772EC;
border-radius: 48rpx;
height: 88rpx;
}
\ No newline at end of file
......@@ -78,4 +78,4 @@
</view>
<authorize scopeType="userLocation" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<glsx-privacy appletName="海马刀"></glsx-privacy>
\ No newline at end of file
<!-- <glsx-privacy appletName="海马刀"></glsx-privacy> -->
\ No newline at end of file
......@@ -58,7 +58,7 @@
justify-content: flex-end;
}
.address-item .bottom .choose.default{
color: var(--btnColor);
color: #3772EC;
}
.address-item .bottom .choose icon{
margin-right: 20rpx;
......@@ -74,9 +74,9 @@
.btn-box .btn{
width: 100% !important;
margin: 6rpx var(--margin);
background-color:var(--btnColor);
background-color:#3772EC;
height: 88rpx;
color: #fff;
font-size: var(--margin);
border-radius:var(--borderRadius);
border-radius:48rpx;
}
\ No newline at end of file
page {
background: white;
background: white !important;
}
.box_wrapper {
width: 100%;
......
......@@ -364,7 +364,7 @@ Page({
const {
item
} = e.currentTarget.dataset
wx.p.router.go('/packageEquity/pages/kaqDetail/kaqDetail', {
wx.p.router.go('/packageSaveMoney/pages/kaqDetail/kaqDetail', {
orderCode: item.orderCode
})
},
......@@ -383,7 +383,7 @@ Page({
item
} = e.currentTarget.dataset
item.pageFrom = 'coupons'
wx.p.router.go('/packageEquity/pages/saleApply/saleApply', item)
wx.p.router.go('/packageSaveMoney/pages/saleApply/saleApply', item)
},
// 卡卷 确认收货
toComfirmPage(e) {
......
......@@ -3,7 +3,7 @@ page {
}
.ctn {
margin-top: 8rpx;
margin: 30rpx;
}
.topCtn {
......@@ -13,7 +13,7 @@ page {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 12rpx 48rpx;
padding: 12rpx 20rpx;
line-height: 64rpx;
}
......
......@@ -3,7 +3,7 @@
<view class="topCtn" bindtap="goAgreement">
<view class="text">隐私政策</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 class="default-btn x-center" bindtap="logout">退出登录</view>
......
/* components/CarBrands/CarBrands.wxss */
page{
background: white;
background: white !important;
}
.y-center {
display: flex;
......
page {
background: white;
background: white !important;
}
.agree-container-page {
......
// import { equityApi } from '~/api/api'
import { isMember } from '~/utils/cache/storageApi'
// import { isMember } from '~/utils/cache/storageApi'
Page({
/**
* 页面的初始数据
......@@ -22,7 +22,7 @@ Page({
cHeight: system.windowHeight
},
() => {
isMember(true)
// isMember(true)
}
)
if (options.showToast) {
......@@ -108,41 +108,42 @@ Page({
},
toNewPage(e) {
const { item } = e.currentTarget.dataset
let url = ''
let url = '',para={}
if (item.supplier == 'GL_OIL') {
let sid = wx.$util.getSessionId()
if (!sid) {
url = '/packageShopmall/packageEquity/pages/oil/oil?open=2'
} else {
const vip = isMember()
url = '/packageShopmall/packageEquity/pages/oil/oil?open=' + `${vip ? 1 : 2}`
}
// let sid = wx.$util.getSessionId()
// if (!sid) {
// url = '/packageShopmall/packageEquity/pages/oil/oil?open=2'
// } else {
// // const vip = isMember()
// // url = '/packageShopmall/packageEquity/pages/oil/oil?open=' + `${vip ? 1 : 2}`
// }
// let para = 'https://mp.weixin.qq.com/s/Gj3PE3n31PHMOMc5S1CYkg'
} 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') {
let para = wx.p.storage.get('edjurl') || ''
para = encodeURIComponent(para)
url = '/pages/webView/webView?url=' + para
// let para = wx.p.storage.get('edjurl') || ''
// para = encodeURIComponent(para)
// url = '/pages/webView/webView'
} else if (item.appearance == 1) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
location: true
}
const temp = JSON.stringify(para)
url = '/packageShopmall/packageEquity/pages/commodity/detail/detail?param=' + temp
url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
icon: item.equityIcon
}
const temp = JSON.stringify(para)
url = '/packageShopmall/packageEquity/pages/commodity/chargeDetail/chargeDetail?param=' + temp
url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
}
wx.navigateTo({
url
})
wx.p.router.go(url, {param:para,notIntercept:true})
// wx.navigateTo({
// url
// })
}
})
/* packageEquity/pages/allEquity/allEquity.wxss */
page {
background: #F7F8FA;
background: #F7F8FA !important;
}
.allEquity-container {
......
page {
background: white;
background: white !important;
}
.box_wrapper {
......
import { equityApi } from '~/api/api'
Page({
data: {},
onLoad: function (options) {
this.getOrderInfo(options.orderCode)
},
getOrderInfo(orderCode) {
equityApi.orderDetailData({ orderCode }).then(res => {
wx.p.api.equityApi.orderDetailData({ orderCode }).then(res => {
let richText = res.useNotes
res.warrantyDate = res.warrantyDate ? new Date(res.warrantyDate).format('yyyy-MM-dd hh:mm:ss') : ''
if (richText) {
......@@ -18,13 +17,13 @@ Page({
})
},
previewImage() {
wx.$api.previewImage({
wx.p.wxApi.previewImage({
current: this.data.order.qrcode,
urls: [this.data.order.qrcode]
})
},
setCopyData(e) {
wx.$api.setCopyData(e.currentTarget.dataset.item, () => {
wx.p.wxApi.setCopyData(e.currentTarget.dataset.item, () => {
wx.p.wxApi.showToast('复制成功')
})
}
......
/* pages/couponDetail/couponDetail.wxss */
page{
background: white;
background: white !important;
}
.coupon_info{
display: flex;
......
{
"usingComponents": {}
"usingComponents": {},
"navigationBarTitleText": "开通会员"
}
\ No newline at end of file
<view class="open-container-page">
<view class="top_widget">
<image webp mode="widthFix" class="top_icon_bg" webp src="{{IMGURL}}equity/scrm_index_bg.png?v={{img_version}}" />
<view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view>
<image webp mode="widthFix" class="top_icon_bg" webp src="{{IMGURL}}equity/member_card_banner.png" />
<!-- <view class="mini_title">{{ isOpen ? "已开通" : "未开通" }}</view> -->
<view class="card_title">{{memberInfo.equityName}}</view>
<view class="card_title_1">尊享100+专属权益</view>
</view>
......
......@@ -7,12 +7,12 @@
.top_widget {
box-sizing: border-box;
margin: 0 32rpx;
height: 250rpx;
height: 288rpx;
position: relative;
}
.top_icon_bg {
height: 250rpx !important;
height: 288rpx !important;
}
.mini_title {
......@@ -28,17 +28,23 @@
position: absolute;
left: 40rpx;
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;
color: #8e5310;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24);
font-weight: 600;
/* font-size: 36rpx;
color: #FCE4CD;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24); */
}
.card_title_1 {
position: absolute;
left: 40rpx;
top: 102rpx;
bottom: 40rpx;
font-size: 24rpx;
color: #8e5310;
color: #FCE4CD;
text-shadow: 0 4rpx 8rpx rgba(254, 96, 0, 0.24);
}
......@@ -75,17 +81,17 @@
.btn_element {
width: calc(100% - 64rpx);
height: 70rpx;
height: 88rpx;
background: #aaaaaa;
border-radius: 8rpx;
border-radius: 48rpx;
font-size: 32rpx;
color: #ffffff;
text-align: center;
line-height: 70rpx;
line-height: 88rpx;
}
.btn_element_active {
background: #f37844;
background: #3772EC;
}
.card_desc {
......@@ -97,13 +103,14 @@
}
.desc_tip {
font-size: 28rpx;
color: #333;
font-weight: 400;
font-size: 24rpx;
color: #565656;
}
.desc_tip_a {
font-size: 28rpx;
color: #333;
color: #565656;
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
<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
.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
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
<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
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
......@@ -9,29 +9,31 @@ Component({
methods: {
toNewPage(e) {
const { item } = e.currentTarget.dataset
let url = ''
let url = '', para = {}
if (item.supplier == 'GL_ROAD_RESCUE') {
url = '/packageEquity/pages/road/index/index'
} else if (item.appearance == 1) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
location: true
}
const temp = JSON.stringify(para)
url = '/packageSaveMoney/pages/detail/detail?param=' + temp
url = '/packageSaveMoney/pages/detail/detail'
} else if (item.appearance == 2) {
let para = {
para = {
supplier: item.supplier,
brandName: item.brandName,
icon: item.equityIcon
}
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
......@@ -32,10 +32,11 @@ Component({
lat: address.location.lat,
lng: address.location.lng,
}
const temp = JSON.stringify(query)
wx.navigateTo({
url: '/packageSaveMoney/pages/detail/detail?param=' + temp
})
wx.p.router.go('/packageSaveMoney/pages/detail/detail', {param:query,notIntercept:true})
// const temp = JSON.stringify(query)
// wx.navigateTo({
// url: '/packageSaveMoney/pages/detail/detail?param=' + temp
// })
},
toDetailPage(e) {
const { item } = e.currentTarget.dataset
......@@ -47,10 +48,11 @@ Component({
lng: address.location.lng,
id: item.id
}
const temp = JSON.stringify(query)
wx.navigateTo({
url: '/packageSaveMoney/pages/detail/detail?param=' + temp
})
wx.p.router.go('/packageSaveMoney/pages/detail/detail', {param:query,notIntercept:true})
// const temp = JSON.stringify(query)
// wx.navigateTo({
// url: '/packageSaveMoney/pages/detail/detail?param=' + temp
// })
},
// 图片报错
binderror(e){
......
......@@ -111,7 +111,6 @@ Page({
'production': [44209566, 44209565],
}
const MerchantList = merchantObj[env]
console.log(MerchantList, 'MerchantList');
let storeList = [], index = 0
MerchantList.forEach((el, i) => {
wx.$merchant_id = el
......@@ -133,13 +132,11 @@ Page({
})
if (storeList.length > 1) {
storeList.forEach((ele, i) => {
console.log(i, this.defaultMerchant);
if (this.defaultMerchant == i) {
index = i
}
})
const currentStore = storeList[index]
console.log(currentStore, index, 'currentStore');
wx.$merchant_id = currentStore.merchantId
wx.p.storage.set('merchant_info', {
merchantId: currentStore.merchantId,
......
......@@ -58,4 +58,4 @@
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view>
</view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
......@@ -2,6 +2,5 @@
"usingComponents": {
"carOwner": "./components/CarOwner/CarOwner"
},
"navigationBarTitleText": "商城",
"navigationStyle": "custom"
}
\ No newline at end of file
page{
background-color: #f8f8f8;
}
.navigation-bar {
position: fixed;
top: 0;
left: 0;
z-index: 2;
background: #ffffff;
}
.banner{
display: flex;
// align-items: center;
justify-content: center;
}
.bg {
box-sizing: border-box;
display: inline-block;
width: 690rpx;
height: 280rpx;
border-radius: 10rpx;
margin: 24rpx auto 0;
text-align: center;
}
.layout{
padding-top: 84px;
page{
background-color: #f8f8f8;
}
.navigation-bar {
position: fixed;
top: 0;
left: 0;
z-index: 2;
background: #ffffff;
}
.banner{
display: flex;
// align-items: center;
justify-content: center;
}
.bg {
box-sizing: border-box;
display: inline-block;
width: 690rpx;
height: 280rpx;
border-radius: 10rpx;
margin: 24rpx auto 0;
text-align: center;
}
.layout{
padding-top: 64px;
}
\ No newline at end of file
......@@ -235,14 +235,15 @@ page {
.member-box {
height: 136rpx;
background-image: linear-gradient(165deg, #303030 2%, #070707 98%);
border-radius: 16rpx;
// background-image: linear-gradient(165deg, #303030 2%, #070707 98%);
border-radius: 8rpx;
margin: 32rpx 20rpx 0;
position: relative;
display: flex;
align-items: 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-size: 100% 100%;
}
.member-box .left-box {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!