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 528 additions and 115 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({
......
...@@ -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"
] ]
}, },
{ {
......
page { page {
background: white; background: white !important;
} }
.container { .container {
......
...@@ -56,7 +56,7 @@ Page({ ...@@ -56,7 +56,7 @@ 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) {
expressFee = el.expressFee expressFee = NP.divide(el.expressFee,100)
} }
goodsNumber = goodsNumber + el.goodsNumber goodsNumber = goodsNumber + el.goodsNumber
}) })
......
...@@ -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
...@@ -184,10 +191,13 @@ Page({ ...@@ -184,10 +191,13 @@ Page({
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)
let appEnter = wx.getEnterOptionsSync() // const { merchantId } = wx.p.storage.get('merchant_info')
if (appEnter?.query?.scene) { // this.setData({
this.sceneGetId(decodeURIComponent(appEnter.query.scene).split('=')[1]) // merchantId
} // })
this.setData({
merchantId: options.merchantId
})
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
const { const {
data, data,
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
// z-index: -1;
.image-class { .image-class {
background-color: #fff; background-color: #fff;
...@@ -15,7 +14,6 @@ ...@@ -15,7 +14,6 @@
.img-card { .img-card {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
// left: calc((100vw - 630rpx) /2);
left: 4%; left: 4%;
width: 630rpx; width: 630rpx;
height: 288rpx; height: 288rpx;
...@@ -59,6 +57,7 @@ ...@@ -59,6 +57,7 @@
border-radius: 24rpx 24rpx 24rpx 4rpx; border-radius: 24rpx 24rpx 24rpx 4rpx;
text-align: center; text-align: center;
font-size: 26rpx; font-size: 26rpx;
z-index: 2;
} }
.btn-defalut { .btn-defalut {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<glsx-image src="equity/card.png" class="img-card" /> <glsx-image src="equity/card.png" class="img-card" />
</view> </view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}"> <scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight + 110}}px);" refresher-enabled="{{false}}">
<view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight + 110}}px);">
<glsx-image class="card-free" src="equity/card-free.png" /> <glsx-image class="card-free" src="equity/card-free.png" />
<view class="equity-box" wx:for="{{imgList}}" wx:key="index"> <view class="equity-box" wx:for="{{imgList}}" wx:key="index">
<glsx-image class="img-equity" src="equity/card-{{index}}.png" /> <glsx-image class="img-equity" src="equity/card-{{index}}.png" />
...@@ -18,5 +19,6 @@ ...@@ -18,5 +19,6 @@
<!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> --> <!-- <view class="btn-defalut" bindtap="receiveRed">免费领取</view> -->
</view> </view>
</view> </view>
</view>
</scroll-view> </scroll-view>
<!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> --> <!-- <glsx-privacy appletName="业主甄选"></glsx-privacy> -->
\ No newline at end of file \ No newline at end of file
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
...@@ -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,7 +59,7 @@ Page({ ...@@ -56,7 +59,7 @@ 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 || ''
} }
......
...@@ -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%;
......
...@@ -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;
} }
......
...@@ -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
...@@ -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
...@@ -23,5 +23,5 @@ page{ ...@@ -23,5 +23,5 @@ page{
text-align: center; text-align: center;
} }
.layout{ .layout{
padding-top: 84px; padding-top: 64px;
} }
\ 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 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!