作者 韩昌

修改:11.35bug

正在显示 44 个修改的文件 包含 1110 行增加1072 行删除
... ... @@ -45,6 +45,9 @@ export default {
fail(e) {
console.log('支付失败', e)
uni.showToast({ title: '支付取消~', icon: 'none' })
setTimeout(() => {
uni.navigateBack()
}, 1500)
}
})
}
... ...
... ... @@ -150,9 +150,13 @@ const getCarPays = async () => {
fangs: defaultMode.value == 0 ? 1 : 2 //integer 否 支付方式:2是余额支付
}
const res = await getCarPay(params)
proxy.$methods.showTN('余额支付成功~')
proxy.$methods.pay(res)
canclePop()
console.log('getCarPay', res)
if (defaultMode.value === 1) {
proxy.$methods.showTN('余额支付成功~')
}
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
... ... @@ -166,6 +170,12 @@ const getOrderPays = async () => {
proxy.$methods.pay(res)
canclePop()
console.log('getOrderPay', res)
if (defaultMode.value === 1) {
uni.showToast({ title: '支付成功', icon: 'none' })
setTimeout(() => {
uni.navigateBack()
}, 1500)
}
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
... ...
<template>
<!-- 评论 -->
<view class="commentBox" v-for="item in commentList" :key="item.id">
<view class="info flexA">
<image :src="item.avatar" mode=""></image>
<view class="name">
<view>{{item.nickname}}</view>
<text>{{item.createtime}}</text>
</view>
</view>
<view class="openM">
<open :text="item.content"></open>
</view>
<view class="imageBox">
<image v-for="it in item.image" :src="it" mode=""></image>
</view>
</view>
<!-- 评论 -->
<view class="commentBox" v-for="item in commentList" :key="item.id">
<view class="info flexA">
<image :src="item.avatar" mode=""></image>
<view class="name">
<view>{{ item.nickname }}</view>
<text>{{ item.createtime }}</text>
</view>
</view>
<view class="openM">
<open :text="item.content"></open>
</view>
<view class="imageBox">
<image v-for="it in item.image" :src="it" mode=""></image>
</view>
</view>
</template>
<script setup>
import {ref,reactive,onMounted} from 'vue'
import open from './openComment.vue'
let props = defineProps({
commentList:{
type:Array,
default:[]
}
})
onMounted(()=> {
props.commentList.forEach(item=>{
item.image = item.image.split(',')
})
// console.log('评论',props.commentList)
})
const shadowStyle = reactive({
backgroundImage: "none",
paddingTop: "0",
marginTop: "0"
})
const content = ref('哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈')
import { ref, reactive, onMounted } from 'vue'
import open from './openComment.vue'
let props = defineProps({
commentList: {
type: Array,
default: []
}
})
onMounted(() => {
props.commentList.forEach(item => {
item.image = item.image.split(',')
})
// console.log('评论',props.commentList)
})
const shadowStyle = reactive({
backgroundImage: 'none',
paddingTop: '0',
marginTop: '0'
})
</script>
<style lang="scss">
.commentBox {
.info {
margin-bottom: 24rpx;
image {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
margin-right: 24rpx;
}
.name {
:nth-child(1) {
color: #131a14d9;
font-size: 28rpx;
font-weight: 700;
line-height: 40rpx;
}
text {
color: #131a1466;
font-size: 24rpx;
margin-top: 4rpx;
}
}
}
.imageBox {
margin-top: 32rpx;
display: flex;
flex-wrap: wrap;
image {
width: 226rpx;
height: 226rpx;
border-radius: 32rpx;
margin: 0 12rpx 12rpx 0;
}
:nth-child(3n) {
margin-right: 0 !important;
}
}
}
</style>
\ No newline at end of file
.commentBox {
.info {
margin-bottom: 24rpx;
image {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
margin-right: 24rpx;
}
.name {
:nth-child(1) {
color: #131a14d9;
font-size: 28rpx;
font-weight: 700;
line-height: 40rpx;
}
text {
color: #131a1466;
font-size: 24rpx;
margin-top: 4rpx;
}
}
}
.imageBox {
margin-top: 10rpx;
display: flex;
flex-wrap: wrap;
image {
width: 226rpx;
height: 226rpx;
border-radius: 32rpx;
margin: 0 12rpx 12rpx 0;
}
:nth-child(3n) {
margin-right: 0 !important;
}
}
}
</style>
... ...
... ... @@ -10,15 +10,15 @@
<view class="desc ellipsis">{{ item.describe }}</view>
<view class="shopPrice flexA" v-if="!pointShop">
<view class="new">¥{{ item.goods_price || item.spprice }}</view>
<view class="original" v-if="shopHeight == 322">¥{{ item.line_price }}</view>
<view class="original" v-if="shopHeight == 322 || isTejia">¥{{ item.line_price }}</view>
<view class="original" v-if="isClass">¥{{ item.spyprice }}</view>
</view>
<view class="points" v-else>
<image src="/static/shopCarIc/pointsIc.png" mode=""></image>
{{ item.coscore }}
</view>
<view v-if="shopWidth == 344" class="sold">{{ pointShop ? '已兑换:' : '已售:' }}{{ item.sales_actual }}份</view>
<view v-if="shopHeight == 322" class="sold">库存:{{ item.stock_num }}件</view>
<view v-if="shopWidth == 344 && !isTejia" class="sold">{{ pointShop ? '已兑换:' : '已售:' }}{{ item.sales_actual }}份</view>
<view v-if="shopHeight == 322 || isTejia" class="sold">库存:{{ item.stock_num }}件</view>
</view>
</view>
</view>
... ... @@ -43,7 +43,8 @@ const props = defineProps({
type: Array,
default: []
},
isClass: Boolean
isClass: Boolean,
isTejia: { type: Boolean, default: false } // 是否是特价
})
const wide = ref(props.shopWidth + 'rpx')
const heig = ref(props.shopHeight + 'rpx')
... ...
<template>
<!-- 全部评论 -->
<view class="">
<u-navbar bgColor="#fff" title="评论" :placeholder="true" :autoBack="true" ></u-navbar>
<view class="boxs">
<comment></comment>
</view>
</view>
<!-- 全部评论 -->
<view class="">
<u-navbar bgColor="#fff" title="评论" :placeholder="true" :autoBack="true"></u-navbar>
<view class="boxs">
<comment :commentList="all"></comment>
</view>
</view>
</template>
<script setup>
import comment from '@/componets/comment.vue'
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import comment from '@/componets/comment.vue'
const all = ref([])
onLoad(e => (all.value = JSON.parse(e.allCommentList)))
</script>
<style lang="scss">
.boxs {
padding: 40rpx 24rpx;
}
</style>
\ No newline at end of file
.boxs {
padding: 40rpx 24rpx;
}
</style>
... ...
... ... @@ -4,7 +4,7 @@
<view>
<search />
<view class="mainBox">
<shops :list="shopList" :shopWidth="344" :shopHeight="344" :pointShop="false" />
<shops :list="shopList" :shopWidth="344" :shopHeight="344" :pointShop="false" :isTejia="true" />
</view>
</view>
<view class="null flexV" v-if="!shopList.length">
... ...
... ... @@ -32,7 +32,8 @@
<view class="topBox flexJ">
<view class="titles">
<view class="title">特价专区</view>
<text>Special price zone</text>
<!-- <text>Special price zone</text> -->
<text>SPECIAL PRICE ZONE</text>
</view>
<view class="more flexA" @click="toBargainPriceMoreHandler">
更多
... ... @@ -40,7 +41,7 @@
</view>
</view>
<view class="shop">
<shops :list="data.specialList.slice(0, 2)" :shopWidth="322" :shopHeight="322"></shops>
<shops :list="data.specialList.slice(0, 2)" :shopWidth="322" :shopHeight="322" :isTejia="true"></shops>
</view>
</view>
</view>
... ...
... ... @@ -33,7 +33,7 @@
<image src="/static/indexIc/orangeRight.png" mode=""></image>
</view>
</view>
<view v-if="commentList.length > 0">
<view v-if="commentList.length">
<comment :commentList="commentList"></comment>
</view>
<!-- 暂无评论 -->
... ... @@ -72,14 +72,7 @@
</view>
<view v-else class="exchange flexC" @click="toOrder(3)">我要兑换</view>
</view>
<popPay
:moreSpec="moreSpec"
:shopDetail="detaileList"
@close="payPopShow = false"
:shopType="shopType"
:btnType="btnType"
:payPopShow="payPopShow"
></popPay>
<popPay :moreSpec="moreSpec" :shopDetail="detaileList" @close="payPopShow = false" :shopType="shopType" :btnType="btnType" :payPopShow="payPopShow"></popPay>
</view>
</template>
... ... @@ -98,11 +91,7 @@ onHide(() => {
payPopShow.value = false
})
const currentNum = ref(0)
const list6 = reactive([
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper3.png',
'https://cdn.uviewui.com/uview/swiper/swiper1.png'
])
const list6 = reactive(['https://cdn.uviewui.com/uview/swiper/swiper2.png', 'https://cdn.uviewui.com/uview/swiper/swiper3.png', 'https://cdn.uviewui.com/uview/swiper/swiper1.png'])
const icList = reactive([
{ id: 1, name: '店铺', icon: '/static/indexIc/shopIc.png' },
{ id: 2, name: '客服', icon: '/static/indexIc/service.png' },
... ... @@ -111,9 +100,7 @@ const icList = reactive([
const value = ref('1') // 购物车徽章数
//查看全部评论
const seeAll = () => {
uni.navigateTo({
url: '/pages/index/allComment'
})
uni.navigateTo({ url: `/pages/index/allComment?allCommentList=${allCommentList.value}` })
}
let btnType = ref(0) //按钮状态 0加入购物车 1立即购买
let payPopShow = ref(false) //按钮状态 0加入购物车 1立即购买
... ... @@ -144,6 +131,7 @@ let swiperList = ref([]) //轮播图
let commentList = ref([]) //评论
let moreSpec = ref({}) //多规格
let shopType = ref(1) //商品类型
const allCommentList = ref('')
// 获取详情
const getShopDetailes = async id => {
try {
... ... @@ -151,11 +139,12 @@ const getShopDetailes = async id => {
detaileList.value = res.detail //详情
specList.value = res.detail.spec[0] //默认规格第一项
swiperList.value = res.detail.images //轮播图
commentList.value = res.pinglun //评论
allCommentList.value = JSON.stringify(res.pinglun) // 跳转显示全部评论
commentList.value = res.pinglun.splice(0, 1) //评论
moreSpec.value = res.specData //多规格
shopType.value = res.detail.goodstatus //商品类型
value.value = res.cartNum
console.log('getShopDetaile', res)
// console.log('评论数据', commentList.value)
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
... ...
<template>
<!-- 登录 -->
<view class="">
<view class="bgBox">
<image src="/static/indexIc/loginBg.png" mode=""></image>
</view>
<view class="logo flexC">
<image src="/static/indexIc/logo.png" mode=""></image>
</view>
<view class="btnBox flexC" @click="login" v-if="!agreeStatus">
<image src="/static/indexIc/loginBtn.png" mode=""></image>
微信账号一键登录
</view>
<view class="btnBox flexC" v-else>
<image src="/static/indexIc/loginBtn.png" mode=""></image>
微信账号一键登录
<button open-type="getPhoneNumber" @getphonenumber="getphonenumber"></button>
</view>
<view class="agreeBox flexC">
<view class="checkImage" @click="agree">
<image v-if="!agreeStatus" src="/static/shopCarIc/checks.png" mode=""></image>
<image v-else src="/static/shopCarIc/modeCheck.png" mode=""></image>
</view>
<view class="agree flexA">
我已阅读并同意<view class="" @click="toRichText(4)">《用户协议》</view>和<view class="" @click="toRichText(5)">《隐私协议》
</view>
</view>
</view>
</view>
<!-- 登录 -->
<view class="">
<view class="bgBox">
<image src="/static/indexIc/loginBg.png" mode=""></image>
</view>
<view class="logo flexC">
<image src="/static/indexIc/logo.png" mode=""></image>
</view>
<view class="btnBox flexC" @click="login" v-if="!agreeStatus">
<image src="/static/indexIc/loginBtn.png" mode=""></image>
微信账号一键登录
</view>
<view class="btnBox flexC" v-else>
<image src="/static/indexIc/loginBtn.png" mode=""></image>
微信账号一键登录
<button open-type="getPhoneNumber" @getphonenumber="getphonenumber"></button>
</view>
<view class="agreeBox flexC">
<view class="checkImage" @click="agree">
<image v-if="!agreeStatus" src="/static/shopCarIc/checks.png" mode=""></image>
<image v-else src="/static/shopCarIc/modeCheck.png" mode=""></image>
</view>
<view class="agree flexA">
我已阅读并同意
<view class="" @click="toRichText(4)">《用户协议》</view>
<view class="" @click="toRichText(5)">《隐私协议》</view>
</view>
</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
import { onShow, onLoad, } from '@dcloudio/uni-app'
import { getLogin } from '@/api/'
const agreeStatus = ref(false) //是否勾选协议
const code = ref('') //登录参数code
onLoad(() => {
// this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight //'状态栏的高度'
if (uni.getStorageSync('token')) {
uni.reLaunch({
url: '/pages/index/index'
})
}
})
onShow(() => {
getCode() //获取code
})
// 登录校验是否勾选协议
const login = () => {
if (!agreeStatus.value) return uni.showToast({
title: '请勾选协议',
icon: 'none'
})
}
// 获取data和iv
const getphonenumber = (e) => {
if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
uni.showToast({
title: '您已取消授权',
icon: 'none'
})
} else {
getLogins(e.detail.encryptedData, e.detail.iv)
}
}
// 获取code
const getCode = () => {
uni.login({
provider: 'weixin', //使用微信登录
success: function(loginRes) {
console.log(loginRes)
code.value = loginRes.code
}
})
}
import { ref } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { getLogin } from '@/api/'
const agreeStatus = ref(false) //是否勾选协议
const code = ref('') //登录参数code
onLoad(() => {
// this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight //'状态栏的高度'
if (uni.getStorageSync('token')) {
uni.reLaunch({
url: '/pages/index/index'
})
}
})
onShow(() => {
getCode() //获取code
})
// 登录校验是否勾选协议
const login = () => {
if (!agreeStatus.value)
return uni.showToast({
title: '请勾选协议',
icon: 'none'
})
}
// 获取data和iv
const getphonenumber = e => {
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
uni.showToast({
title: '您已取消授权',
icon: 'none'
})
} else {
getLogins(e.detail.encryptedData, e.detail.iv)
}
}
// 获取code
const getCode = () => {
uni.login({
provider: 'weixin', //使用微信登录
success: function (loginRes) {
console.log(loginRes)
code.value = loginRes.code
}
})
}
// 登录
const getLogins = async (data, iv) => {
try {
let params = {
code: code.value, //string 是 code-wx.login的code
encryptedData: data, //string 是 encryptedData
iv: iv //string 是 iv
}
const res = await getLogin(params)
uni.setStorageSync('token', res.userInfo.token)
uni.reLaunch({ url: '/pages/index/index' })
console.log('getLogin', res)
// 保存数据
} catch (err) {
console.log('getLogin', err)
}
}
// 富文本
const toRichText = (e) => {
uni.navigateTo({
url: `/pages/richText/richText?type=${e}`
})
}
// // 勾选协议
const agree = () => {
agreeStatus.value = !agreeStatus.value
}
// 登录
const getLogins = async (data, iv) => {
try {
let params = {
code: code.value, //string 是 code-wx.login的code
encryptedData: data, //string 是 encryptedData
iv: iv //string 是 iv
}
const res = await getLogin(params)
uni.setStorageSync('token', res.token)
uni.setStorageSync('userInfo', res)
uni.reLaunch({ url: '/pages/index/index' })
console.log('getLogin', res)
// 保存数据
} catch (err) {
console.log('getLogin', err)
}
}
// 富文本
const toRichText = e => {
uni.navigateTo({
url: `/pages/richText/richText?type=${e}`
})
}
// // 勾选协议
const agree = () => {
agreeStatus.value = !agreeStatus.value
}
</script>
<style lang="scss">
.bgBox {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100vh;
z-index: -1;
.bgBox {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100vh;
z-index: -1;
image {
width: 100%;
height: 100vh;
}
}
image {
width: 100%;
height: 100vh;
}
}
.logo {
width: 100%;
height: 158rpx;
margin-top: 480rpx;
.logo {
width: 100%;
height: 158rpx;
margin-top: 480rpx;
image {
width: 156rpx;
height: 158rpx;
}
}
image {
width: 156rpx;
height: 158rpx;
}
}
.btnBox {
margin: 292rpx auto 60rpx;
width: 646rpx;
height: 88rpx;
border-radius: 44rpx;
opacity: 1;
background: #fff;
color: #fd7452ff;
font-size: 32rpx;
font-weight: 700;
position: relative;
.btnBox {
margin: 292rpx auto 60rpx;
width: 646rpx;
height: 88rpx;
border-radius: 44rpx;
opacity: 1;
background: #fff;
color: #fd7452ff;
font-size: 32rpx;
font-weight: 700;
position: relative;
image {
margin-right: 12rpx;
width: 48rpx;
height: 38rpx;
}
image {
margin-right: 12rpx;
width: 48rpx;
height: 38rpx;
}
button {
position: absolute;
background: transparent;
width: 100%;
height: 100%;
color: #fd7452ff;
font-size: 32rpx;
font-weight: 700;
button {
position: absolute;
background: transparent;
width: 100%;
height: 100%;
color: #fd7452ff;
font-size: 32rpx;
font-weight: 700;
&::after {
border: none;
}
}
}
&::after {
border: none;
}
}
}
.agreeBox {
margin-top: 502rpx;
.agreeBox {
margin-top: 502rpx;
.checkImage {
margin: 8rpx 8rpx 0 0;
.checkImage {
margin: 8rpx 8rpx 0 0;
image {
width: 28rpx;
height: 28rpx;
}
}
image {
width: 28rpx;
height: 28rpx;
}
}
.agree {
color: #fff;
font-size: 24rpx;
}
}
.agree {
color: #fff;
font-size: 24rpx;
}
}
</style>
... ...
... ... @@ -36,29 +36,39 @@ import { onShow, onLoad } from '@dcloudio/uni-app'
import { getComment } from '@/api/'
const count = ref(5) //最高可选星星数
const value = ref(0) //星星选中数
let photoList = reactive([]) //图片
let photoList = reactive([]) // 显示图片
const imgList = ref([])
let desc = ref('') //评论
const { proxy } = getCurrentInstance() //获取当前实例
// 提交评论
const submit = () => {
getComments()
}
const evaluateOrderId = ref(0) // 评价订单 id
onLoad(e => {
evaluateOrderId.value = e.id
})
// 上传图片
const addPhoto = () =>
proxy.$methods.upload('http://health.shs.broing.cn/api/common/upload', imgUrl => {
console.log('返回图片', imgUrl)
imgList.value.push(imgUrl.upImg)
photoList.push(imgUrl.avatar)
})
// 删除图片
const delPhoto = index => {
imgList.value.splice(index, 1)
photoList.splice(index, 1)
}
// 写评论
const getComments = async () => {
try {
let params = {
goods_id: 86, //integer 否 商品id
image: photoList.join(','), //string 是 图片
id: evaluateOrderId.value,
image: imgList.value.join(','), //string 是 图片
content: desc.value //integer 否 内容
}
const res = await getComment(params)
... ...
<template>
<view>
<u-navbar title="我的" bgColor="transparent"></u-navbar>
<view class="topBgBox">
<view class="name flexA">
<!-- <image src="../../static/logo.png" mode=""></image>
<view>
<u-navbar title="我的" bgColor="transparent"></u-navbar>
<view class="topBgBox">
<view class="name flexA">
<!-- <image src="../../static/logo.png" mode=""></image>
<text>阅读</text> -->
<view class="avatar">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class="nicName">
<open-data type="userNickName"></open-data>
</view>
</view>
<view class="vipBox">
<image class="blackBg" src="/static/mineIc/blackBg.png" mode=""></image>
<view class="vip flexJ">
<view>
<view class="title flexA">
<image src="/static/mineIc/Vector.png" mode=""></image>
会员中心
</view>
<view class="tip">充值会员享更多权益</view>
</view>
<view class="btn flexC" @click="toRecharg">立即充值</view>
</view>
</view>
</view>
<view class="mainBox">
<view class="orderClass">
<view class="classTitle flexJ" @click="orderStatus(5)">
<view class="my">我的订单</view>
<view class="all flexA">
全部
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
</view>
<view class="classBox flexJ">
<view class="items flexV" v-for="(item,index) in classList" :key="item.id" @click="orderStatus(index)">
<view class="badge">
<u-badge absolute :offset="[-4,-10]" color="#FFFFFF" bgColor="#F74637" max="99"
:value="item.num"></u-badge>
<image :src="item.ic" mode=""></image>
</view>
<text>{{item.name}}</text>
</view>
</view>
</view>
<view class="functionBox">
<view class="item flexJ" v-for="(item,index) in functionList" :key="item.id" @click="functionC(index)">
<view class="itemIc flexA">
<image :src="item.ic" mode=""></image>
<text>{{item.name}}</text>
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
<view class="myService flexJ">
<view class="service flexA">
<image src="/static/indexIc/service.png" mode=""></image>
<text>我的客服</text>
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
<button open-type="contact"></button>
</view>
</view>
</view>
</view>
<!-- <view class="avatar"> -->
<img class="avatar" :src="userInfo.avatar" alt="" />
<!-- <open-data type="userAvatarUrl"></open-data> -->
<!-- </view> -->
<view class="nicName">
{{ userInfo.nickname }}
<!-- <open-data type="userNickName"></open-data> -->
</view>
</view>
<view class="vipBox">
<image class="blackBg" src="/static/mineIc/blackBg.png" mode=""></image>
<view class="vip flexJ">
<view>
<view class="title flexA">
<image src="/static/mineIc/Vector.png" mode=""></image>
会员中心
</view>
<view class="tip">充值会员享更多权益</view>
</view>
<view class="btn flexC" @click="toRecharg">立即充值</view>
</view>
</view>
</view>
<view class="mainBox">
<view class="orderClass">
<view class="classTitle flexJ" @click="orderStatus(5)">
<view class="my">我的订单</view>
<view class="all flexA">
全部
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
</view>
<view class="classBox flexJ">
<view class="items flexV" v-for="(item, index) in classList" :key="item.id" @click="orderStatus(index)">
<view class="badge">
<u-badge absolute :offset="[-4, -10]" color="#FFFFFF" bgColor="#F74637" max="99" :value="item.num"></u-badge>
<image :src="item.ic" mode=""></image>
</view>
<text>{{ item.name }}</text>
</view>
</view>
</view>
<view class="functionBox">
<view class="item flexJ" v-for="(item, index) in functionList" :key="item.id" @click="functionC(index)">
<view class="itemIc flexA">
<image :src="item.ic" mode=""></image>
<text>{{ item.name }}</text>
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
<view class="myService flexJ">
<view class="service flexA">
<image src="/static/indexIc/service.png" mode=""></image>
<text>我的客服</text>
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
<button open-type="contact"></button>
</view>
</view>
</view>
</view>
</template>
<script setup>
import { ref,reactive} from 'vue'
import {onShow,onLoad} from '@dcloudio/uni-app'
import { getMine } from '@/api/'
onShow(()=>{
getMines()
})
let classList = reactive([{id:1,name:'待付款',num:0,ic:'/static/mineIc/obligation.png'},
{id:2,name:'待发货',num:0,ic:'/static/mineIc/shipped.png'},
{id:3,name:'待收货',num:0,ic:'/static/mineIc/received.png'},
{id:4,name:'待评价',num:0,ic:'/static/mineIc/evaluated.png'},
{id:5,name:'售后',num:0,ic:'/static/mineIc/afterSales.png'}])
let functionList = reactive([{id:1,name:'我的余额',ic:'/static/mineIc/balance.png'},
{id:2,name:'我的积分',ic:'/static/mineIc/collect.png'},
{id:3,name:'我的地址',ic:'/static/mineIc/addressBlack.png'}])
let info = ref({})
// 订单跳转
const orderStatus = (index)=> {
uni.navigateTo({
url:`/pages/mine/myOrder?status=${index==5 ? 0 : Number(index) + 1}`
})
}
// 功能跳转
const functionC = (index)=> {
// uni.navigateTo({
// url:'/pages/mine/' + ( index < 2 ? 'myPoints' : index==1 ? 'myCollection' :'myAddress' )
// })
if(index < 2) {
uni.navigateTo({
url:`/pages/mine/myPoints?type=${index}`
})
} else {
uni.navigateTo({
url:'/pages/mine/myAddress'
})
}
}
// 跳转充值中心
const toRecharg = ()=> {
uni.navigateTo({
url:'/pages/mine/recharge'
})
}
// 个人信息
const getMines = async ()=>{
try {
const res = await getMine()
classList[0].num = res.dfk
classList[1].num = res.dfh
classList[2].num = res.dsh
classList[3].num = res.ywc
classList[4].num = res.yth
info.value = res.userInfo
console.log('getMine', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('getMine', err)
}
}
import { ref, reactive } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { getMine } from '@/api/'
const userInfo = ref({})
// userInfo.value = uni.getStorageSync('userInfo') ?? {}
onShow(() => {
getMines()
})
let classList = reactive([
{ id: 1, name: '待付款', num: 0, ic: '/static/mineIc/obligation.png' },
{ id: 2, name: '待发货', num: 0, ic: '/static/mineIc/shipped.png' },
{ id: 3, name: '待收货', num: 0, ic: '/static/mineIc/received.png' },
{ id: 4, name: '待评价', num: 0, ic: '/static/mineIc/evaluated.png' },
{ id: 5, name: '售后', num: 0, ic: '/static/mineIc/afterSales.png' }
])
let functionList = reactive([
{ id: 1, name: '我的余额', ic: '/static/mineIc/balance.png' },
{ id: 2, name: '我的积分', ic: '/static/mineIc/collect.png' },
{ id: 3, name: '我的地址', ic: '/static/mineIc/addressBlack.png' }
])
let info = ref({})
// 订单跳转
const orderStatus = index => {
uni.navigateTo({
url: `/pages/mine/myOrder?status=${index == 5 ? 0 : Number(index) + 1}`
})
}
// 功能跳转
const functionC = index => {
// uni.navigateTo({
// url:'/pages/mine/' + ( index < 2 ? 'myPoints' : index==1 ? 'myCollection' :'myAddress' )
// })
if (index < 2) {
uni.navigateTo({
url: `/pages/mine/myPoints?type=${index}`
})
} else {
uni.navigateTo({
url: '/pages/mine/myAddress'
})
}
}
// 跳转充值中心
const toRecharg = () => {
uni.navigateTo({ url: '/pages/mine/recharge' })
}
// 个人信息
const getMines = async () => {
try {
const res = await getMine()
classList[0].num = res.dfk
classList[1].num = res.dfh
classList[2].num = res.dsh
classList[3].num = res.dpj
classList[4].num = res.yth
userInfo.value = res.userInfo
userInfo.value.avatar = res.avatar
console.log('getMine', res)
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getMine', err)
}
}
</script>
<style lang="scss">
.u-icon__icon {
display: none !important;
}
page {
background-color: #F6F8FA;
}
.topBgBox {
width: 100%;
height: 520rpx;
padding: 202rpx 24rpx 26rpx;
box-sizing: border-box;
opacity: 1;
background: linear-gradient(180deg, #ffece3ff 0%, #f7f8faff 100%);
.name {
margin-bottom: 32rpx;
.avatar {
overflow: hidden;
margin-right: 40rpx;
width: 120rpx;
height: 120rpx;
border-radius: 50% !important;
}
.nicName {
color: #000000e6;
font-size: 40rpx;
font-weight: 700;
}
}
.vipBox {
position: relative;
width: 702rpx;
height: 140rpx;
.blackBg {
width: 100%;
height: 100%;
}
.vip {
width: 642rpx;
position: absolute;
top: 28rpx;
left: 28rpx;
.title {
color: #ffdcb5ff;
font-size: 30rpx;
font-weight: 700;
image {
margin-right: 8rpx;
width: 58rpx;
height: 26rpx;
}
}
.btn {
width: 136rpx;
height: 56rpx;
border-radius: 34rpx;
color: #361e0dff;
font-size: 26rpx;
font-weight: 700;
background: linear-gradient(142.6deg, #fbcd9bff 0%, #ebc295ff 100%);
box-shadow: inset 0 -6rpx 8rpx 0 #9760217d;
}
.tip {
color: #ffffffb3;
font-size: 22rpx;
margin-top: 16rpx;
}
}
}
}
.mainBox {
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
.orderClass {
width: 100%;
padding: 28rpx 24rpx;
box-sizing: border-box;
background: #fff;
.classTitle {
margin-bottom: 28rpx;
.my {
color: #323233ff;
font-size: 30rpx;
font-weight: 700;
}
.all {
color: #969799ff;
font-size: 26rpx;
image {
margin: 4rpx 0 0 12rpx;
width: 16rpx;
height: 32rpx;
}
}
}
.classBox {
.items {
.badge {
position: relative;
image {
width: 48rpx;
height: 48rpx;
margin-bottom: 16rpx;
}
}
text {
color: #646566ff;
font-size: 24rpx;
}
}
}
}
.functionBox {
width: 100%;
padding: 0 32rpx 0 24rpx;
box-sizing: border-box;
border-radius: 34rpx;
margin-top: 24rpx;
background-color: #fff;
.item {
width: 100%;
height: 104rpx;
.itemIc {
text {
color: #000000e6;
font-size: 28rpx;
}
image {
margin-right: 24rpx;
width: 36rpx;
height: 36rpx;
}
}
image {
width: 16rpx;
height: 32rpx;
}
}
.myService {
position: relative;
width: 100%;
height: 104rpx;
.service {
image {
margin-right: 24rpx;
width: 36rpx;
height: 36rpx;
}
text {
color: #000000e6;
font-size: 28rpx;
}
}
button {
position: absolute;
width: 100%;
height: 100%;
background-color: transparent;
&::after {
border: none;
}
}
image {
width: 16rpx;
height: 32rpx;
}
}
}
}
.u-icon__icon {
display: none !important;
}
page {
background-color: #f6f8fa;
}
.topBgBox {
width: 100%;
height: 520rpx;
padding: 202rpx 24rpx 26rpx;
box-sizing: border-box;
opacity: 1;
background: linear-gradient(180deg, #ffece3ff 0%, #f7f8faff 100%);
.name {
margin-bottom: 32rpx;
.avatar {
overflow: hidden;
margin-right: 40rpx;
width: 120rpx;
height: 120rpx;
border-radius: 50% !important;
}
.nicName {
color: #000000e6;
font-size: 40rpx;
font-weight: 700;
}
}
.vipBox {
position: relative;
width: 702rpx;
height: 140rpx;
.blackBg {
width: 100%;
height: 100%;
}
.vip {
width: 642rpx;
position: absolute;
top: 28rpx;
left: 28rpx;
.title {
color: #ffdcb5ff;
font-size: 30rpx;
font-weight: 700;
image {
margin-right: 8rpx;
width: 58rpx;
height: 26rpx;
}
}
.btn {
width: 136rpx;
height: 56rpx;
border-radius: 34rpx;
color: #361e0dff;
font-size: 26rpx;
font-weight: 700;
background: linear-gradient(142.6deg, #fbcd9bff 0%, #ebc295ff 100%);
box-shadow: inset 0 -6rpx 8rpx 0 #9760217d;
}
.tip {
color: #ffffffb3;
font-size: 22rpx;
margin-top: 16rpx;
}
}
}
}
.mainBox {
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
.orderClass {
width: 100%;
padding: 28rpx 24rpx;
box-sizing: border-box;
background: #fff;
.classTitle {
margin-bottom: 28rpx;
.my {
color: #323233ff;
font-size: 30rpx;
font-weight: 700;
}
.all {
color: #969799ff;
font-size: 26rpx;
image {
margin: 4rpx 0 0 12rpx;
width: 16rpx;
height: 32rpx;
}
}
}
.classBox {
.items {
.badge {
position: relative;
image {
width: 48rpx;
height: 48rpx;
margin-bottom: 16rpx;
}
}
text {
color: #646566ff;
font-size: 24rpx;
}
}
}
}
.functionBox {
width: 100%;
padding: 0 32rpx 0 24rpx;
box-sizing: border-box;
border-radius: 34rpx;
margin-top: 24rpx;
background-color: #fff;
.item {
width: 100%;
height: 104rpx;
.itemIc {
text {
color: #000000e6;
font-size: 28rpx;
}
image {
margin-right: 24rpx;
width: 36rpx;
height: 36rpx;
}
}
image {
width: 16rpx;
height: 32rpx;
}
}
.myService {
position: relative;
width: 100%;
height: 104rpx;
.service {
image {
margin-right: 24rpx;
width: 36rpx;
height: 36rpx;
}
text {
color: #000000e6;
font-size: 28rpx;
}
}
button {
position: absolute;
width: 100%;
height: 100%;
background-color: transparent;
&::after {
border: none;
}
}
image {
width: 16rpx;
height: 32rpx;
}
}
}
}
</style>
... ...
<template>
<!-- 我的地址列表 -->
<view>
<u-navbar placeholder title="我的地址" bgColor="#fff" :autoBack="true"></u-navbar>
<view class="mainBox">
<view class="addressBox" v-for="item in addressList" :key="item.id" @click="checkAddress(item)">
<view class="topBox flexJ">
<view class="nameBox flexA">
<image src="/static/mineIc/redAddress.png" mode=""></image>
<view class="name">{{item.name}}</view>
<text>{{item.mobile}}</text>
</view>
<view class="rightIc flexA">
<image @click.stop="del(item.id)" src="/static/mineIc/delAddress.png" mode=""></image>
<image @click.stop="newAdd(0,item.id)" src="/static/mineIc/edit.png" mode=""></image>
</view>
</view>
<view class="area">
{{item.diqu}}
<test>{{item.address}}</test>
</view>
</view>
</view>
<!-- 地址列表为空 -->
<view class="addressNull flexV" v-if="!addressList">
<image src="/static/mineIc/addressNull.png" mode=""></image>
<text>暂无收货地址</text>
</view>
<view class="btnBox iosAuto">
<view class="btn flexC" @click="newAdd(1)">新建收货地址</view>
</view>
</view>
<!-- 我的地址列表 -->
<view>
<u-navbar placeholder title="我的地址" bgColor="#fff" :autoBack="true"></u-navbar>
<view class="mainBox">
<view class="addressBox" v-for="item in addressList" :key="item.id" @click="checkAddress(item)">
<view class="topBox flexJ">
<view class="nameBox flexA">
<image src="/static/mineIc/redAddress.png" mode=""></image>
<view class="name">{{ item.name }}</view>
<text>{{ item.mobile }}</text>
</view>
<view class="rightIc flexA">
<image @click.stop="del(item.id)" src="/static/mineIc/delAddress.png" mode=""></image>
<image @click.stop="newAdd(0, item.id)" src="/static/mineIc/edit.png" mode=""></image>
</view>
</view>
<view class="area">
{{ item.diqu }}
<test>{{ item.address }}</test>
</view>
</view>
</view>
<!-- 地址列表为空 -->
<view class="addressNull flexV" v-if="!addressList">
<image src="/static/mineIc/addressNull.png" mode=""></image>
<text>暂无收货地址</text>
</view>
<view class="btnBox iosAuto">
<view class="btn flexC" @click="newAdd(1)">新建收货地址</view>
</view>
</view>
</template>
<script setup>
import { ref, reactive } from 'vue'
import {onShow,onLoad} from '@dcloudio/uni-app'
import { getAdressList,getDelAdres } from '@/api/'
onShow(()=>{
getAdressLists() //地址列表
})
onLoad((e)=> {
isCheck.value = e.isCheck //是否选这地址
})
const addressList = ref([])
//type==0 修改地址 - 新建地址
const newAdd = (type,id)=> {
uni.navigateTo({
url:`/pages/mine/newAddress?id=${type == 0 ? id :''}`
})
}
let isCheck = ref(0)
// 选这地址
const checkAddress = (item)=> {
if(isCheck.value == 1) {
const pop = getCurrentPages().pop();
pop.$vm.getOpenerEventChannel().emit("steBack", item)
uni.navigateBack()
}
}
const del = (id)=> {
uni.showModal({
title: '提示',
content: '确认删除此地址吗',
success: function (res) {
if (res.confirm) {
getDelAdress(id)
}
}
});
}
// 删除地址
const getDelAdress = async (ids)=> {
try {
const res = await getDelAdres(ids)
uni.showToast({ title:'删除成功!',icon:'none' })
getAdressLists()
console.log('getDelAdres', res)
// 保存数据
} catch (err) {
console.log('getDelAdres', err)
}
}
// 获取地址列表
const getAdressLists = async ()=>{
try {
const res = await getAdressList()
addressList.value = res
let defaultAdres = res.find(item=>item.is_default == 1) //默认地址
uni.setStorageSync('defaultAdres',defaultAdres)
console.log('getAdressList', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('getAdressList', err)
}
}
import { ref, reactive } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { getAdressList, getDelAdres } from '@/api/'
const addressList = ref([])
onShow(() => {
addressList.value.splice(0)
getAdressLists() //地址列表
})
onLoad(e => {
isCheck.value = e.isCheck //是否选这地址
})
//type==0 修改地址 - 新建地址
const newAdd = (type, id) => {
console.log(type, id, 'type id是什么')
uni.navigateTo({
url: `/pages/mine/newAddress?id=${type == 0 ? id : ''}`
})
}
let isCheck = ref(0)
// 选这地址
const checkAddress = item => {
if (isCheck.value == 1) {
const pop = getCurrentPages().pop()
pop.$vm.getOpenerEventChannel().emit('steBack', item)
uni.navigateBack()
}
}
const del = id => {
uni.showModal({
title: '提示',
content: '确认删除此地址吗',
success: function (res) {
if (res.confirm) {
getDelAdress(id)
}
}
})
}
// 删除地址
const getDelAdress = async ids => {
try {
const res = await getDelAdres(ids)
uni.showToast({ title: '删除成功!', icon: 'none' })
getAdressLists()
console.log('getDelAdres', res)
// 保存数据
} catch (err) {
console.log('getDelAdres', err)
}
}
// 获取地址列表
const getAdressLists = async () => {
try {
const res = await getAdressList()
addressList.value = res
let defaultAdres = res.find(item => item.is_default == 1) //默认地址
uni.setStorageSync('defaultAdres', defaultAdres)
console.log('getAdressList', res)
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getAdressList', err)
}
}
</script>
<style lang="scss">
.mainBox {
background: #f8f9feff;
.addressBox {
width: 100%;
padding: 44rpx 32rpx;
box-sizing: border-box;
background: #fff;
margin-bottom: 12rpx;
.topBox {
margin-bottom: 18rpx;
.nameBox {
image {
width: 32rpx;
height: 32rpx;
}
.name {
color: #000000cc;
font-size: 32rpx;
font-weight: 700;
margin: 0 20rpx;
}
text {
color: #000000cc;
font-size: 28rpx;
font-weight: 700;
}
}
.rightIc {
image {
margin-left: 32rpx;
width: 36rpx;
height: 36rpx;
}
}
}
.area {
color: #00000066;
font-size: 26rpx;
text {
margin-left: 8rpx;
}
}
}
}
.addressNull {
margin-top: 266rpx;
image {
width: 266rpx;
height: 266rpx;
}
text {
color: #00000066;
font-size: 26rpx;
}
}
.btnBox {
position: fixed;
left: 0;
bottom: 0;
background: #fff;
width: 100%;
height: 120rpx;
.btn {
width: 686rpx;
height: 88rpx;
border-radius: 12rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
margin: 0 auto;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
}
.mainBox {
background: #f8f9feff;
.addressBox {
width: 100%;
padding: 44rpx 32rpx;
box-sizing: border-box;
background: #fff;
margin-bottom: 12rpx;
.topBox {
margin-bottom: 18rpx;
.nameBox {
image {
width: 32rpx;
height: 32rpx;
}
.name {
color: #000000cc;
font-size: 32rpx;
font-weight: 700;
margin: 0 20rpx;
}
text {
color: #000000cc;
font-size: 28rpx;
font-weight: 700;
}
}
.rightIc {
image {
margin-left: 32rpx;
width: 36rpx;
height: 36rpx;
}
}
}
.area {
color: #00000066;
font-size: 26rpx;
text {
margin-left: 8rpx;
}
}
}
}
.addressNull {
margin-top: 266rpx;
image {
width: 266rpx;
height: 266rpx;
}
text {
color: #00000066;
font-size: 26rpx;
}
}
.btnBox {
position: fixed;
left: 0;
bottom: 0;
background: #fff;
width: 100%;
height: 120rpx;
.btn {
width: 686rpx;
height: 88rpx;
border-radius: 12rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
margin: 0 auto;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
}
</style>
... ...
... ... @@ -39,7 +39,7 @@
<view @click.stop="operateOrder(item, 2)" v-if="item.order_status == 2" class="orange flexC">申请退款</view>
<!-- 待收货 -->
<view class="flexA" v-if="item.order_status == 3">
<view v-if="item.order_status == 3 && item.goodstatus_text == ''" class="cancel flexC" @click.stop="true">
<view v-if="item.order_status == 3" class="cancel flexC" @click.stop="true">
<button open-type="contact"></button>
联系客服
</view>
... ... @@ -73,11 +73,11 @@ import tipPops from '@/componets/tipPop.vue'
import { getOrderList, getCancleOrder, getRefund, getReceipt } from '@/api/'
onLoad(e => {
tabStatus.value = e.status * 1 //tabs当前选中
// console.log('订单状态', e.status)
getOrderLists(tabStatus.value == 5 ? 21 : tabStatus.value == 4 ? 5 : tabStatus.value * 1)
})
onShow(() => {
console.log('订单状态', tabStatus.value)
getOrderLists(tabStatus.value == 5 ? 21 : tabStatus.value * 1)
// getOrderLists(tabStatus.value == 5 ? 21 : tabStatus.value == 4 ? 5 : tabStatus.value * 1)
})
let tabStatus = ref(0) //订单状态
let orderList = ref([]) //订单
... ... @@ -94,7 +94,7 @@ const operateOrder = (item, type) => {
getReceipts() //确认收货
} else if (type == 4) {
uni.navigateTo({
url: '/pages/mine/evaluate'
url: `/pages/mine/evaluate?id=${item.id}`
})
} else if (type == 5) {
toDetaile(item.id)
... ... @@ -134,7 +134,7 @@ const click = e => {
console.log(e)
getOrderLists(e.index == 5 ? 21 : e.index == 4 ? 5 : e.index)
}
//订单状态: 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后
// 订单状态: 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后
const getOrderLists = async status => {
try {
const res = await getOrderList(status)
... ...
... ... @@ -65,7 +65,7 @@ const getyues = async () => {
const getMoneyDetails = async () => {
try {
const res = await getMoneyDetail()
recordList.value = res.mingxi
recordList.value = res
console.log('getMoneyDetail', res)
// 保存数据
} catch (err) {
... ...
<template>
<!-- 新建地址 -->
<view>
<u-navbar placeholder :title=" editId=='' ? '新建地址' : '修改地址' " bgColor="#f7f8faff" :autoBack="true"></u-navbar>
<view class="formBox flexA" v-for="item in formList" :key="item.id">
<view class="formTitle">{{item.name}}</view>
<input type="text" v-model="item.model" placeholder-class="gay" :placeholder="item.place" v-if="item.type == 'input'">
<view class="checkBox flexJ" :class="item.model!= ''? 'black' :'' " v-else @click="showPop">
<text>{{item.model == '' ? '选择地区' : item.model}}</text>
<image src="/static/mineIc/rightGayS.png" mode=""></image>
</view>
</view>
<view class="formBox flexJ">
<view class="defaults">设置为默认地址</view>
<view class="switch">
<u-switch activeColor="#FB623C" v-model="isDefault" @change="change"></u-switch>
</view>
</view>
<view class="btn flexC" @click="getEdits">保存</view>
<chekcArea @close="close" @popShow="popShow" :shows="shows"></chekcArea>
</view>
<!-- 新建地址 -->
<view>
<u-navbar placeholder :title="editId == '' ? '新建地址' : '修改地址'" bgColor="#f7f8faff" :autoBack="true"></u-navbar>
<view class="formBox flexA" v-for="item in formList" :key="item.id">
<view class="formTitle">{{ item.name }}</view>
<input type="text" v-model="item.model" placeholder-class="gay" :placeholder="item.place" v-if="item.type == 'input'" />
<view class="checkBox flexJ" :class="item.model != '' ? 'black' : ''" v-else @click="showPop">
<text>{{ item.model == '' ? '选择地区' : item.model }}</text>
<image src="/static/mineIc/rightGayS.png" mode=""></image>
</view>
</view>
<view class="formBox flexJ">
<view class="defaults">设置为默认地址</view>
<view class="switch">
<u-switch activeColor="#FB623C" v-model="isDefault" @change="change"></u-switch>
</view>
</view>
<view class="btn flexC" @click="getEdits">保存</view>
<chekcArea @close="close" @popShow="popShow" :shows="shows"></chekcArea>
</view>
</template>
<script setup>
import { ref, reactive } from 'vue'
import {onShow,onLoad} from '@dcloudio/uni-app'
import chekcArea from '@/componets/areaCheck.vue'
import { getEdit,getadresDetail } from '@/api/'
onLoad((e)=> {
editId.value = e.id //修改地址id
console.log('修改地址id',e.id)
if(e.id) {
getadresDetails(e.id) //地址详情
}
})
const formList = reactive([{id:1,name:'收货人',model:'',type:'input',place:'姓名'},
{id:2,name:'手机号',model:'',type:'input',place:'手机号码'},
{id:3,name:'所在地区',model:'',type:'check',place:'选这地区'},
{id:4,name:'详细地址',model:'',type:'input',place:'请填写详细地址'}])
let shows = ref(false)
const showPop = ()=> {
shows.value = true
}
const close = (data)=> {
shows.value = false
}
const popShow = (data)=> {
shows.value = false
formList[2].model = data.join('-')
console.log('省市区数据',data)
}
const isDefault = ref(false)
// 默认地址
const change = (e)=> {
console.log('默认地址', e);
isDefault.value = e
}
// 地址详情
const getadresDetails = async (id)=>{
try {
const res = await getadresDetail(id)
formList[0].model = res.name
formList[1].model = res.mobile
formList[2].model = res.diqu
formList[3].model = res.address
isDefault.value = res.is_default == 1 ? true : false
console.log('getadresDetail', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('getadresDetail', err)
}
}
let editId = ref('') //修改地址的id
// 修改 / 新建地址
const getEdits = async ()=>{
try {
let params = {
id:editId.value, //integer 否 地址ID—修改时必须
name:formList[0].model, //string 是 姓名
mobile:formList[1].model, //string 是 联系方式
diqu:formList[2].model, //string 是 所在地区
is_default:isDefault.value ? 1 : 0, //string 是 是否为默认地址1是
address:formList[3].model, //string 是 详细地址
}
const res = await getEdit(params)
uni.showToast({ title: editId.value == '' ? '新建地址成功' : '已修改',icon:'none' })
setTimeout(()=> {
uni.navigateBack()
},1000)
console.log('getEdit', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('getEdit', err)
}
}
import { ref, reactive } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import chekcArea from '@/componets/areaCheck.vue'
import { getEdit, getadresDetail } from '@/api/'
onLoad(e => {
editId.value = e.id //修改地址id
console.log('修改地址id', e.id)
if (e.id) {
getadresDetails(e.id) //地址详情
}
})
const formList = reactive([
{ id: 1, name: '收货人', model: '', type: 'input', place: '姓名' },
{ id: 2, name: '手机号', model: '', type: 'input', place: '手机号码' },
{ id: 3, name: '所在地区', model: '', type: 'check', place: '选这地区' },
{ id: 4, name: '详细地址', model: '', type: 'input', place: '请填写详细地址' }
])
let shows = ref(false)
const showPop = () => {
shows.value = true
}
const close = data => {
shows.value = false
}
const popShow = data => {
shows.value = false
formList[2].model = data.join('-')
console.log('省市区数据', data)
}
const isDefault = ref(false)
// 默认地址
const change = e => {
console.log('默认地址', e)
isDefault.value = e
}
// 地址详情
const getadresDetails = async id => {
try {
const res = await getadresDetail(id)
formList[0].model = res.name
formList[1].model = res.mobile
formList[2].model = res.diqu
formList[3].model = res.address
isDefault.value = res.is_default == 1 ? true : false
console.log('getadresDetail', res)
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getadresDetail', err)
}
}
let editId = ref('') //修改地址的id
// 修改 / 新建地址
const getEdits = async () => {
try {
let params = {
id: editId.value, //integer 否 地址ID—修改时必须
name: formList[0].model, //string 是 姓名
mobile: formList[1].model, //string 是 联系方式
diqu: formList[2].model, //string 是 所在地区
is_default: isDefault.value ? 1 : 0, //string 是 是否为默认地址1是
address: formList[3].model //string 是 详细地址
}
const res = await getEdit(params)
uni.showToast({ title: editId.value == '' ? '新建地址成功' : '已修改', icon: 'none' })
setTimeout(() => {
uni.navigateBack()
}, 1000)
console.log('getEdit', res)
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getEdit', err)
}
}
</script>
<style lang="scss">
page {
background: #f7f8faff;
}
page {
background: #f7f8faff;
}
.formBox {
padding: 32rpx;
background: #fff;
.formBox {
padding: 32rpx;
background: #fff;
.formTitle {
min-width: 112rpx;
margin-right: 152rpx;
color: #000000cc;
font-size: 28rpx;
}
input {
color: #000000cc;
font-size: 28rpx;
}
.gay {
color: #00000066;
font-size: 28rpx;
}
.checkBox {
width: 100%;
color: #00000066;
font-size: 28rpx;
image {
width: 24rpx;
height: 24rpx;
}
}
.black {
color: #000000cc;
font-size: 28rpx;
}
.defaults {
color: #000000cc;
font-size: 28rpx;
font-weight: 700;
}
}
.btn {
width: 686rpx;
height: 88rpx;
border-radius: 12rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
margin: 188rpx auto 0;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
.formTitle {
min-width: 112rpx;
margin-right: 152rpx;
color: #000000cc;
font-size: 28rpx;
}
input {
color: #000000cc;
font-size: 28rpx;
}
.gay {
color: #00000066;
font-size: 28rpx;
}
.checkBox {
width: 100%;
color: #00000066;
font-size: 28rpx;
image {
width: 24rpx;
height: 24rpx;
}
}
.black {
color: #000000cc;
font-size: 28rpx;
}
.defaults {
color: #000000cc;
font-size: 28rpx;
font-weight: 700;
}
}
.btn {
width: 686rpx;
height: 88rpx;
border-radius: 12rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
margin: 188rpx auto 0;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
</style>
... ...
... ... @@ -36,6 +36,7 @@
</view>
<view v-if="index == 0" @click="copy" class="copy">复制</view>
</view>
<view style="height: 200rpx"></view>
</view>
<!-- 按钮 // 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后-->
<view class="btnBox iosAuto">
... ... @@ -46,7 +47,8 @@
<view v-if="btnType == 1 || btnType == 3" class="red flexC" @click="btns(1)">{{ btnType == 1 ? '立即支付' : '确认收货' }}</view>
</view>
<!-- 选择支付方式 -->
<payMode @canclePop="modeShow = false" :orderId="orderId" :isOrderPay="true" :totalPrice="orderList.total_price" :modeShow="modeShow"></payMode>
<payMode @canclePop="modeShow = false" :balance="balance" :orderId="orderId" :isOrderPay="true" :totalPrice="orderList.total_price" :modeShow="modeShow"></payMode>
<!-- 提示弹窗 -->
<tipPops @pointsBtns="pointsBtns" :integral="integral" :tipType="tipType" :tipShow="tipShow"></tipPops>
</view>
... ... @@ -59,7 +61,7 @@ import shopAddres from '@/componets/address.vue'
import orderShops from '@/componets/orderShop.vue'
import tipPops from '@/componets/tipPop.vue'
import PayMode from '@/componets/checkPayMode.vue'
import { getOrderdetail, getCancleOrder, getRefund, getReceipt } from '@/api/'
import { getOrderdetail, getCancleOrder, getRefund, getReceipt, getyue } from '@/api/'
onLoad(e => {
console.log(e.id)
orderId.value = e.id
... ... @@ -72,6 +74,7 @@ let orderId = ref('') //订单id
let btnType = ref(1) //按钮状态
let integral = ref(0) //积分
let tipType = ref(1) //1取消支付 2取消订单
let balance = ref(0) //余额
let placeOrder = ref([
{ id: 1, name: '订单编号', text: '1212' },
{ id: 2, name: '支付方式', text: '1212' },
... ... @@ -79,10 +82,25 @@ let placeOrder = ref([
{ id: 4, name: '快递编号', text: '1212' }
])
onShow(() => {
getyues()
})
const getyues = async () => {
try {
const res = await getyue()
balance.value = res.money
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getyue', err)
}
}
const leftClickHandler = () => {
// const pages = getCurrentPages()
// const page = pages[pages.length - 2]
// page.onLoad({ status: 0 })
// console.log(page, '上一个页面')
uni.navigateBack({ delta: 1 })
}
... ...
... ... @@ -9,7 +9,7 @@
</view>
<image src="/static/mineIc/gayRight.png" mode=""></image>
</view>
<view v-else>
<view v-else @click="checkAddress">
<!-- 收货地址 -->
<shopAddres :adress="adress"></shopAddres>
</view>
... ... @@ -61,15 +61,7 @@
<view class="btn flexC" @click="btns">{{ shopType == 3 ? '立即兑换' : '立即购买' }}</view>
</view>
<!-- 选择支付方式弹窗 -->
<payMode
@canclePop="modeShow = false"
:car_Id="car_Id"
:balance="balance"
:totalPrice="orderInfo.total_price"
:adressId="adress.id"
:payParams="payParams"
:modeShow="modeShow"
></payMode>
<payMode @canclePop="modeShow = false" :car_Id="car_Id" :balance="balance" :totalPrice="orderInfo.total_price" :adressId="adress.id" :payParams="payParams" :modeShow="modeShow"></payMode>
<!-- 确认积分兑换弹窗 -->
<tipPop @pointsBtns="pointsBtns" :integral="orderInfo.coscore" :tipShow="tipShow"></tipPop>
</view>
... ...
... ... @@ -44,6 +44,9 @@ var methods = {
fail(e) {
console.log("\u652F\u4ED8\u5931\u8D25", e);
common_vendor.index.showToast({ title: "\u652F\u4ED8\u53D6\u6D88~", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
}
});
}
... ...
... ... @@ -120,9 +120,12 @@ const _sfc_main = {
fangs: defaultMode.value == 0 ? 1 : 2
};
const res = await api_index.getCarPay(params);
proxy.$methods.showTN("\u4F59\u989D\u652F\u4ED8\u6210\u529F~");
proxy.$methods.pay(res);
canclePop();
console.log("getCarPay", res);
if (defaultMode.value === 1) {
proxy.$methods.showTN("\u4F59\u989D\u652F\u4ED8\u6210\u529F~");
}
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getCarPay", err);
... ... @@ -134,6 +137,12 @@ const _sfc_main = {
proxy.$methods.pay(res);
canclePop();
console.log("getOrderPay", res);
if (defaultMode.value === 1) {
common_vendor.index.showToast({ title: "\u652F\u4ED8\u6210\u529F", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
}
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getOrderPay", err);
... ...
... ... @@ -23,7 +23,6 @@ const _sfc_main = {
paddingTop: "0",
marginTop: "0"
});
common_vendor.ref("\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8");
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.commentList, (item, k0, i0) => {
... ...
... ... @@ -45,7 +45,7 @@
margin-top: 4rpx;
}
.commentBox .imageBox {
margin-top: 32rpx;
margin-top: 10rpx;
display: flex;
flex-wrap: wrap;
}
... ...
... ... @@ -18,7 +18,8 @@ const _sfc_main = {
type: Array,
default: []
},
isClass: Boolean
isClass: Boolean,
isTejia: { type: Boolean, default: false }
},
setup(__props) {
const props = __props;
... ... @@ -44,8 +45,8 @@ const _sfc_main = {
c: common_vendor.t(item.describe)
}, !__props.pointShop ? common_vendor.e({
d: common_vendor.t(item.goods_price || item.spprice),
e: __props.shopHeight == 322
}, __props.shopHeight == 322 ? {
e: __props.shopHeight == 322 || __props.isTejia
}, __props.shopHeight == 322 || __props.isTejia ? {
f: common_vendor.t(item.line_price)
} : {}, {
g: __props.isClass
... ... @@ -53,10 +54,10 @@ const _sfc_main = {
h: common_vendor.t(item.spyprice)
} : {}) : {
i: common_vendor.t(item.coscore)
}, __props.shopWidth == 344 ? {
}, __props.shopWidth == 344 && !__props.isTejia ? {
j: common_vendor.t(__props.pointShop ? "\u5DF2\u5151\u6362\uFF1A" : "\u5DF2\u552E\uFF1A"),
k: common_vendor.t(item.sales_actual)
} : {}, __props.shopHeight == 322 ? {
} : {}, __props.shopHeight == 322 || __props.isTejia ? {
l: common_vendor.t(item.stock_num)
} : {}, {
m: item.id,
... ... @@ -64,8 +65,8 @@ const _sfc_main = {
});
}),
b: !__props.pointShop,
c: __props.shopWidth == 344,
d: __props.shopHeight == 322,
c: __props.shopWidth == 344 && !__props.isTejia,
d: __props.shopHeight == 322 || __props.isTejia,
e: common_vendor.s(_ctx.__cssVars())
};
};
... ...
... ... @@ -11,6 +11,8 @@ if (!Math) {
const comment = () => "../../componets/comment.js";
const _sfc_main = {
setup(__props) {
const all = common_vendor.ref([]);
common_vendor.onLoad((e) => all.value = JSON.parse(e.allCommentList));
return (_ctx, _cache) => {
return {
a: common_vendor.p({
... ... @@ -18,6 +20,9 @@ const _sfc_main = {
title: "\u8BC4\u8BBA",
placeholder: true,
autoBack: true
}),
b: common_vendor.p({
commentList: all.value
})
};
};
... ...
<view class=""><u-navbar wx:if="{{a}}" u-i="45cf33e3-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="boxs"><comment u-i="45cf33e3-1" bind:__l="__l"></comment></view></view>
\ No newline at end of file
<view class=""><u-navbar wx:if="{{a}}" u-i="45cf33e3-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="boxs"><comment wx:if="{{b}}" u-i="45cf33e3-1" bind:__l="__l" u-p="{{b}}"></comment></view></view>
\ No newline at end of file
... ...
... ... @@ -39,7 +39,8 @@ const _sfc_main = {
list: common_vendor.unref(shopList),
shopWidth: 344,
shopHeight: 344,
pointShop: false
pointShop: false,
isTejia: true
}),
c: !common_vendor.unref(shopList).length
}, !common_vendor.unref(shopList).length ? {} : {});
... ...
... ... @@ -76,7 +76,8 @@ const _sfc_main = {
f: common_vendor.p({
list: common_vendor.unref(data).specialList.slice(0, 2),
shopWidth: 322,
shopHeight: 322
shopHeight: 322,
isTejia: true
}),
g: common_vendor.p({
list: common_vendor.unref(data).recommendList,
... ...
<view><u-navbar wx:if="{{a}}" u-s="{{['left']}}" u-i="0a7f8b7d-0" bind:__l="__l" u-p="{{a}}"><view class="u-nav-slot" slot="left">大健康商城</view></u-navbar><view class="topBgBox"><image src="/static/indexIc/topBg.png" mode=""></image><view class="searchBox"><search u-i="0a7f8b7d-1" bind:__l="__l"></search><view class="vip flexC" bindtap="{{b}}"><image src="/static/indexIc/vip.png" mode=""></image></view></view></view><view class="classBox"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="itemClss flexV" bindtap="{{item.d}}"><image src="{{item.a}}" mode=""></image><text>{{item.b}}</text></view><view class="itemClss flexV" bindtap="{{d}}"><image src="/static/indexIc/classIc.png" mode=""></image><text>更多</text></view></view><view class="specialOffer"><image class="pinkBg" src="/static/indexIc/pinkBg.png" mode=""></image><view class="special"><view class="topBox flexJ"><view class="titles"><view class="title">特价专区</view><text>Special price zone</text></view><view class="more flexA" bindtap="{{e}}"> 更多 <image src="/static/indexIc/orangeRight.png" mode=""></image></view></view><view class="shop"><shops wx:if="{{f}}" u-i="0a7f8b7d-2" bind:__l="__l" u-p="{{f}}"></shops></view></view></view><view class="recom flexA"><image src="/static/indexIc/recommendIc.png" mode=""></image> 推荐商品 <text>限时限量好物推荐</text></view><view class="recomBox"><shops wx:if="{{g}}" u-i="0a7f8b7d-3" bind:__l="__l" u-p="{{g}}"></shops></view></view>
\ No newline at end of file
<view><u-navbar wx:if="{{a}}" u-s="{{['left']}}" u-i="0a7f8b7d-0" bind:__l="__l" u-p="{{a}}"><view class="u-nav-slot" slot="left">大健康商城</view></u-navbar><view class="topBgBox"><image src="/static/indexIc/topBg.png" mode=""></image><view class="searchBox"><search u-i="0a7f8b7d-1" bind:__l="__l"></search><view class="vip flexC" bindtap="{{b}}"><image src="/static/indexIc/vip.png" mode=""></image></view></view></view><view class="classBox"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="itemClss flexV" bindtap="{{item.d}}"><image src="{{item.a}}" mode=""></image><text>{{item.b}}</text></view><view class="itemClss flexV" bindtap="{{d}}"><image src="/static/indexIc/classIc.png" mode=""></image><text>更多</text></view></view><view class="specialOffer"><image class="pinkBg" src="/static/indexIc/pinkBg.png" mode=""></image><view class="special"><view class="topBox flexJ"><view class="titles"><view class="title">特价专区</view><text>SPECIAL PRICE ZONE</text></view><view class="more flexA" bindtap="{{e}}"> 更多 <image src="/static/indexIc/orangeRight.png" mode=""></image></view></view><view class="shop"><shops wx:if="{{f}}" u-i="0a7f8b7d-2" bind:__l="__l" u-p="{{f}}"></shops></view></view></view><view class="recom flexA"><image src="/static/indexIc/recommendIc.png" mode=""></image> 推荐商品 <text>限时限量好物推荐</text></view><view class="recomBox"><shops wx:if="{{g}}" u-i="0a7f8b7d-3" bind:__l="__l" u-p="{{g}}"></shops></view></view>
\ No newline at end of file
... ...
... ... @@ -27,11 +27,7 @@ const _sfc_main = {
payPopShow.value = false;
});
const currentNum = common_vendor.ref(0);
common_vendor.reactive([
"https://cdn.uviewui.com/uview/swiper/swiper2.png",
"https://cdn.uviewui.com/uview/swiper/swiper3.png",
"https://cdn.uviewui.com/uview/swiper/swiper1.png"
]);
common_vendor.reactive(["https://cdn.uviewui.com/uview/swiper/swiper2.png", "https://cdn.uviewui.com/uview/swiper/swiper3.png", "https://cdn.uviewui.com/uview/swiper/swiper1.png"]);
const icList = common_vendor.reactive([
{ id: 1, name: "\u5E97\u94FA", icon: "/static/indexIc/shopIc.png" },
{ id: 2, name: "\u5BA2\u670D", icon: "/static/indexIc/service.png" },
... ... @@ -39,9 +35,7 @@ const _sfc_main = {
]);
const value = common_vendor.ref("1");
const seeAll = () => {
common_vendor.index.navigateTo({
url: "/pages/index/allComment"
});
common_vendor.index.navigateTo({ url: `/pages/index/allComment?allCommentList=${allCommentList.value}` });
};
let btnType = common_vendor.ref(0);
let payPopShow = common_vendor.ref(false);
... ... @@ -67,17 +61,18 @@ const _sfc_main = {
let commentList = common_vendor.ref([]);
let moreSpec = common_vendor.ref({});
let shopType = common_vendor.ref(1);
const allCommentList = common_vendor.ref("");
const getShopDetailes = async (id) => {
try {
const res = await api_index.getShopDetaile(id);
detaileList.value = res.detail;
specList.value = res.detail.spec[0];
swiperList.value = res.detail.images;
commentList.value = res.pinglun;
allCommentList.value = JSON.stringify(res.pinglun);
commentList.value = res.pinglun.splice(0, 1);
moreSpec.value = res.specData;
shopType.value = res.detail.goodstatus;
value.value = res.cartNum;
console.log("getShopDetaile", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("", err);
... ... @@ -111,8 +106,8 @@ const _sfc_main = {
}, common_vendor.unref(commentList).length > 0 ? {
k: common_vendor.o(seeAll)
} : {}, {
l: common_vendor.unref(commentList).length > 0
}, common_vendor.unref(commentList).length > 0 ? {
l: common_vendor.unref(commentList).length
}, common_vendor.unref(commentList).length ? {
m: common_vendor.p({
commentList: common_vendor.unref(commentList)
})
... ...
... ... @@ -50,7 +50,8 @@ const _sfc_main = {
iv
};
const res = await api_index.getLogin(params);
common_vendor.index.setStorageSync("token", res.userInfo.token);
common_vendor.index.setStorageSync("token", res.token);
common_vendor.index.setStorageSync("userInfo", res);
common_vendor.index.reLaunch({ url: "/pages/index/index" });
console.log("getLogin", res);
} catch (err) {
... ...
<view class=""><view class="bgBox"><image src="/static/indexIc/loginBg.png" mode=""></image></view><view class="logo flexC"><image src="/static/indexIc/logo.png" mode=""></image></view><view wx:if="{{a}}" class="btnBox flexC" bindtap="{{b}}"><image src="/static/indexIc/loginBtn.png" mode=""></image> 微信账号一键登录 </view><view wx:else class="btnBox flexC"><image src="/static/indexIc/loginBtn.png" mode=""></image> 微信账号一键登录 <button open-type="getPhoneNumber" bindgetphonenumber="{{c}}"></button></view><view class="agreeBox flexC"><view class="checkImage" bindtap="{{e}}"><image wx:if="{{d}}" src="/static/shopCarIc/checks.png" mode=""></image><image wx:else src="/static/shopCarIc/modeCheck.png" mode=""></image></view><view class="agree flexA"> 我已阅读并同意<view class="" bindtap="{{f}}">《用户协议》</view>和<view class="" bindtap="{{g}}">《隐私协议》 </view></view></view></view>
\ No newline at end of file
<view class=""><view class="bgBox"><image src="/static/indexIc/loginBg.png" mode=""></image></view><view class="logo flexC"><image src="/static/indexIc/logo.png" mode=""></image></view><view wx:if="{{a}}" class="btnBox flexC" bindtap="{{b}}"><image src="/static/indexIc/loginBtn.png" mode=""></image> 微信账号一键登录 </view><view wx:else class="btnBox flexC"><image src="/static/indexIc/loginBtn.png" mode=""></image> 微信账号一键登录 <button open-type="getPhoneNumber" bindgetphonenumber="{{c}}"></button></view><view class="agreeBox flexC"><view class="checkImage" bindtap="{{e}}"><image wx:if="{{d}}" src="/static/shopCarIc/checks.png" mode=""></image><image wx:else src="/static/shopCarIc/modeCheck.png" mode=""></image></view><view class="agree flexA"> 我已阅读并同意 <view class="" bindtap="{{f}}">《用户协议》</view> 和 <view class="" bindtap="{{g}}">《隐私协议》</view></view></view></view>
\ No newline at end of file
... ...
... ... @@ -17,23 +17,30 @@ const _sfc_main = {
const count = common_vendor.ref(5);
const value = common_vendor.ref(0);
let photoList = common_vendor.reactive([]);
const imgList = common_vendor.ref([]);
let desc = common_vendor.ref("");
const { proxy } = common_vendor.getCurrentInstance();
const submit = () => {
getComments();
};
const evaluateOrderId = common_vendor.ref(0);
common_vendor.onLoad((e) => {
evaluateOrderId.value = e.id;
});
const addPhoto = () => proxy.$methods.upload("http://health.shs.broing.cn/api/common/upload", (imgUrl) => {
console.log("\u8FD4\u56DE\u56FE\u7247", imgUrl);
imgList.value.push(imgUrl.upImg);
photoList.push(imgUrl.avatar);
});
const delPhoto = (index) => {
imgList.value.splice(index, 1);
photoList.splice(index, 1);
};
const getComments = async () => {
try {
let params = {
goods_id: 86,
image: photoList.join(","),
id: evaluateOrderId.value,
image: imgList.value.join(","),
content: desc.value
};
const res = await api_index.getComment(params);
... ...
... ... @@ -14,6 +14,7 @@ if (!Math) {
}
const _sfc_main = {
setup(__props) {
const userInfo = common_vendor.ref({});
common_vendor.onShow(() => {
getMines();
});
... ... @@ -29,7 +30,7 @@ const _sfc_main = {
{ id: 2, name: "\u6211\u7684\u79EF\u5206", ic: "/static/mineIc/collect.png" },
{ id: 3, name: "\u6211\u7684\u5730\u5740", ic: "/static/mineIc/addressBlack.png" }
]);
let info = common_vendor.ref({});
common_vendor.ref({});
const orderStatus = (index) => {
common_vendor.index.navigateTo({
url: `/pages/mine/myOrder?status=${index == 5 ? 0 : Number(index) + 1}`
... ... @@ -47,9 +48,7 @@ const _sfc_main = {
}
};
const toRecharg = () => {
common_vendor.index.navigateTo({
url: "/pages/mine/recharge"
});
common_vendor.index.navigateTo({ url: "/pages/mine/recharge" });
};
const getMines = async () => {
try {
... ... @@ -57,9 +56,10 @@ const _sfc_main = {
classList[0].num = res.dfk;
classList[1].num = res.dfh;
classList[2].num = res.dsh;
classList[3].num = res.ywc;
classList[3].num = res.dpj;
classList[4].num = res.yth;
info.value = res.userInfo;
userInfo.value = res.userInfo;
userInfo.value.avatar = res.avatar;
console.log("getMine", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
... ... @@ -72,9 +72,11 @@ const _sfc_main = {
title: "\u6211\u7684",
bgColor: "transparent"
}),
b: common_vendor.o(toRecharg),
c: common_vendor.o(($event) => orderStatus(5)),
d: common_vendor.f(common_vendor.unref(classList), (item, index, i0) => {
b: userInfo.value.avatar,
c: common_vendor.t(userInfo.value.nickname),
d: common_vendor.o(toRecharg),
e: common_vendor.o(($event) => orderStatus(5)),
f: common_vendor.f(common_vendor.unref(classList), (item, index, i0) => {
return {
a: "6cbe0492-1-" + i0,
b: common_vendor.p({
... ... @@ -91,7 +93,7 @@ const _sfc_main = {
f: common_vendor.o(($event) => orderStatus(index), item.id)
};
}),
e: common_vendor.f(common_vendor.unref(functionList), (item, index, i0) => {
g: common_vendor.f(common_vendor.unref(functionList), (item, index, i0) => {
return {
a: item.ic,
b: common_vendor.t(item.name),
... ...
<view><u-navbar wx:if="{{a}}" u-i="6cbe0492-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="topBgBox"><view class="name flexA"><view class="avatar"><open-data type="userAvatarUrl"></open-data></view><view class="nicName"><open-data type="userNickName"></open-data></view></view><view class="vipBox"><image class="blackBg" src="/static/mineIc/blackBg.png" mode=""></image><view class="vip flexJ"><view><view class="title flexA"><image src="/static/mineIc/Vector.png" mode=""></image> 会员中心 </view><view class="tip">充值会员享更多权益</view></view><view class="btn flexC" bindtap="{{b}}">立即充值</view></view></view></view><view class="mainBox"><view class="orderClass"><view class="classTitle flexJ" bindtap="{{c}}"><view class="my">我的订单</view><view class="all flexA"> 全部 <image src="/static/mineIc/gayRight.png" mode=""></image></view></view><view class="classBox flexJ"><view wx:for="{{d}}" wx:for-item="item" wx:key="e" class="items flexV" bindtap="{{item.f}}"><view class="badge"><u-badge wx:if="{{item.b}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></u-badge><image src="{{item.c}}" mode=""></image></view><text>{{item.d}}</text></view></view></view><view class="functionBox"><view wx:for="{{e}}" wx:for-item="item" wx:key="c" class="item flexJ" bindtap="{{item.d}}"><view class="itemIc flexA"><image src="{{item.a}}" mode=""></image><text>{{item.b}}</text></view><image src="/static/mineIc/gayRight.png" mode=""></image></view><view class="myService flexJ"><view class="service flexA"><image src="/static/indexIc/service.png" mode=""></image><text>我的客服</text></view><image src="/static/mineIc/gayRight.png" mode=""></image><button open-type="contact"></button></view></view></view></view>
\ No newline at end of file
<view><u-navbar wx:if="{{a}}" u-i="6cbe0492-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="topBgBox"><view class="name flexA"><image class="avatar" src="{{b}}" alt=""/><view class="nicName">{{c}}</view></view><view class="vipBox"><image class="blackBg" src="/static/mineIc/blackBg.png" mode=""></image><view class="vip flexJ"><view><view class="title flexA"><image src="/static/mineIc/Vector.png" mode=""></image> 会员中心 </view><view class="tip">充值会员享更多权益</view></view><view class="btn flexC" bindtap="{{d}}">立即充值</view></view></view></view><view class="mainBox"><view class="orderClass"><view class="classTitle flexJ" bindtap="{{e}}"><view class="my">我的订单</view><view class="all flexA"> 全部 <image src="/static/mineIc/gayRight.png" mode=""></image></view></view><view class="classBox flexJ"><view wx:for="{{f}}" wx:for-item="item" wx:key="e" class="items flexV" bindtap="{{item.f}}"><view class="badge"><u-badge wx:if="{{item.b}}" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></u-badge><image src="{{item.c}}" mode=""></image></view><text>{{item.d}}</text></view></view></view><view class="functionBox"><view wx:for="{{g}}" wx:for-item="item" wx:key="c" class="item flexJ" bindtap="{{item.d}}"><view class="itemIc flexA"><image src="{{item.a}}" mode=""></image><text>{{item.b}}</text></view><image src="/static/mineIc/gayRight.png" mode=""></image></view><view class="myService flexJ"><view class="service flexA"><image src="/static/indexIc/service.png" mode=""></image><text>我的客服</text></view><image src="/static/mineIc/gayRight.png" mode=""></image><button open-type="contact"></button></view></view></view></view>
\ No newline at end of file
... ...
... ... @@ -28,7 +28,7 @@
display: none !important;
}
page {
background-color: #F6F8FA;
background-color: #f6f8fa;
}
.topBgBox {
width: 100%;
... ...
... ... @@ -13,14 +13,16 @@ if (!Math) {
}
const _sfc_main = {
setup(__props) {
const addressList = common_vendor.ref([]);
common_vendor.onShow(() => {
addressList.value.splice(0);
getAdressLists();
});
common_vendor.onLoad((e) => {
isCheck.value = e.isCheck;
});
const addressList = common_vendor.ref([]);
const newAdd = (type, id) => {
console.log(type, id, "type id\u662F\u4EC0\u4E48");
common_vendor.index.navigateTo({
url: `/pages/mine/newAddress?id=${type == 0 ? id : ""}`
});
... ...
... ... @@ -21,10 +21,10 @@ const _sfc_main = {
setup(__props) {
common_vendor.onLoad((e) => {
tabStatus.value = e.status * 1;
getOrderLists(tabStatus.value == 5 ? 21 : tabStatus.value == 4 ? 5 : tabStatus.value * 1);
});
common_vendor.onShow(() => {
console.log("\u8BA2\u5355\u72B6\u6001", tabStatus.value);
getOrderLists(tabStatus.value == 5 ? 21 : tabStatus.value * 1);
});
let tabStatus = common_vendor.ref(0);
let orderList = common_vendor.ref([]);
... ... @@ -40,7 +40,7 @@ const _sfc_main = {
getReceipts();
} else if (type == 4) {
common_vendor.index.navigateTo({
url: "/pages/mine/evaluate"
url: `/pages/mine/evaluate?id=${item.id}`
});
} else if (type == 5) {
toDetaile(item.id);
... ... @@ -184,8 +184,8 @@ const _sfc_main = {
} : {}, {
q: item.order_status == 3
}, item.order_status == 3 ? common_vendor.e({
r: item.order_status == 3 && item.goodstatus_text == ""
}, item.order_status == 3 && item.goodstatus_text == "" ? {
r: item.order_status == 3
}, item.order_status == 3 ? {
s: common_vendor.o(($event) => true)
} : {}, {
t: common_vendor.o(($event) => operateOrder(item, 3))
... ...
... ... @@ -44,7 +44,7 @@ const _sfc_main = {
const getMoneyDetails = async () => {
try {
const res = await api_index.getMoneyDetail();
recordList.value = res.mingxi;
recordList.value = res;
console.log("getMoneyDetail", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
... ...
<view><u-navbar wx:if="{{a}}" u-i="d543e3d0-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view wx:for="{{b}}" wx:for-item="item" wx:key="i" class="formBox flexA"><view class="formTitle">{{item.a}}</view><input wx:if="{{item.b}}" type="text" placeholder-class="gay" placeholder="{{item.c}}" value="{{item.d}}" bindinput="{{item.e}}"></input><view wx:else class="{{['checkBox', 'flexJ', item.g]}}" bindtap="{{item.h}}"><text>{{item.f}}</text><image src="/static/mineIc/rightGayS.png" mode=""></image></view></view><view class="formBox flexJ"><view class="defaults">设置为默认地址</view><view class="switch"><u-switch wx:if="{{e}}" bindchange="{{c}}" u-i="d543e3d0-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></u-switch></view></view><view class="btn flexC" bindtap="{{f}}">保存</view><chekc-area wx:if="{{i}}" bindclose="{{g}}" bindpopShow="{{h}}" u-i="d543e3d0-2" bind:__l="__l" u-p="{{i}}"></chekc-area></view>
\ No newline at end of file
<view><u-navbar wx:if="{{a}}" u-i="d543e3d0-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view wx:for="{{b}}" wx:for-item="item" wx:key="i" class="formBox flexA"><view class="formTitle">{{item.a}}</view><input wx:if="{{item.b}}" type="text" placeholder-class="gay" placeholder="{{item.c}}" value="{{item.d}}" bindinput="{{item.e}}"/><view wx:else class="{{['checkBox', 'flexJ', item.g]}}" bindtap="{{item.h}}"><text>{{item.f}}</text><image src="/static/mineIc/rightGayS.png" mode=""></image></view></view><view class="formBox flexJ"><view class="defaults">设置为默认地址</view><view class="switch"><u-switch wx:if="{{e}}" bindchange="{{c}}" u-i="d543e3d0-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></u-switch></view></view><view class="btn flexC" bindtap="{{f}}">保存</view><chekc-area wx:if="{{i}}" bindclose="{{g}}" bindpopShow="{{h}}" u-i="d543e3d0-2" bind:__l="__l" u-p="{{i}}"></chekc-area></view>
\ No newline at end of file
... ...
... ... @@ -28,12 +28,25 @@ const _sfc_main = {
let btnType = common_vendor.ref(1);
let integral = common_vendor.ref(0);
let tipType = common_vendor.ref(1);
let balance = common_vendor.ref(0);
let placeOrder = common_vendor.ref([
{ id: 1, name: "\u8BA2\u5355\u7F16\u53F7", text: "1212" },
{ id: 2, name: "\u652F\u4ED8\u65B9\u5F0F", text: "1212" },
{ id: 3, name: "\u4E0B\u5355\u65F6\u95F4", text: "1212" },
{ id: 4, name: "\u5FEB\u9012\u7F16\u53F7", text: "1212" }
]);
common_vendor.onShow(() => {
getyues();
});
const getyues = async () => {
try {
const res = await api_index.getyue();
balance.value = res.money;
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getyue", err);
}
};
const leftClickHandler = () => {
common_vendor.index.navigateBack({ delta: 1 });
};
... ... @@ -155,6 +168,7 @@ const _sfc_main = {
} : {}, {
s: common_vendor.o(($event) => common_vendor.isRef(modeShow) ? modeShow.value = false : modeShow = false),
t: common_vendor.p({
balance: common_vendor.unref(balance),
orderId: common_vendor.unref(orderId),
isOrderPay: true,
totalPrice: common_vendor.unref(orderList).total_price,
... ...
<view><u-navbar wx:if="{{b}}" bindleftClick="{{a}}" u-i="a44fc2ea-0" bind:__l="__l" u-p="{{b}}"></u-navbar><view class="mainBox"><shop-addres wx:if="{{c}}" u-i="a44fc2ea-1" bind:__l="__l" u-p="{{c}}"></shop-addres><view class="shopBox"><order-shops wx:if="{{d}}" u-i="a44fc2ea-2" bind:__l="__l" u-p="{{d}}"></order-shops><view class="line"></view><view class="mode flexJ"><view class="left">配送方式</view><view class="right">快递配送</view></view></view><view wx:if="{{e}}" class="moneyBox flexJ" style="margin-bottom:20rpx"><view>实付款</view><view class="money">¥{{f}}</view></view><block wx:if="{{g}}"><view class="moneyBox flexJ" style="margin-bottom:20rpx"><view>运费</view><view class="money">¥{{h}}</view></view><view class="moneyBox flexJ" style="margin-bottom:20rpx"><view>实付</view><view class="money"><text style="color:#000">{{i}}积分</text> +¥{{j}}</view></view></block><view wx:for="{{k}}" wx:for-item="item" wx:key="e" class="moneyBox flexJ"><view class="items">{{item.a}} <text>{{item.b}}</text></view><view wx:if="{{item.c}}" bindtap="{{item.d}}" class="copy">复制</view></view></view><view class="btnBox iosAuto"><view wx:if="{{l}}" class="service flexC"><button open-type="contact">联系客服</button></view><view wx:if="{{m}}" class="gay flexC" bindtap="{{o}}">{{n}}</view><view wx:if="{{p}}" class="red flexC" bindtap="{{r}}">{{q}}</view></view><pay-mode wx:if="{{t}}" bindcanclePop="{{s}}" u-i="a44fc2ea-3" bind:__l="__l" u-p="{{t}}"></pay-mode><tip-pops wx:if="{{w}}" bindpointsBtns="{{v}}" u-i="a44fc2ea-4" bind:__l="__l" u-p="{{w}}"></tip-pops></view>
\ No newline at end of file
<view><u-navbar wx:if="{{b}}" bindleftClick="{{a}}" u-i="a44fc2ea-0" bind:__l="__l" u-p="{{b}}"></u-navbar><view class="mainBox"><shop-addres wx:if="{{c}}" u-i="a44fc2ea-1" bind:__l="__l" u-p="{{c}}"></shop-addres><view class="shopBox"><order-shops wx:if="{{d}}" u-i="a44fc2ea-2" bind:__l="__l" u-p="{{d}}"></order-shops><view class="line"></view><view class="mode flexJ"><view class="left">配送方式</view><view class="right">快递配送</view></view></view><view wx:if="{{e}}" class="moneyBox flexJ" style="margin-bottom:20rpx"><view>实付款</view><view class="money">¥{{f}}</view></view><block wx:if="{{g}}"><view class="moneyBox flexJ" style="margin-bottom:20rpx"><view>运费</view><view class="money">¥{{h}}</view></view><view class="moneyBox flexJ" style="margin-bottom:20rpx"><view>实付</view><view class="money"><text style="color:#000">{{i}}积分</text> +¥{{j}}</view></view></block><view wx:for="{{k}}" wx:for-item="item" wx:key="e" class="moneyBox flexJ"><view class="items">{{item.a}} <text>{{item.b}}</text></view><view wx:if="{{item.c}}" bindtap="{{item.d}}" class="copy">复制</view></view><view style="height:200rpx"></view></view><view class="btnBox iosAuto"><view wx:if="{{l}}" class="service flexC"><button open-type="contact">联系客服</button></view><view wx:if="{{m}}" class="gay flexC" bindtap="{{o}}">{{n}}</view><view wx:if="{{p}}" class="red flexC" bindtap="{{r}}">{{q}}</view></view><pay-mode wx:if="{{t}}" bindcanclePop="{{s}}" u-i="a44fc2ea-3" bind:__l="__l" u-p="{{t}}"></pay-mode><tip-pops wx:if="{{w}}" bindpointsBtns="{{v}}" u-i="a44fc2ea-4" bind:__l="__l" u-p="{{w}}"></tip-pops></view>
\ No newline at end of file
... ...
... ... @@ -117,9 +117,10 @@ const _sfc_main = {
} : {
d: common_vendor.p({
adress: common_vendor.unref(adress)
})
}),
e: common_vendor.o(checkAddress)
}, {
e: common_vendor.f(common_vendor.unref(buyShop), (item, k0, i0) => {
f: common_vendor.f(common_vendor.unref(buyShop), (item, k0, i0) => {
return common_vendor.e({
a: item.image,
b: common_vendor.t(item.name),
... ... @@ -133,22 +134,22 @@ const _sfc_main = {
g: item.id
});
}),
f: common_vendor.unref(shopType) != 3,
g: common_vendor.unref(shopType) == 3
g: common_vendor.unref(shopType) != 3,
h: common_vendor.unref(shopType) == 3
}, common_vendor.unref(shopType) == 3 ? {
h: common_vendor.t(common_vendor.unref(orderInfo).express_price)
i: common_vendor.t(common_vendor.unref(orderInfo).express_price)
} : {}, {
i: common_vendor.unref(shopType) == 3
j: common_vendor.unref(shopType) == 3
}, common_vendor.unref(shopType) == 3 ? {
j: common_vendor.t(common_vendor.unref(orderInfo).coscore),
k: common_vendor.t(common_vendor.unref(orderInfo).express_price)
k: common_vendor.t(common_vendor.unref(orderInfo).coscore),
l: common_vendor.t(common_vendor.unref(orderInfo).express_price)
} : {
l: common_vendor.t(common_vendor.unref(orderInfo).total_price)
m: common_vendor.t(common_vendor.unref(orderInfo).total_price)
}, {
m: common_vendor.t(common_vendor.unref(shopType) == 3 ? "\u7ACB\u5373\u5151\u6362" : "\u7ACB\u5373\u8D2D\u4E70"),
n: common_vendor.o(btns),
o: common_vendor.o(($event) => common_vendor.isRef(modeShow) ? modeShow.value = false : modeShow = false),
p: common_vendor.p({
n: common_vendor.t(common_vendor.unref(shopType) == 3 ? "\u7ACB\u5373\u5151\u6362" : "\u7ACB\u5373\u8D2D\u4E70"),
o: common_vendor.o(btns),
p: common_vendor.o(($event) => common_vendor.isRef(modeShow) ? modeShow.value = false : modeShow = false),
q: common_vendor.p({
car_Id: common_vendor.unref(car_Id),
balance: common_vendor.unref(balance),
totalPrice: common_vendor.unref(orderInfo).total_price,
... ... @@ -156,8 +157,8 @@ const _sfc_main = {
payParams: common_vendor.unref(payParams),
modeShow: common_vendor.unref(modeShow)
}),
q: common_vendor.o(pointsBtns),
r: common_vendor.p({
r: common_vendor.o(pointsBtns),
s: common_vendor.p({
integral: common_vendor.unref(orderInfo).coscore,
tipShow: tipShow.value
})
... ...
<u-navbar wx:if="{{a}}" u-i="0a9b88e7-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="mainBox"><view wx:if="{{b}}" class="checkAddress flexJ" bindtap="{{c}}"><view class="add flexA"><image src="/static/shopCarIc/address.png" mode=""></image> 新增收货地址 </view><image src="/static/mineIc/gayRight.png" mode=""></image></view><view wx:else><shop-addres wx:if="{{d}}" u-i="0a9b88e7-1" bind:__l="__l" u-p="{{d}}"></shop-addres></view><view class="ordersShop"><view wx:for="{{e}}" wx:for-item="item" wx:key="g" class="shop flexJ"><view class="shopPhoto"><image src="{{item.a}}" mode=""></image></view><view class="shopInfo"><view class="shopName ellipsis">{{item.b}}</view><view class="shopDesc ellipsis">{{item.c}}</view><view class="price flexJ"><text wx:if="{{f}}">¥{{item.d}}</text><view wx:else class="flexA points">{{item.e}} <text>积分</text></view><view class="num">x{{item.f}}</view></view></view></view><view class="line"></view><view class="modeBox flexJ"><text>提货方式</text><view class="mode">快递配送</view></view><view wx:if="{{g}}" class="modeBox flexJ"><text>运费</text><view class="yunPrice">¥{{h}}</view></view></view><view class="btnsBox iosAuto flexJ"><view wx:if="{{i}}" class="pointsPrcie flexV"><view class="allPoints flexA"><view class="all">合计:</view><view class="pointsNum">{{j}} <text>积分</text></view></view><view class="pointsMoeny">{{k}}元</view></view><view wx:else class="allMoney flexA"><text>总价:</text> {{l}}</view><view class="btn flexC" bindtap="{{n}}">{{m}}</view></view><pay-mode wx:if="{{p}}" bindcanclePop="{{o}}" u-i="0a9b88e7-2" bind:__l="__l" u-p="{{p}}"></pay-mode><tip-pop wx:if="{{r}}" bindpointsBtns="{{q}}" u-i="0a9b88e7-3" bind:__l="__l" u-p="{{r}}"></tip-pop></view>
\ No newline at end of file
<u-navbar wx:if="{{a}}" u-i="0a9b88e7-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="mainBox"><view wx:if="{{b}}" class="checkAddress flexJ" bindtap="{{c}}"><view class="add flexA"><image src="/static/shopCarIc/address.png" mode=""></image> 新增收货地址 </view><image src="/static/mineIc/gayRight.png" mode=""></image></view><view wx:else bindtap="{{e}}"><shop-addres wx:if="{{d}}" u-i="0a9b88e7-1" bind:__l="__l" u-p="{{d}}"></shop-addres></view><view class="ordersShop"><view wx:for="{{f}}" wx:for-item="item" wx:key="g" class="shop flexJ"><view class="shopPhoto"><image src="{{item.a}}" mode=""></image></view><view class="shopInfo"><view class="shopName ellipsis">{{item.b}}</view><view class="shopDesc ellipsis">{{item.c}}</view><view class="price flexJ"><text wx:if="{{g}}">¥{{item.d}}</text><view wx:else class="flexA points">{{item.e}} <text>积分</text></view><view class="num">x{{item.f}}</view></view></view></view><view class="line"></view><view class="modeBox flexJ"><text>提货方式</text><view class="mode">快递配送</view></view><view wx:if="{{h}}" class="modeBox flexJ"><text>运费</text><view class="yunPrice">¥{{i}}</view></view></view><view class="btnsBox iosAuto flexJ"><view wx:if="{{j}}" class="pointsPrcie flexV"><view class="allPoints flexA"><view class="all">合计:</view><view class="pointsNum">{{k}} <text>积分</text></view></view><view class="pointsMoeny">{{l}}元</view></view><view wx:else class="allMoney flexA"><text>总价:</text> {{m}}</view><view class="btn flexC" bindtap="{{o}}">{{n}}</view></view><pay-mode wx:if="{{q}}" bindcanclePop="{{p}}" u-i="0a9b88e7-2" bind:__l="__l" u-p="{{q}}"></pay-mode><tip-pop wx:if="{{s}}" bindpointsBtns="{{r}}" u-i="0a9b88e7-3" bind:__l="__l" u-p="{{s}}"></tip-pop></view>
\ No newline at end of file
... ...
... ... @@ -16,24 +16,7 @@
"libVersion": "2.32.3",
"appid": "wxd6feb65ac83ce679",
"projectname": "healthMall",
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
},
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
... ...
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"condition": {
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/mine/orderDetail",
"query": "id=197",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/mine/myOrder",
"query": "status=0",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/index/shopDetaile",
"query": "id=107",
"launchMode": "default",
"scene": null
}
]
}
}
}
\ No newline at end of file