Commit 32bd316e by 李伟康

提交

1 parent f3b1a0ab
import { preReleaseAppId } from '~/config' import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 3 let index = 2
/** /**
* *
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
"selectedColor": "#8A303A", "selectedColor": "#8A303A",
"backgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF",
"borderStyle": "white", "borderStyle": "white",
"list": [ "list": [{
{
"pagePath": "pages/tab/index/index", "pagePath": "pages/tab/index/index",
"text": "首页", "text": "首页",
"iconPath": "assets/images/home.png", "iconPath": "assets/images/home.png",
...@@ -49,8 +48,7 @@ ...@@ -49,8 +48,7 @@
} }
] ]
}, },
"subpackages": [ "subpackages": [{
{
"root": "packageIndex", "root": "packageIndex",
"pages": [ "pages": [
"pages/bannerJumpPage/bannerJumpPage", "pages/bannerJumpPage/bannerJumpPage",
...@@ -128,5 +126,10 @@ ...@@ -128,5 +126,10 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
}, },
"plugins": {} "plugins": {
"authorization-plugin": {
"version": "1.0.2",
"provider": "wxe10067a63c1856ac"
}
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -383,6 +383,7 @@ Page({ ...@@ -383,6 +383,7 @@ Page({
key: 'activityStatus' key: 'activityStatus'
} }
}) })
this.getUserAddressDefault()
wx.hideLoading() wx.hideLoading()
} else { } else {
wx.hideLoading() wx.hideLoading()
...@@ -508,6 +509,12 @@ Page({ ...@@ -508,6 +509,12 @@ Page({
}) })
}, },
/** /**
* 生命周期函数--监听登录成功后回调
*/
onLoginSuccess() {
this.getUserAddressDefault()
},
/**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () {},
...@@ -517,7 +524,6 @@ Page({ ...@@ -517,7 +524,6 @@ Page({
*/ */
onShow: function () { onShow: function () {
this.getUserAddressList() this.getUserAddressList()
this.getUserAddressDefault()
}, },
/** /**
......
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
</block> </block>
</block> </block>
<block wx:if="{{showPoster && posterUrl}}"> <block wx:if="{{showPoster && posterUrl}}">
<view class="model" catchtouchmove="noScroll" > <view class="model" catchtouchmove="noScroll">
<view class="model-bg" bindtap="hidden"></view> <view class="model-bg" bindtap="hidden"></view>
<view class="poster" bindlongpress='save'> <view class="poster" bindlongpress='save'>
<image webp src="{{posterUrl}}"></image> <image webp src="{{posterUrl}}"></image>
......
...@@ -16,7 +16,6 @@ Page({ ...@@ -16,7 +16,6 @@ Page({
} }
}, },
onLoad: function (options) { onLoad: function (options) {
console.log(options,'==========')
if (options.id) { if (options.id) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: '编辑收货地址' title: '编辑收货地址'
...@@ -65,14 +64,12 @@ Page({ ...@@ -65,14 +64,12 @@ Page({
current: true current: true
}) })
mapApi.detailedAdrress([latitude, longitude]).then(detail => { mapApi.detailedAdrress([latitude, longitude]).then(detail => {
console.log(detail)
this.setData({ this.setData({
currentAddress: detail currentAddress: detail
}) })
}) })
}) })
.catch(err => { .catch(err => {
console.log(err)
wx.p.wxApi.showToast('获取位置失败') wx.p.wxApi.showToast('获取位置失败')
}) })
}, },
...@@ -158,7 +155,6 @@ Page({ ...@@ -158,7 +155,6 @@ Page({
}, },
/**选择地区 */ /**选择地区 */
chooseArea(e) { chooseArea(e) {
console.log(e)
let { value, code } = e.detail let { value, code } = e.detail
let { userObj } = this.data let { userObj } = this.data
userObj.region = [value[0], value[1], value[2]] userObj.region = [value[0], value[1], value[2]]
......
...@@ -14,7 +14,6 @@ Page({ ...@@ -14,7 +14,6 @@ Page({
let { let {
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
// console.log(e)
let url = '/packageMine/pages/order/detail/detail' let url = '/packageMine/pages/order/detail/detail'
wx.p.router.go(url, item) wx.p.router.go(url, item)
}, },
...@@ -69,7 +68,6 @@ Page({ ...@@ -69,7 +68,6 @@ Page({
if (!isMerchant) para.merchantId = merchantId if (!isMerchant) para.merchantId = merchantId
wx.p.api.couponsApi.getCardData(para).then(res => { wx.p.api.couponsApi.getCardData(para).then(res => {
wx.hideLoading() wx.hideLoading()
// console.log(res);
let list = res.map(item => { let list = res.map(item => {
item.checkCoupon = false item.checkCoupon = false
item.userCouponList.map((itm, index) => { item.userCouponList.map((itm, index) => {
...@@ -99,7 +97,6 @@ Page({ ...@@ -99,7 +97,6 @@ Page({
}) })
}, },
async onLoad(options) { async onLoad(options) {
console.log(options)
const showLogin = await wx.p.router.intercept(false) const showLogin = await wx.p.router.intercept(false)
this.setData({ this.setData({
showLogin showLogin
......
// packageMine/pages/order/components/OrderItem/OrderItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageMine/pages/order/components/OrderItem/OrderItem.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageMine/pages/order/components/OrderItem/OrderItem.wxml-->
<text>packageMine/pages/order/components/OrderItem/OrderItem.wxml</text>
...@@ -41,7 +41,6 @@ Page({ ...@@ -41,7 +41,6 @@ Page({
}, },
} = e.currentTarget.dataset } = e.currentTarget.dataset
if (orderSource == 5 && (orderStatus == 2 || orderStatus == 7)) return if (orderSource == 5 && (orderStatus == 2 || orderStatus == 7)) return
console.log(e)
let url = '/packageMine/pages/order/detail/detail' let url = '/packageMine/pages/order/detail/detail'
wx.p.router.go(url, { wx.p.router.go(url, {
orderCode orderCode
...@@ -66,7 +65,6 @@ Page({ ...@@ -66,7 +65,6 @@ Page({
else wx.p.router.back() else wx.p.router.back()
}, },
changeTab(e) { changeTab(e) {
console.log('e', e)
this.setData({ this.setData({
tabIndex: e.detail, tabIndex: e.detail,
orderStatusPart: orderStatusPartEnum[e.detail], orderStatusPart: orderStatusPartEnum[e.detail],
...@@ -83,7 +81,6 @@ Page({ ...@@ -83,7 +81,6 @@ Page({
let { let {
userInfo userInfo
} = this.data } = this.data
console.log(orderCode)
wx.p.router.go('/packageMall/pages/addComment/addComment', { wx.p.router.go('/packageMall/pages/addComment/addComment', {
orderCode, orderCode,
userInfo, userInfo,
...@@ -96,7 +93,6 @@ Page({ ...@@ -96,7 +93,6 @@ Page({
orderCode orderCode
}, },
} = e.currentTarget.dataset } = e.currentTarget.dataset
console.log(orderCode)
wx.p.router.go('/packageMall/pages/commentDetails/commentDetails', orderCode) wx.p.router.go('/packageMall/pages/commentDetails/commentDetails', orderCode)
}, },
//取消售后 //取消售后
...@@ -223,7 +219,6 @@ Page({ ...@@ -223,7 +219,6 @@ Page({
let list = [] let list = []
wx.p.api.mineApi.getOrderList(obj).then((data) => { wx.p.api.mineApi.getOrderList(obj).then((data) => {
wx.hideLoading() wx.hideLoading()
console.log('data', data)
data?.list?.map((e) => { data?.list?.map((e) => {
let { let {
orderGoods, orderGoods,
...@@ -447,7 +442,6 @@ Page({ ...@@ -447,7 +442,6 @@ Page({
let { let {
orderCode orderCode
} = e.currentTarget.dataset } = e.currentTarget.dataset
console.log(orderCode)
wx.p.router.go('/packageMine/pages/boutiquePages/boutiqueOrder/boutiqueOrder', { wx.p.router.go('/packageMine/pages/boutiquePages/boutiqueOrder/boutiqueOrder', {
orderCode, orderCode,
type: 2, type: 2,
......
<view class="sticky-box "> <view class="sticky-box">
<navigation-bar custom bindnavbarReady="navbarReady" page-title="我的订单"> <navigation-bar custom bindnavbarReady="navbarReady" page-title="我的订单">
<view class="navigation"> <view class="navigation">
<view class="back text-center y-center" bindtap="back"> <view class="back text-center y-center" bindtap="back">
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</view> </view>
</view> </view>
<!-- !hasUserInfo --> <!-- !hasUserInfo -->
<view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}"> <view wx:if="{{item.orderGoods.length > 1 && !hasUserInfo}}">
<block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}"> <block wx:if="{{item.orderStatus == 5 || item.orderStatus == 8}}">
<block wx:if="{{item.evaluatedFlag == 'Y'}}"> <block wx:if="{{item.evaluatedFlag == 'Y'}}">
<view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view> <view class="btn confirm" catchtap="lookevaluate" data-item="{{item}}">查看评价</view>
......
...@@ -38,11 +38,7 @@ Page({ ...@@ -38,11 +38,7 @@ Page({
data, data,
code code
} = await wx.p.api.userApi.login() } = await wx.p.api.userApi.login()
if (code == '0') { if (code == '0') this.customerLoginCallBack(data)
wx.p.storage.set('userInfo', data)
wx.p.storage.set('sessionId', data.sessionId)
wx.p.router.back()
}
if (data) this.sessionId = data.sessionId if (data) this.sessionId = data.sessionId
wx.hideLoading() wx.hideLoading()
}, },
...@@ -168,6 +164,7 @@ Page({ ...@@ -168,6 +164,7 @@ Page({
thisPage && thisPage.setData({ thisPage && thisPage.setData({
userInfo: data userInfo: data
}) })
thisPage.onLoginSuccess && thisPage.onLoginSuccess() //登陆成功后页面回调
}) })
}, },
......
...@@ -10,13 +10,12 @@ Page({ ...@@ -10,13 +10,12 @@ Page({
data: { data: {
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
async onLoad(options) { async onLoad(options) {
console.log('---------------- 页面初始化 ----------------') console.log('---------------- 页面初始化 ----------------')
console.log('初始化数据:', options) console.log('options参数:', options)
systemApi.getImageVersion() //获取图片版本号 systemApi.getImageVersion() //获取图片版本号
this.tabList = __wxConfig.tabBar.list this.tabList = __wxConfig.tabBar.list
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
......
...@@ -76,7 +76,10 @@ Component({ ...@@ -76,7 +76,10 @@ Component({
}) })
}, },
toBuyMember() { toBuyMember() {
wx.p.router.go('/packageEquity/pages/open/open') wx.p.router.go('/packageEquity/pages/open/open', {
notIntercept: true
})
}, },
jump() { jump() {
const { const {
......
...@@ -54,7 +54,6 @@ Page({ ...@@ -54,7 +54,6 @@ Page({
res = await wx.p.api.shopmallApi.getMerchantClassify({ res = await wx.p.api.shopmallApi.getMerchantClassify({
merchantId merchantId
}) })
console.log(res)
let tabList = [{ let tabList = [{
zoneName: '全部', zoneName: '全部',
id: '', id: '',
......
...@@ -78,7 +78,6 @@ Page({ ...@@ -78,7 +78,6 @@ Page({
}) })
} else { } else {
wx.p.api.equityApi.checkOpenMember().then(res => { wx.p.api.equityApi.checkOpenMember().then(res => {
console.log(res, '----------')
let flag = false, let flag = false,
identity = 0 // 普通会员3 银卡2 金卡1 非会员 0 identity = 0 // 普通会员3 银卡2 金卡1 非会员 0
if (res.data && res.data.validitDate) { if (res.data && res.data.validitDate) {
...@@ -124,7 +123,9 @@ Page({ ...@@ -124,7 +123,9 @@ Page({
}, },
// 开通会员页面 // 开通会员页面
toBuyMember() { toBuyMember() {
wx.p.router.go('/packageEquity/pages/open/open') wx.p.router.go('/packageEquity/pages/open/open',{
notIntercept: true
})
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
......
...@@ -60,5 +60,5 @@ ...@@ -60,5 +60,5 @@
"include": [] "include": []
}, },
"appid": "wx2a9f38eb8e39b823", "appid": "wx2a9f38eb8e39b823",
"projectname": "hmd" "projectname": "hmd-0817"
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!