作者 韩昌

bug

正在显示 69 个修改的文件 包含 380 行增加4048 行删除

要显示太多修改。

为保证性能只显示 69 of 69+ 个文件。

... ... @@ -118,3 +118,9 @@ export const getadresDetail = id => request({ url: '/api/address/detail', method
// 删除地址 /api/address/del
export const getDelAdres = ids => request({ url: '/api/address/del', method: 'post', data: { ids } })
// 用户协议 /api/common/compact
export const getcompact = () => request({ url: '/api/common/compact', method: 'post' })
// 隐私条款 /api/common/privacyPolicy
export const getprivacyPolicy = () => request({ url: '/api/common/privacyPolicy', method: 'post' })
... ...
... ... @@ -11,8 +11,8 @@
</view>
<view class="price">
<view class="shopName ellipsis">{{ shopDetail.name }}</view>
<view class="money" v-if="shopDetail.goodstatus !== 3">¥{{ shopDetail.spec[0].goods_price }}</view>
<view class="money" v-else>{{ shopDetail.spec[0].coscore }}积分</view>
<view class="money" v-if="shopDetail.goodstatus !== 3">¥{{ shopDetail.spec[data.curPriceIdx].goods_price }}</view>
<view class="money" v-else>{{ shopDetail.spec[data.curPriceIdx].coscore }}积分</view>
</view>
</view>
<!-- 商品规格 -->
... ... @@ -21,7 +21,13 @@
{{ item.group_name }}
</view>
<view class="colorBox">
<view class="item" v-for="(it, idx) in item.spec_items" :key="it.item_id" :class="idx == data.indexList[index].curIndex ? 'checked' : ''" @click="checkSpec(index, it, idx)">
<view
class="item"
v-for="(it, idx) in item.spec_items"
:key="it.item_id"
:class="idx == data.indexList[index].curIndex ? 'checked' : ''"
@click="checkSpec(index, it, idx)"
>
{{ it.spec_value }}
</view>
</view>
... ... @@ -72,7 +78,8 @@ let data = reactive({
specID: [], //选中的规格id
specIdList: [], //规格组合id数组
formList: {}, //选择玩规格后的商品详情
goods_spec_id: '' //参数规格id
goods_spec_id: '', //参数规格id
curPriceIdx: 0 // 当前价格索引
})
onMounted(() => {
setTimeout(() => {
... ... @@ -112,6 +119,7 @@ const popBtn = () => {
//选择规格
const checkSpec = (index, it, idx) => {
console.log(index, it, idx)
data.curPriceIdx = idx
data.indexList[index].curIndex = idx //选中高亮
if (data.speList.length == 1) {
data.specID.splice(index, 1, it.item_id)
... ...
<template>
<!-- 搜索框 -->
<view class="boxs">
<view class="searchInput flexJ" @click="jump">
<view class="left flexA">
<image src="/static/indexIc/indexSearchIc.png" mode=""></image>
<input :disabled="disabled" confirm-type="search" v-model="inputText" @confirm="doSearchs" @input="input" type="text" placeholder="请输入" placeholder-class="ples">
</view>
<view class="right flexA" @click="doSearchs(0)">
<view class="line"></view>
<text>搜索</text>
</view>
</view>
</view>
<!-- 搜索框 -->
<view class="boxs">
<view class="searchInput flexJ" @click="jump">
<u-search @search="doSearchs" @custom="doSearchs" :disabled="disabled" placeholder="请输入" v-model="inputText" bgColor="#fff" searchIconColor="#fda9a3" :actionStyle="actionStyle"></u-search>
<!-- <view class="left flexA">
<image src="/static/indexIc/indexSearchIc.png" mode=""></image>
<input :disabled="disabled" confirm-type="search" v-model="inputText" @confirm="doSearchs" @input="input" type="text" placeholder="请输入" placeholder-class="ples" />
</view>
<view class="right flexA" @click="doSearchs(0)">
<view class="line"></view>
<text>搜索</text>
</view> -->
</view>
</view>
</template>
<script setup>
import { ref,onMounted,defineEmits } from 'vue'
const props = defineProps({
disabled:{
type:Boolean,
default:true
},
keyWord:{
type:String,
default:''
}
})
let inputText = ref('') //输入框文字
onMounted(()=> {
inputText.value = props.keyWord
// console.log('首艘',props.disabled)
})
const emit = defineEmits(['doSearchs','input'])
// 回车事件
const doSearchs = (e)=> {
if(e==0) {
if(inputText.value.trim() == '') return
emit('doSearchs',inputText.value)
} else {
emit('doSearchs',e.detail.value)
}
}
// 输入框为空
const input = (e)=> {
if(e.detail.value == '') {
emit('input',e.detail.value)
}
}
// // 点击搜索按钮
// const search = ()=> {
// console.log('搜索为你做')
// }
const jump = ()=> {
props.disabled ? uni.navigateTo({url:'/pages/index/search'}) : ''
}
import { ref, onMounted, defineEmits } from 'vue'
const props = defineProps({
disabled: {
type: Boolean,
default: true
},
keyWord: {
type: String,
default: ''
}
})
let inputText = ref('') //输入框文字
const actionStyle = ref({
fontSize: '28rpx',
fontWeight: 700,
color: '#fb753c'
})
onMounted(() => {
inputText.value = props.keyWord
// console.log('首艘',props.disabled)
})
const emit = defineEmits(['doSearchs', 'input'])
// 回车事件
const doSearchs = e => {
emit('doSearchs', inputText.value)
// if (e == 0) {
// if (inputText.value.trim() == '') return
// emit('doSearchs', inputText.value)
// } else {
// emit('doSearchs', e.detail.value)
// }
}
// 输入框为空
const input = e => {
if (e.detail.value == '') {
emit('input', e.detail.value)
}
}
// // 点击搜索按钮
// const search = ()=> {
// console.log('搜索为你做')
// }
const jump = () => {
props.disabled ? uni.navigateTo({ url: '/pages/index/search' }) : ''
}
</script>
<style lang="scss">
.boxs {
width: 100%;
height: 96rpx;
padding: 18rpx 32rpx;
box-sizing: border-box;
.searchInput {
width: 100%;
height: 100%;
background-color: #FFFFFF;
border-radius: 38rpx;
padding: 14rpx 24rpx;
box-sizing: border-box;
.left {
image {
margin-right: 8rpx;
width: 32rpx;
height: 32rpx;
}
input {
width: 500rpx !important;
}
.ples {
color: #00000042;
font-size: 26rpx;
}
}
.right {
.line {
height: 30rpx;
width: 1rpx;
background-color: #FC6A3D;
margin-right: 14rpx;
}
text {
font-size: 28rpx;
font-weight: 700;
color: #FB753C;
}
}
}
}
</style>
\ No newline at end of file
.boxs {
width: 100%;
padding: 18rpx 24rpx;
box-sizing: border-box;
.searchInput {
width: 100%;
height: 100%;
background-color: #ffffff;
border-radius: 38rpx;
.left {
image {
margin-right: 8rpx;
width: 32rpx;
height: 32rpx;
}
input {
width: 500rpx !important;
}
.ples {
color: #00000042;
font-size: 26rpx;
}
}
.right {
.line {
height: 30rpx;
width: 1rpx;
background-color: #fc6a3d;
margin-right: 14rpx;
}
text {
font-size: 28rpx;
font-weight: 700;
color: #fb753c;
}
}
}
}
</style>
... ...
<template>
<view class="infoBox">
<view class="name ellipsisT">
{{info.name}}
</view>
<view class="priceBox flexJ">
<view class="price flexA" v-if="info.goodstatus==3">
<view class="new">{{info.spec[0].coscore}}</view>
<view class="points">积分</view>
</view>
<view class="price flexA" v-else>
<view class="new">¥{{info.spec[0].goods_price}}</view>
<text v-if="info.goodstatus==2">¥{{info.spec[0].line_price}}</text>
</view>
<!-- 1=普通商品,2=特价商品,3=积分商品 -->
<view class="inventory">
{{ info.goodstatus==1 ? '已售:'
: info.goodstatus==2 ? '库存:' :'已兑:'
}}{{info.goodstatus!=2 ?info.sales_actual :info.spec[0].stock_num}}份</view>
</view>
</view>
<view class="infoBox">
<view class="name ellipsisT">
{{ info.name }}
</view>
<view class="flexJ" v-if="info.goodstatus === 1">
<view class="inventory" style="margin-bottom: 10rpx">购买可获得{{ info.spec[0].score }}积分</view>
<view class="inventory" style="color: rgb(241, 71, 71)">注: 购买不同规格的商品可获得不同的积分</view>
</view>
<view class="priceBox flexJ">
<view class="price flexA" v-if="info.goodstatus == 3">
<view class="new">{{ info.spec[0].coscore }}</view>
<view class="points">积分</view>
</view>
<view class="price flexA" v-else>
<view class="new">¥{{ info.spec[0].goods_price }}</view>
<text v-if="info.goodstatus == 2">¥{{ info.spec[0].line_price }}</text>
</view>
<!-- 1=普通商品,2=特价商品,3=积分商品 -->
<view class="inventory">{{ info.goodstatus == 1 ? '已售:' : info.goodstatus == 2 ? '库存:' : '已兑:' }}{{ info.goodstatus != 2 ? info.sales_actual : info.spec[0].stock_num }}份</view>
</view>
</view>
</template>
<script setup>
import { defineProps,onMounted } from 'vue'
const props = defineProps({
isPoints:{
type:Boolean,
default:false
},
info:{
type:Object,
default:{}
}
})
onMounted(()=> {
// console.log('商品信息',props.info)
})
import { defineProps, onMounted } from 'vue'
const props = defineProps({
isPoints: {
type: Boolean,
default: false
},
info: {
type: Object,
default: {}
}
})
onMounted(() => {
// console.log('商品信息',props.info)
})
</script>
<style lang="scss">
.infoBox {
.infoBox {
.name {
height: 80rpx;
color: #000000e6;
font-size: 30rpx;
font-weight: 700;
line-height: 40rpx;
}
.name {
height: 80rpx;
color: #000000e6;
font-size: 30rpx;
font-weight: 700;
line-height: 40rpx;
margin-bottom: 32rpx
}
.priceBox {
.price {
text {
color: #00000042;
font-size: 24rpx;
text-decoration: line-through;
margin-left: 8rpx;
margin-top: 16rpx;
}
.priceBox {
.price {
text {
color: #00000042;
font-size: 24rpx;
text-decoration: line-through;
margin-left: 8rpx;
margin-top: 16rpx
}
.new {
color: #fc4338ff;
font-size: 40rpx;
font-weight: 700;
}
.points {
color: #fc4338ff;
font-size: 22rpx;
margin: 10rpx 0 0 8rpx;
}
}
.new {
color: #fc4338ff;
font-size: 40rpx;
font-weight: 700;
}
.points {
color: #fc4338ff;
font-size: 22rpx;
margin: 10rpx 0 0 8rpx;
}
}
.inventory {
color: #00000066;
font-size: 22rpx;
}
}
}
.inventory {
color: #00000066;
font-size: 22rpx;
}
}
}
.inventory {
color: #00000066;
font-size: 22rpx;
}
</style>
... ...
... ... @@ -13,6 +13,12 @@
}
},
{
"path": "pages/index/richText",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/index/search",
"style": {
"navigationStyle": "custom"
... ...
<template>
<u-navbar bgColor="#F6F8FA" :title="title" :placeholder="true" autoBack></u-navbar>
<view class="u-content">
<u-parse :content="content"></u-parse>
</view>
</template>
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { getcompact,getprivacyPolicy } from '@/api'
const content = ref(''),
title = ref('')
onLoad(async (e) => {
if (e.type === '4') {
content.value = await getcompact()
title.value = '用户协议'
return
}
content.value = await getprivacyPolicy()
title.value = '隐私政策'
})
</script>
<style lang="scss" scoped>
.u-content {
padding: 24rpx;
}
</style>
... ...
... ... @@ -45,7 +45,8 @@
<view v-if="shopType !== 3">
<view class="line"></view>
<view class="titles">商品详情</view>
<rich-text :nodes="detaileList.content"></rich-text>
<u-parse :content="detaileList.content"></u-parse>
<!-- <rich-text :nodes="detaileList.content"></rich-text> -->
</view>
</view>
<view class="lineBox flexC" v-if="shopType == 3">
... ... @@ -332,4 +333,8 @@ const getShopDetailes = async id => {
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
}
img {
width: 100% !important;
height: 100% !important;
}
</style>
... ...
... ... @@ -99,7 +99,7 @@ const getLogins = async (data, iv) => {
// 富文本
const toRichText = e => {
uni.navigateTo({
url: `/pages/richText/richText?type=${e}`
url: `/pages/index/richText?type=${e}`
})
}
// // 勾选协议
... ...
... ... @@ -11,7 +11,7 @@
<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="del(item.id, item)" src="/static/mineIc/delAddress.png" mode=""></image>
<image @click.stop="newAdd(0, item.id)" src="/static/mineIc/edit.png" mode=""></image>
</view>
</view>
... ... @@ -58,29 +58,31 @@ let isCheck = ref(0)
const checkAddress = item => {
if (isCheck.value == 1) {
const pop = getCurrentPages().pop()
pop.$vm.getOpenerEventChannel().emit('steBack', item)
setTimeout(() => {
pop.$vm.getOpenerEventChannel().emit('steBack', item)
}, 1000)
uni.navigateBack()
}
}
const del = id => {
const del = (id, item) => {
uni.showModal({
title: '提示',
content: '确认删除此地址吗',
success: function (res) {
if (res.confirm) {
getDelAdress(id)
getDelAdress(id, item)
}
}
})
}
// 删除地址
const getDelAdress = async ids => {
const getDelAdress = async (ids, item) => {
try {
const res = await getDelAdres(ids)
uni.showToast({ title: '删除成功!', icon: 'none' })
getAdressLists()
console.log('getDelAdres', res)
// 保存数据
if (item.is_default === 1) uni.removeStorageSync('defaultAdres')
} catch (err) {
console.log('getDelAdres', err)
}
... ...
... ... @@ -30,9 +30,9 @@
<!-- 订单状态: 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后 -->
<!-- 待付款 -->
<view class="flexA" v-if="item.order_status == 1">
<view @click.stop="operateOrder(item, 0)" class="cancel flexC">{{ item.goodstatus_text == '' ? '取消付款' : '取消兑换' }}</view>
<view @click.stop="operateOrder(item, 0)" class="cancel flexC">{{ item.goodstatus_text == 3 ? '取消兑换' : '取消付款' }}</view>
<view @click.stop="operateOrder(item, 1)" v-if="item.order_status == 1" class="orange flexC">
{{ item.goodstatus_text == '' ? '立即支付' : '立即兑换' }}
{{ item.goodstatus_text == 3 ? '立即兑换' : '立即支付' }}
</view>
</view>
<!-- 代发货 -->
... ...
... ... @@ -3,7 +3,9 @@
<u-navbar bgColor="transparent" :placeholder="true" @leftClick="leftClickHandler"></u-navbar>
<view class="mainBox">
<!-- 收货地址 -->
<!-- <view @click="checkAddress"> -->
<shopAddres :isOrder="true" :adress="orderList"></shopAddres>
<!-- </view> -->
<view class="shopBox">
<orderShops :shop="orderList"></orderShops>
<view class="line"></view>
... ... @@ -32,7 +34,7 @@
<view class="moneyBox flexJ" v-for="(item, index) in placeOrder" :key="item.id">
<view class="items">
{{ item.name }}
<text>{{ item.text }}</text>
<text>{{ item.text.length ? item.text : `暂无${item.name}` }}</text>
</view>
<view v-if="index == 0" @click="copy" class="copy">复制</view>
</view>
... ... @@ -47,7 +49,14 @@
<view v-if="btnType == 1 || btnType == 3" class="red flexC" @click="btns(1)">{{ btnType == 1 ? '立即支付' : '确认收货' }}</view>
</view>
<!-- 选择支付方式 -->
<payMode @canclePop="modeShow = false" :balance="balance" :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>
... ... @@ -76,10 +85,10 @@ 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' },
{ id: 3, name: '下单时间', text: '1212' },
{ id: 4, name: '快递编号', text: '1212' }
{ id: 1, name: '订单编号', text: '' },
{ id: 2, name: '支付方式', text: '' },
{ id: 3, name: '下单时间', text: '' },
{ id: 4, name: '快递编号', text: '' }
])
onShow(() => {
... ... @@ -187,6 +196,21 @@ const getReceipts = async () => {
console.log('getReceipt', err)
}
}
let adress = ref({}) //收货地址
// 选择地址
const checkAddress = () => {
uni.navigateTo({
url: `/pages/mine/myAddress?isCheck=${1}`,
events: {
steBack: data => {
orderList.value = data
console.log('地址', data)
}
}
})
}
</script>
<style lang="scss">
... ...
<template>
<u-navbar bgColor="#F6F8FA" :title="title" :placeholder="true" autoBack></u-navbar>
<view class="u-content">
<u-parse :content="content"></u-parse>
</view>
</template>
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const content = ref(''),
title = ref('')
onLoad(async (e) => {
if (e.type === '4') {
// const ret = await xxx()
content.value = '《用户协议》'
title.value = '用户协议'
return
}
// const ret = await xxx()
content.value = '《隐私协议》'
title.value = '隐私协议'
})
</script>
<style lang="scss" scoped>
.u-content {
padding: 24rpx;
}
</style>
... ...
... ... @@ -20,7 +20,7 @@
</view>
<view class="shopInfo">
<view class="shopName ellipsis">{{ item.name }}</view>
<view class="shopDesc ellipsis">{{ item.describe }}</view>
<view class="shopDesc ellipsis">{{ item.goods_sku.goods_attr }}</view>
<view class="price flexJ">
<text v-if="shopType != 3">¥{{ item.goods_price }}</text>
<view v-else class="flexA points">
... ... @@ -84,13 +84,14 @@ onLoad(e => {
getbBuyDatas(JSON.parse(e.params))
console.log(e.params, '商品规格信息')
}
//默认地址
uni.getStorageSync('defaultAdres') ? (adress.value = uni.getStorageSync('defaultAdres')) : ''
})
onShow(() => {
// 余额
getyues()
// uni.getStorageSync('balance') ? balance.value = uni.getStorageSync('balance') : ''
console.log('onShow执行了吗')
//默认地址
uni.getStorageSync('defaultAdres') ? (adress.value = uni.getStorageSync('defaultAdres')) : (adress.value = {})
})
let modeShow = ref(false) //选择支付方式
let payParams = ref({}) //支付参数
... ... @@ -114,7 +115,7 @@ const getbBuyDatas = async obj => {
// 保存数据
} catch (err) {
uni.showToast({ title: err, icon: 'none' })
console.log('getbBuyData', err)
uni.navigateBack({ delta: 1 })
}
}
... ...
"use strict";
var utils_request = require("../utils/request.js");
const getLogin = (params) => utils_request.request({ url: "/api/login/getPhones", method: "post", data: params });
const getIndex = () => utils_request.request({ url: "/api/index/index", method: "post", data: {} });
const getSearch = (key) => utils_request.request({ url: "/api/index/Searchfor", method: "post", data: { key } });
const getRecord = () => utils_request.request({ url: "/api/index/getSearchKeyword", method: "post", data: {} });
const getDelRecord = () => utils_request.request({ url: "/api/index/delSearchKeyword", method: "post", data: {} });
const getCodegood = () => utils_request.request({ url: "/api/goods/codegoods", method: "get", data: {} });
const getShopDetaile = (id) => utils_request.request({ url: "/api/goods/detail", method: "get", data: { id } });
const getbBuyData = (params) => utils_request.request({ url: "/api/goods/buyData", method: "get", data: params });
const getPay = (params) => utils_request.request({ url: "/api/goods/pay", method: "get", data: params });
const getTwoClassification = () => utils_request.request({ url: "/api/category/fenleilie", method: "post" });
const getCategoryGoods = (data) => utils_request.request({ url: "/api/category/getCategoryGoods", method: "post", data });
const getAddCar = (params) => utils_request.request({ url: "/api/cart/add", method: "get", data: params });
const getCarList = () => utils_request.request({ url: "/api/cart/index", method: "get", data: {} });
const getCarAdd = (cart_id, num) => utils_request.request({ url: "/api/cart/inc", method: "get", data: { cart_id, num } });
const getCarReduce = (cart_id, num) => utils_request.request({ url: "/api/cart/sub", method: "get", data: { cart_id, num } });
const getDelCar = (cart_ids) => utils_request.request({ url: "/api/cart/del", method: "get", data: { cart_ids } });
const getCarsettlement = (cart_ids) => utils_request.request({ url: "/api/cart/settlement", method: "get", data: { cart_ids } });
const getCarPay = (params) => utils_request.request({ url: "/api/cart/pay", method: "get", data: params });
const getMine = () => utils_request.request({ url: "/api/user/index", method: "get", data: {} });
const getOrderList = (status) => utils_request.request({ url: "/api/order/index", method: "get", data: { status } });
const getOrderdetail = (id) => utils_request.request({ url: "/api/order/detail", method: "get", data: { id } });
const getCancleOrder = (id) => utils_request.request({ url: "/api/order/cancel", method: "get", data: { id } });
const getReceipt = (id) => utils_request.request({ url: "/api/order/receipt", method: "get", data: { id } });
const getRefund = (id) => utils_request.request({ url: "/api/order/refund", method: "get", data: { id } });
const getOrderPay = (id, fangs) => utils_request.request({ url: "/api/order/pay", method: "get", data: { id, fangs } });
const getyue = () => utils_request.request({ url: "/api/user/yue", method: "get", data: {} });
const getMoneyDetail = () => utils_request.request({ url: "/api/user/getMoneyDetail", method: "get", data: {} });
const getMyScore = () => utils_request.request({ url: "/api/user/myScore", method: "get", data: {} });
const getScoreDetail = () => utils_request.request({ url: "/api/user/getScoreDetail", method: "get", data: {} });
const getPackage = () => utils_request.request({ url: "/api/user/czlb", method: "get", data: {} });
const getRecharge = (m) => utils_request.request({ url: "/api/user/czxt", method: "get", data: { m } });
const getComment = (params) => utils_request.request({ url: "/api/goods/pinglun", method: "get", data: params });
const getAdressList = () => utils_request.request({ url: "/api/address/index", method: "post", data: {} });
const getEdit = (params) => utils_request.request({ url: "/api/address/add", method: "post", data: params });
const getadresDetail = (id) => utils_request.request({ url: "/api/address/detail", method: "post", data: { id } });
const getDelAdres = (ids) => utils_request.request({ url: "/api/address/del", method: "post", data: { ids } });
exports.getAddCar = getAddCar;
exports.getAdressList = getAdressList;
exports.getCancleOrder = getCancleOrder;
exports.getCarAdd = getCarAdd;
exports.getCarList = getCarList;
exports.getCarPay = getCarPay;
exports.getCarReduce = getCarReduce;
exports.getCarsettlement = getCarsettlement;
exports.getCategoryGoods = getCategoryGoods;
exports.getCodegood = getCodegood;
exports.getComment = getComment;
exports.getDelAdres = getDelAdres;
exports.getDelCar = getDelCar;
exports.getDelRecord = getDelRecord;
exports.getEdit = getEdit;
exports.getIndex = getIndex;
exports.getLogin = getLogin;
exports.getMine = getMine;
exports.getMoneyDetail = getMoneyDetail;
exports.getMyScore = getMyScore;
exports.getOrderList = getOrderList;
exports.getOrderPay = getOrderPay;
exports.getOrderdetail = getOrderdetail;
exports.getPackage = getPackage;
exports.getPay = getPay;
exports.getReceipt = getReceipt;
exports.getRecharge = getRecharge;
exports.getRecord = getRecord;
exports.getRefund = getRefund;
exports.getScoreDetail = getScoreDetail;
exports.getSearch = getSearch;
exports.getShopDetaile = getShopDetaile;
exports.getTwoClassification = getTwoClassification;
exports.getadresDetail = getadresDetail;
exports.getbBuyData = getbBuyData;
exports.getyue = getyue;
"use strict";const t=require("../utils/request.js"),r=e=>t.request({url:"/api/login/getPhones",method:"post",data:e}),o=()=>t.request({url:"/api/index/index",method:"post",data:{}}),d=e=>t.request({url:"/api/index/Searchfor",method:"post",data:{key:e}}),s=()=>t.request({url:"/api/index/getSearchKeyword",method:"post",data:{}}),g=()=>t.request({url:"/api/index/delSearchKeyword",method:"post",data:{}}),u=()=>t.request({url:"/api/goods/codegoods",method:"get",data:{}}),c=e=>t.request({url:"/api/goods/detail",method:"get",data:{id:e}}),i=e=>t.request({url:"/api/goods/buyData",method:"get",data:e}),l=e=>t.request({url:"/api/goods/pay",method:"get",data:e}),n=()=>t.request({url:"/api/category/fenleilie",method:"post"}),p=e=>t.request({url:"/api/category/getCategoryGoods",method:"post",data:e}),m=e=>t.request({url:"/api/cart/add",method:"get",data:e}),h=()=>t.request({url:"/api/cart/index",method:"get",data:{}}),q=(e,a)=>t.request({url:"/api/cart/inc",method:"get",data:{cart_id:e,num:a}}),y=(e,a)=>t.request({url:"/api/cart/sub",method:"get",data:{cart_id:e,num:a}}),C=e=>t.request({url:"/api/cart/del",method:"get",data:{cart_ids:e}}),D=e=>t.request({url:"/api/cart/settlement",method:"get",data:{cart_ids:e}}),S=e=>t.request({url:"/api/cart/pay",method:"get",data:e}),x=()=>t.request({url:"/api/user/index",method:"get",data:{}}),P=e=>t.request({url:"/api/order/index",method:"get",data:{status:e}}),R=e=>t.request({url:"/api/order/detail",method:"get",data:{id:e}}),A=e=>t.request({url:"/api/order/cancel",method:"get",data:{id:e}}),L=e=>t.request({url:"/api/order/receipt",method:"get",data:{id:e}}),O=e=>t.request({url:"/api/order/refund",method:"get",data:{id:e}}),f=(e,a)=>t.request({url:"/api/order/pay",method:"get",data:{id:e,fangs:a}}),M=()=>t.request({url:"/api/user/yue",method:"get",data:{}}),b=()=>t.request({url:"/api/user/getMoneyDetail",method:"get",data:{}}),w=()=>t.request({url:"/api/user/myScore",method:"get",data:{}}),v=()=>t.request({url:"/api/user/getScoreDetail",method:"get",data:{}}),G=()=>t.request({url:"/api/user/czlb",method:"get",data:{}}),k=e=>t.request({url:"/api/user/czxt",method:"get",data:{m:e}}),z=e=>t.request({url:"/api/goods/pinglun",method:"get",data:e}),B=()=>t.request({url:"/api/address/index",method:"post",data:{}}),E=e=>t.request({url:"/api/address/add",method:"post",data:e}),I=e=>t.request({url:"/api/address/detail",method:"post",data:{id:e}}),K=e=>t.request({url:"/api/address/del",method:"post",data:{ids:e}}),T=()=>t.request({url:"/api/common/compact",method:"post"}),_=()=>t.request({url:"/api/common/privacyPolicy",method:"post"});exports.getAddCar=m;exports.getAdressList=B;exports.getCancleOrder=A;exports.getCarAdd=q;exports.getCarList=h;exports.getCarPay=S;exports.getCarReduce=y;exports.getCarsettlement=D;exports.getCategoryGoods=p;exports.getCodegood=u;exports.getComment=z;exports.getDelAdres=K;exports.getDelCar=C;exports.getDelRecord=g;exports.getEdit=E;exports.getIndex=o;exports.getLogin=r;exports.getMine=x;exports.getMoneyDetail=b;exports.getMyScore=w;exports.getOrderList=P;exports.getOrderPay=f;exports.getOrderdetail=R;exports.getPackage=G;exports.getPay=l;exports.getReceipt=L;exports.getRecharge=k;exports.getRecord=s;exports.getRefund=O;exports.getScoreDetail=v;exports.getSearch=d;exports.getShopDetaile=c;exports.getTwoClassification=n;exports.getadresDetail=I;exports.getbBuyData=i;exports.getcompact=T;exports.getprivacyPolicy=_;exports.getyue=M;
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
var methods = {
upload(url, callBack) {
let arr = {};
common_vendor.index.chooseImage({
success: (chooseImageRes) => {
const tempFilePaths = chooseImageRes.tempFilePaths;
arr["avatar"] = tempFilePaths[0];
common_vendor.index.uploadFile({
url,
filePath: tempFilePaths[0],
name: "file",
formData: {
user: "test",
token: common_vendor.index.getStorageSync("token")
},
success: (uploadFileRes) => {
console.log(JSON.parse(uploadFileRes.data), "\u56FE\u7247\u8DEF\u5F84");
arr["upImg"] = JSON.parse(uploadFileRes.data).data.url;
callBack(arr);
}
});
}
});
},
pay(res) {
if (res.appId) {
common_vendor.index.requestPayment({
provider: "wxpay",
timeStamp: res.timeStamp,
nonceStr: res.nonceStr,
package: res.package,
signType: res.signType,
appid: res.appId,
paySign: res.paySign,
success(res2) {
console.log("\u652F\u4ED8\u6210\u529F");
common_vendor.index.showToast({ title: "\u652F\u4ED8\u6210\u529F~" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1500);
},
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);
}
});
}
},
showTN(title) {
common_vendor.index.showToast({ title, icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1e3);
}
};
exports.methods = methods;
"use strict";const t=require("../common/vendor.js"),c={upload(e,a){let o={};t.index.chooseImage({success:s=>{const n=s.tempFilePaths;o.avatar=n[0],t.index.uploadFile({url:e,filePath:n[0],name:"file",formData:{user:"test",token:t.index.getStorageSync("token")},success:i=>{console.log(JSON.parse(i.data),"图片路径"),o.upImg=JSON.parse(i.data).data.url,a(o)}})}})},pay(e){e.appId&&t.index.requestPayment({provider:"wxpay",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,appid:e.appId,paySign:e.paySign,success(a){console.log("支付成功"),t.index.showToast({title:"支付成功~"}),setTimeout(()=>{t.index.navigateBack()},1500)},fail(a){console.log("支付失败",a),t.index.showToast({title:"支付取消~",icon:"none"}),setTimeout(()=>{t.index.navigateBack()},1500)}})},showTN(e){t.index.showToast({title:e,icon:"none"}),setTimeout(()=>{t.index.navigateBack()},1e3)}};exports.methods=c;
... ...
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports[Symbol.toStringTag] = "Module";
var common_vendor = require("./common/vendor.js");
var api_methods = require("./api/methods.js");
if (!Math) {
"./pages/index/index.js";
"./pages/index/search.js";
"./pages/index/shopDetaile.js";
"./pages/index/allComment.js";
"./pages/index/bargainPrice.js";
"./pages/class/class.js";
"./pages/class/classList.js";
"./pages/pointsMall/pointsMall.js";
"./pages/pointsMall/pointsDetaile.js";
"./pages/shopCar/shopCar.js";
"./pages/shopCar/confirmOrder.js";
"./pages/mine/mine.js";
"./pages/mine/myOrder.js";
"./pages/mine/orderDetail.js";
"./pages/mine/recharge.js";
"./pages/mine/evaluate.js";
"./pages/mine/myAddress.js";
"./pages/mine/newAddress.js";
"./pages/mine/myPoints.js";
"./pages/login/login.js";
}
const _sfc_main = {
onLaunch: function() {
console.log("App Launch");
},
onShow: function() {
console.log("App Show");
},
onHide: function() {
console.log("App Hide");
}
};
var App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/App.vue"]]);
function createApp() {
const app = common_vendor.createSSRApp(App);
app.config.globalProperties.$methods = api_methods.methods;
app.use(common_vendor.uviewPlus);
return {
app
};
}
createApp().app.mount("#app");
exports.createApp = createApp;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./common/vendor.js"),n=require("./api/methods.js"),p={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}},o=s._export_sfc(p,[["__file","D:/vue/大健康商城/healthMall/App.vue"]]);function a(){const e=s.createSSRApp(o);return e.config.globalProperties.$methods=n.methods,e.use(s.uviewPlus),{app:e}}a().app.mount("#app");exports.createApp=a;
... ...
{
"pages": [
"pages/index/index",
"pages/index/richText",
"pages/index/search",
"pages/index/shopDetaile",
"pages/index/allComment",
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
.u-line-1 {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical !important;
}
.u-line-2 {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical !important;
}
.u-line-3 {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical !important;
}
.u-line-4 {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical !important;
}
.u-line-5 {
display: -webkit-box !important;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical !important;
}
.u-border {
border-width: 0.5px !important;
border-color: #dadbde !important;
border-style: solid;
}
.u-border-top {
border-top-width: 0.5px !important;
border-color: #dadbde !important;
border-top-style: solid;
}
.u-border-left {
border-left-width: 0.5px !important;
border-color: #dadbde !important;
border-left-style: solid;
}
.u-border-right {
border-right-width: 0.5px !important;
border-color: #dadbde !important;
border-right-style: solid;
}
.u-border-bottom {
border-bottom-width: 0.5px !important;
border-color: #dadbde !important;
border-bottom-style: solid;
}
.u-border-top-bottom {
border-top-width: 0.5px !important;
border-bottom-width: 0.5px !important;
border-color: #dadbde !important;
border-top-style: solid;
border-bottom-style: solid;
}
.u-reset-button {
padding: 0;
background-color: transparent;
font-size: inherit;
line-height: inherit;
color: inherit;
}
.u-reset-button::after {
border: none;
}
.u-hover-class {
opacity: 0.7;
}
.u-primary-light {
color: #ecf5ff;
}
.u-warning-light {
color: #fdf6ec;
}
.u-success-light {
color: #f5fff0;
}
.u-error-light {
color: #fef0f0;
}
.u-info-light {
color: #f4f4f5;
}
.u-primary-light-bg {
background-color: #ecf5ff;
}
.u-warning-light-bg {
background-color: #fdf6ec;
}
.u-success-light-bg {
background-color: #f5fff0;
}
.u-error-light-bg {
background-color: #fef0f0;
}
.u-info-light-bg {
background-color: #f4f4f5;
}
.u-primary-dark {
color: #398ade;
}
.u-warning-dark {
color: #f1a532;
}
.u-success-dark {
color: #53c21d;
}
.u-error-dark {
color: #e45656;
}
.u-info-dark {
color: #767a82;
}
.u-primary-dark-bg {
background-color: #398ade;
}
.u-warning-dark-bg {
background-color: #f1a532;
}
.u-success-dark-bg {
background-color: #53c21d;
}
.u-error-dark-bg {
background-color: #e45656;
}
.u-info-dark-bg {
background-color: #767a82;
}
.u-primary-disabled {
color: #9acafc;
}
.u-warning-disabled {
color: #f9d39b;
}
.u-success-disabled {
color: #a9e08f;
}
.u-error-disabled {
color: #f7b2b2;
}
.u-info-disabled {
color: #c4c6c9;
}
.u-primary {
color: #3c9cff;
}
.u-warning {
color: #f9ae3d;
}
.u-success {
color: #5ac725;
}
.u-error {
color: #f56c6c;
}
.u-info {
color: #909399;
}
.u-primary-bg {
background-color: #3c9cff;
}
.u-warning-bg {
background-color: #f9ae3d;
}
.u-success-bg {
background-color: #5ac725;
}
.u-error-bg {
background-color: #f56c6c;
}
.u-info-bg {
background-color: #909399;
}
.u-main-color {
color: #303133;
}
.u-content-color {
color: #606266;
}
.u-tips-color {
color: #909193;
}
.u-light-color {
color: #c0c4cc;
}
.u-safe-area-inset-top {
padding-top: 0;
padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
}
.u-safe-area-inset-right {
padding-right: 0;
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
}
.u-safe-area-inset-bottom {
padding-bottom: 0;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.u-safe-area-inset-left {
padding-left: 0;
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
.flexJ {
display: flex;
justify-content: space-between;
align-items: center;
}
.flexC {
display: flex;
justify-content: center;
align-items: center;
}
.flexA {
display: flex;
align-items: center;
}
.flexV {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.flexW {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.ples {
color: #000000e6;
font-size: 30rpx;
font-weight: 700;
}
.lineFeed {
word-wrap: break-word;
word-break: break-all;
white-space: pre-line;
}
.ellipsis {
display: -webkit-box;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
-webkit-line-clamp: 1;
}
.ellipsisT {
display: -webkit-box;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
-webkit-line-clamp: 2;
color: rgba(0, 0, 0, 0.9);
font-size: 24rpx;
}
.iosAuto {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}
\ No newline at end of file
.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:transparent;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button:after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}.flexJ{display:flex;justify-content:space-between;align-items:center}.flexC{display:flex;justify-content:center;align-items:center}.flexA{display:flex;align-items:center}.flexV{display:flex;flex-direction:column;justify-content:center;align-items:center}.flexW{display:flex;flex-wrap:wrap;justify-content:space-between}.ples{color:rgba(0,0,0,.9);font-size:30rpx;font-weight:700}.lineFeed{word-wrap:break-word;word-break:break-all;white-space:pre-line}.ellipsis{display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:1}.ellipsisT{display:-webkit-box;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:2;color:rgba(0,0,0,.9);font-size:24rpx}.iosAuto{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}
\ No newline at end of file
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
adress: {
type: Object,
default: {}
},
isOrder: {
type: Boolean,
default: false
}
},
setup(__props) {
return (_ctx, _cache) => {
return {
a: common_vendor.t(!__props.isOrder ? __props.adress.diqu + __props.adress.address : __props.adress.sh_diqu + __props.adress.sh_address),
b: common_vendor.t(!__props.isOrder ? __props.adress.name : __props.adress.sh_name),
c: common_vendor.t(!__props.isOrder ? __props.adress.mobile.slice(0, 3) + "****" + __props.adress.mobile.slice(-4) : __props.adress.sh_mobile.slice(0, 3) + "****" + __props.adress.sh_mobile.slice(-4))
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/address.vue"]]);
wx.createComponent(Component);
"use strict";const s=require("../common/vendor.js"),a={__name:"address",props:{adress:{type:Object,default:{}},isOrder:{type:Boolean,default:!1}},setup(e){return(t,r)=>({a:s.t(e.isOrder?e.adress.sh_diqu+e.adress.sh_address:e.adress.diqu+e.adress.address),b:s.t(e.isOrder?e.adress.sh_name:e.adress.name),c:s.t(e.isOrder?e.adress.sh_mobile.slice(0,3)+"****"+e.adress.sh_mobile.slice(-4):e.adress.mobile.slice(0,3)+"****"+e.adress.mobile.slice(-4))})}},d=s._export_sfc(a,[["__file","D:/vue/大健康商城/healthMall/componets/address.vue"]]);wx.createComponent(d);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.addressBox {
margin-bottom: 20rpx;
padding: 32rpx 20rpx 31rpx 32rpx;
border-radius: 24rpx;
background: #fff;
}
.addressBox .right {
display: flex;
}
.addressBox .right image {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
margin-top: 9rpx;
}
.addressBox .right .area text {
color: #323233ff;
font-size: 28rpx;
font-weight: 700;
line-height: 36rpx;
}
.addressBox .right .area .name {
color: #646566ff;
font-size: 24rpx;
margin-top: 9rpx;
}
.addressBox image {
width: 16rpx;
height: 32rpx;
}
\ No newline at end of file
.addressBox{margin-bottom:20rpx;padding:32rpx 20rpx 31rpx 32rpx;border-radius:24rpx;background:#fff}.addressBox .right{display:flex}.addressBox .right image{width:32rpx;height:32rpx;margin-right:8rpx;margin-top:9rpx}.addressBox .right .area text{color:#323233;font-size:28rpx;font-weight:700;line-height:36rpx}.addressBox .right .area .name{color:#646566;font-size:24rpx;margin-top:9rpx}.addressBox image{width:16rpx;height:32rpx}
... ...
"use strict";
var utils_addressData = require("../utils/address-data.js");
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
shows: {
type: Boolean,
default: false
}
},
data() {
return {
columns: [],
columnData: []
};
},
mounted() {
this.columns[0] = utils_addressData.localData.map((item) => item.name);
this.columns[1] = utils_addressData.localData[0].cities.map((item) => item.name);
this.columns[2] = utils_addressData.localData[0].cities[0].districts.map((item) => item.name);
},
methods: {
close() {
this.$emit("close", false);
},
changeHandler(e) {
const {
columnIndex,
value,
values,
index,
picker = this.$refs.uPicker
} = e;
console.log("\u53D8\u5316", index);
if (columnIndex === 0) {
let arr = utils_addressData.localData.find((item) => item.name == value[0]);
let arr1 = arr.cities.map((item) => item.name);
this.columnData = arr1;
console.log("\u5E02", arr1[0], arr);
let distinguish = arr.cities[0].districts.map((item) => item.name);
picker.setColumnValues(1, arr1);
picker.setColumnValues(2, distinguish);
}
if (columnIndex === 1) {
let economize = utils_addressData.localData.find((item) => item.name == value[0]);
let city = economize.cities.find((item) => item.name == value[1]);
let distinguish = city.districts.map((item) => item.name);
picker.setColumnValues(2, distinguish);
}
},
confirm(e) {
this.$emit("popShow", e.value);
}
}
};
if (!Array) {
const _easycom_u_picker2 = common_vendor.resolveComponent("u-picker");
_easycom_u_picker2();
}
const _easycom_u_picker = () => "../uni_modules/uview-plus/components/u-picker/u-picker.js";
if (!Math) {
_easycom_u_picker();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.sr("uPicker", "700f6895-0"),
b: common_vendor.o($options.close),
c: common_vendor.o($options.confirm),
d: common_vendor.o($options.changeHandler),
e: common_vendor.p({
immediateChange: true,
show: $props.shows,
columns: $data.columns
})
};
}
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/areaCheck.vue"]]);
wx.createComponent(Component);
"use strict";const o=require("../utils/address-data.js"),t=require("../common/vendor.js"),p={props:{shows:{type:Boolean,default:!1}},data(){return{columns:[],columnData:[]}},mounted(){this.columns[0]=o.localData.map(e=>e.name),this.columns[1]=o.localData[0].cities.map(e=>e.name),this.columns[2]=o.localData[0].cities[0].districts.map(e=>e.name)},methods:{close(){this.$emit("close",!1)},changeHandler(e){const{columnIndex:l,value:c,values:u,index:m,picker:a=this.$refs.uPicker}=e;if(console.log("变化",m),l===0){let n=o.localData.find(s=>s.name==c[0]),i=n.cities.map(s=>s.name);this.columnData=i,console.log("市",i[0],n);let r=n.cities[0].districts.map(s=>s.name);a.setColumnValues(1,i),a.setColumnValues(2,r)}if(l===1){let r=o.localData.find(s=>s.name==c[0]).cities.find(s=>s.name==c[1]).districts.map(s=>s.name);a.setColumnValues(2,r)}},confirm(e){this.$emit("popShow",e.value)}}};Array||t.resolveComponent("u-picker")();const d=()=>"../uni_modules/uview-plus/components/u-picker/u-picker.js";Math||d();function h(e,l,c,u,m,a){return{a:t.sr("uPicker","700f6895-0"),b:t.o(a.close),c:t.o(a.confirm),d:t.o(a.changeHandler),e:t.p({immediateChange:!0,show:c.shows,columns:m.columns})}}const _=t._export_sfc(p,[["render",h],["__file","D:/vue/大健康商城/healthMall/componets/areaCheck.vue"]]);wx.createComponent(_);
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
var api_index = require("../api/index.js");
require("../utils/request.js");
if (!Array) {
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
_easycom_u_popup2();
}
const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
_easycom_u_popup();
}
const _sfc_main = {
props: {
payParams: {
type: Object,
default: {}
},
modeShow: {
type: Boolean,
default: false
},
adressId: {
type: String,
default: ""
},
totalPrice: {
type: String,
default: 0
},
balance: {
type: String,
default: ""
},
isOrderPay: {
type: Boolean,
default: false
},
orderId: {
type: String,
default: ""
},
carId: {
type: String,
default: ""
}
},
emits: ["canclePop"],
setup(__props, { emit }) {
const props = __props;
common_vendor.onMounted(() => {
setTimeout(() => {
if (props.totalPrice > +props.balance) {
payMode[1].shows = false;
}
}, 100);
});
common_vendor.watchEffect(() => {
console.log("\u4F59\u989D", props.balance);
if (props.totalPrice < +props.balance) {
payMode[1].shows = true;
}
});
const payMode = common_vendor.reactive([
{ id: 1, name: "\u5FAE\u4FE1\u652F\u4ED8", check: true, modeUrl: "/static/shopCarIc/weCaat.png", shows: true },
{ id: 2, name: "\u4F59\u989D\u652F\u4ED8", check: false, modeUrl: "/static/shopCarIc/yue.png", shows: true }
]);
common_vendor.ref(0);
let defaultMode = common_vendor.ref(0);
let checkPay = (index) => {
defaultMode.value = index;
};
const subOrder = () => {
if (props.car_Id) {
console.log("\u8D2D\u7269\u8F66\u652F\u4ED8", props.car_Id);
getCarPays();
} else {
console.log("dindan\u652F\u4ED8", props.car_Id);
props.isOrderPay ? getOrderPays() : getPays();
}
};
const goRecharge = () => {
common_vendor.index.navigateTo({ url: "/pages/mine/recharge" });
};
const canclePop = () => {
emit("canclePop");
};
const { proxy } = common_vendor.getCurrentInstance();
const getPays = async () => {
try {
let { id, num, specId } = props.payParams;
let params = {
goods_id: id,
num,
goods_spec_id: specId,
address_id: props.adressId,
fangs: defaultMode.value == 0 ? 1 : 2,
remark: ""
};
const res = await api_index.getPay(params);
proxy.$methods.pay(res);
canclePop();
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("getPay", err);
}
};
const getCarPays = async () => {
try {
let params = {
cart_ids: props.car_Id,
address_id: props.adressId,
remark: "",
fangs: defaultMode.value == 0 ? 1 : 2
};
const res = await api_index.getCarPay(params);
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);
}
};
const getOrderPays = async () => {
try {
const res = await api_index.getOrderPay(props.orderId, defaultMode.value == 0 ? 1 : 2);
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);
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(payMode), (item, index, i0) => {
return common_vendor.e({
a: item.modeUrl,
b: common_vendor.t(item.name),
c: item.shows
}, item.shows ? {
d: common_vendor.unref(defaultMode) == index ? "/static/shopCarIc/modeCheck.png" : "/static/shopCarIc/checks.png"
} : {
e: common_vendor.o(goRecharge)
}, {
f: item.id,
g: common_vendor.o(($event) => common_vendor.unref(checkPay)(index), item.id)
});
}),
b: common_vendor.o(subOrder),
c: common_vendor.o(canclePop),
d: common_vendor.p({
show: __props.modeShow,
bgColor: "#F6F8FA",
closeable: true,
round: "12"
})
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/checkPayMode.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js"),p=require("../api/index.js");require("../utils/request.js");Array||e.resolveComponent("u-popup")();const w=()=>"../uni_modules/uview-plus/components/u-popup/u-popup.js";Math||w();const v={__name:"checkPayMode",props:{payParams:{type:Object,default:{}},modeShow:{type:Boolean,default:!1},adressId:{type:String,default:""},totalPrice:{type:String,default:0},balance:{type:String,default:""},isOrderPay:{type:Boolean,default:!1},orderId:{type:String,default:""},carId:{type:String,default:""}},emits:["canclePop"],setup(l,{emit:g}){const a=l;e.onMounted(()=>{setTimeout(()=>{a.totalPrice>+a.balance&&(i[1].shows=!1)},100)}),e.watchEffect(()=>{console.log("余额",a.balance),a.totalPrice<+a.balance&&(i[1].shows=!0)});const i=e.reactive([{id:1,name:"微信支付",check:!0,modeUrl:"/static/shopCarIc/weCaat.png",shows:!0},{id:2,name:"余额支付",check:!1,modeUrl:"/static/shopCarIc/yue.png",shows:!0}]);e.ref(0);let s=e.ref(0),y=o=>{s.value=o};const h=()=>{a.car_Id?(console.log("购物车支付",a.car_Id),_()):(console.log("dindan支付",a.car_Id),a.isOrderPay?P():m())},f=()=>{e.index.navigateTo({url:"/pages/mine/recharge"})},c=()=>{g("canclePop")},{proxy:r}=e.getCurrentInstance(),m=async()=>{try{let{id:o,num:n,specId:t}=a.payParams,d={goods_id:o,num:n,goods_spec_id:t,address_id:a.adressId,fangs:s.value==0?1:2,remark:""};const u=await p.getPay(d);r.$methods.pay(u),c(),s.value===1&&(e.index.showToast({title:"支付成功",icon:"none"}),setTimeout(()=>{e.index.navigateBack()},1500))}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getPay",o)}},_=async()=>{try{let o={cart_ids:a.car_Id,address_id:a.adressId,remark:"",fangs:s.value==0?1:2};const n=await p.getCarPay(o);r.$methods.pay(n),c(),console.log("getCarPay",n),s.value===1&&r.$methods.showTN("余额支付成功~")}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getCarPay",o)}},P=async()=>{try{const o=await p.getOrderPay(a.orderId,s.value==0?1:2);r.$methods.pay(o),c(),console.log("getOrderPay",o),s.value===1&&(e.index.showToast({title:"支付成功",icon:"none"}),setTimeout(()=>{e.index.navigateBack()},1500))}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getOrderPay",o)}};return(o,n)=>({a:e.f(i,(t,d,u)=>e.e({a:t.modeUrl,b:e.t(t.name),c:t.shows},t.shows?{d:e.unref(s)==d?"/static/shopCarIc/modeCheck.png":"/static/shopCarIc/checks.png"}:{e:e.o(f,t.id)},{f:t.id,g:e.o(C=>e.unref(y)(d),t.id)})),b:e.o(h),c:e.o(c),d:e.p({show:l.modeShow,bgColor:"#F6F8FA",closeable:!0,round:"12"})})}},I=e._export_sfc(v,[["__file","D:/vue/大健康商城/healthMall/componets/checkPayMode.vue"]]);wx.createComponent(I);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.popBox {
padding: 32rpx 24rpx 0;
}
.popBox .title {
text-align: center;
margin-bottom: 60rpx;
color: #000000e6;
font-size: 32rpx;
font-weight: 700;
}
.popBox .popModeBox {
width: 100%;
padding: 32rpx 20rpx;
box-sizing: border-box;
border-radius: 16rpx;
background: #ffffffff;
}
.popBox .popModeBox .mode {
color: #000000e6;
font-size: 28rpx;
font-weight: 700;
}
.popBox .popModeBox .mode image {
width: 52rpx;
height: 52rpx;
margin-right: 20rpx;
}
.popBox .popModeBox image {
width: 36rpx;
height: 36rpx;
}
.popBox .popModeBox .insufficient {
color: #00000066;
font-size: 24rpx;
}
.popBox .popModeBox .insufficient .go {
margin-left: 8rpx;
font-size: 24rpx;
color: #fb3e3c;
line-height: 32rpx;
}
.popBox .popModeBox .insufficient .go image {
width: 24rpx;
height: 24rpx;
}
.popBox .subOrder {
margin-top: 138rpx;
width: 100%;
height: 88rpx;
border-radius: 280rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
\ No newline at end of file
.popBox{padding:32rpx 24rpx 0}.popBox .title{text-align:center;margin-bottom:60rpx;color:rgba(0,0,0,.9);font-size:32rpx;font-weight:700}.popBox .popModeBox{width:100%;padding:32rpx 20rpx;box-sizing:border-box;border-radius:16rpx;background:#ffffffff}.popBox .popModeBox .mode{color:rgba(0,0,0,.9);font-size:28rpx;font-weight:700}.popBox .popModeBox .mode image{width:52rpx;height:52rpx;margin-right:20rpx}.popBox .popModeBox image{width:36rpx;height:36rpx}.popBox .popModeBox .insufficient{color:rgba(0,0,0,.4);font-size:24rpx}.popBox .popModeBox .insufficient .go{margin-left:8rpx;font-size:24rpx;color:#fb3e3c;line-height:32rpx}.popBox .popModeBox .insufficient .go image{width:24rpx;height:24rpx}.popBox .subOrder{margin-top:138rpx;width:100%;height:88rpx;border-radius:280rpx;color:#fff;font-size:32rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
if (!Math) {
open();
}
const open = () => "./openComment.js";
const _sfc_main = {
props: {
commentList: {
type: Array,
default: []
}
},
setup(__props) {
const props = __props;
common_vendor.onMounted(() => {
props.commentList.forEach((item) => {
item.image = item.image.split(",");
});
});
common_vendor.reactive({
backgroundImage: "none",
paddingTop: "0",
marginTop: "0"
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.commentList, (item, k0, i0) => {
return {
a: item.avatar,
b: common_vendor.t(item.nickname),
c: common_vendor.t(item.createtime),
d: "4639ae0e-0-" + i0,
e: common_vendor.p({
text: item.content
}),
f: common_vendor.f(item.image, (it, k1, i1) => {
return {
a: it
};
}),
g: item.id
};
})
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/comment.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js");Math||m();const m=()=>"./openComment.js",s={__name:"comment",props:{commentList:{type:Array,default:[]}},setup(o){const a=o;return e.onMounted(()=>{a.commentList.forEach(t=>{t.image=t.image.split(",")})}),e.reactive({backgroundImage:"none",paddingTop:"0",marginTop:"0"}),(t,i)=>({a:e.f(o.commentList,(n,u,c)=>({a:n.avatar,b:e.t(n.nickname),c:e.t(n.createtime),d:"4639ae0e-0-"+c,e:e.p({text:n.content}),f:e.f(n.image,(r,f,_)=>({a:r})),g:n.id}))})}},p=e._export_sfc(s,[["__file","D:/vue/大健康商城/healthMall/componets/comment.vue"]]);wx.createComponent(p);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.commentBox .info {
margin-bottom: 24rpx;
}
.commentBox .info image {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
margin-right: 24rpx;
}
.commentBox .info .name :nth-child(1) {
color: #131a14d9;
font-size: 28rpx;
font-weight: 700;
line-height: 40rpx;
}
.commentBox .info .name text {
color: #131a1466;
font-size: 24rpx;
margin-top: 4rpx;
}
.commentBox .imageBox {
margin-top: 10rpx;
display: flex;
flex-wrap: wrap;
}
.commentBox .imageBox image {
width: 226rpx;
height: 226rpx;
border-radius: 32rpx;
margin: 0 12rpx 12rpx 0;
}
.commentBox .imageBox :nth-child(3n) {
margin-right: 0 !important;
}
\ No newline at end of file
.commentBox .info{margin-bottom:24rpx}.commentBox .info image{width:88rpx;height:88rpx;border-radius:50%;margin-right:24rpx}.commentBox .info .name :nth-child(1){color:rgba(19,26,20,.85);font-size:28rpx;font-weight:700;line-height:40rpx}.commentBox .info .name text{color:rgba(19,26,20,.4);font-size:24rpx;margin-top:4rpx}.commentBox .imageBox{margin-top:10rpx;display:flex;flex-wrap:wrap}.commentBox .imageBox image{width:226rpx;height:226rpx;border-radius:32rpx;margin:0 12rpx 12rpx 0}.commentBox .imageBox :nth-child(3n){margin-right:0!important}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
text: {
type: String,
default: ""
}
},
data() {
return {
iSinfo: false
};
},
methods: {
showinfo() {
this.iSinfo = !this.iSinfo;
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.t($props.text),
b: !$data.iSinfo ? 1 : "",
c: !$data.iSinfo & $props.text.length > 100
}, !$data.iSinfo & $props.text.length > 100 ? {
d: common_vendor.o((...args) => $options.showinfo && $options.showinfo(...args))
} : {}, {
e: $data.iSinfo
}, $data.iSinfo ? {
f: common_vendor.o((...args) => $options.showinfo && $options.showinfo(...args))
} : {});
}
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/openComment.vue"]]);
wx.createComponent(Component);
"use strict";const n=require("../common/vendor.js"),f={props:{text:{type:String,default:""}},data(){return{iSinfo:!1}},methods:{showinfo(){this.iSinfo=!this.iSinfo}}};function c(r,h,t,_,e,o){return n.e({a:n.t(t.text),b:e.iSinfo?"":1,c:!e.iSinfo&t.text.length>100},!e.iSinfo&t.text.length>100?{d:n.o((...i)=>o.showinfo&&o.showinfo(...i))}:{},{e:e.iSinfo},e.iSinfo?{f:n.o((...i)=>o.showinfo&&o.showinfo(...i))}:{})}const s=n._export_sfc(f,[["render",c],["__file","D:/vue/大健康商城/healthMall/componets/openComment.vue"]]);wx.createComponent(s);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page {
background-color: #fff;
}
.Express {
display: flex;
flex-direction: column;
background-color: #fff;
position: relative;
}
.Express .info {
display: flex;
flex-direction: column;
}
.Express .info view {
text-align: justify;
font-size: 14px;
font-weight: 400;
color: #666666;
word-break: break-word;
background-color: #fff;
}
.Express .info .open {
width: 112rpx;
font-size: 14px;
display: flex;
justify-content: flex-end;
align-items: center;
color: #75CA42;
position: absolute;
bottom: 0rpx;
right: 0rpx;
}
.Express .info .open .dot {
margin-right: 30rpx;
}
.hidebtn {
display: flex;
flex: 1;
justify-content: flex-end;
color: #75CA42;
font-size: 14px;
}
.hide {
word-break: break-word;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
\ No newline at end of file
page{background-color:#fff}.Express{display:flex;flex-direction:column;background-color:#fff;position:relative}.Express .info{display:flex;flex-direction:column}.Express .info view{text-align:justify;font-size:14px;font-weight:400;color:#666;word-break:break-word;background-color:#fff}.Express .info .open{width:112rpx;font-size:14px;display:flex;justify-content:flex-end;align-items:center;color:#75ca42;position:absolute;bottom:0rpx;right:0rpx}.Express .info .open .dot{margin-right:30rpx}.hidebtn{display:flex;flex:1;justify-content:flex-end;color:#75ca42;font-size:14px}.hide{word-break:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
shop: {
type: Array,
default: []
}
},
setup(__props) {
const props = __props;
const textHandler = (orderStatus) => [1, 11].includes(orderStatus) ? "\u9700\u4ED8\u6B3E:" : [2, 3, 4, 21].includes(orderStatus) ? "\u5B9E\u4ED8\u6B3E:" : "";
common_vendor.onMounted(() => {
common_vendor.nextTick(() => {
console.log(props.shop, "\u8BA2\u5355\u6570\u636E\u662F\u4EC0\u4E48");
});
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.shop.goods_detail, (it, idx, i0) => {
return common_vendor.e({
a: it.image,
b: common_vendor.t(it.goods_name),
c: common_vendor.t(it.goods_attr ? it.goods_attr : "")
}, ![2].includes(__props.shop.order_status) ? {
d: common_vendor.t(it.total_num)
} : {}, {
e: it.goodstatus != 3
}, it.goodstatus != 3 ? common_vendor.e({
f: common_vendor.t(it.goods_price),
g: __props.shop.goodstatus_text === 2
}, __props.shop.goodstatus_text === 2 ? {
h: common_vendor.t(it.line_price)
} : {}, {
i: common_vendor.t(textHandler(__props.shop.order_status)),
j: common_vendor.t(it.total_price)
}) : common_vendor.e({
k: [2].includes(__props.shop.order_status)
}, [2].includes(__props.shop.order_status) ? {
l: common_vendor.t(__props.shop.score),
m: common_vendor.t(it.total_num)
} : {
n: common_vendor.t(textHandler(__props.shop.order_status)),
o: common_vendor.t(it.coscore),
p: common_vendor.t(it.diff_price)
}), {
q: it.id
});
}),
b: ![2].includes(__props.shop.order_status)
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/orderShop.vue"]]);
wx.createComponent(Component);
"use strict";const o=require("../common/vendor.js"),c={__name:"orderShop",props:{shop:{type:Array,default:[]}},setup(t){const d=t,n=s=>[1,11].includes(s)?"需付款:":[2,3,4,21].includes(s)?"实付款:":"";return o.onMounted(()=>{o.nextTick$1(()=>{console.log(d.shop,"订单数据是什么")})}),(s,a)=>({a:o.f(t.shop.goods_detail,(e,u,l)=>o.e({a:e.image,b:o.t(e.goods_name),c:o.t(e.goods_attr?e.goods_attr:"")},[2].includes(t.shop.order_status)?{}:{d:o.t(e.total_num)},{e:e.goodstatus!=3},e.goodstatus!=3?o.e({f:o.t(e.goods_price),g:t.shop.goodstatus_text===2},t.shop.goodstatus_text===2?{h:o.t(e.line_price)}:{},{i:o.t(n(t.shop.order_status)),j:o.t(e.total_price)}):o.e({k:[2].includes(t.shop.order_status)},[2].includes(t.shop.order_status)?{l:o.t(t.shop.score),m:o.t(e.total_num)}:{n:o.t(n(t.shop.order_status)),o:o.t(e.coscore),p:o.t(e.diff_price)}),{q:e.id})),b:![2].includes(t.shop.order_status)})}},r=o._export_sfc(c,[["__file","D:/vue/大健康商城/healthMall/componets/orderShop.vue"]]);wx.createComponent(r);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.shop {
display: flex;
justify-content: space-between;
margin-bottom: 32rpx;
}
.shop .shopPhoto {
width: 180rpx;
height: 180rpx;
margin-right: 16rpx;
}
.shop .shopPhoto image {
width: 180rpx;
height: 180rpx;
border-radius: 8rpx;
}
.shop .info {
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.shop .info .shopTitle {
color: #323233ff;
font-size: 26rpx;
font-weight: 700;
}
.shop .info .desc {
margin: 16rpx 0;
color: #00000066;
font-size: 20rpx;
}
.shop .info .num {
color: #757d8cff;
font-size: 26rpx;
text-align: right;
}
.shop .info .priceBox {
margin-top: 14rpx;
}
.shop .info .priceBox text {
color: #ff3d3dff;
font-size: 28rpx;
}
.shop .info .priceBox .shi {
color: #ff3d3dff;
font-size: 28rpx;
margin-top: 4rpx;
margin-right: 2rpx;
}
.shop .info .priceBox .reality {
color: #fc4338ff;
font-size: 24rpx;
}
.shop .info .priceBox .reality text {
color: #fc4338ff;
font-size: 22rpx;
font-weight: 700;
margin-top: 10rpx;
}
.shop .info .priceBox .reality .price {
color: #fc4338ff;
font-size: 40rpx;
font-weight: 700;
}
.shop .info .pointsShop {
display: flex;
justify-content: flex-end;
margin-top: 14rpx;
}
.shop .info .pointsShop text {
color: #fc4338ff;
font-size: 24rpx;
}
.shop .info .pointsShop image {
width: 30rpx;
height: 30rpx;
}
.shop .info .pointsShop .points {
margin: 0 28rpx 0 14rpx;
color: #ee0a24ff;
font-size: 28rpx;
font-weight: 700;
}
.shop .info .pointsShop .pointsPrice {
color: #ff3d3dff;
font-size: 26rpx;
}
.linePrice {
text-decoration: line-through;
color: rgba(0, 0, 0, 0.3) !important;
display: block;
}
\ No newline at end of file
.shop{display:flex;justify-content:space-between;margin-bottom:32rpx}.shop .shopPhoto{width:180rpx;height:180rpx;margin-right:16rpx}.shop .shopPhoto image{width:180rpx;height:180rpx;border-radius:8rpx}.shop .info{width:100%;display:flex;flex-direction:column;justify-content:space-between}.shop .info .shopTitle{color:#323233;font-size:26rpx;font-weight:700}.shop .info .desc{margin:16rpx 0;color:rgba(0,0,0,.4);font-size:20rpx}.shop .info .num{color:#757d8c;font-size:26rpx;text-align:right}.shop .info .priceBox{margin-top:14rpx}.shop .info .priceBox text{color:#ff3d3d;font-size:28rpx}.shop .info .priceBox .shi{color:#ff3d3d;font-size:28rpx;margin-top:4rpx;margin-right:2rpx}.shop .info .priceBox .reality{color:#fc4338;font-size:24rpx}.shop .info .priceBox .reality text{color:#fc4338;font-size:22rpx;font-weight:700;margin-top:10rpx}.shop .info .priceBox .reality .price{color:#fc4338;font-size:40rpx;font-weight:700}.shop .info .pointsShop{display:flex;justify-content:flex-end;margin-top:14rpx}.shop .info .pointsShop text{color:#fc4338;font-size:24rpx}.shop .info .pointsShop image{width:30rpx;height:30rpx}.shop .info .pointsShop .points{margin:0 28rpx 0 14rpx;color:#ee0a24;font-size:28rpx;font-weight:700}.shop .info .pointsShop .pointsPrice{color:#ff3d3d;font-size:26rpx}.linePrice{text-decoration:line-through;color:rgba(0,0,0,.3)!important;display:block}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
var api_index = require("../api/index.js");
require("../utils/request.js");
if (!Array) {
const _easycom_u_number_box2 = common_vendor.resolveComponent("u-number-box");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_u_number_box2 + _easycom_u_popup2)();
}
const _easycom_u_number_box = () => "../uni_modules/uview-plus/components/u-number-box/u-number-box.js";
const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
(_easycom_u_number_box + _easycom_u_popup)();
}
const _sfc_main = {
props: {
btnType: {
type: Number,
default: 0
},
shopType: Number,
payPopShow: {
type: Boolean,
default: false
},
shopDetail: {
type: Object,
default: {}
},
moreSpec: {
type: Object,
default: {}
}
},
emits: ["close"],
setup(__props, { emit }) {
const props = __props;
let data = common_vendor.reactive({
value: 1,
speList: [],
indexList: [],
specID: [],
specIdList: [],
formList: {},
goods_spec_id: ""
});
common_vendor.onMounted(() => {
setTimeout(() => {
console.log("\u591A\u89C4\u683C", props.moreSpec);
if (props.moreSpec != null) {
let spec = props.moreSpec.spec_attr;
let mateSpecId = props.moreSpec.spec_list;
data.speList = spec;
data.specIdList = mateSpecId;
spec.forEach((item, index) => {
data.indexList.push({ curIndex: 0 });
data.specID.push(item.spec_items[0].item_id);
});
data.goods_spec_id = data.specID.join("_");
makeUpId();
} else {
data.goods_spec_id = props.shopDetail.spec[0].goods_spec_id;
}
}, 200);
});
const close = () => {
emit("close");
};
const valChange = (e) => {
console.log("\u6570\u91CF" + e.value);
data.value = e.value;
};
const popBtn = () => {
let shopType = props.shopDetail.goodstatus;
let buyData = { id: props.shopDetail.id, num: data.value, specId: data.goods_spec_id };
console.log("\u5F53\u524D\u503C\u4E3A: ", buyData);
props.btnType == 0 ? getAddCars() : common_vendor.index.navigateTo({ url: `/pages/shopCar/confirmOrder?params=${JSON.stringify(buyData)}&shopType=${shopType}` });
};
const checkSpec = (index, it, idx) => {
console.log(index, it, idx);
data.indexList[index].curIndex = idx;
if (data.speList.length == 1) {
data.specID.splice(index, 1, it.item_id);
} else {
data.specID.splice(index, data.specID.length > 1 ? 1 : 0, it.item_id);
}
makeUpId();
};
const makeUpId = () => {
if (data.specID.length == data.speList.length) {
let str = data.specIdList.find((item) => item.spec_sku_id == data.specID.join("_"));
data.formList = str.form;
data.goods_spec_id = str.goods_spec_id;
console.log("\u67E5\u627E\u5230\u7684\u89C4\u683C", str, data.specID.join("_"));
}
};
const getAddCars = async () => {
try {
let params = {
goods_id: props.shopDetail.id,
num: data.value,
goods_spec_id: data.goods_spec_id
};
const res = await api_index.getAddCar(params);
close();
common_vendor.index.showToast({ title: "\u6210\u529F\u52A0\u5165\u8D2D\u7269\u8F66~", icon: "none" });
console.log("getAddCar", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getAddCar", err);
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: __props.shopType !== 3
}, __props.shopType !== 3 ? {
b: common_vendor.t(__props.btnType == 0 ? "\u52A0\u5165\u8D2D\u7269\u8F66" : "\u7ACB\u5373\u8D2D\u4E70")
} : {}, {
c: __props.shopType === 3
}, __props.shopType === 3 ? {} : {}, {
d: __props.shopDetail.image,
e: common_vendor.t(__props.shopDetail.name),
f: __props.shopDetail.goodstatus !== 3
}, __props.shopDetail.goodstatus !== 3 ? {
g: common_vendor.t(__props.shopDetail.spec[0].goods_price)
} : {
h: common_vendor.t(__props.shopDetail.spec[0].coscore)
}, {
i: common_vendor.f(common_vendor.unref(data).speList, (item, index, i0) => {
return {
a: common_vendor.t(item.group_name),
b: common_vendor.f(item.spec_items, (it, idx, i1) => {
return {
a: common_vendor.t(it.spec_value),
b: it.item_id,
c: common_vendor.n(idx == common_vendor.unref(data).indexList[index].curIndex ? "checked" : ""),
d: common_vendor.o(($event) => checkSpec(index, it, idx), it.item_id)
};
}),
c: item.group_id
};
}),
j: common_vendor.o(valChange),
k: common_vendor.o(($event) => _ctx.value = $event),
l: common_vendor.p({
modelValue: _ctx.value
}),
m: __props.btnType == 0
}, __props.btnType == 0 ? {
n: common_vendor.o(popBtn)
} : {
o: common_vendor.t(__props.shopDetail.goodstatus == 3 ? "\u7ACB\u5373\u5151\u6362" : "\u7ACB\u5373\u8D2D\u4E70"),
p: common_vendor.o(popBtn)
}, {
q: common_vendor.o(close),
r: common_vendor.o(_ctx.open),
s: common_vendor.p({
show: __props.payPopShow,
mode: "bottom",
closeable: true,
round: "18"
})
});
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/popPay.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js"),y=require("../api/index.js");require("../utils/request.js");if(!Array){const t=e.resolveComponent("u-number-box"),a=e.resolveComponent("u-popup");(t+a)()}const f=()=>"../uni_modules/uview-plus/components/u-number-box/u-number-box.js",b=()=>"../uni_modules/uview-plus/components/u-popup/u-popup.js";Math||(f+b)();const D={__name:"popPay",props:{btnType:{type:Number,default:0},shopType:Number,payPopShow:{type:Boolean,default:!1},shopDetail:{type:Object,default:{}},moreSpec:{type:Object,default:{}}},emits:["close"],setup(t,{emit:a}){const n=t;let o=e.reactive({value:1,speList:[],indexList:[],specID:[],specIdList:[],formList:{},goods_spec_id:"",curPriceIdx:0});e.onMounted(()=>{setTimeout(()=>{if(console.log("多规格",n.moreSpec),n.moreSpec!=null){let s=n.moreSpec.spec_attr,c=n.moreSpec.spec_list;o.speList=s,o.specIdList=c,s.forEach((p,u)=>{o.indexList.push({curIndex:0}),o.specID.push(p.spec_items[0].item_id)}),o.goods_spec_id=o.specID.join("_"),r()}else o.goods_spec_id=n.shopDetail.spec[0].goods_spec_id},200)});const l=()=>{a("close")},h=s=>{console.log("数量"+s.value),o.value=s.value},d=()=>{let s=n.shopDetail.goodstatus,c={id:n.shopDetail.id,num:o.value,specId:o.goods_spec_id};console.log("当前值为: ",c),n.btnType==0?_():e.index.navigateTo({url:`/pages/shopCar/confirmOrder?params=${JSON.stringify(c)}&shopType=${s}`})},g=(s,c,p)=>{console.log(s,c,p),o.curPriceIdx=p,o.indexList[s].curIndex=p,o.speList.length==1?o.specID.splice(s,1,c.item_id):o.specID.splice(s,o.specID.length>1?1:0,c.item_id),r()},r=()=>{if(o.specID.length==o.speList.length){let s=o.specIdList.find(c=>c.spec_sku_id==o.specID.join("_"));o.formList=s.form,o.goods_spec_id=s.goods_spec_id,console.log("查找到的规格",s,o.specID.join("_"))}},_=async()=>{try{let s={goods_id:n.shopDetail.id,num:o.value,goods_spec_id:o.goods_spec_id};const c=await y.getAddCar(s);l(),e.index.showToast({title:"成功加入购物车~",icon:"none"}),console.log("getAddCar",c)}catch(s){e.index.showToast({title:s,icon:"none"}),console.log("getAddCar",s)}};return(s,c)=>e.e({a:t.shopType!==3},t.shopType!==3?{b:e.t(t.btnType==0?"加入购物车":"立即购买")}:{},{c:t.shopType===3},t.shopType===3?{}:{},{d:t.shopDetail.image,e:e.t(t.shopDetail.name),f:t.shopDetail.goodstatus!==3},t.shopDetail.goodstatus!==3?{g:e.t(t.shopDetail.spec[e.unref(o).curPriceIdx].goods_price)}:{h:e.t(t.shopDetail.spec[e.unref(o).curPriceIdx].coscore)},{i:e.f(e.unref(o).speList,(p,u,v)=>({a:e.t(p.group_name),b:e.f(p.spec_items,(i,m,T)=>({a:e.t(i.spec_value),b:i.item_id,c:e.n(m==e.unref(o).indexList[u].curIndex?"checked":""),d:e.o(x=>g(u,i,m),i.item_id)})),c:p.group_id})),j:e.o(h),k:e.o(p=>s.value=p),l:e.p({modelValue:s.value}),m:t.btnType==0},t.btnType==0?{n:e.o(d)}:{o:e.t(t.shopDetail.goodstatus==3?"立即兑换":"立即购买"),p:e.o(d)},{q:e.o(l),r:e.o(s.open),s:e.p({show:t.payPopShow,mode:"bottom",closeable:!0,round:"18"})})}},I=e._export_sfc(D,[["__file","D:/vue/大健康商城/healthMall/componets/popPay.vue"]]);wx.createComponent(I);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.popBox {
padding: 32rpx 24rpx 0;
}
.popBox .title {
color: #000000e6;
font-size: 32rpx;
font-weight: 700;
}
.popBox .topBox {
margin-top: 32rpx;
}
.popBox .topBox .shopPhoto {
width: 134rpx;
height: 138rpx;
margin-right: 24rpx;
}
.popBox .topBox .shopPhoto image {
border-radius: 12rpx;
width: 134rpx;
height: 138rpx;
}
.popBox .topBox .price {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 110rpx;
}
.popBox .topBox .price .money {
color: #fc4338ff;
font-size: 32rpx;
font-weight: 600;
}
.popBox .topBox .price .shopName {
color: #000000e6;
font-size: 30rpx;
font-weight: 700;
line-height: 40rpx;
}
.popBox .specificationsTile {
color: #00000099;
font-size: 28rpx;
margin-bottom: 16rpx;
border: 1rpx solid transparent;
}
.popBox .colorBox {
display: flex;
flex-wrap: wrap;
}
.popBox .colorBox .item {
margin-right: 16rpx;
padding: 8rpx 32rpx;
border-radius: 46rpx;
color: #000;
font-size: 24rpx;
background: #1918330f;
border: 1rpx solid transparent;
}
.popBox .colorBox .checked {
color: #f43736ff;
font-size: 24rpx;
border-radius: 46rpx;
border: 1rpx solid #f43736ff;
background: #fff1efff;
}
.popBox .numBox {
margin-top: 92rpx;
}
.popBox .numBox .rightTitle {
color: #00000099;
font-size: 28rpx;
}
.popBox .numBox .rightTitle .surplus {
margin-left: 12rpx;
color: #ec3323ff;
font-size: 24rpx;
}
.popBox .payBox {
margin-top: 48rpx;
}
.popBox .payBox .payMode {
color: #000000e6;
font-size: 28rpx;
}
.popBox .payBox .payMode image {
margin-right: 12rpx;
width: 32rpx;
height: 32rpx;
}
.popBox .payBox .yue {
color: #f33f2e;
font-size: 30rpx;
font-weight: 700;
}
.popBox .payBox .yue text {
margin-top: 5rpx;
color: #f33f2e;
font-size: 24rpx;
}
.popBox .popBtn {
border-radius: 280rpx;
margin: 50rpx auto 0;
width: 686rpx;
height: 88rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
background: linear-gradient(139deg, #ffac0bff 0%, #ffc24aff 100%);
}
.popBox .popBtn1 {
margin: 50rpx auto 0;
width: 686rpx;
height: 88rpx;
border-radius: 96rpx;
opacity: 1;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
.popBox .notHave {
background: #ffd5d1ff;
}
\ No newline at end of file
.popBox{padding:32rpx 24rpx 0}.popBox .title{color:rgba(0,0,0,.9);font-size:32rpx;font-weight:700}.popBox .topBox{margin-top:32rpx}.popBox .topBox .shopPhoto{width:134rpx;height:138rpx;margin-right:24rpx}.popBox .topBox .shopPhoto image{border-radius:12rpx;width:134rpx;height:138rpx}.popBox .topBox .price{display:flex;flex-direction:column;justify-content:space-between;height:110rpx}.popBox .topBox .price .money{color:#fc4338;font-size:32rpx;font-weight:600}.popBox .topBox .price .shopName{color:rgba(0,0,0,.9);font-size:30rpx;font-weight:700;line-height:40rpx}.popBox .specificationsTile{color:rgba(0,0,0,.6);font-size:28rpx;margin-bottom:16rpx;border:1rpx solid transparent}.popBox .colorBox{display:flex;flex-wrap:wrap}.popBox .colorBox .item{margin-right:16rpx;padding:8rpx 32rpx;border-radius:46rpx;color:#000;font-size:24rpx;background:#1918330f;border:1rpx solid transparent}.popBox .colorBox .checked{color:#f43736;font-size:24rpx;border-radius:46rpx;border:1rpx solid #f43736ff;background:#fff1efff}.popBox .numBox{margin-top:92rpx}.popBox .numBox .rightTitle{color:rgba(0,0,0,.6);font-size:28rpx}.popBox .numBox .rightTitle .surplus{margin-left:12rpx;color:#ec3323;font-size:24rpx}.popBox .payBox{margin-top:48rpx}.popBox .payBox .payMode{color:rgba(0,0,0,.9);font-size:28rpx}.popBox .payBox .payMode image{margin-right:12rpx;width:32rpx;height:32rpx}.popBox .payBox .yue{color:#f33f2e;font-size:30rpx;font-weight:700}.popBox .payBox .yue text{margin-top:5rpx;color:#f33f2e;font-size:24rpx}.popBox .popBtn{border-radius:280rpx;margin:50rpx auto 0;width:686rpx;height:88rpx;color:#fff;font-size:32rpx;font-weight:700;background:linear-gradient(139deg,#ffac0bff 0%,#ffc24aff 100%)}.popBox .popBtn1{margin:50rpx auto 0;width:686rpx;height:88rpx;border-radius:96rpx;opacity:1;color:#fff;font-size:32rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}.popBox .notHave{background:#ffd5d1ff}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
disabled: {
type: Boolean,
default: true
},
keyWord: {
type: String,
default: ""
}
},
emits: ["doSearchs", "input"],
setup(__props, { emit }) {
const props = __props;
let inputText = common_vendor.ref("");
common_vendor.onMounted(() => {
inputText.value = props.keyWord;
});
const doSearchs = (e) => {
if (e == 0) {
if (inputText.value.trim() == "")
return;
emit("doSearchs", inputText.value);
} else {
emit("doSearchs", e.detail.value);
}
};
const input = (e) => {
if (e.detail.value == "") {
emit("input", e.detail.value);
}
};
const jump = () => {
props.disabled ? common_vendor.index.navigateTo({ url: "/pages/index/search" }) : "";
};
return (_ctx, _cache) => {
return {
a: __props.disabled,
b: common_vendor.o(doSearchs),
c: common_vendor.o([($event) => common_vendor.isRef(inputText) ? inputText.value = $event.detail.value : inputText = $event.detail.value, input]),
d: common_vendor.unref(inputText),
e: common_vendor.o(($event) => doSearchs(0)),
f: common_vendor.o(jump)
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/searchBox.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js");Array||e.resolveComponent("u-search")();const d=()=>"../uni_modules/uview-plus/components/u-search/u-search.js";Math||d();const i={__name:"searchBox",props:{disabled:{type:Boolean,default:!0},keyWord:{type:String,default:""}},emits:["doSearchs","input"],setup(a,{emit:r}){const s=a;let o=e.ref("");const n=e.ref({fontSize:"28rpx",fontWeight:700,color:"#fb753c"});e.onMounted(()=>{o.value=s.keyWord});const t=l=>{r("doSearchs",o.value)},u=()=>{s.disabled&&e.index.navigateTo({url:"/pages/index/search"})};return(l,p)=>({a:e.o(t),b:e.o(t),c:e.o(c=>e.isRef(o)?o.value=c:o=c),d:e.p({disabled:a.disabled,placeholder:"请输入",bgColor:"#fff",searchIconColor:"#fda9a3",actionStyle:n.value,modelValue:e.unref(o)}),e:e.o(u)})}},h=e._export_sfc(i,[["__file","D:/vue/大健康商城/healthMall/componets/searchBox.vue"]]);wx.createComponent(h);
... ...
{
"component": true,
"usingComponents": {}
"usingComponents": {
"u-search": "../uni_modules/uview-plus/components/u-search/u-search"
}
}
\ No newline at end of file
... ...
<view class="boxs"><view class="searchInput flexJ" bindtap="{{f}}"><view class="left flexA"><image src="/static/indexIc/indexSearchIc.png" mode=""></image><input disabled="{{a}}" confirm-type="search" bindconfirm="{{b}}" bindinput="{{c}}" type="text" placeholder="请输入" placeholder-class="ples" value="{{d}}"></input></view><view class="right flexA" bindtap="{{e}}"><view class="line"></view><text>搜索</text></view></view></view>
\ No newline at end of file
<view class="boxs"><view class="searchInput flexJ" bindtap="{{e}}"><u-search wx:if="{{d}}" bindsearch="{{a}}" bindcustom="{{b}}" u-i="18d34f1d-0" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></u-search></view></view>
\ No newline at end of file
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.boxs {
width: 100%;
height: 96rpx;
padding: 18rpx 32rpx;
box-sizing: border-box;
}
.boxs .searchInput {
width: 100%;
height: 100%;
background-color: #FFFFFF;
border-radius: 38rpx;
padding: 14rpx 24rpx;
box-sizing: border-box;
}
.boxs .searchInput .left image {
margin-right: 8rpx;
width: 32rpx;
height: 32rpx;
}
.boxs .searchInput .left input {
width: 500rpx !important;
}
.boxs .searchInput .left .ples {
color: #00000042;
font-size: 26rpx;
}
.boxs .searchInput .right .line {
height: 30rpx;
width: 1rpx;
background-color: #FC6A3D;
margin-right: 14rpx;
}
.boxs .searchInput .right text {
font-size: 28rpx;
font-weight: 700;
color: #FB753C;
}
\ No newline at end of file
.boxs{width:100%;padding:18rpx 24rpx;box-sizing:border-box}.boxs .searchInput{width:100%;height:100%;background-color:#fff;border-radius:38rpx}.boxs .searchInput .left image{margin-right:8rpx;width:32rpx;height:32rpx}.boxs .searchInput .left input{width:500rpx!important}.boxs .searchInput .left .ples{color:rgba(0,0,0,.26);font-size:26rpx}.boxs .searchInput .right .line{height:30rpx;width:1rpx;background-color:#fc6a3d;margin-right:14rpx}.boxs .searchInput .right text{font-size:28rpx;font-weight:700;color:#fb753c}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
isPoints: {
type: Boolean,
default: false
},
info: {
type: Object,
default: {}
}
},
setup(__props) {
common_vendor.onMounted(() => {
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(__props.info.name),
b: __props.info.goodstatus == 3
}, __props.info.goodstatus == 3 ? {
c: common_vendor.t(__props.info.spec[0].coscore)
} : common_vendor.e({
d: common_vendor.t(__props.info.spec[0].goods_price),
e: __props.info.goodstatus == 2
}, __props.info.goodstatus == 2 ? {
f: common_vendor.t(__props.info.spec[0].line_price)
} : {}), {
g: common_vendor.t(__props.info.goodstatus == 1 ? "\u5DF2\u552E\uFF1A" : __props.info.goodstatus == 2 ? "\u5E93\u5B58\uFF1A" : "\u5DF2\u5151\uFF1A"),
h: common_vendor.t(__props.info.goodstatus != 2 ? __props.info.sales_actual : __props.info.spec[0].stock_num)
});
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shopInfo.vue"]]);
wx.createComponent(Component);
"use strict";const t=require("../common/vendor.js"),e={__name:"shopInfo",props:{isPoints:{type:Boolean,default:!1},info:{type:Object,default:{}}},setup(o){return t.onMounted(()=>{}),(s,i)=>t.e({a:t.t(o.info.name),b:o.info.goodstatus===1},o.info.goodstatus===1?{c:t.t(o.info.spec[0].score)}:{},{d:o.info.goodstatus==3},o.info.goodstatus==3?{e:t.t(o.info.spec[0].coscore)}:t.e({f:t.t(o.info.spec[0].goods_price),g:o.info.goodstatus==2},o.info.goodstatus==2?{h:t.t(o.info.spec[0].line_price)}:{}),{i:t.t(o.info.goodstatus==1?"已售:":o.info.goodstatus==2?"库存:":"已兑:"),j:t.t(o.info.goodstatus!=2?o.info.sales_actual:o.info.spec[0].stock_num)})}},n=t._export_sfc(e,[["__file","D:/vue/大健康商城/healthMall/componets/shopInfo.vue"]]);wx.createComponent(n);
... ...
<view class="infoBox"><view class="name ellipsisT">{{a}}</view><view class="priceBox flexJ"><view wx:if="{{b}}" class="price flexA"><view class="new">{{c}}</view><view class="points">积分</view></view><view wx:else class="price flexA"><view class="new">¥{{d}}</view><text wx:if="{{e}}">¥{{f}}</text></view><view class="inventory">{{g}}{{h}}份</view></view></view>
\ No newline at end of file
<view class="infoBox"><view class="name ellipsisT">{{a}}</view><view wx:if="{{b}}" class="flexJ"><view class="inventory" style="margin-bottom:10rpx">购买可获得{{c}}积分</view><view class="inventory" style="color:rgb(241, 71, 71)">注: 购买不同规格的商品可获得不同的积分</view></view><view class="priceBox flexJ"><view wx:if="{{d}}" class="price flexA"><view class="new">{{e}}</view><view class="points">积分</view></view><view wx:else class="price flexA"><view class="new">¥{{f}}</view><text wx:if="{{g}}">¥{{h}}</text></view><view class="inventory">{{i}}{{j}}份</view></view></view>
\ No newline at end of file
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.infoBox .name {
height: 80rpx;
color: #000000e6;
font-size: 30rpx;
font-weight: 700;
line-height: 40rpx;
margin-bottom: 32rpx;
}
.infoBox .priceBox .price text {
color: #00000042;
font-size: 24rpx;
text-decoration: line-through;
margin-left: 8rpx;
margin-top: 16rpx;
}
.infoBox .priceBox .price .new {
color: #fc4338ff;
font-size: 40rpx;
font-weight: 700;
}
.infoBox .priceBox .price .points {
color: #fc4338ff;
font-size: 22rpx;
margin: 10rpx 0 0 8rpx;
}
.infoBox .priceBox .inventory {
color: #00000066;
font-size: 22rpx;
}
\ No newline at end of file
.infoBox .name{height:80rpx;color:rgba(0,0,0,.9);font-size:30rpx;font-weight:700;line-height:40rpx}.infoBox .priceBox .price text{color:rgba(0,0,0,.26);font-size:24rpx;text-decoration:line-through;margin-left:8rpx;margin-top:16rpx}.infoBox .priceBox .price .new{color:#fc4338;font-size:40rpx;font-weight:700}.infoBox .priceBox .price .points{color:#fc4338;font-size:22rpx;margin:10rpx 0 0 8rpx}.infoBox .priceBox .inventory,.inventory{color:rgba(0,0,0,.4);font-size:22rpx}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
const _sfc_main = {
props: {
shopWidth: {
type: Number,
default: 322
},
shopHeight: {
type: Number,
default: 344
},
pointShop: {
type: Boolean,
default: false
},
list: {
type: Array,
default: []
},
isClass: Boolean,
isTejia: { type: Boolean, default: false }
},
setup(__props) {
const props = __props;
common_vendor.useCssVars((_ctx) => ({
"fd89c8f4-wide": wide.value,
"fd89c8f4-heig": heig.value
}));
const wide = common_vendor.ref(props.shopWidth + "rpx");
const heig = common_vendor.ref(props.shopHeight + "rpx");
common_vendor.onMounted(() => {
});
const toDetaile = (id) => {
common_vendor.index.navigateTo({
url: `/pages/index/shopDetaile?id=${id}`
});
};
console.log(1);
return (_ctx, _cache) => {
return {
a: common_vendor.f(__props.list, (item, k0, i0) => {
return common_vendor.e({
a: item.image,
b: common_vendor.t(item.name),
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.isTejia
}, __props.shopHeight == 322 || __props.isTejia ? {
f: common_vendor.t(item.line_price)
} : {}, {
g: __props.isClass
}, __props.isClass ? {
h: common_vendor.t(item.spyprice)
} : {}) : {
i: common_vendor.t(item.coscore)
}, __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.isTejia ? {
l: common_vendor.t(item.stock_num)
} : {}, {
m: item.id,
n: common_vendor.o(($event) => toDetaile(item.id), item.id)
});
}),
b: !__props.pointShop,
c: __props.shopWidth == 344 && !__props.isTejia,
d: __props.shopHeight == 322 || __props.isTejia,
e: common_vendor.s(_ctx.__cssVars())
};
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shops.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js"),l={__name:"shops",props:{shopWidth:{type:Number,default:322},shopHeight:{type:Number,default:344},pointShop:{type:Boolean,default:!1},list:{type:Array,default:[]},isClass:Boolean,isTejia:{type:Boolean,default:!1}},setup(t){const a=t;e.useCssVars(i=>({"5e4b6e14":o.value,"5e592e04":n.value}));const o=e.ref(a.shopWidth+"rpx"),n=e.ref(a.shopHeight+"rpx");e.onMounted(()=>{});const h=i=>{e.index.navigateTo({url:`/pages/index/shopDetaile?id=${i}`})};return console.log(1),(i,d)=>({a:e.f(t.list,(s,u,f)=>e.e({a:s.image,b:e.t(s.name),c:e.t(s.describe)},t.pointShop?{i:e.t(s.coscore)}:e.e({d:e.t(s.goods_price||s.spprice),e:t.shopHeight==322||t.isTejia},t.shopHeight==322||t.isTejia?{f:e.t(s.line_price)}:{},{g:t.isClass},t.isClass?{h:e.t(s.spyprice)}:{}),t.shopWidth==344&&!t.isTejia?{j:e.t(t.pointShop?"已兑换:":"已售:"),k:e.t(s.sales_actual)}:{},t.shopHeight==322||t.isTejia?{l:e.t(s.stock_num)}:{},{m:s.id,n:e.o(g=>h(s.id),s.id)})),b:!t.pointShop,c:t.shopWidth==344&&!t.isTejia,d:t.shopHeight==322||t.isTejia,e:e.s(i.__cssVars())})}},c=e._export_sfc(l,[["__file","D:/vue/大健康商城/healthMall/componets/shops.vue"]]);wx.createComponent(c);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.shopBox {
width: var(--fd89c8f4-wide);
border-radius: 12rpx;
background: #ffffffff;
margin-bottom: 14rpx;
}
.shopBox .shopPhoto {
width: var(--fd89c8f4-wide);
height: var(--fd89c8f4-heig);
}
.shopBox .shopPhoto image {
width: 100%;
height: 100%;
border-radius: 12rpx 12rpx 0 0;
}
.shopBox .btomBox {
padding: 0 16rpx 16rpx;
}
.shopBox .btomBox .shopName {
color: #000000e6;
font-size: 26rpx;
line-height: 32rpx;
margin: 16rpx 0 8rpx;
}
.shopBox .btomBox .desc {
color: #00000066;
font-size: 20rpx;
margin-bottom: 12rpx;
}
.shopBox .btomBox .shopPrice {
margin-bottom: 8rpx;
}
.shopBox .btomBox .shopPrice .new {
color: #fc4338ff;
font-size: 28rpx;
font-weight: 700;
}
.shopBox .btomBox .shopPrice .original {
margin-left: 4rpx;
color: #00000042;
font-size: 20rpx;
text-decoration: line-through;
}
.shopBox .btomBox .points {
color: #fc4338ff;
font-size: 28rpx;
font-weight: 700;
}
.shopBox .btomBox .points image {
margin-left: 4rpx;
width: 24rpx;
height: 24rpx;
}
.shopBox .btomBox .sold {
color: #00000066;
font-size: 22rpx;
line-height: 28rpx;
}
\ No newline at end of file
.shopBox{width:var(--5e4b6e14);border-radius:12rpx;background:#ffffffff;margin-bottom:14rpx}.shopBox .shopPhoto{width:var(--5e4b6e14);height:var(--5e592e04)}.shopBox .shopPhoto image{width:100%;height:100%;border-radius:12rpx 12rpx 0 0}.shopBox .btomBox{padding:0 16rpx 16rpx}.shopBox .btomBox .shopName{color:rgba(0,0,0,.9);font-size:26rpx;line-height:32rpx;margin:16rpx 0 8rpx}.shopBox .btomBox .desc{color:rgba(0,0,0,.4);font-size:20rpx;margin-bottom:12rpx}.shopBox .btomBox .shopPrice{margin-bottom:8rpx}.shopBox .btomBox .shopPrice .new{color:#fc4338;font-size:28rpx;font-weight:700}.shopBox .btomBox .shopPrice .original{margin-left:4rpx;color:rgba(0,0,0,.26);font-size:20rpx;text-decoration:line-through}.shopBox .btomBox .points{color:#fc4338;font-size:28rpx;font-weight:700}.shopBox .btomBox .points image{margin-left:4rpx;width:24rpx;height:24rpx}.shopBox .btomBox .sold{color:rgba(0,0,0,.4);font-size:22rpx;line-height:28rpx}
... ...
"use strict";
var common_vendor = require("../common/vendor.js");
if (!Array) {
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
_easycom_u_popup2();
}
const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";
if (!Math) {
_easycom_u_popup();
}
const _sfc_main = {
props: {
tipShow: {
type: Boolean,
default: false
},
integral: {
type: String,
default: 0
},
tipType: {
type: Number,
default: 0
}
},
emits: ["pointsBtns"],
setup(__props, { emit }) {
common_vendor.ref(false);
const pointsBtns = (type) => {
emit("pointsBtns", type);
};
return (_ctx, _cache) => {
return common_vendor.e({
a: __props.tipType == 0
}, __props.tipType == 0 ? {
b: common_vendor.t(__props.integral)
} : {}, {
c: common_vendor.t(__props.tipType == 0 ? "\u662F\u5426\u786E\u8BA4\u4F7F\u7528\u79EF\u5206\u5151\u6362" : __props.tipType == 1 ? "\u662F\u5426\u786E\u5B9A\u53D6\u6D88\u652F\u4ED8" : "\u662F\u5426\u786E\u5B9A\u53D6\u6D88\u8BA2\u5355"),
d: common_vendor.o(($event) => pointsBtns(0)),
e: common_vendor.o(($event) => pointsBtns(1)),
f: common_vendor.o(($event) => pointsBtns(0)),
g: common_vendor.p({
show: __props.tipShow,
round: 16,
safeAreaInsetBottom: false,
mode: "center"
})
});
};
}
};
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/tipPop.vue"]]);
wx.createComponent(Component);
"use strict";const e=require("../common/vendor.js");Array||e.resolveComponent("u-popup")();const u=()=>"../uni_modules/uview-plus/components/u-popup/u-popup.js";Math||u();const i={__name:"tipPop",props:{tipShow:{type:Boolean,default:!1},integral:{type:String,default:0},tipType:{type:Number,default:0}},emits:["pointsBtns"],setup(t,{emit:s}){e.ref(!1);const o=p=>{s("pointsBtns",p)};return(p,c)=>e.e({a:t.tipType==0},t.tipType==0?{b:e.t(t.integral)}:{},{c:e.t(t.tipType==0?"是否确认使用积分兑换":t.tipType==1?"是否确定取消支付":"是否确定取消订单"),d:e.o(n=>o(0)),e:e.o(n=>o(1)),f:e.o(n=>o(0)),g:e.p({show:t.tipShow,round:16,safeAreaInsetBottom:!1,mode:"center"})})}},a=e._export_sfc(i,[["__file","D:/vue/大健康商城/healthMall/componets/tipPop.vue"]]);wx.createComponent(a);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.pointsPop {
width: 622rpx;
padding: 26rpx 32rpx 28rpx;
box-sizing: border-box;
}
.pointsPop .popTitle {
color: #fc4338ff;
font-size: 48rpx;
font-weight: 700;
}
.pointsPop .popTitle text {
margin: 12rpx 0 0 12rpx;
color: #fc4338ff;
font-size: 22rpx;
}
.pointsPop .popTips {
margin: 37rpx 0 52rpx;
color: #000000e6;
font-size: 32rpx;
font-weight: 700;
}
.pointsPop .pointsBtn {
width: 100%;
}
.pointsPop .pointsBtn .clean {
width: 264rpx;
height: 76rpx;
border-radius: 46rpx;
color: #000000e6;
font-size: 28rpx;
font-weight: 700;
background: #f7f8faff;
}
.pointsPop .pointsBtn .yes {
width: 264rpx;
height: 84rpx;
border-radius: 280rpx;
color: #ffffffff;
font-size: 28rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
\ No newline at end of file
.pointsPop{width:622rpx;padding:26rpx 32rpx 28rpx;box-sizing:border-box}.pointsPop .popTitle{color:#fc4338;font-size:48rpx;font-weight:700}.pointsPop .popTitle text{margin:12rpx 0 0 12rpx;color:#fc4338;font-size:22rpx}.pointsPop .popTips{margin:37rpx 0 52rpx;color:rgba(0,0,0,.9);font-size:32rpx;font-weight:700}.pointsPop .pointsBtn{width:100%}.pointsPop .pointsBtn .clean{width:264rpx;height:76rpx;border-radius:46rpx;color:rgba(0,0,0,.9);font-size:28rpx;font-weight:700;background:#f7f8faff}.pointsPop .pointsBtn .yes{width:264rpx;height:84rpx;border-radius:280rpx;color:#fff;font-size:28rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
const _sfc_main = {
setup(__props) {
let data = common_vendor.reactive({
cur: 0,
firstClass: [],
titleList: []
});
common_vendor.onShow(() => {
getClassifications();
});
common_vendor.onHide(() => {
console.log(11222);
common_vendor.index.removeStorage({ key: "classId" });
data.cur = 0;
});
const bindToView = (item, index) => {
data.cur = item.id;
data.titleList = item.two;
};
const getClassifications = async () => {
try {
const res = await api_index.getTwoClassification();
console.log(res, "\u4E09\u7EA7\u5206\u7C7B");
data.cur = common_vendor.index.getStorageSync("classId") || 0;
data.firstClass = res;
if (data.cur === 0) {
data.cur = res[0].id;
data.titleList = res[0].two;
} else {
data.titleList = res.find((item) => item.id === data.cur).two;
}
console.log("getClassification", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getClassification", err);
}
};
const toThreeClassHandler = (pid) => common_vendor.index.navigateTo({ url: `/pages/class/classList?pid=${pid}` });
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(data).firstClass, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.n(common_vendor.unref(data).cur == item.id ? "check" : ""),
c: item.id,
d: common_vendor.o(($event) => bindToView(item), item.id)
};
}),
b: common_vendor.f(common_vendor.unref(data).titleList, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.f(item.three, (it, k1, i1) => {
return {
a: it.image_text,
b: common_vendor.t(it.name),
c: it.id,
d: common_vendor.o(($event) => toThreeClassHandler(it.id), it.id)
};
})
};
})
};
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/class/class.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),u=require("../../api/index.js");require("../../utils/request.js");const f={__name:"class",setup(_){let t=e.reactive({cur:0,firstClass:[],titleList:[]});e.onShow(()=>{o()}),e.onHide(()=>{console.log(11222),e.index.removeStorage({key:"classId"}),t.cur=0});const c=(s,a)=>{t.cur=s.id,t.titleList=s.two},o=async()=>{try{const s=await u.getTwoClassification();console.log(s,"三级分类"),t.cur=e.index.getStorageSync("classId")||0,t.firstClass=s,t.cur===0?(t.cur=s[0].id,t.titleList=s[0].two):t.titleList=s.find(a=>a.id===t.cur).two,console.log("getClassification",s)}catch(s){e.index.showToast({title:s,icon:"none"}),console.log("getClassification",s)}},r=s=>e.index.navigateTo({url:`/pages/class/classList?pid=${s}`});return(s,a)=>({a:e.f(e.unref(t).firstClass,(i,l,d)=>({a:e.t(i.name),b:e.n(e.unref(t).cur==i.id?"check":""),c:i.id,d:e.o(n=>c(i),i.id)})),b:e.f(e.unref(t).titleList,(i,l,d)=>({a:e.t(i.name),b:e.f(i.three,(n,x,h)=>({a:n.image_text,b:e.t(n.name),c:n.id,d:e.o(w=>r(n.id),n.id)}))}))})}},g=e._export_sfc(f,[["__file","D:/vue/大健康商城/healthMall/pages/class/class.vue"]]);wx.createPage(g);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.container {
width: 100vw;
height: 100vh;
}
.container .rightBox {
width: 160rpx;
height: 100vh;
background: #f5f5f5ff;
}
.container .rightBox .rightItem {
width: 160rpx;
height: 104rpx;
background: #f5f5f5ff;
border: 0 solid #979797ff;
}
.container .rightBox .check {
width: 160rpx;
height: 104rpx;
border-radius: 32rpx 0 0 32rpx;
opacity: 1;
color: #f43736ff;
font-size: 28rpx;
font-weight: 700;
background: #ffffffff;
}
.container .scroller {
height: 100vh;
width: 100%;
padding: 0 32rpx 0 24rpx;
box-sizing: border-box;
}
.container .scroller .left {
width: 100%;
padding: 24rpx 24rpx 40rpx;
box-sizing: border-box;
opacity: 1;
background: #ffffffff;
margin-bottom: 24rpx;
}
.container .scroller .left .title {
color: #323233ff;
font-size: 28rpx;
font-weight: 700;
margin-bottom: 22rpx;
}
.container .scroller .left .shopBpx {
width: 100%;
display: flex;
flex-wrap: wrap;
}
.container .scroller .left .shopBpx .shop {
width: 162rpx;
margin-bottom: 24rpx;
display: inline-grid;
}
.container .scroller .left .shopBpx .shop .name {
color: #646566ff;
font-size: 24rpx;
text-align: center;
}
.container .scroller .left .shopBpx .shop image {
width: 128rpx;
height: 128rpx;
margin-bottom: 8rpx;
}
\ No newline at end of file
.container{width:100vw;height:100vh}.container .rightBox{width:160rpx;height:100vh;background:#f5f5f5ff}.container .rightBox .rightItem{width:160rpx;height:104rpx;background:#f5f5f5ff;border:0 solid #979797ff}.container .rightBox .check{width:160rpx;height:104rpx;border-radius:32rpx 0 0 32rpx;opacity:1;color:#f43736;font-size:28rpx;font-weight:700;background:#ffffffff}.container .scroller{height:100vh;width:100%;padding:0 32rpx 0 24rpx;box-sizing:border-box}.container .scroller .left{width:100%;padding:24rpx 24rpx 40rpx;box-sizing:border-box;opacity:1;background:#ffffffff;margin-bottom:24rpx}.container .scroller .left .title{color:#323233;font-size:28rpx;font-weight:700;margin-bottom:22rpx}.container .scroller .left .shopBpx{width:100%;display:flex;flex-wrap:wrap}.container .scroller .left .shopBpx .shop{width:162rpx;margin-bottom:24rpx;display:inline-grid}.container .scroller .left .shopBpx .shop .name{color:#646566;font-size:24rpx;text-align:center}.container .scroller .left .shopBpx .shop image{width:128rpx;height:128rpx;margin-bottom:8rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Math) {
(search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
const shopList = common_vendor.ref([]);
common_vendor.onLoad(async ({ pid }) => {
const res = await api_index.getCategoryGoods({ pid });
shopList.value = res;
console.log(res, "\u5206\u7C7B\u5546\u54C1\u5217\u8868");
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
list: shopList.value,
shopWidth: 344,
shopHeight: 344,
isClass: true
}),
b: !shopList.value.length
}, !shopList.value.length ? {} : {});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/class/classList.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const s=require("../../common/vendor.js"),a=require("../../api/index.js");require("../../utils/request.js");Math||(c+n)();const c=()=>"../../componets/searchBox.js",n=()=>"../../componets/shops.js",r={__name:"classList",setup(l){const e=s.ref([]);return s.onLoad(async({pid:t})=>{const o=await a.getCategoryGoods({pid:t});e.value=o,console.log(o,"分类商品列表")}),(t,o)=>s.e({a:s.p({list:e.value,shopWidth:344,shopHeight:344,isClass:!0}),b:!e.value.length},e.value.length?{}:{})}},i=s._export_sfc(r,[["__file","D:/vue/大健康商城/healthMall/pages/class/classList.vue"]]);wx.createPage(i);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page {
background: #f7f8fa;
}
.mainBox {
width: 100%;
padding: 16rpx 24rpx;
box-sizing: border-box;
}
.null {
margin-top: 266rpx;
}
.null text {
position: relative;
margin-top: -80rpx;
color: #00000066;
font-size: 26rpx;
}
.null image {
width: 348rpx;
height: 348rpx;
}
\ No newline at end of file
page{background:#f7f8fa}.mainBox{width:100%;padding:16rpx 24rpx;box-sizing:border-box}.null{margin-top:266rpx}.null text{position:relative;margin-top:-80rpx;color:rgba(0,0,0,.4);font-size:26rpx}.null image{width:348rpx;height:348rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_u_navbar + comment)();
}
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({
bgColor: "#fff",
title: "\u8BC4\u8BBA",
placeholder: true,
autoBack: true
}),
b: common_vendor.p({
commentList: all.value
})
};
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/allComment.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js");Array||e.resolveComponent("u-navbar")();const t=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";Math||(t+r)();const r=()=>"../../componets/comment.js",s={__name:"allComment",setup(n){const a=e.ref([]);return e.onLoad(o=>a.value=JSON.parse(o.allCommentList)),(o,m)=>({a:e.p({bgColor:"#fff",title:"评论",placeholder:!0,autoBack:!0}),b:e.p({commentList:a.value})})}},c=e._export_sfc(s,[["__file","D:/vue/大健康商城/healthMall/pages/index/allComment.vue"]]);wx.createPage(c);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.boxs {
padding: 40rpx 24rpx;
}
\ No newline at end of file
.boxs{padding:40rpx 24rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_u_navbar + search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
common_vendor.onShow(() => {
getIndexs();
});
let shopList = common_vendor.ref([]);
const getIndexs = async () => {
try {
const res = await api_index.getIndex();
shopList.value = res.tjgoods;
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getIndex", err);
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
bgColor: "#F6F8FA",
title: "\u7279\u4EF7\u4E13\u533A",
placeholder: true,
autoBack: true
}),
b: common_vendor.p({
list: common_vendor.unref(shopList),
shopWidth: 344,
shopHeight: 344,
pointShop: false,
isTejia: true
}),
c: !common_vendor.unref(shopList).length
}, !common_vendor.unref(shopList).length ? {} : {});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/bargainPrice.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");require("../../utils/request.js");Array||e.resolveComponent("u-navbar")();const r=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";Math||(r+c+i)();const c=()=>"../../componets/searchBox.js",i=()=>"../../componets/shops.js",u={__name:"bargainPrice",setup(s){e.onShow(()=>{t()});let n=e.ref([]);const t=async()=>{try{const o=await a.getIndex();n.value=o.tjgoods}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getIndex",o)}};return(o,p)=>e.e({a:e.p({bgColor:"#F6F8FA",title:"特价专区",placeholder:!0,autoBack:!0}),b:e.p({list:e.unref(n),shopWidth:344,shopHeight:344,pointShop:!1,isTejia:!0}),c:!e.unref(n).length},e.unref(n).length?{}:{})}},_=e._export_sfc(u,[["__file","D:/vue/大健康商城/healthMall/pages/index/bargainPrice.vue"]]);wx.createPage(_);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page {
background: #f6f8fa;
}
.mainBox {
width: 100%;
padding: 16rpx 24rpx;
box-sizing: border-box;
}
.null {
margin-top: 266rpx;
}
.null text {
position: relative;
margin-top: -80rpx;
color: #00000066;
font-size: 26rpx;
}
.null image {
width: 348rpx;
height: 348rpx;
}
\ No newline at end of file
page{background:#f6f8fa}.mainBox{width:100%;padding:16rpx 24rpx;box-sizing:border-box}.null{margin-top:266rpx}.null text{position:relative;margin-top:-80rpx;color:rgba(0,0,0,.4);font-size:26rpx}.null image{width:348rpx;height:348rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_u_navbar + search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
const lastPage = common_vendor.ref(1);
const curPage = common_vendor.ref(1);
common_vendor.onShow(() => {
curPage.value = 1;
data.recommendList.splice(0);
getIndexs();
});
const toRecharg = () => {
common_vendor.index.navigateTo({
url: "/pages/mine/recharge"
});
};
let data = common_vendor.reactive({
classList: [],
specialList: [],
recommendList: []
});
const jumpClass = (item) => {
common_vendor.index.setStorageSync("classId", item.id);
common_vendor.index.switchTab({ url: "/pages/class/class" });
};
const jumpClassHandler = () => common_vendor.index.switchTab({ url: "/pages/class/class" });
const toBargainPriceMoreHandler = () => common_vendor.index.navigateTo({ url: "/pages/index/bargainPrice" });
const getIndexs = async () => {
try {
const res = await api_index.getIndex({ page: curPage.value });
data.classList = res.fenlei;
data.specialList = res.tjgoods;
data.recommendList = data.recommendList.concat(res.goods.data);
console.log(data.recommendList, "\u63A8\u8350\u5546\u54C1");
console.log("getIndex", res);
lastPage.value = res.goods.last_page;
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getIndex", err);
}
};
common_vendor.onReachBottom(() => {
curPage.value++;
if (curPage.value >= lastPage.value)
return;
api_index.getIndex();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
bgColor: "transparent"
}),
b: common_vendor.o(toRecharg),
c: common_vendor.f(common_vendor.unref(data).classList, (item, k0, i0) => {
return {
a: item.image,
b: common_vendor.t(item.name),
c: item.id,
d: common_vendor.o(($event) => jumpClass(item), item.id)
};
}),
d: common_vendor.o(jumpClassHandler),
e: common_vendor.o(toBargainPriceMoreHandler),
f: common_vendor.p({
list: common_vendor.unref(data).specialList.slice(0, 2),
shopWidth: 322,
shopHeight: 322,
isTejia: true
}),
g: common_vendor.p({
list: common_vendor.unref(data).recommendList,
shopWidth: 344,
shopHeight: 344
})
};
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/index.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),c=require("../../api/index.js");require("../../utils/request.js");Array||e.resolveComponent("u-navbar")();const p=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";Math||(p+m+_)();const m=()=>"../../componets/searchBox.js",_=()=>"../../componets/shops.js",h={__name:"index",setup(r){const t=e.ref(1),o=e.ref(1);e.onShow(()=>{o.value=1,a.recommendList.splice(0),g()});const i=()=>{e.index.navigateTo({url:"/pages/mine/recharge"})};let a=e.reactive({classList:[],specialList:[],recommendList:[]});const l=s=>{e.index.setStorageSync("classId",s.id),e.index.switchTab({url:"/pages/class/class"})},d=()=>e.index.switchTab({url:"/pages/class/class"}),u=()=>e.index.navigateTo({url:"/pages/index/bargainPrice"}),g=async()=>{try{const s=await c.getIndex({page:o.value});a.classList=s.fenlei,a.specialList=s.tjgoods,a.recommendList=a.recommendList.concat(s.goods.data),console.log(a.recommendList,"推荐商品"),console.log("getIndex",s),t.value=s.goods.last_page}catch(s){e.index.showToast({title:s,icon:"none"}),console.log("getIndex",s)}};return e.onReachBottom(()=>{o.value++,!(o.value>=t.value)&&c.getIndex()}),(s,x)=>({a:e.p({bgColor:"transparent"}),b:e.o(i),c:e.f(e.unref(a).classList,(n,f,b)=>({a:n.image,b:e.t(n.name),c:n.id,d:e.o(L=>l(n),n.id)})),d:e.o(d),e:e.o(u),f:e.p({list:e.unref(a).specialList.slice(0,2),shopWidth:322,shopHeight:322,isTejia:!0}),g:e.p({list:e.unref(a).recommendList,shopWidth:344,shopHeight:344})})}},v=e._export_sfc(h,[["__file","D:/vue/大健康商城/healthMall/pages/index/index.vue"]]);wx.createPage(v);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-nav-slot {
color: #fff;
font-size: 34rpx;
font-weight: 700;
}
.topBgBox {
width: 100%;
}
.topBgBox image {
width: 100%;
height: 528rpx;
}
.topBgBox .searchBox {
width: 100%;
position: absolute;
top: 176rpx;
}
.topBgBox .searchBox .vip image {
margin-left: 20rpx;
width: 718rpx;
height: 228rpx;
}
.classBox {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 100%;
padding: 20rpx 56rpx 40rpx;
box-sizing: border-box;
}
.classBox :nth-child(4n) {
margin-right: 0 !important;
}
.classBox .itemClss {
margin: 0 86rpx 20rpx 0;
}
.classBox .itemClss image {
width: 88rpx;
height: 88rpx;
margin-bottom: 24rpx;
}
.classBox .itemClss text {
color: #000000e6;
font-size: 24rpx;
}
.specialOffer {
position: relative;
width: 702rpx;
height: 648rpx;
margin: 0 auto;
}
.specialOffer .pinkBg {
width: 100%;
height: 100%;
}
.specialOffer .special {
position: absolute;
top: 24rpx;
left: 24rpx;
width: 654rpx;
box-sizing: border-box;
}
.specialOffer .special .topBox {
width: 100%;
margin-bottom: 24rpx;
}
.specialOffer .special .topBox .titles .title {
color: #f84b3bff;
font-size: 32rpx;
font-weight: 700;
line-height: 32rpx;
}
.specialOffer .special .topBox .titles text {
color: #f84b3bff;
font-size: 20rpx;
margin-top: 8rpx;
}
.specialOffer .special .topBox .more {
margin-top: 26rpx;
color: #f84b3bff;
font-size: 24rpx;
}
.specialOffer .special .topBox .more image {
width: 22rpx;
height: 22rpx;
}
.specialOffer .special .shop {
width: 654rpx;
height: 508rpx;
overflow: hidden;
}
.recom {
color: #323233ff;
font-size: 30rpx;
font-weight: 700;
line-height: 44rpx;
margin: 40rpx 40rpx 16rpx;
}
.recom image {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
.recom text {
margin-left: 8rpx;
color: #969799ff;
font-size: 22rpx;
margin-top: 10rpx;
}
.recomBox {
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
background: #f8f8fa;
}
\ No newline at end of file
.u-nav-slot{color:#fff;font-size:34rpx;font-weight:700}.topBgBox{width:100%}.topBgBox image{width:100%;height:528rpx}.topBgBox .searchBox{width:100%;position:absolute;top:176rpx}.topBgBox .searchBox .vip image{margin-left:20rpx;width:718rpx;height:228rpx}.classBox{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%;padding:20rpx 56rpx 40rpx;box-sizing:border-box}.classBox :nth-child(4n){margin-right:0!important}.classBox .itemClss{margin:0 86rpx 20rpx 0}.classBox .itemClss image{width:88rpx;height:88rpx;margin-bottom:24rpx}.classBox .itemClss text{color:rgba(0,0,0,.9);font-size:24rpx}.specialOffer{position:relative;width:702rpx;height:648rpx;margin:0 auto}.specialOffer .pinkBg{width:100%;height:100%}.specialOffer .special{position:absolute;top:24rpx;left:24rpx;width:654rpx;box-sizing:border-box}.specialOffer .special .topBox{width:100%;margin-bottom:24rpx}.specialOffer .special .topBox .titles .title{color:#f84b3b;font-size:32rpx;font-weight:700;line-height:32rpx}.specialOffer .special .topBox .titles text{color:#f84b3b;font-size:20rpx;margin-top:8rpx}.specialOffer .special .topBox .more{margin-top:26rpx;color:#f84b3b;font-size:24rpx}.specialOffer .special .topBox .more image{width:22rpx;height:22rpx}.specialOffer .special .shop{width:654rpx;height:508rpx;overflow:hidden}.recom{color:#323233;font-size:30rpx;font-weight:700;line-height:44rpx;margin:40rpx 40rpx 16rpx}.recom image{width:32rpx;height:32rpx;margin-right:8rpx}.recom text{margin-left:8rpx;color:#969799;font-size:22rpx;margin-top:10rpx}.recomBox{width:100%;padding:0 24rpx;box-sizing:border-box;background:#f8f8fa}
... ...
"use strict";const e=require("../../common/vendor.js"),n=require("../../api/index.js");require("../../utils/request.js");if(!Array){const o=e.resolveComponent("u-navbar"),a=e.resolveComponent("u-parse");(o+a)()}const s=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",u=()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js";Math||(s+u)();const c={__name:"richText",setup(o){const a=e.ref(""),t=e.ref("");return e.onLoad(async r=>{if(r.type==="4"){a.value=await n.getcompact(),t.value="用户协议";return}a.value=await n.getprivacyPolicy(),t.value="隐私政策"}),(r,i)=>({a:e.p({bgColor:"#F6F8FA",title:t.value,placeholder:!0,autoBack:!0}),b:e.p({content:a.value})})}},_=e._export_sfc(c,[["__scopeId","data-v-aed5e3af"],["__file","D:/vue/大健康商城/healthMall/pages/index/richText.vue"]]);wx.createPage(_);
... ...
{
"navigationStyle": "custom",
"usingComponents": {
"u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar",
"u-parse": "../../uni_modules/uview-plus/components/u-parse/u-parse"
}
}
\ No newline at end of file
... ...
<u-navbar wx:if="{{a}}" class="data-v-aed5e3af" u-i="aed5e3af-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="u-content data-v-aed5e3af"><u-parse wx:if="{{b}}" class="data-v-aed5e3af" u-i="aed5e3af-1" bind:__l="__l" u-p="{{b}}"></u-parse></view>
\ No newline at end of file
... ...
.u-content.data-v-aed5e3af{padding:24rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
_easycom_u_navbar2();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
if (!Math) {
(_easycom_u_navbar + search + shops)();
}
const search = () => "../../componets/searchBox.js";
const shops = () => "../../componets/shops.js";
const _sfc_main = {
setup(__props) {
let keyWord = common_vendor.ref("");
let historyrecord = common_vendor.ref([]);
let shopList = common_vendor.ref([]);
let searchRes = common_vendor.ref(false);
common_vendor.ref("");
common_vendor.ref(1);
common_vendor.ref(1);
common_vendor.onLoad(() => {
getRecords();
});
const serachHistroy = (item) => {
keyWord.value = item;
getSearchs(item);
};
const clearHistory = () => {
common_vendor.index.showModal({
title: "\u63D0\u793A",
content: "\u662F\u5426\u6E05\u7A7A\u5386\u53F2\u8BB0\u5F55",
success: function(res) {
if (res.confirm) {
getDelRecords();
common_vendor.index.showToast({ title: "\u6E05\u7A7A\u6210\u529F" });
common_vendor.index.removeStorage({
key: "searchRecords"
});
} else if (res.cancel) {
console.log("\u7528\u6237\u70B9\u51FB\u53D6\u6D88");
}
}
});
};
const doSearchs = (keyword) => {
if (keyword.trim() != "") {
getSearchs(keyword);
}
};
const input = (data) => {
searchRes.value = false;
shopList.value = [];
};
const getSearchs = async (keyWord2) => {
try {
const res = await api_index.getSearch(keyWord2);
shopList.value = res.goods.concat(res.tjgoods);
searchRes.value = shopList.value.length == 0 ? true : false;
getRecords();
console.log("getSearch", res);
} catch (err) {
console.log("getSearch", err);
}
};
const getRecords = async () => {
try {
const res = await api_index.getRecord();
historyrecord.value = res;
console.log("getRecord", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getRecord", err);
}
};
const getDelRecords = async () => {
try {
const res = await api_index.getDelRecord();
getRecords();
console.log("getDelRecord", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getDelRecord", err);
}
};
common_vendor.onReachBottom(() => {
if (this.page != this.lastPage) {
this.page = this.page + 1;
this.getSearch(1);
} else {
common_vendor.index.showToast({
title: "\u6682\u65E0\u66F4\u591A\u5546\u54C1~",
icon: "none"
});
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
bgColor: "#F6F8FA",
title: "\u641C\u7D22",
placeholder: true,
autoBack: true
}),
b: common_vendor.o(doSearchs),
c: common_vendor.o(input),
d: common_vendor.p({
keyWord: common_vendor.unref(keyWord),
disabled: false
}),
e: !common_vendor.unref(shopList).length && !common_vendor.unref(searchRes)
}, !common_vendor.unref(shopList).length && !common_vendor.unref(searchRes) ? {
f: common_vendor.o(clearHistory),
g: common_vendor.f(common_vendor.unref(historyrecord), (item, index, i0) => {
return {
a: common_vendor.t(item),
b: index,
c: common_vendor.o(($event) => serachHistroy(item))
};
})
} : {}, {
h: _ctx.index,
i: common_vendor.p({
list: common_vendor.unref(shopList),
shopWidth: 344,
shopHeight: 344
}),
j: common_vendor.unref(searchRes)
}, common_vendor.unref(searchRes) ? {} : {});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/search.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");require("../../utils/request.js");Array||e.resolveComponent("u-navbar")();const m=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";Math||(m+y+x)();const y=()=>"../../componets/searchBox.js",x=()=>"../../componets/shops.js",R={__name:"search",setup(g){let c=e.ref(""),l=e.ref([]),t=e.ref([]),s=e.ref(!1);e.ref(""),e.ref(1),e.ref(1),e.onLoad(()=>{n()});const f=o=>{c.value=o,i(o)},d=()=>{e.index.showModal({title:"提示",content:"是否清空历史记录",success:function(o){o.confirm?(v(),e.index.showToast({title:"清空成功"}),e.index.removeStorage({key:"searchRecords"})):o.cancel&&console.log("用户点击取消")}})},p=o=>{o.trim()!=""&&i(o)},_=o=>{s.value=!1,t.value=[]},i=async o=>{try{const r=await a.getSearch(o);t.value=r.goods.concat(r.tjgoods),s.value=t.value.length==0,n(),console.log("getSearch",r)}catch(r){console.log("getSearch",r)}},n=async()=>{try{const o=await a.getRecord();l.value=o,console.log("getRecord",o)}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getRecord",o)}},v=async()=>{try{const o=await a.getDelRecord();n(),console.log("getDelRecord",o)}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("getDelRecord",o)}};return e.onReachBottom(()=>{this.page!=this.lastPage?(this.page=this.page+1,this.getSearch(1)):e.index.showToast({title:"暂无更多商品~",icon:"none"})}),(o,r)=>e.e({a:e.p({bgColor:"#F6F8FA",title:"搜索",placeholder:!0,autoBack:!0}),b:e.o(p),c:e.o(_),d:e.p({keyWord:e.unref(c),disabled:!1}),e:!e.unref(t).length&&!e.unref(s)},!e.unref(t).length&&!e.unref(s)?{f:e.o(d),g:e.f(e.unref(l),(u,h,w)=>({a:e.t(u),b:h,c:e.o(S=>f(u),h)}))}:{},{h:o.index,i:e.p({list:e.unref(t),shopWidth:344,shopHeight:344}),j:e.unref(s)},e.unref(s)?{}:{})}},b=e._export_sfc(R,[["__file","D:/vue/大健康商城/healthMall/pages/index/search.vue"]]);wx.createPage(b);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page {
background: #F6F8FA;
}
.mineBox {
padding: 24rpx 32rpx 0;
}
.mineBox .titleBox {
margin-bottom: 24rpx;
color: rgba(0, 0, 0, 0.9);
font-size: 28rpx;
font-weight: 700;
}
.mineBox .titleBox image {
width: 32rpx;
height: 32rpx;
}
.mineBox .recordBox {
display: flex;
flex-wrap: wrap;
width: 100%;
height: 132rpx;
margin-bottom: 36rpx;
overflow: hidden;
}
.mineBox .recordBox .record {
padding: 0 24rpx;
height: 56rpx;
box-sizing: border-box;
margin: 0 16rpx 16rpx 0;
border-radius: 8rpx;
color: #000000e6;
font-size: 26rpx;
background: #fff;
}
.searchNull {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 180rpx;
}
.searchNull image {
margin-bottom: 32rpx;
width: 320rpx;
height: 320rpx;
}
.searchNull text {
color: #323233ff;
font-size: 28rpx;
}
.searchNull .tips {
margin-top: 16rpx;
color: #969799ff;
font-size: 24rpx;
}
.searchResult {
width: 100%;
padding: 20rpx 24rpx;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
\ No newline at end of file
page{background:#F6F8FA}.mineBox{padding:24rpx 32rpx 0}.mineBox .titleBox{margin-bottom:24rpx;color:rgba(0,0,0,.9);font-size:28rpx;font-weight:700}.mineBox .titleBox image{width:32rpx;height:32rpx}.mineBox .recordBox{display:flex;flex-wrap:wrap;width:100%;height:132rpx;margin-bottom:36rpx;overflow:hidden}.mineBox .recordBox .record{padding:0 24rpx;height:56rpx;box-sizing:border-box;margin:0 16rpx 16rpx 0;border-radius:8rpx;color:rgba(0,0,0,.9);font-size:26rpx;background:#fff}.searchNull{display:flex;flex-direction:column;align-items:center;margin-top:180rpx}.searchNull image{margin-bottom:32rpx;width:320rpx;height:320rpx}.searchNull text{color:#323233;font-size:28rpx}.searchNull .tips{margin-top:16rpx;color:#969799;font-size:24rpx}.searchResult{width:100%;padding:20rpx 24rpx;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-between}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
const _easycom_u_swiper2 = common_vendor.resolveComponent("u-swiper");
const _easycom_u_badge2 = common_vendor.resolveComponent("u-badge");
(_easycom_u_navbar2 + _easycom_u_swiper2 + _easycom_u_badge2)();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
const _easycom_u_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";
const _easycom_u_badge = () => "../../uni_modules/uview-plus/components/u-badge/u-badge.js";
if (!Math) {
(_easycom_u_navbar + _easycom_u_swiper + shopInfo + comment + _easycom_u_badge + popPay)();
}
const shopInfo = () => "../../componets/shopInfo.js";
const comment = () => "../../componets/comment.js";
const popPay = () => "../../componets/popPay.js";
const _sfc_main = {
setup(__props) {
common_vendor.onLoad((e) => {
console.log("\u5546\u54C1id", e.id);
getShopDetailes(e.id);
});
common_vendor.onHide(() => {
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"]);
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" },
{ id: 3, name: "\u8D2D\u7269\u8F66", icon: "/static/tabbarsIc/shopCar.png" }
]);
const value = common_vendor.ref("1");
const seeAll = () => {
common_vendor.index.navigateTo({ url: `/pages/index/allComment?allCommentList=${allCommentList.value}` });
};
let btnType = common_vendor.ref(0);
let payPopShow = common_vendor.ref(false);
const toOrder = (type) => {
btnType.value = type;
payPopShow.value = true;
};
const btns = (index) => {
switch (index) {
case 0:
console.log("\u5E97\u94FA");
common_vendor.index.switchTab({ url: "/pages/index/index" });
break;
case 2:
console.log("\u8D2D\u7269\u8F66");
common_vendor.index.switchTab({ url: "/pages/shopCar/shopCar" });
break;
}
};
let detaileList = common_vendor.ref({});
let specList = common_vendor.ref({});
let swiperList = common_vendor.ref([]);
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;
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;
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("", err);
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
bgColor: "transparent",
autoBack: true
}),
b: common_vendor.unref(shopType) != 3
}, common_vendor.unref(shopType) != 3 ? {
c: common_vendor.t(currentNum.value + 1),
d: common_vendor.t(common_vendor.unref(swiperList).length)
} : {}, {
e: common_vendor.o((e) => currentNum.value = e.current),
f: common_vendor.p({
height: "375",
list: common_vendor.unref(swiperList),
autoplay: false,
indicatorStyle: "right: 20px"
}),
g: common_vendor.p({
info: common_vendor.unref(detaileList)
}),
h: common_vendor.unref(shopType) == 1
}, common_vendor.unref(shopType) == 1 ? common_vendor.e({
i: common_vendor.t(common_vendor.unref(commentList).length),
j: common_vendor.unref(commentList).length > 0
}, common_vendor.unref(commentList).length > 0 ? {
k: common_vendor.o(seeAll)
} : {}, {
l: common_vendor.unref(commentList).length
}, common_vendor.unref(commentList).length ? {
m: common_vendor.p({
commentList: common_vendor.unref(commentList)
})
} : {}) : {}, {
n: common_vendor.unref(shopType) !== 3
}, common_vendor.unref(shopType) !== 3 ? {
o: common_vendor.unref(detaileList).content
} : {}, {
p: common_vendor.unref(shopType) == 3
}, common_vendor.unref(shopType) == 3 ? {} : {}, {
q: common_vendor.f(common_vendor.unref(icList), (item, index, i0) => {
return common_vendor.e({
a: item.icon,
b: index == 2
}, index == 2 ? {
c: "1a35f0c9-4-" + i0,
d: common_vendor.p({
absolute: true,
offset: [-6, -6],
color: "#fff",
bgColor: "#F63D3A",
max: "99",
value: value.value
})
} : {}, {
e: common_vendor.t(item.name),
f: index === 1
}, index === 1 ? {} : {}, {
g: item.id,
h: common_vendor.o(($event) => btns(index), item.id)
});
}),
r: common_vendor.unref(shopType) != 3
}, common_vendor.unref(shopType) != 3 ? {
s: common_vendor.o(($event) => toOrder(0)),
t: common_vendor.o(($event) => toOrder(1))
} : {
v: common_vendor.o(($event) => toOrder(3))
}, {
w: common_vendor.o(($event) => common_vendor.isRef(payPopShow) ? payPopShow.value = false : payPopShow = false),
x: common_vendor.p({
moreSpec: common_vendor.unref(moreSpec),
shopDetail: common_vendor.unref(detaileList),
shopType: common_vendor.unref(shopType),
btnType: common_vendor.unref(btnType),
payPopShow: common_vendor.unref(payPopShow)
})
});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/shopDetaile.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),C=require("../../api/index.js");require("../../utils/request.js");if(!Array){const v=e.resolveComponent("u-navbar"),i=e.resolveComponent("u-swiper"),p=e.resolveComponent("u-parse"),c=e.resolveComponent("u-badge");(v+i+p+c)()}const L=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",j=()=>"../../uni_modules/uview-plus/components/u-swiper/u-swiper.js",D=()=>"../../uni_modules/uview-plus/components/u-parse/u-parse.js",S=()=>"../../uni_modules/uview-plus/components/u-badge/u-badge.js";Math||(L+j+T+P+D+S+I)();const T=()=>"../../componets/shopInfo.js",P=()=>"../../componets/comment.js",I=()=>"../../componets/popPay.js",$={__name:"shopDetaile",setup(v){e.onLoad(s=>{console.log("商品id",s.id),y(s.id)}),e.onHide(()=>{r.value=!1});const i=e.ref(0);e.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 p=e.reactive([{id:1,name:"店铺",icon:"/static/indexIc/shopIc.png"},{id:2,name:"客服",icon:"/static/indexIc/service.png"},{id:3,name:"购物车",icon:"/static/tabbarsIc/shopCar.png"}]),c=e.ref("1"),h=()=>{e.index.navigateTo({url:`/pages/index/allComment?allCommentList=${d.value}`})};let g=e.ref(0),r=e.ref(!1);const f=s=>{g.value=s,r.value=!0},w=s=>{switch(s){case 0:console.log("店铺"),e.index.switchTab({url:"/pages/index/index"});break;case 2:console.log("购物车"),e.index.switchTab({url:"/pages/shopCar/shopCar"});break}};let l=e.ref({}),b=e.ref({}),m=e.ref([]),a=e.ref([]),_=e.ref({}),n=e.ref(1);const d=e.ref(""),y=async s=>{try{const o=await C.getShopDetaile(s);l.value=o.detail,b.value=o.detail.spec[0],m.value=o.detail.images,d.value=JSON.stringify(o.pinglun),a.value=o.pinglun.splice(0,1),_.value=o.specData,n.value=o.detail.goodstatus,c.value=o.cartNum}catch(o){e.index.showToast({title:o,icon:"none"}),console.log("",o)}};return(s,o)=>e.e({a:e.p({bgColor:"transparent",autoBack:!0}),b:e.unref(n)!=3},e.unref(n)!=3?{c:e.t(i.value+1),d:e.t(e.unref(m).length)}:{},{e:e.o(t=>i.value=t.current),f:e.p({height:"375",list:e.unref(m),autoplay:!1,indicatorStyle:"right: 20px"}),g:e.p({info:e.unref(l)}),h:e.unref(n)==1},e.unref(n)==1?e.e({i:e.t(e.unref(a).length),j:e.unref(a).length>0},e.unref(a).length>0?{k:e.o(h)}:{},{l:e.unref(a).length},e.unref(a).length?{m:e.p({commentList:e.unref(a)})}:{}):{},{n:e.unref(n)!==3},e.unref(n)!==3?{o:e.p({content:e.unref(l).content})}:{},{p:e.unref(n)==3},e.unref(n)==3?{}:{},{q:e.f(p,(t,u,x)=>e.e({a:t.icon,b:u==2},u==2?{c:"1a35f0c9-5-"+x,d:e.p({absolute:!0,offset:[-6,-6],color:"#fff",bgColor:"#F63D3A",max:"99",value:c.value})}:{},{e:e.t(t.name),f:u===1},u===1?{}:{},{g:t.id,h:e.o(q=>w(u),t.id)})),r:e.unref(n)!=3},e.unref(n)!=3?{s:e.o(t=>f(0)),t:e.o(t=>f(1))}:{v:e.o(t=>f(3))},{w:e.o(t=>e.isRef(r)?r.value=!1:r=!1),x:e.p({moreSpec:e.unref(_),shopDetail:e.unref(l),shopType:e.unref(n),btnType:e.unref(g),payPopShow:e.unref(r)})})}},k=e._export_sfc($,[["__file","D:/vue/大健康商城/healthMall/pages/index/shopDetaile.vue"]]);wx.createPage(k);
... ...
... ... @@ -3,6 +3,7 @@
"usingComponents": {
"u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar",
"u-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
"u-parse": "../../uni_modules/uview-plus/components/u-parse/u-parse",
"u-badge": "../../uni_modules/uview-plus/components/u-badge/u-badge",
"shop-info": "../../componets/shopInfo",
"comment": "../../componets/comment",
... ...
<view><u-navbar wx:if="{{a}}" u-s="{{['left']}}" u-i="1a35f0c9-0" bind:__l="__l" u-p="{{a}}"><view class="u-nav-slot" slot="left"><image src="/static/indexIc/back.png" mode=""></image></view></u-navbar><view class="swiperBox"><u-swiper wx:if="{{f}}" u-s="{{['indicator']}}" bindchange="{{e}}" u-i="1a35f0c9-1" bind:__l="__l" u-p="{{f}}"><view slot="indicator"><view wx:if="{{b}}" class="indicator-num"><text class="indicator-num__text">{{c}}/{{d}}</text></view></view></u-swiper></view><view class="info"><shop-info wx:if="{{g}}" u-i="1a35f0c9-2" bind:__l="__l" u-p="{{g}}"></shop-info></view><view class="line"></view><view class="mainBox"><view wx:if="{{h}}"><view class="commentNmu flexJ"><text>评论({{i}})</text><view wx:if="{{j}}" class="see flexA" bindtap="{{k}}"> 查看全部 <image src="/static/indexIc/orangeRight.png" mode=""></image></view></view><view wx:if="{{l}}"><comment wx:if="{{m}}" u-i="1a35f0c9-3" bind:__l="__l" u-p="{{m}}"></comment></view><view wx:else class="commentNull flexV"><image src="/static/indexIc/cpmmentNull.png" mode=""></image> 暂无评论 </view></view><view wx:if="{{n}}"><view class="line"></view><view class="titles">商品详情</view><rich-text nodes="{{o}}"></rich-text></view></view><view wx:if="{{p}}" class="lineBox flexC"><view class="lines"></view><text>商品详情</text><view class="lines"></view></view><view class="" style="height:300rpx"></view><view class="btnBox iosAuto flexJ"><view class="left flexA"><view wx:for="{{q}}" wx:for-item="item" wx:key="g" class="leftIc flexV" bindtap="{{item.h}}"><view class="images"><image src="{{item.a}}" mode=""></image><u-badge wx:if="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></u-badge></view><text>{{item.e}}</text><button wx:if="{{item.f}}" open-type="contact"></button></view></view><view wx:if="{{r}}" class="flexA"><view class="add flexC" bindtap="{{s}}">加入购物车</view><view class="buy flexC" bindtap="{{t}}">立即购买</view></view><view wx:else class="exchange flexC" bindtap="{{v}}">我要兑换</view></view><pop-pay wx:if="{{x}}" bindclose="{{w}}" u-i="1a35f0c9-5" bind:__l="__l" u-p="{{x}}"></pop-pay></view>
\ No newline at end of file
<view><u-navbar wx:if="{{a}}" u-s="{{['left']}}" u-i="1a35f0c9-0" bind:__l="__l" u-p="{{a}}"><view class="u-nav-slot" slot="left"><image src="/static/indexIc/back.png" mode=""></image></view></u-navbar><view class="swiperBox"><u-swiper wx:if="{{f}}" u-s="{{['indicator']}}" bindchange="{{e}}" u-i="1a35f0c9-1" bind:__l="__l" u-p="{{f}}"><view slot="indicator"><view wx:if="{{b}}" class="indicator-num"><text class="indicator-num__text">{{c}}/{{d}}</text></view></view></u-swiper></view><view class="info"><shop-info wx:if="{{g}}" u-i="1a35f0c9-2" bind:__l="__l" u-p="{{g}}"></shop-info></view><view class="line"></view><view class="mainBox"><view wx:if="{{h}}"><view class="commentNmu flexJ"><text>评论({{i}})</text><view wx:if="{{j}}" class="see flexA" bindtap="{{k}}"> 查看全部 <image src="/static/indexIc/orangeRight.png" mode=""></image></view></view><view wx:if="{{l}}"><comment wx:if="{{m}}" u-i="1a35f0c9-3" bind:__l="__l" u-p="{{m}}"></comment></view><view wx:else class="commentNull flexV"><image src="/static/indexIc/cpmmentNull.png" mode=""></image> 暂无评论 </view></view><view wx:if="{{n}}"><view class="line"></view><view class="titles">商品详情</view><u-parse wx:if="{{o}}" u-i="1a35f0c9-4" bind:__l="__l" u-p="{{o}}"></u-parse></view></view><view wx:if="{{p}}" class="lineBox flexC"><view class="lines"></view><text>商品详情</text><view class="lines"></view></view><view class="" style="height:300rpx"></view><view class="btnBox iosAuto flexJ"><view class="left flexA"><view wx:for="{{q}}" wx:for-item="item" wx:key="g" class="leftIc flexV" bindtap="{{item.h}}"><view class="images"><image src="{{item.a}}" mode=""></image><u-badge wx:if="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></u-badge></view><text>{{item.e}}</text><button wx:if="{{item.f}}" open-type="contact"></button></view></view><view wx:if="{{r}}" class="flexA"><view class="add flexC" bindtap="{{s}}">加入购物车</view><view class="buy flexC" bindtap="{{t}}">立即购买</view></view><view wx:else class="exchange flexC" bindtap="{{v}}">我要兑换</view></view><pop-pay wx:if="{{x}}" bindclose="{{w}}" u-i="1a35f0c9-6" bind:__l="__l" u-p="{{x}}"></pop-pay></view>
\ No newline at end of file
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-nav-slot image {
width: 48rpx;
height: 48rpx;
}
.indicator-num {
padding: 2px 0;
background-color: rgba(0, 0, 0, 0.35);
border-radius: 100px;
width: 35px;
display: flex;
flex-direction: row;
justify-content: center;
}
.indicator-num__text {
color: #ffffff;
font-size: 12px;
}
.swiperBox {
margin-bottom: 32rpx;
}
.info {
width: 702rpx;
margin: 0 auto;
}
.line {
width: 100%;
height: 6rpx;
opacity: 1;
background: #f7f8faff;
margin: 32rpx 0;
}
.mainBox {
padding: 0 24rpx;
}
.mainBox .commentNmu {
margin-bottom: 40rpx;
}
.mainBox .commentNmu text {
color: #1a1a1aff;
font-size: 28rpx;
font-weight: 700;
}
.mainBox .commentNmu .see {
color: #ff7534ff;
font-size: 24rpx;
}
.mainBox .commentNmu .see image {
margin-left: 2rpx;
width: 24rpx;
height: 24rpx;
}
.mainBox .commentNull {
color: #00000066;
font-size: 26rpx;
margin-bottom: 212rpx;
}
.mainBox .commentNull image {
width: 348rpx;
height: 240rpx;
margin-bottom: 16rpx;
}
.titles {
color: #1a1a1aff;
font-size: 28rpx;
font-weight: 700;
}
.lineBox {
margin: 24rpx 0 30rpx;
}
.lineBox .lines {
width: 149rpx;
height: 1rpx;
opacity: 1;
border: 0 solid #979797ff;
background: #dcdee0ff;
}
.lineBox text {
margin: 0 24rpx;
color: #969799ff;
font-size: 24rpx;
}
.btnBox {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 120rpx;
background: #ffffffff;
}
.btnBox .left {
margin-left: 32rpx;
}
.btnBox .left .leftIc {
margin-right: 34rpx;
position: relative;
}
.btnBox .left .leftIc .images {
position: relative;
width: 48rpx;
height: 48rpx;
margin-bottom: 8rpx;
}
.btnBox .left .leftIc .images image {
width: 48rpx;
height: 48rpx;
}
.btnBox .left .leftIc text {
color: #323233ff;
font-size: 20rpx;
}
.btnBox .left .leftIc button {
position: absolute;
bottom: 0;
left: 0;
top: 0;
right: 0;
background: transparent;
/* width: 48rpx;
height: 48rpx; */
font-size: 20rpx;
border: none !important;
padding: 0 !important;
line-height: 28rpx;
}
.btnBox .left .leftIc button::after {
border: none;
}
.btnBox .buy {
margin-right: 32rpx;
width: 200rpx;
height: 80rpx;
border-radius: 80rpx;
color: #ffffffff;
font-size: 24rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
.btnBox .add {
margin-right: 14rpx;
width: 200rpx;
height: 80rpx;
border-radius: 80rpx;
color: #ffffffff;
font-size: 24rpx;
font-weight: 700;
background: linear-gradient(139deg, #ffac0bff 0%, #ffc24aff 100%);
}
.btnBox .exchange {
margin-right: 32rpx;
width: 358rpx;
height: 80rpx;
border-radius: 80rpx;
color: #ffffffff;
font-size: 30rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
\ No newline at end of file
.u-nav-slot image{width:48rpx;height:48rpx}.indicator-num{padding:2px 0;background-color:rgba(0,0,0,.35);border-radius:100px;width:35px;display:flex;flex-direction:row;justify-content:center}.indicator-num__text{color:#fff;font-size:12px}.swiperBox{margin-bottom:32rpx}.info{width:702rpx;margin:0 auto}.line{width:100%;height:6rpx;opacity:1;background:#f7f8faff;margin:32rpx 0}.mainBox{padding:0 24rpx}.mainBox .commentNmu{margin-bottom:40rpx}.mainBox .commentNmu text{color:#1a1a1a;font-size:28rpx;font-weight:700}.mainBox .commentNmu .see{color:#ff7534;font-size:24rpx}.mainBox .commentNmu .see image{margin-left:2rpx;width:24rpx;height:24rpx}.mainBox .commentNull{color:rgba(0,0,0,.4);font-size:26rpx;margin-bottom:212rpx}.mainBox .commentNull image{width:348rpx;height:240rpx;margin-bottom:16rpx}.titles{color:#1a1a1a;font-size:28rpx;font-weight:700}.lineBox{margin:24rpx 0 30rpx}.lineBox .lines{width:149rpx;height:1rpx;opacity:1;border:0 solid #979797ff;background:#dcdee0ff}.lineBox text{margin:0 24rpx;color:#969799;font-size:24rpx}.btnBox{position:fixed;left:0;bottom:0;width:100%;height:120rpx;background:#ffffffff}.btnBox .left{margin-left:32rpx}.btnBox .left .leftIc{margin-right:34rpx;position:relative}.btnBox .left .leftIc .images{position:relative;width:48rpx;height:48rpx;margin-bottom:8rpx}.btnBox .left .leftIc .images image{width:48rpx;height:48rpx}.btnBox .left .leftIc text{color:#323233;font-size:20rpx}.btnBox .left .leftIc button{position:absolute;bottom:0;left:0;top:0;right:0;background:transparent;font-size:20rpx;border:none!important;padding:0!important;line-height:28rpx}.btnBox .left .leftIc button:after{border:none}.btnBox .buy{margin-right:32rpx;width:200rpx;height:80rpx;border-radius:80rpx;color:#fff;font-size:24rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}.btnBox .add{margin-right:14rpx;width:200rpx;height:80rpx;border-radius:80rpx;color:#fff;font-size:24rpx;font-weight:700;background:linear-gradient(139deg,#ffac0bff 0%,#ffc24aff 100%)}.btnBox .exchange{margin-right:32rpx;width:358rpx;height:80rpx;border-radius:80rpx;color:#fff;font-size:30rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}img{width:100%!important;height:100%!important}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
const _sfc_main = {
setup(__props) {
const agreeStatus = common_vendor.ref(false);
const code = common_vendor.ref("");
common_vendor.onLoad(() => {
if (common_vendor.index.getStorageSync("token")) {
common_vendor.index.reLaunch({
url: "/pages/index/index"
});
}
});
common_vendor.onShow(() => {
getCode();
});
const login = () => {
if (!agreeStatus.value)
return common_vendor.index.showToast({
title: "\u8BF7\u52FE\u9009\u534F\u8BAE",
icon: "none"
});
};
const getphonenumber = (e) => {
if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
common_vendor.index.showToast({
title: "\u60A8\u5DF2\u53D6\u6D88\u6388\u6743",
icon: "none"
});
} else {
getLogins(e.detail.encryptedData, e.detail.iv);
}
};
const getCode = () => {
common_vendor.index.login({
provider: "weixin",
success: function(loginRes) {
console.log(loginRes);
code.value = loginRes.code;
}
});
};
const getLogins = async (data, iv) => {
try {
let params = {
code: code.value,
encryptedData: data,
iv
};
const res = await api_index.getLogin(params);
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) {
console.log("getLogin", err);
}
};
const toRichText = (e) => {
common_vendor.index.navigateTo({
url: `/pages/richText/richText?type=${e}`
});
};
const agree = () => {
agreeStatus.value = !agreeStatus.value;
};
return (_ctx, _cache) => {
return common_vendor.e({
a: !agreeStatus.value
}, !agreeStatus.value ? {
b: common_vendor.o(login)
} : {
c: common_vendor.o(getphonenumber)
}, {
d: !agreeStatus.value
}, !agreeStatus.value ? {} : {}, {
e: common_vendor.o(agree),
f: common_vendor.o(($event) => toRichText(4)),
g: common_vendor.o(($event) => toRichText(5))
});
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/login/login.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),x=require("../../api/index.js");require("../../utils/request.js");const v={__name:"login",setup(_){const o=e.ref(!1),a=e.ref("");e.onLoad(()=>{e.index.getStorageSync("token")&&e.index.reLaunch({url:"/pages/index/index"})}),e.onShow(()=>{g()});const s=()=>{if(!o.value)return e.index.showToast({title:"请勾选协议",icon:"none"})},l=n=>{n.detail.errMsg=="getPhoneNumber:fail user deny"?e.index.showToast({title:"您已取消授权",icon:"none"}):u(n.detail.encryptedData,n.detail.iv)},g=()=>{e.index.login({provider:"weixin",success:function(n){console.log(n),a.value=n.code}})},u=async(n,c)=>{try{let t={code:a.value,encryptedData:n,iv:c};const i=await x.getLogin(t);e.index.setStorageSync("token",i.token),e.index.setStorageSync("userInfo",i),e.index.reLaunch({url:"/pages/index/index"}),console.log("getLogin",i)}catch(t){console.log("getLogin",t)}},r=n=>{e.index.navigateTo({url:`/pages/index/richText?type=${n}`})},d=()=>{o.value=!o.value};return(n,c)=>e.e({a:!o.value},o.value?{c:e.o(l)}:{b:e.o(s)},{d:!o.value},o.value?{}:{},{e:e.o(d),f:e.o(t=>r(4)),g:e.o(t=>r(5))})}},p=e._export_sfc(v,[["__file","D:/vue/大健康商城/healthMall/pages/login/login.vue"]]);wx.createPage(p);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.bgBox {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100vh;
z-index: -1;
}
.bgBox image {
width: 100%;
height: 100vh;
}
.logo {
width: 100%;
height: 158rpx;
margin-top: 480rpx;
}
.logo 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 image {
margin-right: 12rpx;
width: 48rpx;
height: 38rpx;
}
.btnBox button {
position: absolute;
background: transparent;
width: 100%;
height: 100%;
color: #fd7452ff;
font-size: 32rpx;
font-weight: 700;
}
.btnBox button::after {
border: none;
}
.agreeBox {
margin-top: 502rpx;
}
.agreeBox .checkImage {
margin: 8rpx 8rpx 0 0;
}
.agreeBox .checkImage image {
width: 28rpx;
height: 28rpx;
}
.agreeBox .agree {
color: #fff;
font-size: 24rpx;
}
\ No newline at end of file
.bgBox{position:fixed;left:0;top:0;width:100%;height:100vh;z-index:-1}.bgBox image{width:100%;height:100vh}.logo{width:100%;height:158rpx;margin-top:480rpx}.logo image{width:156rpx;height:158rpx}.btnBox{margin:292rpx auto 60rpx;width:646rpx;height:88rpx;border-radius:44rpx;opacity:1;background:#fff;color:#fd7452;font-size:32rpx;font-weight:700;position:relative}.btnBox image{margin-right:12rpx;width:48rpx;height:38rpx}.btnBox button{position:absolute;background:transparent;width:100%;height:100%;color:#fd7452;font-size:32rpx;font-weight:700}.btnBox button:after{border:none}.agreeBox{margin-top:502rpx}.agreeBox .checkImage{margin:8rpx 8rpx 0 0}.agreeBox .checkImage image{width:28rpx;height:28rpx}.agreeBox .agree{color:#fff;font-size:24rpx}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
const _easycom_u_rate2 = common_vendor.resolveComponent("u-rate");
(_easycom_u_navbar2 + _easycom_u_rate2)();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
const _easycom_u_rate = () => "../../uni_modules/uview-plus/components/u-rate/u-rate.js";
if (!Math) {
(_easycom_u_navbar + _easycom_u_rate)();
}
const _sfc_main = {
setup(__props) {
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 = {
id: evaluateOrderId.value,
image: imgList.value.join(","),
content: desc.value
};
const res = await api_index.getComment(params);
common_vendor.index.showToast({ title: "\u611F\u8C22\u60A8\u7684\u8BC4\u8BBA~", icon: "none" });
setTimeout(() => {
common_vendor.index.navigateBack();
}, 1e3);
console.log("getComment", res);
} catch (err) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getComment", err);
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
placeholder: true,
title: "\u8BC4\u4EF7",
bgColor: "transparent",
autoBack: true
}),
b: common_vendor.f(common_vendor.unref(photoList), (item, index, i0) => {
return {
a: item,
b: common_vendor.o(($event) => delPhoto(index)),
c: index
};
}),
c: common_vendor.t(5 - common_vendor.unref(photoList).length),
d: common_vendor.o(addPhoto),
e: common_vendor.unref(desc),
f: common_vendor.o(($event) => common_vendor.isRef(desc) ? desc.value = $event.detail.value : desc = $event.detail.value),
g: common_vendor.o(($event) => value.value = $event),
h: common_vendor.p({
activeColor: "#FEA302",
count: count.value,
modelValue: value.value
}),
i: common_vendor.o(submit)
};
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/mine/evaluate.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),g=require("../../api/index.js");require("../../utils/request.js");if(!Array){const c=e.resolveComponent("u-navbar"),s=e.resolveComponent("u-rate");(c+s)()}const f=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",b=()=>"../../uni_modules/uview-plus/components/u-rate/u-rate.js";Math||(f+b)();const C={__name:"evaluate",setup(c){const s=e.ref(5),l=e.ref(0);let n=e.reactive([]);const u=e.ref([]);let a=e.ref("");const{proxy:v}=e.getCurrentInstance(),p=()=>{h()},i=e.ref(0);e.onLoad(t=>{i.value=t.id});const _=()=>v.$methods.upload("http://health.shs.broing.cn/api/common/upload",t=>{console.log("返回图片",t),u.value.push(t.upImg),n.push(t.avatar)}),d=t=>{u.value.splice(t,1),n.splice(t,1)},h=async()=>{try{let t={id:i.value,image:u.value.join(","),content:a.value};const m=await g.getComment(t);e.index.showToast({title:"感谢您的评论~",icon:"none"}),setTimeout(()=>{e.index.navigateBack()},1e3),console.log("getComment",m)}catch(t){e.index.showToast({title:t,icon:"none"}),console.log("getComment",t)}};return(t,m)=>({a:e.p({placeholder:!0,title:"评价",bgColor:"transparent",autoBack:!0}),b:e.f(e.unref(n),(o,r,w)=>({a:o,b:e.o(x=>d(r),r),c:r})),c:e.t(5-e.unref(n).length),d:e.o(_),e:e.unref(a),f:e.o(o=>e.isRef(a)?a.value=o.detail.value:a=o.detail.value),g:e.o(o=>l.value=o),h:e.p({activeColor:"#FEA302",count:s.value,modelValue:l.value}),i:e.o(p)})}},y=e._export_sfc(C,[["__file","D:/vue/大健康商城/healthMall/pages/mine/evaluate.vue"]]);wx.createPage(y);
... ...
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
page {
background: #f0f2f5ff;
}
.boxs {
width: 702rpx;
margin: 34rpx auto;
border-radius: 16rpx;
background: #ffffffff;
padding: 24rpx;
box-sizing: border-box;
}
.boxs .title {
color: #000000ff;
font-size: 26rpx;
margin-bottom: 24rpx;
}
.boxs .photoBox {
display: flex;
flex-wrap: wrap;
}
.boxs .photoBox .itemPhoto {
position: relative;
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
margin-right: 24rpx;
}
.boxs .photoBox .itemPhoto .photo {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
}
.boxs .photoBox .itemPhoto .delBox {
position: absolute;
right: 0;
top: 0;
width: 24rpx;
height: 24rpx;
background: #484b46;
border-radius: 0 8rpx 0 8rpx;
}
.boxs .photoBox .itemPhoto .delBox .del {
width: 24rpx;
height: 24rpx;
}
.boxs .photoBox .addPhoto {
width: 160rpx;
height: 160rpx;
border-radius: 12rpx;
background: #f7f8faff;
color: #afafafff;
font-size: 22rpx;
}
.boxs .photoBox .addPhoto image {
width: 34rpx;
height: 34rpx;
margin-bottom: 12rpx;
}
.boxs .desc {
margin-top: 24rpx;
padding: 24rpx 20rpx;
background: #f7f8faff;
}
.boxs .desc .pls {
color: #afafafff;
font-size: 22rpx;
}
.boxs .desc textarea {
color: #454545ff;
font-size: 24rpx;
}
.boxs .startBox {
margin-top: 24rpx;
}
.boxs .startBox text {
color: #000000ff;
font-size: 26rpx;
font-weight: 700;
margin-right: 20rpx;
}
.btnBox {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
}
.btnBox .btn {
margin: 0 auto;
width: 686rpx;
height: 88rpx;
border-radius: 12rpx;
color: #ffffffff;
font-size: 32rpx;
font-weight: 700;
background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
}
\ No newline at end of file
page{background:#f0f2f5ff}.boxs{width:702rpx;margin:34rpx auto;border-radius:16rpx;background:#ffffffff;padding:24rpx;box-sizing:border-box}.boxs .title{color:#000;font-size:26rpx;margin-bottom:24rpx}.boxs .photoBox{display:flex;flex-wrap:wrap}.boxs .photoBox .itemPhoto{position:relative;width:160rpx;height:160rpx;border-radius:12rpx;margin-right:24rpx}.boxs .photoBox .itemPhoto .photo{width:160rpx;height:160rpx;border-radius:12rpx}.boxs .photoBox .itemPhoto .delBox{position:absolute;right:0;top:0;width:24rpx;height:24rpx;background:#484b46;border-radius:0 8rpx}.boxs .photoBox .itemPhoto .delBox .del{width:24rpx;height:24rpx}.boxs .photoBox .addPhoto{width:160rpx;height:160rpx;border-radius:12rpx;background:#f7f8faff;color:#afafaf;font-size:22rpx}.boxs .photoBox .addPhoto image{width:34rpx;height:34rpx;margin-bottom:12rpx}.boxs .desc{margin-top:24rpx;padding:24rpx 20rpx;background:#f7f8faff}.boxs .desc .pls{color:#afafaf;font-size:22rpx}.boxs .desc textarea{color:#454545;font-size:24rpx}.boxs .startBox{margin-top:24rpx}.boxs .startBox text{color:#000;font-size:26rpx;font-weight:700;margin-right:20rpx}.btnBox{position:fixed;left:0;bottom:0;width:100%}.btnBox .btn{margin:0 auto;width:686rpx;height:88rpx;border-radius:12rpx;color:#fff;font-size:32rpx;font-weight:700;background:linear-gradient(139deg,#fb753cff 0%,#fb3e3cff 100%)}
... ...
"use strict";
var common_vendor = require("../../common/vendor.js");
var api_index = require("../../api/index.js");
require("../../utils/request.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
const _easycom_u_badge2 = common_vendor.resolveComponent("u-badge");
(_easycom_u_navbar2 + _easycom_u_badge2)();
}
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
const _easycom_u_badge = () => "../../uni_modules/uview-plus/components/u-badge/u-badge.js";
if (!Math) {
(_easycom_u_navbar + _easycom_u_badge)();
}
const _sfc_main = {
setup(__props) {
const userInfo = common_vendor.ref({});
common_vendor.onShow(() => {
getMines();
});
let classList = common_vendor.reactive([
{ id: 1, name: "\u5F85\u4ED8\u6B3E", num: 0, ic: "/static/mineIc/obligation.png" },
{ id: 2, name: "\u5F85\u53D1\u8D27", num: 0, ic: "/static/mineIc/shipped.png" },
{ id: 3, name: "\u5F85\u6536\u8D27", num: 0, ic: "/static/mineIc/received.png" },
{ id: 4, name: "\u5F85\u8BC4\u4EF7", num: 0, ic: "/static/mineIc/evaluated.png" },
{ id: 5, name: "\u552E\u540E", num: 0, ic: "/static/mineIc/afterSales.png" }
]);
let functionList = common_vendor.reactive([
{ id: 1, name: "\u6211\u7684\u4F59\u989D", ic: "/static/mineIc/balance.png" },
{ id: 2, name: "\u6211\u7684\u79EF\u5206", ic: "/static/mineIc/collect.png" },
{ id: 3, name: "\u6211\u7684\u5730\u5740", ic: "/static/mineIc/addressBlack.png" }
]);
common_vendor.ref({});
const orderStatus = (index) => {
common_vendor.index.navigateTo({
url: `/pages/mine/myOrder?status=${index == 5 ? 0 : Number(index) + 1}`
});
};
const functionC = (index) => {
if (index < 2) {
common_vendor.index.navigateTo({
url: `/pages/mine/myPoints?type=${index}`
});
} else {
common_vendor.index.navigateTo({
url: "/pages/mine/myAddress"
});
}
};
const toRecharg = () => {
common_vendor.index.navigateTo({ url: "/pages/mine/recharge" });
};
const getMines = async () => {
try {
const res = await api_index.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) {
common_vendor.index.showToast({ title: err, icon: "none" });
console.log("getMine", err);
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
title: "\u6211\u7684",
bgColor: "transparent"
}),
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({
absolute: true,
offset: [-4, -10],
color: "#FFFFFF",
bgColor: "#F74637",
max: "99",
value: item.num
}),
c: item.ic,
d: common_vendor.t(item.name),
e: item.id,
f: common_vendor.o(($event) => orderStatus(index), item.id)
};
}),
g: common_vendor.f(common_vendor.unref(functionList), (item, index, i0) => {
return {
a: item.ic,
b: common_vendor.t(item.name),
c: item.id,
d: common_vendor.o(($event) => functionC(index), item.id)
};
})
};
};
}
};
var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/mine/mine.vue"]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),p=require("../../api/index.js");require("../../utils/request.js");if(!Array){const s=e.resolveComponent("u-navbar"),t=e.resolveComponent("u-badge");(s+t)()}const v=()=>"../../uni_modules/uview-plus/components/u-navbar/u-navbar.js",_=()=>"../../uni_modules/uview-plus/components/u-badge/u-badge.js";Math||(v+_)();const f={__name:"mine",setup(s){const t=e.ref({});e.onShow(()=>{l()});let i=e.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"}]),u=e.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"}]);e.ref({});const o=n=>{e.index.navigateTo({url:`/pages/mine/myOrder?status=${n==5?0:Number(n)+1}`})},m=n=>{n<2?e.index.navigateTo({url:`/pages/mine/myPoints?type=${n}`}):e.index.navigateTo({url:"/pages/mine/myAddress"})},d=()=>{e.index.navigateTo({url:"/pages/mine/recharge"})},l=async()=>{try{const n=await p.getMine();i[0].num=n.dfk,i[1].num=n.dfh,i[2].num=n.dsh,i[3].num=n.dpj,i[4].num=n.yth,t.value=n.userInfo,t.value.avatar=n.avatar,console.log("getMine",n)}catch(n){e.index.showToast({title:n,icon:"none"}),console.log("getMine",n)}};return(n,h)=>({a:e.p({title:"我的",bgColor:"transparent"}),b:t.value.avatar,c:e.t(t.value.nickname),d:e.o(d),e:e.o(a=>o(5)),f:e.f(e.unref(i),(a,c,r)=>({a:"6cbe0492-1-"+r,b:e.p({absolute:!0,offset:[-4,-10],color:"#FFFFFF",bgColor:"#F74637",max:"99",value:a.num}),c:a.ic,d:e.t(a.name),e:a.id,f:e.o(g=>o(c),a.id)})),g:e.f(e.unref(u),(a,c,r)=>({a:a.ic,b:e.t(a.name),c:a.id,d:e.o(g=>m(c),a.id)}))})}},b=e._export_sfc(f,[["__file","D:/vue/大健康商城/healthMall/pages/mine/mine.vue"]]);wx.createPage(b);
... ...
<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
<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
... ...