作者 韩昌

bug

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

要显示太多修改。

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

@@ -118,3 +118,9 @@ export const getadresDetail = id => request({ url: '/api/address/detail', method @@ -118,3 +118,9 @@ export const getadresDetail = id => request({ url: '/api/address/detail', method
118 118
119 // 删除地址 /api/address/del 119 // 删除地址 /api/address/del
120 export const getDelAdres = ids => request({ url: '/api/address/del', method: 'post', data: { ids } }) 120 export const getDelAdres = ids => request({ url: '/api/address/del', method: 'post', data: { ids } })
  121 +
  122 +// 用户协议 /api/common/compact
  123 +export const getcompact = () => request({ url: '/api/common/compact', method: 'post' })
  124 +
  125 +// 隐私条款 /api/common/privacyPolicy
  126 +export const getprivacyPolicy = () => request({ url: '/api/common/privacyPolicy', method: 'post' })
@@ -11,8 +11,8 @@ @@ -11,8 +11,8 @@
11 </view> 11 </view>
12 <view class="price"> 12 <view class="price">
13 <view class="shopName ellipsis">{{ shopDetail.name }}</view> 13 <view class="shopName ellipsis">{{ shopDetail.name }}</view>
14 - <view class="money" v-if="shopDetail.goodstatus !== 3">¥{{ shopDetail.spec[0].goods_price }}</view>  
15 - <view class="money" v-else>{{ shopDetail.spec[0].coscore }}积分</view> 14 + <view class="money" v-if="shopDetail.goodstatus !== 3">¥{{ shopDetail.spec[data.curPriceIdx].goods_price }}</view>
  15 + <view class="money" v-else>{{ shopDetail.spec[data.curPriceIdx].coscore }}积分</view>
16 </view> 16 </view>
17 </view> 17 </view>
18 <!-- 商品规格 --> 18 <!-- 商品规格 -->
@@ -21,7 +21,13 @@ @@ -21,7 +21,13 @@
21 {{ item.group_name }} 21 {{ item.group_name }}
22 </view> 22 </view>
23 <view class="colorBox"> 23 <view class="colorBox">
24 - <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)"> 24 + <view
  25 + class="item"
  26 + v-for="(it, idx) in item.spec_items"
  27 + :key="it.item_id"
  28 + :class="idx == data.indexList[index].curIndex ? 'checked' : ''"
  29 + @click="checkSpec(index, it, idx)"
  30 + >
25 {{ it.spec_value }} 31 {{ it.spec_value }}
26 </view> 32 </view>
27 </view> 33 </view>
@@ -72,7 +78,8 @@ let data = reactive({ @@ -72,7 +78,8 @@ let data = reactive({
72 specID: [], //选中的规格id 78 specID: [], //选中的规格id
73 specIdList: [], //规格组合id数组 79 specIdList: [], //规格组合id数组
74 formList: {}, //选择玩规格后的商品详情 80 formList: {}, //选择玩规格后的商品详情
75 - goods_spec_id: '' //参数规格id 81 + goods_spec_id: '', //参数规格id
  82 + curPriceIdx: 0 // 当前价格索引
76 }) 83 })
77 onMounted(() => { 84 onMounted(() => {
78 setTimeout(() => { 85 setTimeout(() => {
@@ -112,6 +119,7 @@ const popBtn = () => { @@ -112,6 +119,7 @@ const popBtn = () => {
112 //选择规格 119 //选择规格
113 const checkSpec = (index, it, idx) => { 120 const checkSpec = (index, it, idx) => {
114 console.log(index, it, idx) 121 console.log(index, it, idx)
  122 + data.curPriceIdx = idx
115 data.indexList[index].curIndex = idx //选中高亮 123 data.indexList[index].curIndex = idx //选中高亮
116 if (data.speList.length == 1) { 124 if (data.speList.length == 1) {
117 data.specID.splice(index, 1, it.item_id) 125 data.specID.splice(index, 1, it.item_id)
1 <template> 1 <template>
2 - <!-- 搜索框 -->  
3 - <view class="boxs">  
4 - <view class="searchInput flexJ" @click="jump">  
5 - <view class="left flexA">  
6 - <image src="/static/indexIc/indexSearchIc.png" mode=""></image>  
7 - <input :disabled="disabled" confirm-type="search" v-model="inputText" @confirm="doSearchs" @input="input" type="text" placeholder="请输入" placeholder-class="ples">  
8 - </view>  
9 - <view class="right flexA" @click="doSearchs(0)">  
10 - <view class="line"></view>  
11 - <text>搜索</text>  
12 - </view>  
13 - </view>  
14 - </view> 2 + <!-- 搜索框 -->
  3 + <view class="boxs">
  4 + <view class="searchInput flexJ" @click="jump">
  5 + <u-search @search="doSearchs" @custom="doSearchs" :disabled="disabled" placeholder="请输入" v-model="inputText" bgColor="#fff" searchIconColor="#fda9a3" :actionStyle="actionStyle"></u-search>
  6 + <!-- <view class="left flexA">
  7 + <image src="/static/indexIc/indexSearchIc.png" mode=""></image>
  8 + <input :disabled="disabled" confirm-type="search" v-model="inputText" @confirm="doSearchs" @input="input" type="text" placeholder="请输入" placeholder-class="ples" />
  9 + </view>
  10 + <view class="right flexA" @click="doSearchs(0)">
  11 + <view class="line"></view>
  12 + <text>搜索</text>
  13 + </view> -->
  14 + </view>
  15 + </view>
15 </template> 16 </template>
16 17
17 <script setup> 18 <script setup>
18 - import { ref,onMounted,defineEmits } from 'vue'  
19 - const props = defineProps({  
20 - disabled:{  
21 - type:Boolean,  
22 - default:true  
23 - },  
24 - keyWord:{  
25 - type:String,  
26 - default:''  
27 - }  
28 - })  
29 - let inputText = ref('') //输入框文字  
30 - onMounted(()=> {  
31 - inputText.value = props.keyWord  
32 - // console.log('首艘',props.disabled)  
33 - })  
34 - const emit = defineEmits(['doSearchs','input'])  
35 - // 回车事件  
36 - const doSearchs = (e)=> {  
37 - if(e==0) {  
38 - if(inputText.value.trim() == '') return  
39 - emit('doSearchs',inputText.value)  
40 - } else {  
41 - emit('doSearchs',e.detail.value)  
42 - }  
43 - }  
44 - // 输入框为空  
45 - const input = (e)=> {  
46 - if(e.detail.value == '') {  
47 - emit('input',e.detail.value)  
48 - }  
49 - }  
50 - // // 点击搜索按钮  
51 - // const search = ()=> {  
52 - // console.log('搜索为你做')  
53 - // }  
54 - const jump = ()=> {  
55 - props.disabled ? uni.navigateTo({url:'/pages/index/search'}) : ''  
56 - } 19 +import { ref, onMounted, defineEmits } from 'vue'
  20 +const props = defineProps({
  21 + disabled: {
  22 + type: Boolean,
  23 + default: true
  24 + },
  25 + keyWord: {
  26 + type: String,
  27 + default: ''
  28 + }
  29 +})
  30 +let inputText = ref('') //输入框文字
  31 +const actionStyle = ref({
  32 + fontSize: '28rpx',
  33 + fontWeight: 700,
  34 + color: '#fb753c'
  35 +})
  36 +onMounted(() => {
  37 + inputText.value = props.keyWord
  38 + // console.log('首艘',props.disabled)
  39 +})
  40 +const emit = defineEmits(['doSearchs', 'input'])
  41 +// 回车事件
  42 +const doSearchs = e => {
  43 + emit('doSearchs', inputText.value)
  44 + // if (e == 0) {
  45 + // if (inputText.value.trim() == '') return
  46 + // emit('doSearchs', inputText.value)
  47 + // } else {
  48 + // emit('doSearchs', e.detail.value)
  49 + // }
  50 +}
  51 +// 输入框为空
  52 +const input = e => {
  53 + if (e.detail.value == '') {
  54 + emit('input', e.detail.value)
  55 + }
  56 +}
  57 +// // 点击搜索按钮
  58 +// const search = ()=> {
  59 +// console.log('搜索为你做')
  60 +// }
  61 +const jump = () => {
  62 + props.disabled ? uni.navigateTo({ url: '/pages/index/search' }) : ''
  63 +}
57 </script> 64 </script>
58 65
59 <style lang="scss"> 66 <style lang="scss">
60 - .boxs {  
61 - width: 100%;  
62 - height: 96rpx;  
63 - padding: 18rpx 32rpx;  
64 - box-sizing: border-box;  
65 -  
66 - .searchInput {  
67 - width: 100%;  
68 - height: 100%;  
69 - background-color: #FFFFFF;  
70 - border-radius: 38rpx;  
71 - padding: 14rpx 24rpx;  
72 - box-sizing: border-box;  
73 -  
74 - .left {  
75 - image {  
76 - margin-right: 8rpx;  
77 - width: 32rpx;  
78 - height: 32rpx;  
79 - }  
80 -  
81 - input {  
82 - width: 500rpx !important;  
83 - }  
84 -  
85 - .ples {  
86 - color: #00000042;  
87 - font-size: 26rpx;  
88 - }  
89 - }  
90 -  
91 - .right {  
92 - .line {  
93 - height: 30rpx;  
94 - width: 1rpx;  
95 - background-color: #FC6A3D;  
96 - margin-right: 14rpx;  
97 - }  
98 -  
99 - text {  
100 - font-size: 28rpx;  
101 - font-weight: 700;  
102 - color: #FB753C;  
103 - }  
104 - }  
105 - }  
106 - }  
107 -</style>  
  67 +.boxs {
  68 + width: 100%;
  69 + padding: 18rpx 24rpx;
  70 + box-sizing: border-box;
  71 +
  72 + .searchInput {
  73 + width: 100%;
  74 + height: 100%;
  75 + background-color: #ffffff;
  76 + border-radius: 38rpx;
  77 +
  78 + .left {
  79 + image {
  80 + margin-right: 8rpx;
  81 + width: 32rpx;
  82 + height: 32rpx;
  83 + }
  84 +
  85 + input {
  86 + width: 500rpx !important;
  87 + }
  88 +
  89 + .ples {
  90 + color: #00000042;
  91 + font-size: 26rpx;
  92 + }
  93 + }
  94 +
  95 + .right {
  96 + .line {
  97 + height: 30rpx;
  98 + width: 1rpx;
  99 + background-color: #fc6a3d;
  100 + margin-right: 14rpx;
  101 + }
  102 +
  103 + text {
  104 + font-size: 28rpx;
  105 + font-weight: 700;
  106 + color: #fb753c;
  107 + }
  108 + }
  109 + }
  110 +}
  111 +</style>
1 <template> 1 <template>
2 - <view class="infoBox">  
3 - <view class="name ellipsisT">  
4 - {{info.name}}  
5 - </view>  
6 - <view class="priceBox flexJ">  
7 - <view class="price flexA" v-if="info.goodstatus==3">  
8 - <view class="new">{{info.spec[0].coscore}}</view>  
9 - <view class="points">积分</view>  
10 - </view>  
11 - <view class="price flexA" v-else>  
12 - <view class="new">¥{{info.spec[0].goods_price}}</view>  
13 - <text v-if="info.goodstatus==2">¥{{info.spec[0].line_price}}</text>  
14 - </view>  
15 - <!-- 1=普通商品,2=特价商品,3=积分商品 -->  
16 - <view class="inventory">  
17 - {{ info.goodstatus==1 ? '已售:'  
18 - : info.goodstatus==2 ? '库存:' :'已兑:'  
19 - }}{{info.goodstatus!=2 ?info.sales_actual :info.spec[0].stock_num}}份</view>  
20 - </view>  
21 -  
22 - </view> 2 + <view class="infoBox">
  3 + <view class="name ellipsisT">
  4 + {{ info.name }}
  5 + </view>
  6 + <view class="flexJ" v-if="info.goodstatus === 1">
  7 + <view class="inventory" style="margin-bottom: 10rpx">购买可获得{{ info.spec[0].score }}积分</view>
  8 + <view class="inventory" style="color: rgb(241, 71, 71)">注: 购买不同规格的商品可获得不同的积分</view>
  9 + </view>
  10 + <view class="priceBox flexJ">
  11 + <view class="price flexA" v-if="info.goodstatus == 3">
  12 + <view class="new">{{ info.spec[0].coscore }}</view>
  13 + <view class="points">积分</view>
  14 + </view>
  15 + <view class="price flexA" v-else>
  16 + <view class="new">¥{{ info.spec[0].goods_price }}</view>
  17 + <text v-if="info.goodstatus == 2">¥{{ info.spec[0].line_price }}</text>
  18 + </view>
  19 + <!-- 1=普通商品,2=特价商品,3=积分商品 -->
  20 + <view class="inventory">{{ info.goodstatus == 1 ? '已售:' : info.goodstatus == 2 ? '库存:' : '已兑:' }}{{ info.goodstatus != 2 ? info.sales_actual : info.spec[0].stock_num }}份</view>
  21 + </view>
  22 + </view>
23 </template> 23 </template>
24 24
25 <script setup> 25 <script setup>
26 - import { defineProps,onMounted } from 'vue'  
27 - const props = defineProps({  
28 - isPoints:{  
29 - type:Boolean,  
30 - default:false  
31 - },  
32 - info:{  
33 - type:Object,  
34 - default:{}  
35 - }  
36 - })  
37 - onMounted(()=> {  
38 - // console.log('商品信息',props.info)  
39 - }) 26 +import { defineProps, onMounted } from 'vue'
  27 +const props = defineProps({
  28 + isPoints: {
  29 + type: Boolean,
  30 + default: false
  31 + },
  32 + info: {
  33 + type: Object,
  34 + default: {}
  35 + }
  36 +})
  37 +onMounted(() => {
  38 + // console.log('商品信息',props.info)
  39 +})
40 </script> 40 </script>
41 41
42 <style lang="scss"> 42 <style lang="scss">
43 - .infoBox { 43 +.infoBox {
  44 + .name {
  45 + height: 80rpx;
  46 + color: #000000e6;
  47 + font-size: 30rpx;
  48 + font-weight: 700;
  49 + line-height: 40rpx;
  50 + }
44 51
45 - .name {  
46 - height: 80rpx;  
47 - color: #000000e6;  
48 - font-size: 30rpx;  
49 - font-weight: 700;  
50 - line-height: 40rpx;  
51 - margin-bottom: 32rpx  
52 - } 52 + .priceBox {
  53 + .price {
  54 + text {
  55 + color: #00000042;
  56 + font-size: 24rpx;
  57 + text-decoration: line-through;
  58 + margin-left: 8rpx;
  59 + margin-top: 16rpx;
  60 + }
53 61
54 - .priceBox {  
55 - .price {  
56 - text {  
57 - color: #00000042;  
58 - font-size: 24rpx;  
59 - text-decoration: line-through;  
60 - margin-left: 8rpx;  
61 - margin-top: 16rpx  
62 - } 62 + .new {
  63 + color: #fc4338ff;
  64 + font-size: 40rpx;
  65 + font-weight: 700;
  66 + }
  67 + .points {
  68 + color: #fc4338ff;
  69 + font-size: 22rpx;
  70 + margin: 10rpx 0 0 8rpx;
  71 + }
  72 + }
63 73
64 - .new {  
65 - color: #fc4338ff;  
66 - font-size: 40rpx;  
67 - font-weight: 700;  
68 - }  
69 - .points {  
70 - color: #fc4338ff;  
71 - font-size: 22rpx;  
72 - margin: 10rpx 0 0 8rpx;  
73 - }  
74 - }  
75 -  
76 - .inventory {  
77 - color: #00000066;  
78 - font-size: 22rpx;  
79 - }  
80 - }  
81 - } 74 + .inventory {
  75 + color: #00000066;
  76 + font-size: 22rpx;
  77 + }
  78 + }
  79 +}
  80 +.inventory {
  81 + color: #00000066;
  82 + font-size: 22rpx;
  83 +}
82 </style> 84 </style>
@@ -13,6 +13,12 @@ @@ -13,6 +13,12 @@
13 } 13 }
14 }, 14 },
15 { 15 {
  16 + "path": "pages/index/richText",
  17 + "style": {
  18 + "navigationStyle": "custom"
  19 + }
  20 + },
  21 + {
16 "path": "pages/index/search", 22 "path": "pages/index/search",
17 "style": { 23 "style": {
18 "navigationStyle": "custom" 24 "navigationStyle": "custom"
  1 +<template>
  2 + <u-navbar bgColor="#F6F8FA" :title="title" :placeholder="true" autoBack></u-navbar>
  3 + <view class="u-content">
  4 + <u-parse :content="content"></u-parse>
  5 + </view>
  6 +</template>
  7 +
  8 +<script setup>
  9 +import { ref } from 'vue'
  10 +import { onLoad } from '@dcloudio/uni-app'
  11 +import { getcompact,getprivacyPolicy } from '@/api'
  12 +
  13 +const content = ref(''),
  14 + title = ref('')
  15 +
  16 +onLoad(async (e) => {
  17 + if (e.type === '4') {
  18 + content.value = await getcompact()
  19 + title.value = '用户协议'
  20 + return
  21 + }
  22 + content.value = await getprivacyPolicy()
  23 + title.value = '隐私政策'
  24 +})
  25 +</script>
  26 +
  27 +<style lang="scss" scoped>
  28 +.u-content {
  29 + padding: 24rpx;
  30 +}
  31 +</style>
@@ -45,7 +45,8 @@ @@ -45,7 +45,8 @@
45 <view v-if="shopType !== 3"> 45 <view v-if="shopType !== 3">
46 <view class="line"></view> 46 <view class="line"></view>
47 <view class="titles">商品详情</view> 47 <view class="titles">商品详情</view>
48 - <rich-text :nodes="detaileList.content"></rich-text> 48 + <u-parse :content="detaileList.content"></u-parse>
  49 + <!-- <rich-text :nodes="detaileList.content"></rich-text> -->
49 </view> 50 </view>
50 </view> 51 </view>
51 <view class="lineBox flexC" v-if="shopType == 3"> 52 <view class="lineBox flexC" v-if="shopType == 3">
@@ -332,4 +333,8 @@ const getShopDetailes = async id => { @@ -332,4 +333,8 @@ const getShopDetailes = async id => {
332 background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%); 333 background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);
333 } 334 }
334 } 335 }
  336 +img {
  337 + width: 100% !important;
  338 + height: 100% !important;
  339 +}
335 </style> 340 </style>
@@ -99,7 +99,7 @@ const getLogins = async (data, iv) => { @@ -99,7 +99,7 @@ const getLogins = async (data, iv) => {
99 // 富文本 99 // 富文本
100 const toRichText = e => { 100 const toRichText = e => {
101 uni.navigateTo({ 101 uni.navigateTo({
102 - url: `/pages/richText/richText?type=${e}` 102 + url: `/pages/index/richText?type=${e}`
103 }) 103 })
104 } 104 }
105 // // 勾选协议 105 // // 勾选协议
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <text>{{ item.mobile }}</text> 11 <text>{{ item.mobile }}</text>
12 </view> 12 </view>
13 <view class="rightIc flexA"> 13 <view class="rightIc flexA">
14 - <image @click.stop="del(item.id)" src="/static/mineIc/delAddress.png" mode=""></image> 14 + <image @click.stop="del(item.id, item)" src="/static/mineIc/delAddress.png" mode=""></image>
15 <image @click.stop="newAdd(0, item.id)" src="/static/mineIc/edit.png" mode=""></image> 15 <image @click.stop="newAdd(0, item.id)" src="/static/mineIc/edit.png" mode=""></image>
16 </view> 16 </view>
17 </view> 17 </view>
@@ -58,29 +58,31 @@ let isCheck = ref(0) @@ -58,29 +58,31 @@ let isCheck = ref(0)
58 const checkAddress = item => { 58 const checkAddress = item => {
59 if (isCheck.value == 1) { 59 if (isCheck.value == 1) {
60 const pop = getCurrentPages().pop() 60 const pop = getCurrentPages().pop()
61 - pop.$vm.getOpenerEventChannel().emit('steBack', item) 61 + setTimeout(() => {
  62 + pop.$vm.getOpenerEventChannel().emit('steBack', item)
  63 + }, 1000)
62 uni.navigateBack() 64 uni.navigateBack()
63 } 65 }
64 } 66 }
65 -const del = id => { 67 +const del = (id, item) => {
66 uni.showModal({ 68 uni.showModal({
67 title: '提示', 69 title: '提示',
68 content: '确认删除此地址吗', 70 content: '确认删除此地址吗',
69 success: function (res) { 71 success: function (res) {
70 if (res.confirm) { 72 if (res.confirm) {
71 - getDelAdress(id) 73 + getDelAdress(id, item)
72 } 74 }
73 } 75 }
74 }) 76 })
75 } 77 }
76 // 删除地址 78 // 删除地址
77 -const getDelAdress = async ids => { 79 +const getDelAdress = async (ids, item) => {
78 try { 80 try {
79 const res = await getDelAdres(ids) 81 const res = await getDelAdres(ids)
80 uni.showToast({ title: '删除成功!', icon: 'none' }) 82 uni.showToast({ title: '删除成功!', icon: 'none' })
81 getAdressLists() 83 getAdressLists()
82 console.log('getDelAdres', res) 84 console.log('getDelAdres', res)
83 - // 保存数据 85 + if (item.is_default === 1) uni.removeStorageSync('defaultAdres')
84 } catch (err) { 86 } catch (err) {
85 console.log('getDelAdres', err) 87 console.log('getDelAdres', err)
86 } 88 }
@@ -30,9 +30,9 @@ @@ -30,9 +30,9 @@
30 <!-- 订单状态: 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后 --> 30 <!-- 订单状态: 0=全部,1=待付款,2=待发货,3=待收货,4=待评价,11=已取消,21=售后 -->
31 <!-- 待付款 --> 31 <!-- 待付款 -->
32 <view class="flexA" v-if="item.order_status == 1"> 32 <view class="flexA" v-if="item.order_status == 1">
33 - <view @click.stop="operateOrder(item, 0)" class="cancel flexC">{{ item.goodstatus_text == '' ? '取消付款' : '取消兑换' }}</view> 33 + <view @click.stop="operateOrder(item, 0)" class="cancel flexC">{{ item.goodstatus_text == 3 ? '取消兑换' : '取消付款' }}</view>
34 <view @click.stop="operateOrder(item, 1)" v-if="item.order_status == 1" class="orange flexC"> 34 <view @click.stop="operateOrder(item, 1)" v-if="item.order_status == 1" class="orange flexC">
35 - {{ item.goodstatus_text == '' ? '立即支付' : '立即兑换' }} 35 + {{ item.goodstatus_text == 3 ? '立即兑换' : '立即支付' }}
36 </view> 36 </view>
37 </view> 37 </view>
38 <!-- 代发货 --> 38 <!-- 代发货 -->
@@ -3,7 +3,9 @@ @@ -3,7 +3,9 @@
3 <u-navbar bgColor="transparent" :placeholder="true" @leftClick="leftClickHandler"></u-navbar> 3 <u-navbar bgColor="transparent" :placeholder="true" @leftClick="leftClickHandler"></u-navbar>
4 <view class="mainBox"> 4 <view class="mainBox">
5 <!-- 收货地址 --> 5 <!-- 收货地址 -->
  6 + <!-- <view @click="checkAddress"> -->
6 <shopAddres :isOrder="true" :adress="orderList"></shopAddres> 7 <shopAddres :isOrder="true" :adress="orderList"></shopAddres>
  8 + <!-- </view> -->
7 <view class="shopBox"> 9 <view class="shopBox">
8 <orderShops :shop="orderList"></orderShops> 10 <orderShops :shop="orderList"></orderShops>
9 <view class="line"></view> 11 <view class="line"></view>
@@ -32,7 +34,7 @@ @@ -32,7 +34,7 @@
32 <view class="moneyBox flexJ" v-for="(item, index) in placeOrder" :key="item.id"> 34 <view class="moneyBox flexJ" v-for="(item, index) in placeOrder" :key="item.id">
33 <view class="items"> 35 <view class="items">
34 {{ item.name }} 36 {{ item.name }}
35 - <text>{{ item.text }}</text> 37 + <text>{{ item.text.length ? item.text : `暂无${item.name}` }}</text>
36 </view> 38 </view>
37 <view v-if="index == 0" @click="copy" class="copy">复制</view> 39 <view v-if="index == 0" @click="copy" class="copy">复制</view>
38 </view> 40 </view>
@@ -47,7 +49,14 @@ @@ -47,7 +49,14 @@
47 <view v-if="btnType == 1 || btnType == 3" class="red flexC" @click="btns(1)">{{ btnType == 1 ? '立即支付' : '确认收货' }}</view> 49 <view v-if="btnType == 1 || btnType == 3" class="red flexC" @click="btns(1)">{{ btnType == 1 ? '立即支付' : '确认收货' }}</view>
48 </view> 50 </view>
49 <!-- 选择支付方式 --> 51 <!-- 选择支付方式 -->
50 - <payMode @canclePop="modeShow = false" :balance="balance" :orderId="orderId" :isOrderPay="true" :totalPrice="orderList.total_price" :modeShow="modeShow"></payMode> 52 + <payMode
  53 + @canclePop="modeShow = false"
  54 + :balance="balance"
  55 + :orderId="orderId"
  56 + :isOrderPay="true"
  57 + :totalPrice="orderList.total_price"
  58 + :modeShow="modeShow"
  59 + ></payMode>
51 60
52 <!-- 提示弹窗 --> 61 <!-- 提示弹窗 -->
53 <tipPops @pointsBtns="pointsBtns" :integral="integral" :tipType="tipType" :tipShow="tipShow"></tipPops> 62 <tipPops @pointsBtns="pointsBtns" :integral="integral" :tipType="tipType" :tipShow="tipShow"></tipPops>
@@ -76,10 +85,10 @@ let integral = ref(0) //积分 @@ -76,10 +85,10 @@ let integral = ref(0) //积分
76 let tipType = ref(1) //1取消支付 2取消订单 85 let tipType = ref(1) //1取消支付 2取消订单
77 let balance = ref(0) //余额 86 let balance = ref(0) //余额
78 let placeOrder = ref([ 87 let placeOrder = ref([
79 - { id: 1, name: '订单编号', text: '1212' },  
80 - { id: 2, name: '支付方式', text: '1212' },  
81 - { id: 3, name: '下单时间', text: '1212' },  
82 - { id: 4, name: '快递编号', text: '1212' } 88 + { id: 1, name: '订单编号', text: '' },
  89 + { id: 2, name: '支付方式', text: '' },
  90 + { id: 3, name: '下单时间', text: '' },
  91 + { id: 4, name: '快递编号', text: '' }
83 ]) 92 ])
84 93
85 onShow(() => { 94 onShow(() => {
@@ -187,6 +196,21 @@ const getReceipts = async () => { @@ -187,6 +196,21 @@ const getReceipts = async () => {
187 console.log('getReceipt', err) 196 console.log('getReceipt', err)
188 } 197 }
189 } 198 }
  199 +
  200 +let adress = ref({}) //收货地址
  201 +
  202 +// 选择地址
  203 +const checkAddress = () => {
  204 + uni.navigateTo({
  205 + url: `/pages/mine/myAddress?isCheck=${1}`,
  206 + events: {
  207 + steBack: data => {
  208 + orderList.value = data
  209 + console.log('地址', data)
  210 + }
  211 + }
  212 + })
  213 +}
190 </script> 214 </script>
191 215
192 <style lang="scss"> 216 <style lang="scss">
  1 +<template>
  2 + <u-navbar bgColor="#F6F8FA" :title="title" :placeholder="true" autoBack></u-navbar>
  3 + <view class="u-content">
  4 + <u-parse :content="content"></u-parse>
  5 + </view>
  6 +</template>
  7 +
  8 +<script setup>
  9 +import { ref } from 'vue'
  10 +import { onLoad } from '@dcloudio/uni-app'
  11 +
  12 +const content = ref(''),
  13 + title = ref('')
  14 +
  15 +onLoad(async (e) => {
  16 + if (e.type === '4') {
  17 + // const ret = await xxx()
  18 + content.value = '《用户协议》'
  19 + title.value = '用户协议'
  20 + return
  21 + }
  22 + // const ret = await xxx()
  23 + content.value = '《隐私协议》'
  24 + title.value = '隐私协议'
  25 +})
  26 +</script>
  27 +
  28 +<style lang="scss" scoped>
  29 +.u-content {
  30 + padding: 24rpx;
  31 +}
  32 +</style>
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 </view> 20 </view>
21 <view class="shopInfo"> 21 <view class="shopInfo">
22 <view class="shopName ellipsis">{{ item.name }}</view> 22 <view class="shopName ellipsis">{{ item.name }}</view>
23 - <view class="shopDesc ellipsis">{{ item.describe }}</view> 23 + <view class="shopDesc ellipsis">{{ item.goods_sku.goods_attr }}</view>
24 <view class="price flexJ"> 24 <view class="price flexJ">
25 <text v-if="shopType != 3">¥{{ item.goods_price }}</text> 25 <text v-if="shopType != 3">¥{{ item.goods_price }}</text>
26 <view v-else class="flexA points"> 26 <view v-else class="flexA points">
@@ -84,13 +84,14 @@ onLoad(e => { @@ -84,13 +84,14 @@ onLoad(e => {
84 getbBuyDatas(JSON.parse(e.params)) 84 getbBuyDatas(JSON.parse(e.params))
85 console.log(e.params, '商品规格信息') 85 console.log(e.params, '商品规格信息')
86 } 86 }
87 - //默认地址  
88 - uni.getStorageSync('defaultAdres') ? (adress.value = uni.getStorageSync('defaultAdres')) : ''  
89 }) 87 })
90 onShow(() => { 88 onShow(() => {
91 // 余额 89 // 余额
92 getyues() 90 getyues()
93 // uni.getStorageSync('balance') ? balance.value = uni.getStorageSync('balance') : '' 91 // uni.getStorageSync('balance') ? balance.value = uni.getStorageSync('balance') : ''
  92 + console.log('onShow执行了吗')
  93 + //默认地址
  94 + uni.getStorageSync('defaultAdres') ? (adress.value = uni.getStorageSync('defaultAdres')) : (adress.value = {})
94 }) 95 })
95 let modeShow = ref(false) //选择支付方式 96 let modeShow = ref(false) //选择支付方式
96 let payParams = ref({}) //支付参数 97 let payParams = ref({}) //支付参数
@@ -114,7 +115,7 @@ const getbBuyDatas = async obj => { @@ -114,7 +115,7 @@ const getbBuyDatas = async obj => {
114 // 保存数据 115 // 保存数据
115 } catch (err) { 116 } catch (err) {
116 uni.showToast({ title: err, icon: 'none' }) 117 uni.showToast({ title: err, icon: 'none' })
117 - console.log('getbBuyData', err) 118 + uni.navigateBack({ delta: 1 })
118 } 119 }
119 } 120 }
120 121
1 -"use strict";  
2 -var utils_request = require("../utils/request.js");  
3 -const getLogin = (params) => utils_request.request({ url: "/api/login/getPhones", method: "post", data: params });  
4 -const getIndex = () => utils_request.request({ url: "/api/index/index", method: "post", data: {} });  
5 -const getSearch = (key) => utils_request.request({ url: "/api/index/Searchfor", method: "post", data: { key } });  
6 -const getRecord = () => utils_request.request({ url: "/api/index/getSearchKeyword", method: "post", data: {} });  
7 -const getDelRecord = () => utils_request.request({ url: "/api/index/delSearchKeyword", method: "post", data: {} });  
8 -const getCodegood = () => utils_request.request({ url: "/api/goods/codegoods", method: "get", data: {} });  
9 -const getShopDetaile = (id) => utils_request.request({ url: "/api/goods/detail", method: "get", data: { id } });  
10 -const getbBuyData = (params) => utils_request.request({ url: "/api/goods/buyData", method: "get", data: params });  
11 -const getPay = (params) => utils_request.request({ url: "/api/goods/pay", method: "get", data: params });  
12 -const getTwoClassification = () => utils_request.request({ url: "/api/category/fenleilie", method: "post" });  
13 -const getCategoryGoods = (data) => utils_request.request({ url: "/api/category/getCategoryGoods", method: "post", data });  
14 -const getAddCar = (params) => utils_request.request({ url: "/api/cart/add", method: "get", data: params });  
15 -const getCarList = () => utils_request.request({ url: "/api/cart/index", method: "get", data: {} });  
16 -const getCarAdd = (cart_id, num) => utils_request.request({ url: "/api/cart/inc", method: "get", data: { cart_id, num } });  
17 -const getCarReduce = (cart_id, num) => utils_request.request({ url: "/api/cart/sub", method: "get", data: { cart_id, num } });  
18 -const getDelCar = (cart_ids) => utils_request.request({ url: "/api/cart/del", method: "get", data: { cart_ids } });  
19 -const getCarsettlement = (cart_ids) => utils_request.request({ url: "/api/cart/settlement", method: "get", data: { cart_ids } });  
20 -const getCarPay = (params) => utils_request.request({ url: "/api/cart/pay", method: "get", data: params });  
21 -const getMine = () => utils_request.request({ url: "/api/user/index", method: "get", data: {} });  
22 -const getOrderList = (status) => utils_request.request({ url: "/api/order/index", method: "get", data: { status } });  
23 -const getOrderdetail = (id) => utils_request.request({ url: "/api/order/detail", method: "get", data: { id } });  
24 -const getCancleOrder = (id) => utils_request.request({ url: "/api/order/cancel", method: "get", data: { id } });  
25 -const getReceipt = (id) => utils_request.request({ url: "/api/order/receipt", method: "get", data: { id } });  
26 -const getRefund = (id) => utils_request.request({ url: "/api/order/refund", method: "get", data: { id } });  
27 -const getOrderPay = (id, fangs) => utils_request.request({ url: "/api/order/pay", method: "get", data: { id, fangs } });  
28 -const getyue = () => utils_request.request({ url: "/api/user/yue", method: "get", data: {} });  
29 -const getMoneyDetail = () => utils_request.request({ url: "/api/user/getMoneyDetail", method: "get", data: {} });  
30 -const getMyScore = () => utils_request.request({ url: "/api/user/myScore", method: "get", data: {} });  
31 -const getScoreDetail = () => utils_request.request({ url: "/api/user/getScoreDetail", method: "get", data: {} });  
32 -const getPackage = () => utils_request.request({ url: "/api/user/czlb", method: "get", data: {} });  
33 -const getRecharge = (m) => utils_request.request({ url: "/api/user/czxt", method: "get", data: { m } });  
34 -const getComment = (params) => utils_request.request({ url: "/api/goods/pinglun", method: "get", data: params });  
35 -const getAdressList = () => utils_request.request({ url: "/api/address/index", method: "post", data: {} });  
36 -const getEdit = (params) => utils_request.request({ url: "/api/address/add", method: "post", data: params });  
37 -const getadresDetail = (id) => utils_request.request({ url: "/api/address/detail", method: "post", data: { id } });  
38 -const getDelAdres = (ids) => utils_request.request({ url: "/api/address/del", method: "post", data: { ids } });  
39 -exports.getAddCar = getAddCar;  
40 -exports.getAdressList = getAdressList;  
41 -exports.getCancleOrder = getCancleOrder;  
42 -exports.getCarAdd = getCarAdd;  
43 -exports.getCarList = getCarList;  
44 -exports.getCarPay = getCarPay;  
45 -exports.getCarReduce = getCarReduce;  
46 -exports.getCarsettlement = getCarsettlement;  
47 -exports.getCategoryGoods = getCategoryGoods;  
48 -exports.getCodegood = getCodegood;  
49 -exports.getComment = getComment;  
50 -exports.getDelAdres = getDelAdres;  
51 -exports.getDelCar = getDelCar;  
52 -exports.getDelRecord = getDelRecord;  
53 -exports.getEdit = getEdit;  
54 -exports.getIndex = getIndex;  
55 -exports.getLogin = getLogin;  
56 -exports.getMine = getMine;  
57 -exports.getMoneyDetail = getMoneyDetail;  
58 -exports.getMyScore = getMyScore;  
59 -exports.getOrderList = getOrderList;  
60 -exports.getOrderPay = getOrderPay;  
61 -exports.getOrderdetail = getOrderdetail;  
62 -exports.getPackage = getPackage;  
63 -exports.getPay = getPay;  
64 -exports.getReceipt = getReceipt;  
65 -exports.getRecharge = getRecharge;  
66 -exports.getRecord = getRecord;  
67 -exports.getRefund = getRefund;  
68 -exports.getScoreDetail = getScoreDetail;  
69 -exports.getSearch = getSearch;  
70 -exports.getShopDetaile = getShopDetaile;  
71 -exports.getTwoClassification = getTwoClassification;  
72 -exports.getadresDetail = getadresDetail;  
73 -exports.getbBuyData = getbBuyData;  
74 -exports.getyue = getyue; 1 +"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;
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -var methods = {  
4 - upload(url, callBack) {  
5 - let arr = {};  
6 - common_vendor.index.chooseImage({  
7 - success: (chooseImageRes) => {  
8 - const tempFilePaths = chooseImageRes.tempFilePaths;  
9 - arr["avatar"] = tempFilePaths[0];  
10 - common_vendor.index.uploadFile({  
11 - url,  
12 - filePath: tempFilePaths[0],  
13 - name: "file",  
14 - formData: {  
15 - user: "test",  
16 - token: common_vendor.index.getStorageSync("token")  
17 - },  
18 - success: (uploadFileRes) => {  
19 - console.log(JSON.parse(uploadFileRes.data), "\u56FE\u7247\u8DEF\u5F84");  
20 - arr["upImg"] = JSON.parse(uploadFileRes.data).data.url;  
21 - callBack(arr);  
22 - }  
23 - });  
24 - }  
25 - });  
26 - },  
27 - pay(res) {  
28 - if (res.appId) {  
29 - common_vendor.index.requestPayment({  
30 - provider: "wxpay",  
31 - timeStamp: res.timeStamp,  
32 - nonceStr: res.nonceStr,  
33 - package: res.package,  
34 - signType: res.signType,  
35 - appid: res.appId,  
36 - paySign: res.paySign,  
37 - success(res2) {  
38 - console.log("\u652F\u4ED8\u6210\u529F");  
39 - common_vendor.index.showToast({ title: "\u652F\u4ED8\u6210\u529F~" });  
40 - setTimeout(() => {  
41 - common_vendor.index.navigateBack();  
42 - }, 1500);  
43 - },  
44 - fail(e) {  
45 - console.log("\u652F\u4ED8\u5931\u8D25", e);  
46 - common_vendor.index.showToast({ title: "\u652F\u4ED8\u53D6\u6D88~", icon: "none" });  
47 - setTimeout(() => {  
48 - common_vendor.index.navigateBack();  
49 - }, 1500);  
50 - }  
51 - });  
52 - }  
53 - },  
54 - showTN(title) {  
55 - common_vendor.index.showToast({ title, icon: "none" });  
56 - setTimeout(() => {  
57 - common_vendor.index.navigateBack();  
58 - }, 1e3);  
59 - }  
60 -};  
61 -exports.methods = methods; 1 +"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;
1 -"use strict";  
2 -Object.defineProperty(exports, "__esModule", { value: true });  
3 -exports[Symbol.toStringTag] = "Module";  
4 -var common_vendor = require("./common/vendor.js");  
5 -var api_methods = require("./api/methods.js");  
6 -if (!Math) {  
7 - "./pages/index/index.js";  
8 - "./pages/index/search.js";  
9 - "./pages/index/shopDetaile.js";  
10 - "./pages/index/allComment.js";  
11 - "./pages/index/bargainPrice.js";  
12 - "./pages/class/class.js";  
13 - "./pages/class/classList.js";  
14 - "./pages/pointsMall/pointsMall.js";  
15 - "./pages/pointsMall/pointsDetaile.js";  
16 - "./pages/shopCar/shopCar.js";  
17 - "./pages/shopCar/confirmOrder.js";  
18 - "./pages/mine/mine.js";  
19 - "./pages/mine/myOrder.js";  
20 - "./pages/mine/orderDetail.js";  
21 - "./pages/mine/recharge.js";  
22 - "./pages/mine/evaluate.js";  
23 - "./pages/mine/myAddress.js";  
24 - "./pages/mine/newAddress.js";  
25 - "./pages/mine/myPoints.js";  
26 - "./pages/login/login.js";  
27 -}  
28 -const _sfc_main = {  
29 - onLaunch: function() {  
30 - console.log("App Launch");  
31 - },  
32 - onShow: function() {  
33 - console.log("App Show");  
34 - },  
35 - onHide: function() {  
36 - console.log("App Hide");  
37 - }  
38 -};  
39 -var App = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/App.vue"]]);  
40 -function createApp() {  
41 - const app = common_vendor.createSSRApp(App);  
42 - app.config.globalProperties.$methods = api_methods.methods;  
43 - app.use(common_vendor.uviewPlus);  
44 - return {  
45 - app  
46 - };  
47 -}  
48 -createApp().app.mount("#app");  
49 -exports.createApp = createApp; 1 +"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;
1 { 1 {
2 "pages": [ 2 "pages": [
3 "pages/index/index", 3 "pages/index/index",
  4 + "pages/index/richText",
4 "pages/index/search", 5 "pages/index/search",
5 "pages/index/shopDetaile", 6 "pages/index/shopDetaile",
6 "pages/index/allComment", 7 "pages/index/allComment",
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */  
28 -.u-line-1 {  
29 -  
30 -  
31 -  
32 -  
33 -  
34 -  
35 -  
36 - display: -webkit-box !important;  
37 - overflow: hidden;  
38 - text-overflow: ellipsis;  
39 - word-break: break-all;  
40 - -webkit-line-clamp: 1;  
41 - -webkit-box-orient: vertical !important;  
42 -}  
43 -.u-line-2 {  
44 -  
45 -  
46 -  
47 -  
48 -  
49 -  
50 -  
51 - display: -webkit-box !important;  
52 - overflow: hidden;  
53 - text-overflow: ellipsis;  
54 - word-break: break-all;  
55 - -webkit-line-clamp: 2;  
56 - -webkit-box-orient: vertical !important;  
57 -}  
58 -.u-line-3 {  
59 -  
60 -  
61 -  
62 -  
63 -  
64 -  
65 -  
66 - display: -webkit-box !important;  
67 - overflow: hidden;  
68 - text-overflow: ellipsis;  
69 - word-break: break-all;  
70 - -webkit-line-clamp: 3;  
71 - -webkit-box-orient: vertical !important;  
72 -}  
73 -.u-line-4 {  
74 -  
75 -  
76 -  
77 -  
78 -  
79 -  
80 -  
81 - display: -webkit-box !important;  
82 - overflow: hidden;  
83 - text-overflow: ellipsis;  
84 - word-break: break-all;  
85 - -webkit-line-clamp: 4;  
86 - -webkit-box-orient: vertical !important;  
87 -}  
88 -.u-line-5 {  
89 -  
90 -  
91 -  
92 -  
93 -  
94 -  
95 -  
96 - display: -webkit-box !important;  
97 - overflow: hidden;  
98 - text-overflow: ellipsis;  
99 - word-break: break-all;  
100 - -webkit-line-clamp: 5;  
101 - -webkit-box-orient: vertical !important;  
102 -}  
103 -.u-border {  
104 - border-width: 0.5px !important;  
105 - border-color: #dadbde !important;  
106 - border-style: solid;  
107 -}  
108 -.u-border-top {  
109 - border-top-width: 0.5px !important;  
110 - border-color: #dadbde !important;  
111 - border-top-style: solid;  
112 -}  
113 -.u-border-left {  
114 - border-left-width: 0.5px !important;  
115 - border-color: #dadbde !important;  
116 - border-left-style: solid;  
117 -}  
118 -.u-border-right {  
119 - border-right-width: 0.5px !important;  
120 - border-color: #dadbde !important;  
121 - border-right-style: solid;  
122 -}  
123 -.u-border-bottom {  
124 - border-bottom-width: 0.5px !important;  
125 - border-color: #dadbde !important;  
126 - border-bottom-style: solid;  
127 -}  
128 -.u-border-top-bottom {  
129 - border-top-width: 0.5px !important;  
130 - border-bottom-width: 0.5px !important;  
131 - border-color: #dadbde !important;  
132 - border-top-style: solid;  
133 - border-bottom-style: solid;  
134 -}  
135 -.u-reset-button {  
136 - padding: 0;  
137 - background-color: transparent;  
138 -  
139 - font-size: inherit;  
140 - line-height: inherit;  
141 - color: inherit;  
142 -}  
143 -.u-reset-button::after {  
144 - border: none;  
145 -}  
146 -.u-hover-class {  
147 - opacity: 0.7;  
148 -}  
149 -.u-primary-light {  
150 - color: #ecf5ff;  
151 -}  
152 -.u-warning-light {  
153 - color: #fdf6ec;  
154 -}  
155 -.u-success-light {  
156 - color: #f5fff0;  
157 -}  
158 -.u-error-light {  
159 - color: #fef0f0;  
160 -}  
161 -.u-info-light {  
162 - color: #f4f4f5;  
163 -}  
164 -.u-primary-light-bg {  
165 - background-color: #ecf5ff;  
166 -}  
167 -.u-warning-light-bg {  
168 - background-color: #fdf6ec;  
169 -}  
170 -.u-success-light-bg {  
171 - background-color: #f5fff0;  
172 -}  
173 -.u-error-light-bg {  
174 - background-color: #fef0f0;  
175 -}  
176 -.u-info-light-bg {  
177 - background-color: #f4f4f5;  
178 -}  
179 -.u-primary-dark {  
180 - color: #398ade;  
181 -}  
182 -.u-warning-dark {  
183 - color: #f1a532;  
184 -}  
185 -.u-success-dark {  
186 - color: #53c21d;  
187 -}  
188 -.u-error-dark {  
189 - color: #e45656;  
190 -}  
191 -.u-info-dark {  
192 - color: #767a82;  
193 -}  
194 -.u-primary-dark-bg {  
195 - background-color: #398ade;  
196 -}  
197 -.u-warning-dark-bg {  
198 - background-color: #f1a532;  
199 -}  
200 -.u-success-dark-bg {  
201 - background-color: #53c21d;  
202 -}  
203 -.u-error-dark-bg {  
204 - background-color: #e45656;  
205 -}  
206 -.u-info-dark-bg {  
207 - background-color: #767a82;  
208 -}  
209 -.u-primary-disabled {  
210 - color: #9acafc;  
211 -}  
212 -.u-warning-disabled {  
213 - color: #f9d39b;  
214 -}  
215 -.u-success-disabled {  
216 - color: #a9e08f;  
217 -}  
218 -.u-error-disabled {  
219 - color: #f7b2b2;  
220 -}  
221 -.u-info-disabled {  
222 - color: #c4c6c9;  
223 -}  
224 -.u-primary {  
225 - color: #3c9cff;  
226 -}  
227 -.u-warning {  
228 - color: #f9ae3d;  
229 -}  
230 -.u-success {  
231 - color: #5ac725;  
232 -}  
233 -.u-error {  
234 - color: #f56c6c;  
235 -}  
236 -.u-info {  
237 - color: #909399;  
238 -}  
239 -.u-primary-bg {  
240 - background-color: #3c9cff;  
241 -}  
242 -.u-warning-bg {  
243 - background-color: #f9ae3d;  
244 -}  
245 -.u-success-bg {  
246 - background-color: #5ac725;  
247 -}  
248 -.u-error-bg {  
249 - background-color: #f56c6c;  
250 -}  
251 -.u-info-bg {  
252 - background-color: #909399;  
253 -}  
254 -.u-main-color {  
255 - color: #303133;  
256 -}  
257 -.u-content-color {  
258 - color: #606266;  
259 -}  
260 -.u-tips-color {  
261 - color: #909193;  
262 -}  
263 -.u-light-color {  
264 - color: #c0c4cc;  
265 -}  
266 -.u-safe-area-inset-top {  
267 - padding-top: 0;  
268 - padding-top: constant(safe-area-inset-top);  
269 - padding-top: env(safe-area-inset-top);  
270 -}  
271 -.u-safe-area-inset-right {  
272 - padding-right: 0;  
273 - padding-right: constant(safe-area-inset-right);  
274 - padding-right: env(safe-area-inset-right);  
275 -}  
276 -.u-safe-area-inset-bottom {  
277 - padding-bottom: 0;  
278 - padding-bottom: constant(safe-area-inset-bottom);  
279 - padding-bottom: env(safe-area-inset-bottom);  
280 -}  
281 -.u-safe-area-inset-left {  
282 - padding-left: 0;  
283 - padding-left: constant(safe-area-inset-left);  
284 - padding-left: env(safe-area-inset-left);  
285 -}  
286 -::-webkit-scrollbar {  
287 - display: none;  
288 - width: 0 !important;  
289 - height: 0 !important;  
290 - -webkit-appearance: none;  
291 - background: transparent;  
292 -}  
293 -.flexJ {  
294 - display: flex;  
295 - justify-content: space-between;  
296 - align-items: center;  
297 -}  
298 -.flexC {  
299 - display: flex;  
300 - justify-content: center;  
301 - align-items: center;  
302 -}  
303 -.flexA {  
304 - display: flex;  
305 - align-items: center;  
306 -}  
307 -.flexV {  
308 - display: flex;  
309 - flex-direction: column;  
310 - justify-content: center;  
311 - align-items: center;  
312 -}  
313 -.flexW {  
314 - display: flex;  
315 - flex-wrap: wrap;  
316 - justify-content: space-between;  
317 -}  
318 -.ples {  
319 - color: #000000e6;  
320 - font-size: 30rpx;  
321 - font-weight: 700;  
322 -}  
323 -.lineFeed {  
324 - word-wrap: break-word;  
325 - word-break: break-all;  
326 - white-space: pre-line;  
327 -}  
328 -.ellipsis {  
329 - display: -webkit-box;  
330 - -webkit-box-orient: vertical;  
331 - text-overflow: ellipsis;  
332 - overflow: hidden;  
333 - -webkit-line-clamp: 1;  
334 -}  
335 -.ellipsisT {  
336 - display: -webkit-box;  
337 - -webkit-box-orient: vertical;  
338 - text-overflow: ellipsis;  
339 - overflow: hidden;  
340 - -webkit-line-clamp: 2;  
341 - color: rgba(0, 0, 0, 0.9);  
342 - font-size: 24rpx;  
343 -}  
344 -.iosAuto {  
345 - padding-bottom: constant(safe-area-inset-bottom);  
346 - padding-bottom: env(safe-area-inset-bottom);  
347 -}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;}  
  1 +.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)}
  2 +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;}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - adress: {  
6 - type: Object,  
7 - default: {}  
8 - },  
9 - isOrder: {  
10 - type: Boolean,  
11 - default: false  
12 - }  
13 - },  
14 - setup(__props) {  
15 - return (_ctx, _cache) => {  
16 - return {  
17 - a: common_vendor.t(!__props.isOrder ? __props.adress.diqu + __props.adress.address : __props.adress.sh_diqu + __props.adress.sh_address),  
18 - b: common_vendor.t(!__props.isOrder ? __props.adress.name : __props.adress.sh_name),  
19 - 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))  
20 - };  
21 - };  
22 - }  
23 -};  
24 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/address.vue"]]);  
25 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.addressBox {  
28 - margin-bottom: 20rpx;  
29 - padding: 32rpx 20rpx 31rpx 32rpx;  
30 - border-radius: 24rpx;  
31 - background: #fff;  
32 -}  
33 -.addressBox .right {  
34 - display: flex;  
35 -}  
36 -.addressBox .right image {  
37 - width: 32rpx;  
38 - height: 32rpx;  
39 - margin-right: 8rpx;  
40 - margin-top: 9rpx;  
41 -}  
42 -.addressBox .right .area text {  
43 - color: #323233ff;  
44 - font-size: 28rpx;  
45 - font-weight: 700;  
46 - line-height: 36rpx;  
47 -}  
48 -.addressBox .right .area .name {  
49 - color: #646566ff;  
50 - font-size: 24rpx;  
51 - margin-top: 9rpx;  
52 -}  
53 -.addressBox image {  
54 - width: 16rpx;  
55 - height: 32rpx;  
56 -}  
  1 +.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}
1 -"use strict";  
2 -var utils_addressData = require("../utils/address-data.js");  
3 -var common_vendor = require("../common/vendor.js");  
4 -const _sfc_main = {  
5 - props: {  
6 - shows: {  
7 - type: Boolean,  
8 - default: false  
9 - }  
10 - },  
11 - data() {  
12 - return {  
13 - columns: [],  
14 - columnData: []  
15 - };  
16 - },  
17 - mounted() {  
18 - this.columns[0] = utils_addressData.localData.map((item) => item.name);  
19 - this.columns[1] = utils_addressData.localData[0].cities.map((item) => item.name);  
20 - this.columns[2] = utils_addressData.localData[0].cities[0].districts.map((item) => item.name);  
21 - },  
22 - methods: {  
23 - close() {  
24 - this.$emit("close", false);  
25 - },  
26 - changeHandler(e) {  
27 - const {  
28 - columnIndex,  
29 - value,  
30 - values,  
31 - index,  
32 - picker = this.$refs.uPicker  
33 - } = e;  
34 - console.log("\u53D8\u5316", index);  
35 - if (columnIndex === 0) {  
36 - let arr = utils_addressData.localData.find((item) => item.name == value[0]);  
37 - let arr1 = arr.cities.map((item) => item.name);  
38 - this.columnData = arr1;  
39 - console.log("\u5E02", arr1[0], arr);  
40 - let distinguish = arr.cities[0].districts.map((item) => item.name);  
41 - picker.setColumnValues(1, arr1);  
42 - picker.setColumnValues(2, distinguish);  
43 - }  
44 - if (columnIndex === 1) {  
45 - let economize = utils_addressData.localData.find((item) => item.name == value[0]);  
46 - let city = economize.cities.find((item) => item.name == value[1]);  
47 - let distinguish = city.districts.map((item) => item.name);  
48 - picker.setColumnValues(2, distinguish);  
49 - }  
50 - },  
51 - confirm(e) {  
52 - this.$emit("popShow", e.value);  
53 - }  
54 - }  
55 -};  
56 -if (!Array) {  
57 - const _easycom_u_picker2 = common_vendor.resolveComponent("u-picker");  
58 - _easycom_u_picker2();  
59 -}  
60 -const _easycom_u_picker = () => "../uni_modules/uview-plus/components/u-picker/u-picker.js";  
61 -if (!Math) {  
62 - _easycom_u_picker();  
63 -}  
64 -function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {  
65 - return {  
66 - a: common_vendor.sr("uPicker", "700f6895-0"),  
67 - b: common_vendor.o($options.close),  
68 - c: common_vendor.o($options.confirm),  
69 - d: common_vendor.o($options.changeHandler),  
70 - e: common_vendor.p({  
71 - immediateChange: true,  
72 - show: $props.shows,  
73 - columns: $data.columns  
74 - })  
75 - };  
76 -}  
77 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/areaCheck.vue"]]);  
78 -wx.createComponent(Component); 1 +"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(_);
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -var api_index = require("../api/index.js");  
4 -require("../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");  
7 - _easycom_u_popup2();  
8 -}  
9 -const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";  
10 -if (!Math) {  
11 - _easycom_u_popup();  
12 -}  
13 -const _sfc_main = {  
14 - props: {  
15 - payParams: {  
16 - type: Object,  
17 - default: {}  
18 - },  
19 - modeShow: {  
20 - type: Boolean,  
21 - default: false  
22 - },  
23 - adressId: {  
24 - type: String,  
25 - default: ""  
26 - },  
27 - totalPrice: {  
28 - type: String,  
29 - default: 0  
30 - },  
31 - balance: {  
32 - type: String,  
33 - default: ""  
34 - },  
35 - isOrderPay: {  
36 - type: Boolean,  
37 - default: false  
38 - },  
39 - orderId: {  
40 - type: String,  
41 - default: ""  
42 - },  
43 - carId: {  
44 - type: String,  
45 - default: ""  
46 - }  
47 - },  
48 - emits: ["canclePop"],  
49 - setup(__props, { emit }) {  
50 - const props = __props;  
51 - common_vendor.onMounted(() => {  
52 - setTimeout(() => {  
53 - if (props.totalPrice > +props.balance) {  
54 - payMode[1].shows = false;  
55 - }  
56 - }, 100);  
57 - });  
58 - common_vendor.watchEffect(() => {  
59 - console.log("\u4F59\u989D", props.balance);  
60 - if (props.totalPrice < +props.balance) {  
61 - payMode[1].shows = true;  
62 - }  
63 - });  
64 - const payMode = common_vendor.reactive([  
65 - { id: 1, name: "\u5FAE\u4FE1\u652F\u4ED8", check: true, modeUrl: "/static/shopCarIc/weCaat.png", shows: true },  
66 - { id: 2, name: "\u4F59\u989D\u652F\u4ED8", check: false, modeUrl: "/static/shopCarIc/yue.png", shows: true }  
67 - ]);  
68 - common_vendor.ref(0);  
69 - let defaultMode = common_vendor.ref(0);  
70 - let checkPay = (index) => {  
71 - defaultMode.value = index;  
72 - };  
73 - const subOrder = () => {  
74 - if (props.car_Id) {  
75 - console.log("\u8D2D\u7269\u8F66\u652F\u4ED8", props.car_Id);  
76 - getCarPays();  
77 - } else {  
78 - console.log("dindan\u652F\u4ED8", props.car_Id);  
79 - props.isOrderPay ? getOrderPays() : getPays();  
80 - }  
81 - };  
82 - const goRecharge = () => {  
83 - common_vendor.index.navigateTo({ url: "/pages/mine/recharge" });  
84 - };  
85 - const canclePop = () => {  
86 - emit("canclePop");  
87 - };  
88 - const { proxy } = common_vendor.getCurrentInstance();  
89 - const getPays = async () => {  
90 - try {  
91 - let { id, num, specId } = props.payParams;  
92 - let params = {  
93 - goods_id: id,  
94 - num,  
95 - goods_spec_id: specId,  
96 - address_id: props.adressId,  
97 - fangs: defaultMode.value == 0 ? 1 : 2,  
98 - remark: ""  
99 - };  
100 - const res = await api_index.getPay(params);  
101 - proxy.$methods.pay(res);  
102 - canclePop();  
103 - if (defaultMode.value === 1) {  
104 - common_vendor.index.showToast({ title: "\u652F\u4ED8\u6210\u529F", icon: "none" });  
105 - setTimeout(() => {  
106 - common_vendor.index.navigateBack();  
107 - }, 1500);  
108 - }  
109 - } catch (err) {  
110 - common_vendor.index.showToast({ title: err, icon: "none" });  
111 - console.log("getPay", err);  
112 - }  
113 - };  
114 - const getCarPays = async () => {  
115 - try {  
116 - let params = {  
117 - cart_ids: props.car_Id,  
118 - address_id: props.adressId,  
119 - remark: "",  
120 - fangs: defaultMode.value == 0 ? 1 : 2  
121 - };  
122 - const res = await api_index.getCarPay(params);  
123 - proxy.$methods.pay(res);  
124 - canclePop();  
125 - console.log("getCarPay", res);  
126 - if (defaultMode.value === 1) {  
127 - proxy.$methods.showTN("\u4F59\u989D\u652F\u4ED8\u6210\u529F~");  
128 - }  
129 - } catch (err) {  
130 - common_vendor.index.showToast({ title: err, icon: "none" });  
131 - console.log("getCarPay", err);  
132 - }  
133 - };  
134 - const getOrderPays = async () => {  
135 - try {  
136 - const res = await api_index.getOrderPay(props.orderId, defaultMode.value == 0 ? 1 : 2);  
137 - proxy.$methods.pay(res);  
138 - canclePop();  
139 - console.log("getOrderPay", res);  
140 - if (defaultMode.value === 1) {  
141 - common_vendor.index.showToast({ title: "\u652F\u4ED8\u6210\u529F", icon: "none" });  
142 - setTimeout(() => {  
143 - common_vendor.index.navigateBack();  
144 - }, 1500);  
145 - }  
146 - } catch (err) {  
147 - common_vendor.index.showToast({ title: err, icon: "none" });  
148 - console.log("getOrderPay", err);  
149 - }  
150 - };  
151 - return (_ctx, _cache) => {  
152 - return {  
153 - a: common_vendor.f(common_vendor.unref(payMode), (item, index, i0) => {  
154 - return common_vendor.e({  
155 - a: item.modeUrl,  
156 - b: common_vendor.t(item.name),  
157 - c: item.shows  
158 - }, item.shows ? {  
159 - d: common_vendor.unref(defaultMode) == index ? "/static/shopCarIc/modeCheck.png" : "/static/shopCarIc/checks.png"  
160 - } : {  
161 - e: common_vendor.o(goRecharge)  
162 - }, {  
163 - f: item.id,  
164 - g: common_vendor.o(($event) => common_vendor.unref(checkPay)(index), item.id)  
165 - });  
166 - }),  
167 - b: common_vendor.o(subOrder),  
168 - c: common_vendor.o(canclePop),  
169 - d: common_vendor.p({  
170 - show: __props.modeShow,  
171 - bgColor: "#F6F8FA",  
172 - closeable: true,  
173 - round: "12"  
174 - })  
175 - };  
176 - };  
177 - }  
178 -};  
179 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/checkPayMode.vue"]]);  
180 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.popBox {  
28 - padding: 32rpx 24rpx 0;  
29 -}  
30 -.popBox .title {  
31 - text-align: center;  
32 - margin-bottom: 60rpx;  
33 - color: #000000e6;  
34 - font-size: 32rpx;  
35 - font-weight: 700;  
36 -}  
37 -.popBox .popModeBox {  
38 - width: 100%;  
39 - padding: 32rpx 20rpx;  
40 - box-sizing: border-box;  
41 - border-radius: 16rpx;  
42 - background: #ffffffff;  
43 -}  
44 -.popBox .popModeBox .mode {  
45 - color: #000000e6;  
46 - font-size: 28rpx;  
47 - font-weight: 700;  
48 -}  
49 -.popBox .popModeBox .mode image {  
50 - width: 52rpx;  
51 - height: 52rpx;  
52 - margin-right: 20rpx;  
53 -}  
54 -.popBox .popModeBox image {  
55 - width: 36rpx;  
56 - height: 36rpx;  
57 -}  
58 -.popBox .popModeBox .insufficient {  
59 - color: #00000066;  
60 - font-size: 24rpx;  
61 -}  
62 -.popBox .popModeBox .insufficient .go {  
63 - margin-left: 8rpx;  
64 - font-size: 24rpx;  
65 - color: #fb3e3c;  
66 - line-height: 32rpx;  
67 -}  
68 -.popBox .popModeBox .insufficient .go image {  
69 - width: 24rpx;  
70 - height: 24rpx;  
71 -}  
72 -.popBox .subOrder {  
73 - margin-top: 138rpx;  
74 - width: 100%;  
75 - height: 88rpx;  
76 - border-radius: 280rpx;  
77 - color: #ffffffff;  
78 - font-size: 32rpx;  
79 - font-weight: 700;  
80 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
81 -}  
  1 +.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%)}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -if (!Math) {  
4 - open();  
5 -}  
6 -const open = () => "./openComment.js";  
7 -const _sfc_main = {  
8 - props: {  
9 - commentList: {  
10 - type: Array,  
11 - default: []  
12 - }  
13 - },  
14 - setup(__props) {  
15 - const props = __props;  
16 - common_vendor.onMounted(() => {  
17 - props.commentList.forEach((item) => {  
18 - item.image = item.image.split(",");  
19 - });  
20 - });  
21 - common_vendor.reactive({  
22 - backgroundImage: "none",  
23 - paddingTop: "0",  
24 - marginTop: "0"  
25 - });  
26 - return (_ctx, _cache) => {  
27 - return {  
28 - a: common_vendor.f(__props.commentList, (item, k0, i0) => {  
29 - return {  
30 - a: item.avatar,  
31 - b: common_vendor.t(item.nickname),  
32 - c: common_vendor.t(item.createtime),  
33 - d: "4639ae0e-0-" + i0,  
34 - e: common_vendor.p({  
35 - text: item.content  
36 - }),  
37 - f: common_vendor.f(item.image, (it, k1, i1) => {  
38 - return {  
39 - a: it  
40 - };  
41 - }),  
42 - g: item.id  
43 - };  
44 - })  
45 - };  
46 - };  
47 - }  
48 -};  
49 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/comment.vue"]]);  
50 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.commentBox .info {  
28 - margin-bottom: 24rpx;  
29 -}  
30 -.commentBox .info image {  
31 - width: 88rpx;  
32 - height: 88rpx;  
33 - border-radius: 50%;  
34 - margin-right: 24rpx;  
35 -}  
36 -.commentBox .info .name :nth-child(1) {  
37 - color: #131a14d9;  
38 - font-size: 28rpx;  
39 - font-weight: 700;  
40 - line-height: 40rpx;  
41 -}  
42 -.commentBox .info .name text {  
43 - color: #131a1466;  
44 - font-size: 24rpx;  
45 - margin-top: 4rpx;  
46 -}  
47 -.commentBox .imageBox {  
48 - margin-top: 10rpx;  
49 - display: flex;  
50 - flex-wrap: wrap;  
51 -}  
52 -.commentBox .imageBox image {  
53 - width: 226rpx;  
54 - height: 226rpx;  
55 - border-radius: 32rpx;  
56 - margin: 0 12rpx 12rpx 0;  
57 -}  
58 -.commentBox .imageBox :nth-child(3n) {  
59 - margin-right: 0 !important;  
60 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - text: {  
6 - type: String,  
7 - default: ""  
8 - }  
9 - },  
10 - data() {  
11 - return {  
12 - iSinfo: false  
13 - };  
14 - },  
15 - methods: {  
16 - showinfo() {  
17 - this.iSinfo = !this.iSinfo;  
18 - }  
19 - }  
20 -};  
21 -function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {  
22 - return common_vendor.e({  
23 - a: common_vendor.t($props.text),  
24 - b: !$data.iSinfo ? 1 : "",  
25 - c: !$data.iSinfo & $props.text.length > 100  
26 - }, !$data.iSinfo & $props.text.length > 100 ? {  
27 - d: common_vendor.o((...args) => $options.showinfo && $options.showinfo(...args))  
28 - } : {}, {  
29 - e: $data.iSinfo  
30 - }, $data.iSinfo ? {  
31 - f: common_vendor.o((...args) => $options.showinfo && $options.showinfo(...args))  
32 - } : {});  
33 -}  
34 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/openComment.vue"]]);  
35 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -page {  
28 - background-color: #fff;  
29 -}  
30 -.Express {  
31 - display: flex;  
32 - flex-direction: column;  
33 - background-color: #fff;  
34 - position: relative;  
35 -}  
36 -.Express .info {  
37 - display: flex;  
38 - flex-direction: column;  
39 -}  
40 -.Express .info view {  
41 - text-align: justify;  
42 - font-size: 14px;  
43 - font-weight: 400;  
44 - color: #666666;  
45 - word-break: break-word;  
46 - background-color: #fff;  
47 -}  
48 -.Express .info .open {  
49 - width: 112rpx;  
50 - font-size: 14px;  
51 - display: flex;  
52 - justify-content: flex-end;  
53 - align-items: center;  
54 - color: #75CA42;  
55 - position: absolute;  
56 - bottom: 0rpx;  
57 - right: 0rpx;  
58 -}  
59 -.Express .info .open .dot {  
60 - margin-right: 30rpx;  
61 -}  
62 -.hidebtn {  
63 - display: flex;  
64 - flex: 1;  
65 - justify-content: flex-end;  
66 - color: #75CA42;  
67 - font-size: 14px;  
68 -}  
69 -.hide {  
70 - word-break: break-word;  
71 - overflow: hidden;  
72 - text-overflow: ellipsis;  
73 - display: -webkit-box;  
74 - -webkit-line-clamp: 3;  
75 - -webkit-box-orient: vertical;  
76 -}  
  1 +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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - shop: {  
6 - type: Array,  
7 - default: []  
8 - }  
9 - },  
10 - setup(__props) {  
11 - const props = __props;  
12 - const textHandler = (orderStatus) => [1, 11].includes(orderStatus) ? "\u9700\u4ED8\u6B3E:" : [2, 3, 4, 21].includes(orderStatus) ? "\u5B9E\u4ED8\u6B3E:" : "";  
13 - common_vendor.onMounted(() => {  
14 - common_vendor.nextTick(() => {  
15 - console.log(props.shop, "\u8BA2\u5355\u6570\u636E\u662F\u4EC0\u4E48");  
16 - });  
17 - });  
18 - return (_ctx, _cache) => {  
19 - return {  
20 - a: common_vendor.f(__props.shop.goods_detail, (it, idx, i0) => {  
21 - return common_vendor.e({  
22 - a: it.image,  
23 - b: common_vendor.t(it.goods_name),  
24 - c: common_vendor.t(it.goods_attr ? it.goods_attr : "")  
25 - }, ![2].includes(__props.shop.order_status) ? {  
26 - d: common_vendor.t(it.total_num)  
27 - } : {}, {  
28 - e: it.goodstatus != 3  
29 - }, it.goodstatus != 3 ? common_vendor.e({  
30 - f: common_vendor.t(it.goods_price),  
31 - g: __props.shop.goodstatus_text === 2  
32 - }, __props.shop.goodstatus_text === 2 ? {  
33 - h: common_vendor.t(it.line_price)  
34 - } : {}, {  
35 - i: common_vendor.t(textHandler(__props.shop.order_status)),  
36 - j: common_vendor.t(it.total_price)  
37 - }) : common_vendor.e({  
38 - k: [2].includes(__props.shop.order_status)  
39 - }, [2].includes(__props.shop.order_status) ? {  
40 - l: common_vendor.t(__props.shop.score),  
41 - m: common_vendor.t(it.total_num)  
42 - } : {  
43 - n: common_vendor.t(textHandler(__props.shop.order_status)),  
44 - o: common_vendor.t(it.coscore),  
45 - p: common_vendor.t(it.diff_price)  
46 - }), {  
47 - q: it.id  
48 - });  
49 - }),  
50 - b: ![2].includes(__props.shop.order_status)  
51 - };  
52 - };  
53 - }  
54 -};  
55 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/orderShop.vue"]]);  
56 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.shop {  
28 - display: flex;  
29 - justify-content: space-between;  
30 - margin-bottom: 32rpx;  
31 -}  
32 -.shop .shopPhoto {  
33 - width: 180rpx;  
34 - height: 180rpx;  
35 - margin-right: 16rpx;  
36 -}  
37 -.shop .shopPhoto image {  
38 - width: 180rpx;  
39 - height: 180rpx;  
40 - border-radius: 8rpx;  
41 -}  
42 -.shop .info {  
43 - width: 100%;  
44 - display: flex;  
45 - flex-direction: column;  
46 - justify-content: space-between;  
47 -}  
48 -.shop .info .shopTitle {  
49 - color: #323233ff;  
50 - font-size: 26rpx;  
51 - font-weight: 700;  
52 -}  
53 -.shop .info .desc {  
54 - margin: 16rpx 0;  
55 - color: #00000066;  
56 - font-size: 20rpx;  
57 -}  
58 -.shop .info .num {  
59 - color: #757d8cff;  
60 - font-size: 26rpx;  
61 - text-align: right;  
62 -}  
63 -.shop .info .priceBox {  
64 - margin-top: 14rpx;  
65 -}  
66 -.shop .info .priceBox text {  
67 - color: #ff3d3dff;  
68 - font-size: 28rpx;  
69 -}  
70 -.shop .info .priceBox .shi {  
71 - color: #ff3d3dff;  
72 - font-size: 28rpx;  
73 - margin-top: 4rpx;  
74 - margin-right: 2rpx;  
75 -}  
76 -.shop .info .priceBox .reality {  
77 - color: #fc4338ff;  
78 - font-size: 24rpx;  
79 -}  
80 -.shop .info .priceBox .reality text {  
81 - color: #fc4338ff;  
82 - font-size: 22rpx;  
83 - font-weight: 700;  
84 - margin-top: 10rpx;  
85 -}  
86 -.shop .info .priceBox .reality .price {  
87 - color: #fc4338ff;  
88 - font-size: 40rpx;  
89 - font-weight: 700;  
90 -}  
91 -.shop .info .pointsShop {  
92 - display: flex;  
93 - justify-content: flex-end;  
94 - margin-top: 14rpx;  
95 -}  
96 -.shop .info .pointsShop text {  
97 - color: #fc4338ff;  
98 - font-size: 24rpx;  
99 -}  
100 -.shop .info .pointsShop image {  
101 - width: 30rpx;  
102 - height: 30rpx;  
103 -}  
104 -.shop .info .pointsShop .points {  
105 - margin: 0 28rpx 0 14rpx;  
106 - color: #ee0a24ff;  
107 - font-size: 28rpx;  
108 - font-weight: 700;  
109 -}  
110 -.shop .info .pointsShop .pointsPrice {  
111 - color: #ff3d3dff;  
112 - font-size: 26rpx;  
113 -}  
114 -.linePrice {  
115 - text-decoration: line-through;  
116 - color: rgba(0, 0, 0, 0.3) !important;  
117 - display: block;  
118 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -var api_index = require("../api/index.js");  
4 -require("../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_number_box2 = common_vendor.resolveComponent("u-number-box");  
7 - const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");  
8 - (_easycom_u_number_box2 + _easycom_u_popup2)();  
9 -}  
10 -const _easycom_u_number_box = () => "../uni_modules/uview-plus/components/u-number-box/u-number-box.js";  
11 -const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";  
12 -if (!Math) {  
13 - (_easycom_u_number_box + _easycom_u_popup)();  
14 -}  
15 -const _sfc_main = {  
16 - props: {  
17 - btnType: {  
18 - type: Number,  
19 - default: 0  
20 - },  
21 - shopType: Number,  
22 - payPopShow: {  
23 - type: Boolean,  
24 - default: false  
25 - },  
26 - shopDetail: {  
27 - type: Object,  
28 - default: {}  
29 - },  
30 - moreSpec: {  
31 - type: Object,  
32 - default: {}  
33 - }  
34 - },  
35 - emits: ["close"],  
36 - setup(__props, { emit }) {  
37 - const props = __props;  
38 - let data = common_vendor.reactive({  
39 - value: 1,  
40 - speList: [],  
41 - indexList: [],  
42 - specID: [],  
43 - specIdList: [],  
44 - formList: {},  
45 - goods_spec_id: ""  
46 - });  
47 - common_vendor.onMounted(() => {  
48 - setTimeout(() => {  
49 - console.log("\u591A\u89C4\u683C", props.moreSpec);  
50 - if (props.moreSpec != null) {  
51 - let spec = props.moreSpec.spec_attr;  
52 - let mateSpecId = props.moreSpec.spec_list;  
53 - data.speList = spec;  
54 - data.specIdList = mateSpecId;  
55 - spec.forEach((item, index) => {  
56 - data.indexList.push({ curIndex: 0 });  
57 - data.specID.push(item.spec_items[0].item_id);  
58 - });  
59 - data.goods_spec_id = data.specID.join("_");  
60 - makeUpId();  
61 - } else {  
62 - data.goods_spec_id = props.shopDetail.spec[0].goods_spec_id;  
63 - }  
64 - }, 200);  
65 - });  
66 - const close = () => {  
67 - emit("close");  
68 - };  
69 - const valChange = (e) => {  
70 - console.log("\u6570\u91CF" + e.value);  
71 - data.value = e.value;  
72 - };  
73 - const popBtn = () => {  
74 - let shopType = props.shopDetail.goodstatus;  
75 - let buyData = { id: props.shopDetail.id, num: data.value, specId: data.goods_spec_id };  
76 - console.log("\u5F53\u524D\u503C\u4E3A: ", buyData);  
77 - props.btnType == 0 ? getAddCars() : common_vendor.index.navigateTo({ url: `/pages/shopCar/confirmOrder?params=${JSON.stringify(buyData)}&shopType=${shopType}` });  
78 - };  
79 - const checkSpec = (index, it, idx) => {  
80 - console.log(index, it, idx);  
81 - data.indexList[index].curIndex = idx;  
82 - if (data.speList.length == 1) {  
83 - data.specID.splice(index, 1, it.item_id);  
84 - } else {  
85 - data.specID.splice(index, data.specID.length > 1 ? 1 : 0, it.item_id);  
86 - }  
87 - makeUpId();  
88 - };  
89 - const makeUpId = () => {  
90 - if (data.specID.length == data.speList.length) {  
91 - let str = data.specIdList.find((item) => item.spec_sku_id == data.specID.join("_"));  
92 - data.formList = str.form;  
93 - data.goods_spec_id = str.goods_spec_id;  
94 - console.log("\u67E5\u627E\u5230\u7684\u89C4\u683C", str, data.specID.join("_"));  
95 - }  
96 - };  
97 - const getAddCars = async () => {  
98 - try {  
99 - let params = {  
100 - goods_id: props.shopDetail.id,  
101 - num: data.value,  
102 - goods_spec_id: data.goods_spec_id  
103 - };  
104 - const res = await api_index.getAddCar(params);  
105 - close();  
106 - common_vendor.index.showToast({ title: "\u6210\u529F\u52A0\u5165\u8D2D\u7269\u8F66~", icon: "none" });  
107 - console.log("getAddCar", res);  
108 - } catch (err) {  
109 - common_vendor.index.showToast({ title: err, icon: "none" });  
110 - console.log("getAddCar", err);  
111 - }  
112 - };  
113 - return (_ctx, _cache) => {  
114 - return common_vendor.e({  
115 - a: __props.shopType !== 3  
116 - }, __props.shopType !== 3 ? {  
117 - b: common_vendor.t(__props.btnType == 0 ? "\u52A0\u5165\u8D2D\u7269\u8F66" : "\u7ACB\u5373\u8D2D\u4E70")  
118 - } : {}, {  
119 - c: __props.shopType === 3  
120 - }, __props.shopType === 3 ? {} : {}, {  
121 - d: __props.shopDetail.image,  
122 - e: common_vendor.t(__props.shopDetail.name),  
123 - f: __props.shopDetail.goodstatus !== 3  
124 - }, __props.shopDetail.goodstatus !== 3 ? {  
125 - g: common_vendor.t(__props.shopDetail.spec[0].goods_price)  
126 - } : {  
127 - h: common_vendor.t(__props.shopDetail.spec[0].coscore)  
128 - }, {  
129 - i: common_vendor.f(common_vendor.unref(data).speList, (item, index, i0) => {  
130 - return {  
131 - a: common_vendor.t(item.group_name),  
132 - b: common_vendor.f(item.spec_items, (it, idx, i1) => {  
133 - return {  
134 - a: common_vendor.t(it.spec_value),  
135 - b: it.item_id,  
136 - c: common_vendor.n(idx == common_vendor.unref(data).indexList[index].curIndex ? "checked" : ""),  
137 - d: common_vendor.o(($event) => checkSpec(index, it, idx), it.item_id)  
138 - };  
139 - }),  
140 - c: item.group_id  
141 - };  
142 - }),  
143 - j: common_vendor.o(valChange),  
144 - k: common_vendor.o(($event) => _ctx.value = $event),  
145 - l: common_vendor.p({  
146 - modelValue: _ctx.value  
147 - }),  
148 - m: __props.btnType == 0  
149 - }, __props.btnType == 0 ? {  
150 - n: common_vendor.o(popBtn)  
151 - } : {  
152 - o: common_vendor.t(__props.shopDetail.goodstatus == 3 ? "\u7ACB\u5373\u5151\u6362" : "\u7ACB\u5373\u8D2D\u4E70"),  
153 - p: common_vendor.o(popBtn)  
154 - }, {  
155 - q: common_vendor.o(close),  
156 - r: common_vendor.o(_ctx.open),  
157 - s: common_vendor.p({  
158 - show: __props.payPopShow,  
159 - mode: "bottom",  
160 - closeable: true,  
161 - round: "18"  
162 - })  
163 - });  
164 - };  
165 - }  
166 -};  
167 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/popPay.vue"]]);  
168 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.popBox {  
28 - padding: 32rpx 24rpx 0;  
29 -}  
30 -.popBox .title {  
31 - color: #000000e6;  
32 - font-size: 32rpx;  
33 - font-weight: 700;  
34 -}  
35 -.popBox .topBox {  
36 - margin-top: 32rpx;  
37 -}  
38 -.popBox .topBox .shopPhoto {  
39 - width: 134rpx;  
40 - height: 138rpx;  
41 - margin-right: 24rpx;  
42 -}  
43 -.popBox .topBox .shopPhoto image {  
44 - border-radius: 12rpx;  
45 - width: 134rpx;  
46 - height: 138rpx;  
47 -}  
48 -.popBox .topBox .price {  
49 - display: flex;  
50 - flex-direction: column;  
51 - justify-content: space-between;  
52 - height: 110rpx;  
53 -}  
54 -.popBox .topBox .price .money {  
55 - color: #fc4338ff;  
56 - font-size: 32rpx;  
57 - font-weight: 600;  
58 -}  
59 -.popBox .topBox .price .shopName {  
60 - color: #000000e6;  
61 - font-size: 30rpx;  
62 - font-weight: 700;  
63 - line-height: 40rpx;  
64 -}  
65 -.popBox .specificationsTile {  
66 - color: #00000099;  
67 - font-size: 28rpx;  
68 - margin-bottom: 16rpx;  
69 - border: 1rpx solid transparent;  
70 -}  
71 -.popBox .colorBox {  
72 - display: flex;  
73 - flex-wrap: wrap;  
74 -}  
75 -.popBox .colorBox .item {  
76 - margin-right: 16rpx;  
77 - padding: 8rpx 32rpx;  
78 - border-radius: 46rpx;  
79 - color: #000;  
80 - font-size: 24rpx;  
81 - background: #1918330f;  
82 - border: 1rpx solid transparent;  
83 -}  
84 -.popBox .colorBox .checked {  
85 - color: #f43736ff;  
86 - font-size: 24rpx;  
87 - border-radius: 46rpx;  
88 - border: 1rpx solid #f43736ff;  
89 - background: #fff1efff;  
90 -}  
91 -.popBox .numBox {  
92 - margin-top: 92rpx;  
93 -}  
94 -.popBox .numBox .rightTitle {  
95 - color: #00000099;  
96 - font-size: 28rpx;  
97 -}  
98 -.popBox .numBox .rightTitle .surplus {  
99 - margin-left: 12rpx;  
100 - color: #ec3323ff;  
101 - font-size: 24rpx;  
102 -}  
103 -.popBox .payBox {  
104 - margin-top: 48rpx;  
105 -}  
106 -.popBox .payBox .payMode {  
107 - color: #000000e6;  
108 - font-size: 28rpx;  
109 -}  
110 -.popBox .payBox .payMode image {  
111 - margin-right: 12rpx;  
112 - width: 32rpx;  
113 - height: 32rpx;  
114 -}  
115 -.popBox .payBox .yue {  
116 - color: #f33f2e;  
117 - font-size: 30rpx;  
118 - font-weight: 700;  
119 -}  
120 -.popBox .payBox .yue text {  
121 - margin-top: 5rpx;  
122 - color: #f33f2e;  
123 - font-size: 24rpx;  
124 -}  
125 -.popBox .popBtn {  
126 - border-radius: 280rpx;  
127 - margin: 50rpx auto 0;  
128 - width: 686rpx;  
129 - height: 88rpx;  
130 - color: #ffffffff;  
131 - font-size: 32rpx;  
132 - font-weight: 700;  
133 - background: linear-gradient(139deg, #ffac0bff 0%, #ffc24aff 100%);  
134 -}  
135 -.popBox .popBtn1 {  
136 - margin: 50rpx auto 0;  
137 - width: 686rpx;  
138 - height: 88rpx;  
139 - border-radius: 96rpx;  
140 - opacity: 1;  
141 - color: #ffffffff;  
142 - font-size: 32rpx;  
143 - font-weight: 700;  
144 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
145 -}  
146 -.popBox .notHave {  
147 - background: #ffd5d1ff;  
148 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - disabled: {  
6 - type: Boolean,  
7 - default: true  
8 - },  
9 - keyWord: {  
10 - type: String,  
11 - default: ""  
12 - }  
13 - },  
14 - emits: ["doSearchs", "input"],  
15 - setup(__props, { emit }) {  
16 - const props = __props;  
17 - let inputText = common_vendor.ref("");  
18 - common_vendor.onMounted(() => {  
19 - inputText.value = props.keyWord;  
20 - });  
21 - const doSearchs = (e) => {  
22 - if (e == 0) {  
23 - if (inputText.value.trim() == "")  
24 - return;  
25 - emit("doSearchs", inputText.value);  
26 - } else {  
27 - emit("doSearchs", e.detail.value);  
28 - }  
29 - };  
30 - const input = (e) => {  
31 - if (e.detail.value == "") {  
32 - emit("input", e.detail.value);  
33 - }  
34 - };  
35 - const jump = () => {  
36 - props.disabled ? common_vendor.index.navigateTo({ url: "/pages/index/search" }) : "";  
37 - };  
38 - return (_ctx, _cache) => {  
39 - return {  
40 - a: __props.disabled,  
41 - b: common_vendor.o(doSearchs),  
42 - c: common_vendor.o([($event) => common_vendor.isRef(inputText) ? inputText.value = $event.detail.value : inputText = $event.detail.value, input]),  
43 - d: common_vendor.unref(inputText),  
44 - e: common_vendor.o(($event) => doSearchs(0)),  
45 - f: common_vendor.o(jump)  
46 - };  
47 - };  
48 - }  
49 -};  
50 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/searchBox.vue"]]);  
51 -wx.createComponent(Component); 1 +"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);
1 { 1 {
2 "component": true, 2 "component": true,
3 - "usingComponents": {} 3 + "usingComponents": {
  4 + "u-search": "../uni_modules/uview-plus/components/u-search/u-search"
  5 + }
4 } 6 }
1 -<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>  
  1 +<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>
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.boxs {  
28 - width: 100%;  
29 - height: 96rpx;  
30 - padding: 18rpx 32rpx;  
31 - box-sizing: border-box;  
32 -}  
33 -.boxs .searchInput {  
34 - width: 100%;  
35 - height: 100%;  
36 - background-color: #FFFFFF;  
37 - border-radius: 38rpx;  
38 - padding: 14rpx 24rpx;  
39 - box-sizing: border-box;  
40 -}  
41 -.boxs .searchInput .left image {  
42 - margin-right: 8rpx;  
43 - width: 32rpx;  
44 - height: 32rpx;  
45 -}  
46 -.boxs .searchInput .left input {  
47 - width: 500rpx !important;  
48 -}  
49 -.boxs .searchInput .left .ples {  
50 - color: #00000042;  
51 - font-size: 26rpx;  
52 -}  
53 -.boxs .searchInput .right .line {  
54 - height: 30rpx;  
55 - width: 1rpx;  
56 - background-color: #FC6A3D;  
57 - margin-right: 14rpx;  
58 -}  
59 -.boxs .searchInput .right text {  
60 - font-size: 28rpx;  
61 - font-weight: 700;  
62 - color: #FB753C;  
63 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - isPoints: {  
6 - type: Boolean,  
7 - default: false  
8 - },  
9 - info: {  
10 - type: Object,  
11 - default: {}  
12 - }  
13 - },  
14 - setup(__props) {  
15 - common_vendor.onMounted(() => {  
16 - });  
17 - return (_ctx, _cache) => {  
18 - return common_vendor.e({  
19 - a: common_vendor.t(__props.info.name),  
20 - b: __props.info.goodstatus == 3  
21 - }, __props.info.goodstatus == 3 ? {  
22 - c: common_vendor.t(__props.info.spec[0].coscore)  
23 - } : common_vendor.e({  
24 - d: common_vendor.t(__props.info.spec[0].goods_price),  
25 - e: __props.info.goodstatus == 2  
26 - }, __props.info.goodstatus == 2 ? {  
27 - f: common_vendor.t(__props.info.spec[0].line_price)  
28 - } : {}), {  
29 - g: common_vendor.t(__props.info.goodstatus == 1 ? "\u5DF2\u552E\uFF1A" : __props.info.goodstatus == 2 ? "\u5E93\u5B58\uFF1A" : "\u5DF2\u5151\uFF1A"),  
30 - h: common_vendor.t(__props.info.goodstatus != 2 ? __props.info.sales_actual : __props.info.spec[0].stock_num)  
31 - });  
32 - };  
33 - }  
34 -};  
35 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shopInfo.vue"]]);  
36 -wx.createComponent(Component); 1 +"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);
1 -<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>  
  1 +<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>
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.infoBox .name {  
28 - height: 80rpx;  
29 - color: #000000e6;  
30 - font-size: 30rpx;  
31 - font-weight: 700;  
32 - line-height: 40rpx;  
33 - margin-bottom: 32rpx;  
34 -}  
35 -.infoBox .priceBox .price text {  
36 - color: #00000042;  
37 - font-size: 24rpx;  
38 - text-decoration: line-through;  
39 - margin-left: 8rpx;  
40 - margin-top: 16rpx;  
41 -}  
42 -.infoBox .priceBox .price .new {  
43 - color: #fc4338ff;  
44 - font-size: 40rpx;  
45 - font-weight: 700;  
46 -}  
47 -.infoBox .priceBox .price .points {  
48 - color: #fc4338ff;  
49 - font-size: 22rpx;  
50 - margin: 10rpx 0 0 8rpx;  
51 -}  
52 -.infoBox .priceBox .inventory {  
53 - color: #00000066;  
54 - font-size: 22rpx;  
55 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -const _sfc_main = {  
4 - props: {  
5 - shopWidth: {  
6 - type: Number,  
7 - default: 322  
8 - },  
9 - shopHeight: {  
10 - type: Number,  
11 - default: 344  
12 - },  
13 - pointShop: {  
14 - type: Boolean,  
15 - default: false  
16 - },  
17 - list: {  
18 - type: Array,  
19 - default: []  
20 - },  
21 - isClass: Boolean,  
22 - isTejia: { type: Boolean, default: false }  
23 - },  
24 - setup(__props) {  
25 - const props = __props;  
26 - common_vendor.useCssVars((_ctx) => ({  
27 - "fd89c8f4-wide": wide.value,  
28 - "fd89c8f4-heig": heig.value  
29 - }));  
30 - const wide = common_vendor.ref(props.shopWidth + "rpx");  
31 - const heig = common_vendor.ref(props.shopHeight + "rpx");  
32 - common_vendor.onMounted(() => {  
33 - });  
34 - const toDetaile = (id) => {  
35 - common_vendor.index.navigateTo({  
36 - url: `/pages/index/shopDetaile?id=${id}`  
37 - });  
38 - };  
39 - console.log(1);  
40 - return (_ctx, _cache) => {  
41 - return {  
42 - a: common_vendor.f(__props.list, (item, k0, i0) => {  
43 - return common_vendor.e({  
44 - a: item.image,  
45 - b: common_vendor.t(item.name),  
46 - c: common_vendor.t(item.describe)  
47 - }, !__props.pointShop ? common_vendor.e({  
48 - d: common_vendor.t(item.goods_price || item.spprice),  
49 - e: __props.shopHeight == 322 || __props.isTejia  
50 - }, __props.shopHeight == 322 || __props.isTejia ? {  
51 - f: common_vendor.t(item.line_price)  
52 - } : {}, {  
53 - g: __props.isClass  
54 - }, __props.isClass ? {  
55 - h: common_vendor.t(item.spyprice)  
56 - } : {}) : {  
57 - i: common_vendor.t(item.coscore)  
58 - }, __props.shopWidth == 344 && !__props.isTejia ? {  
59 - j: common_vendor.t(__props.pointShop ? "\u5DF2\u5151\u6362\uFF1A" : "\u5DF2\u552E\uFF1A"),  
60 - k: common_vendor.t(item.sales_actual)  
61 - } : {}, __props.shopHeight == 322 || __props.isTejia ? {  
62 - l: common_vendor.t(item.stock_num)  
63 - } : {}, {  
64 - m: item.id,  
65 - n: common_vendor.o(($event) => toDetaile(item.id), item.id)  
66 - });  
67 - }),  
68 - b: !__props.pointShop,  
69 - c: __props.shopWidth == 344 && !__props.isTejia,  
70 - d: __props.shopHeight == 322 || __props.isTejia,  
71 - e: common_vendor.s(_ctx.__cssVars())  
72 - };  
73 - };  
74 - }  
75 -};  
76 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/shops.vue"]]);  
77 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.shopBox {  
28 - width: var(--fd89c8f4-wide);  
29 - border-radius: 12rpx;  
30 - background: #ffffffff;  
31 - margin-bottom: 14rpx;  
32 -}  
33 -.shopBox .shopPhoto {  
34 - width: var(--fd89c8f4-wide);  
35 - height: var(--fd89c8f4-heig);  
36 -}  
37 -.shopBox .shopPhoto image {  
38 - width: 100%;  
39 - height: 100%;  
40 - border-radius: 12rpx 12rpx 0 0;  
41 -}  
42 -.shopBox .btomBox {  
43 - padding: 0 16rpx 16rpx;  
44 -}  
45 -.shopBox .btomBox .shopName {  
46 - color: #000000e6;  
47 - font-size: 26rpx;  
48 - line-height: 32rpx;  
49 - margin: 16rpx 0 8rpx;  
50 -}  
51 -.shopBox .btomBox .desc {  
52 - color: #00000066;  
53 - font-size: 20rpx;  
54 - margin-bottom: 12rpx;  
55 -}  
56 -.shopBox .btomBox .shopPrice {  
57 - margin-bottom: 8rpx;  
58 -}  
59 -.shopBox .btomBox .shopPrice .new {  
60 - color: #fc4338ff;  
61 - font-size: 28rpx;  
62 - font-weight: 700;  
63 -}  
64 -.shopBox .btomBox .shopPrice .original {  
65 - margin-left: 4rpx;  
66 - color: #00000042;  
67 - font-size: 20rpx;  
68 - text-decoration: line-through;  
69 -}  
70 -.shopBox .btomBox .points {  
71 - color: #fc4338ff;  
72 - font-size: 28rpx;  
73 - font-weight: 700;  
74 -}  
75 -.shopBox .btomBox .points image {  
76 - margin-left: 4rpx;  
77 - width: 24rpx;  
78 - height: 24rpx;  
79 -}  
80 -.shopBox .btomBox .sold {  
81 - color: #00000066;  
82 - font-size: 22rpx;  
83 - line-height: 28rpx;  
84 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../common/vendor.js");  
3 -if (!Array) {  
4 - const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");  
5 - _easycom_u_popup2();  
6 -}  
7 -const _easycom_u_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";  
8 -if (!Math) {  
9 - _easycom_u_popup();  
10 -}  
11 -const _sfc_main = {  
12 - props: {  
13 - tipShow: {  
14 - type: Boolean,  
15 - default: false  
16 - },  
17 - integral: {  
18 - type: String,  
19 - default: 0  
20 - },  
21 - tipType: {  
22 - type: Number,  
23 - default: 0  
24 - }  
25 - },  
26 - emits: ["pointsBtns"],  
27 - setup(__props, { emit }) {  
28 - common_vendor.ref(false);  
29 - const pointsBtns = (type) => {  
30 - emit("pointsBtns", type);  
31 - };  
32 - return (_ctx, _cache) => {  
33 - return common_vendor.e({  
34 - a: __props.tipType == 0  
35 - }, __props.tipType == 0 ? {  
36 - b: common_vendor.t(__props.integral)  
37 - } : {}, {  
38 - 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"),  
39 - d: common_vendor.o(($event) => pointsBtns(0)),  
40 - e: common_vendor.o(($event) => pointsBtns(1)),  
41 - f: common_vendor.o(($event) => pointsBtns(0)),  
42 - g: common_vendor.p({  
43 - show: __props.tipShow,  
44 - round: 16,  
45 - safeAreaInsetBottom: false,  
46 - mode: "center"  
47 - })  
48 - });  
49 - };  
50 - }  
51 -};  
52 -var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/componets/tipPop.vue"]]);  
53 -wx.createComponent(Component); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.pointsPop {  
28 - width: 622rpx;  
29 - padding: 26rpx 32rpx 28rpx;  
30 - box-sizing: border-box;  
31 -}  
32 -.pointsPop .popTitle {  
33 - color: #fc4338ff;  
34 - font-size: 48rpx;  
35 - font-weight: 700;  
36 -}  
37 -.pointsPop .popTitle text {  
38 - margin: 12rpx 0 0 12rpx;  
39 - color: #fc4338ff;  
40 - font-size: 22rpx;  
41 -}  
42 -.pointsPop .popTips {  
43 - margin: 37rpx 0 52rpx;  
44 - color: #000000e6;  
45 - font-size: 32rpx;  
46 - font-weight: 700;  
47 -}  
48 -.pointsPop .pointsBtn {  
49 - width: 100%;  
50 -}  
51 -.pointsPop .pointsBtn .clean {  
52 - width: 264rpx;  
53 - height: 76rpx;  
54 - border-radius: 46rpx;  
55 - color: #000000e6;  
56 - font-size: 28rpx;  
57 - font-weight: 700;  
58 - background: #f7f8faff;  
59 -}  
60 -.pointsPop .pointsBtn .yes {  
61 - width: 264rpx;  
62 - height: 84rpx;  
63 - border-radius: 280rpx;  
64 - color: #ffffffff;  
65 - font-size: 28rpx;  
66 - font-weight: 700;  
67 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
68 -}  
  1 +.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%)}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -const _sfc_main = {  
6 - setup(__props) {  
7 - let data = common_vendor.reactive({  
8 - cur: 0,  
9 - firstClass: [],  
10 - titleList: []  
11 - });  
12 - common_vendor.onShow(() => {  
13 - getClassifications();  
14 - });  
15 - common_vendor.onHide(() => {  
16 - console.log(11222);  
17 - common_vendor.index.removeStorage({ key: "classId" });  
18 - data.cur = 0;  
19 - });  
20 - const bindToView = (item, index) => {  
21 - data.cur = item.id;  
22 - data.titleList = item.two;  
23 - };  
24 - const getClassifications = async () => {  
25 - try {  
26 - const res = await api_index.getTwoClassification();  
27 - console.log(res, "\u4E09\u7EA7\u5206\u7C7B");  
28 - data.cur = common_vendor.index.getStorageSync("classId") || 0;  
29 - data.firstClass = res;  
30 - if (data.cur === 0) {  
31 - data.cur = res[0].id;  
32 - data.titleList = res[0].two;  
33 - } else {  
34 - data.titleList = res.find((item) => item.id === data.cur).two;  
35 - }  
36 - console.log("getClassification", res);  
37 - } catch (err) {  
38 - common_vendor.index.showToast({ title: err, icon: "none" });  
39 - console.log("getClassification", err);  
40 - }  
41 - };  
42 - const toThreeClassHandler = (pid) => common_vendor.index.navigateTo({ url: `/pages/class/classList?pid=${pid}` });  
43 - return (_ctx, _cache) => {  
44 - return {  
45 - a: common_vendor.f(common_vendor.unref(data).firstClass, (item, index, i0) => {  
46 - return {  
47 - a: common_vendor.t(item.name),  
48 - b: common_vendor.n(common_vendor.unref(data).cur == item.id ? "check" : ""),  
49 - c: item.id,  
50 - d: common_vendor.o(($event) => bindToView(item), item.id)  
51 - };  
52 - }),  
53 - b: common_vendor.f(common_vendor.unref(data).titleList, (item, k0, i0) => {  
54 - return {  
55 - a: common_vendor.t(item.name),  
56 - b: common_vendor.f(item.three, (it, k1, i1) => {  
57 - return {  
58 - a: it.image_text,  
59 - b: common_vendor.t(it.name),  
60 - c: it.id,  
61 - d: common_vendor.o(($event) => toThreeClassHandler(it.id), it.id)  
62 - };  
63 - })  
64 - };  
65 - })  
66 - };  
67 - };  
68 - }  
69 -};  
70 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/class/class.vue"]]);  
71 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.container {  
28 - width: 100vw;  
29 - height: 100vh;  
30 -}  
31 -.container .rightBox {  
32 - width: 160rpx;  
33 - height: 100vh;  
34 - background: #f5f5f5ff;  
35 -}  
36 -.container .rightBox .rightItem {  
37 - width: 160rpx;  
38 - height: 104rpx;  
39 - background: #f5f5f5ff;  
40 - border: 0 solid #979797ff;  
41 -}  
42 -.container .rightBox .check {  
43 - width: 160rpx;  
44 - height: 104rpx;  
45 - border-radius: 32rpx 0 0 32rpx;  
46 - opacity: 1;  
47 - color: #f43736ff;  
48 - font-size: 28rpx;  
49 - font-weight: 700;  
50 - background: #ffffffff;  
51 -}  
52 -.container .scroller {  
53 - height: 100vh;  
54 - width: 100%;  
55 - padding: 0 32rpx 0 24rpx;  
56 - box-sizing: border-box;  
57 -}  
58 -.container .scroller .left {  
59 - width: 100%;  
60 - padding: 24rpx 24rpx 40rpx;  
61 - box-sizing: border-box;  
62 - opacity: 1;  
63 - background: #ffffffff;  
64 - margin-bottom: 24rpx;  
65 -}  
66 -.container .scroller .left .title {  
67 - color: #323233ff;  
68 - font-size: 28rpx;  
69 - font-weight: 700;  
70 - margin-bottom: 22rpx;  
71 -}  
72 -.container .scroller .left .shopBpx {  
73 - width: 100%;  
74 - display: flex;  
75 - flex-wrap: wrap;  
76 -}  
77 -.container .scroller .left .shopBpx .shop {  
78 - width: 162rpx;  
79 - margin-bottom: 24rpx;  
80 - display: inline-grid;  
81 -}  
82 -.container .scroller .left .shopBpx .shop .name {  
83 - color: #646566ff;  
84 - font-size: 24rpx;  
85 - text-align: center;  
86 -}  
87 -.container .scroller .left .shopBpx .shop image {  
88 - width: 128rpx;  
89 - height: 128rpx;  
90 - margin-bottom: 8rpx;  
91 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Math) {  
6 - (search + shops)();  
7 -}  
8 -const search = () => "../../componets/searchBox.js";  
9 -const shops = () => "../../componets/shops.js";  
10 -const _sfc_main = {  
11 - setup(__props) {  
12 - const shopList = common_vendor.ref([]);  
13 - common_vendor.onLoad(async ({ pid }) => {  
14 - const res = await api_index.getCategoryGoods({ pid });  
15 - shopList.value = res;  
16 - console.log(res, "\u5206\u7C7B\u5546\u54C1\u5217\u8868");  
17 - });  
18 - return (_ctx, _cache) => {  
19 - return common_vendor.e({  
20 - a: common_vendor.p({  
21 - list: shopList.value,  
22 - shopWidth: 344,  
23 - shopHeight: 344,  
24 - isClass: true  
25 - }),  
26 - b: !shopList.value.length  
27 - }, !shopList.value.length ? {} : {});  
28 - };  
29 - }  
30 -};  
31 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/class/classList.vue"]]);  
32 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -page {  
28 - background: #f7f8fa;  
29 -}  
30 -.mainBox {  
31 - width: 100%;  
32 - padding: 16rpx 24rpx;  
33 - box-sizing: border-box;  
34 -}  
35 -.null {  
36 - margin-top: 266rpx;  
37 -}  
38 -.null text {  
39 - position: relative;  
40 - margin-top: -80rpx;  
41 - color: #00000066;  
42 - font-size: 26rpx;  
43 -}  
44 -.null image {  
45 - width: 348rpx;  
46 - height: 348rpx;  
47 -}  
  1 +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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -if (!Array) {  
4 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
5 - _easycom_u_navbar2();  
6 -}  
7 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
8 -if (!Math) {  
9 - (_easycom_u_navbar + comment)();  
10 -}  
11 -const comment = () => "../../componets/comment.js";  
12 -const _sfc_main = {  
13 - setup(__props) {  
14 - const all = common_vendor.ref([]);  
15 - common_vendor.onLoad((e) => all.value = JSON.parse(e.allCommentList));  
16 - return (_ctx, _cache) => {  
17 - return {  
18 - a: common_vendor.p({  
19 - bgColor: "#fff",  
20 - title: "\u8BC4\u8BBA",  
21 - placeholder: true,  
22 - autoBack: true  
23 - }),  
24 - b: common_vendor.p({  
25 - commentList: all.value  
26 - })  
27 - };  
28 - };  
29 - }  
30 -};  
31 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/allComment.vue"]]);  
32 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.boxs {  
28 - padding: 40rpx 24rpx;  
29 -}  
  1 +.boxs{padding:40rpx 24rpx}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - _easycom_u_navbar2();  
8 -}  
9 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
10 -if (!Math) {  
11 - (_easycom_u_navbar + search + shops)();  
12 -}  
13 -const search = () => "../../componets/searchBox.js";  
14 -const shops = () => "../../componets/shops.js";  
15 -const _sfc_main = {  
16 - setup(__props) {  
17 - common_vendor.onShow(() => {  
18 - getIndexs();  
19 - });  
20 - let shopList = common_vendor.ref([]);  
21 - const getIndexs = async () => {  
22 - try {  
23 - const res = await api_index.getIndex();  
24 - shopList.value = res.tjgoods;  
25 - } catch (err) {  
26 - common_vendor.index.showToast({ title: err, icon: "none" });  
27 - console.log("getIndex", err);  
28 - }  
29 - };  
30 - return (_ctx, _cache) => {  
31 - return common_vendor.e({  
32 - a: common_vendor.p({  
33 - bgColor: "#F6F8FA",  
34 - title: "\u7279\u4EF7\u4E13\u533A",  
35 - placeholder: true,  
36 - autoBack: true  
37 - }),  
38 - b: common_vendor.p({  
39 - list: common_vendor.unref(shopList),  
40 - shopWidth: 344,  
41 - shopHeight: 344,  
42 - pointShop: false,  
43 - isTejia: true  
44 - }),  
45 - c: !common_vendor.unref(shopList).length  
46 - }, !common_vendor.unref(shopList).length ? {} : {});  
47 - };  
48 - }  
49 -};  
50 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/bargainPrice.vue"]]);  
51 -wx.createPage(MiniProgramPage); 1 +"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(_);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -page {  
28 - background: #f6f8fa;  
29 -}  
30 -.mainBox {  
31 - width: 100%;  
32 - padding: 16rpx 24rpx;  
33 - box-sizing: border-box;  
34 -}  
35 -.null {  
36 - margin-top: 266rpx;  
37 -}  
38 -.null text {  
39 - position: relative;  
40 - margin-top: -80rpx;  
41 - color: #00000066;  
42 - font-size: 26rpx;  
43 -}  
44 -.null image {  
45 - width: 348rpx;  
46 - height: 348rpx;  
47 -}  
  1 +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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - _easycom_u_navbar2();  
8 -}  
9 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
10 -if (!Math) {  
11 - (_easycom_u_navbar + search + shops)();  
12 -}  
13 -const search = () => "../../componets/searchBox.js";  
14 -const shops = () => "../../componets/shops.js";  
15 -const _sfc_main = {  
16 - setup(__props) {  
17 - const lastPage = common_vendor.ref(1);  
18 - const curPage = common_vendor.ref(1);  
19 - common_vendor.onShow(() => {  
20 - curPage.value = 1;  
21 - data.recommendList.splice(0);  
22 - getIndexs();  
23 - });  
24 - const toRecharg = () => {  
25 - common_vendor.index.navigateTo({  
26 - url: "/pages/mine/recharge"  
27 - });  
28 - };  
29 - let data = common_vendor.reactive({  
30 - classList: [],  
31 - specialList: [],  
32 - recommendList: []  
33 - });  
34 - const jumpClass = (item) => {  
35 - common_vendor.index.setStorageSync("classId", item.id);  
36 - common_vendor.index.switchTab({ url: "/pages/class/class" });  
37 - };  
38 - const jumpClassHandler = () => common_vendor.index.switchTab({ url: "/pages/class/class" });  
39 - const toBargainPriceMoreHandler = () => common_vendor.index.navigateTo({ url: "/pages/index/bargainPrice" });  
40 - const getIndexs = async () => {  
41 - try {  
42 - const res = await api_index.getIndex({ page: curPage.value });  
43 - data.classList = res.fenlei;  
44 - data.specialList = res.tjgoods;  
45 - data.recommendList = data.recommendList.concat(res.goods.data);  
46 - console.log(data.recommendList, "\u63A8\u8350\u5546\u54C1");  
47 - console.log("getIndex", res);  
48 - lastPage.value = res.goods.last_page;  
49 - } catch (err) {  
50 - common_vendor.index.showToast({ title: err, icon: "none" });  
51 - console.log("getIndex", err);  
52 - }  
53 - };  
54 - common_vendor.onReachBottom(() => {  
55 - curPage.value++;  
56 - if (curPage.value >= lastPage.value)  
57 - return;  
58 - api_index.getIndex();  
59 - });  
60 - return (_ctx, _cache) => {  
61 - return {  
62 - a: common_vendor.p({  
63 - bgColor: "transparent"  
64 - }),  
65 - b: common_vendor.o(toRecharg),  
66 - c: common_vendor.f(common_vendor.unref(data).classList, (item, k0, i0) => {  
67 - return {  
68 - a: item.image,  
69 - b: common_vendor.t(item.name),  
70 - c: item.id,  
71 - d: common_vendor.o(($event) => jumpClass(item), item.id)  
72 - };  
73 - }),  
74 - d: common_vendor.o(jumpClassHandler),  
75 - e: common_vendor.o(toBargainPriceMoreHandler),  
76 - f: common_vendor.p({  
77 - list: common_vendor.unref(data).specialList.slice(0, 2),  
78 - shopWidth: 322,  
79 - shopHeight: 322,  
80 - isTejia: true  
81 - }),  
82 - g: common_vendor.p({  
83 - list: common_vendor.unref(data).recommendList,  
84 - shopWidth: 344,  
85 - shopHeight: 344  
86 - })  
87 - };  
88 - };  
89 - }  
90 -};  
91 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/index.vue"]]);  
92 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.u-nav-slot {  
28 - color: #fff;  
29 - font-size: 34rpx;  
30 - font-weight: 700;  
31 -}  
32 -.topBgBox {  
33 - width: 100%;  
34 -}  
35 -.topBgBox image {  
36 - width: 100%;  
37 - height: 528rpx;  
38 -}  
39 -.topBgBox .searchBox {  
40 - width: 100%;  
41 - position: absolute;  
42 - top: 176rpx;  
43 -}  
44 -.topBgBox .searchBox .vip image {  
45 - margin-left: 20rpx;  
46 - width: 718rpx;  
47 - height: 228rpx;  
48 -}  
49 -.classBox {  
50 - display: flex;  
51 - flex-wrap: wrap;  
52 - justify-content: space-between;  
53 - width: 100%;  
54 - padding: 20rpx 56rpx 40rpx;  
55 - box-sizing: border-box;  
56 -}  
57 -.classBox :nth-child(4n) {  
58 - margin-right: 0 !important;  
59 -}  
60 -.classBox .itemClss {  
61 - margin: 0 86rpx 20rpx 0;  
62 -}  
63 -.classBox .itemClss image {  
64 - width: 88rpx;  
65 - height: 88rpx;  
66 - margin-bottom: 24rpx;  
67 -}  
68 -.classBox .itemClss text {  
69 - color: #000000e6;  
70 - font-size: 24rpx;  
71 -}  
72 -.specialOffer {  
73 - position: relative;  
74 - width: 702rpx;  
75 - height: 648rpx;  
76 - margin: 0 auto;  
77 -}  
78 -.specialOffer .pinkBg {  
79 - width: 100%;  
80 - height: 100%;  
81 -}  
82 -.specialOffer .special {  
83 - position: absolute;  
84 - top: 24rpx;  
85 - left: 24rpx;  
86 - width: 654rpx;  
87 - box-sizing: border-box;  
88 -}  
89 -.specialOffer .special .topBox {  
90 - width: 100%;  
91 - margin-bottom: 24rpx;  
92 -}  
93 -.specialOffer .special .topBox .titles .title {  
94 - color: #f84b3bff;  
95 - font-size: 32rpx;  
96 - font-weight: 700;  
97 - line-height: 32rpx;  
98 -}  
99 -.specialOffer .special .topBox .titles text {  
100 - color: #f84b3bff;  
101 - font-size: 20rpx;  
102 - margin-top: 8rpx;  
103 -}  
104 -.specialOffer .special .topBox .more {  
105 - margin-top: 26rpx;  
106 - color: #f84b3bff;  
107 - font-size: 24rpx;  
108 -}  
109 -.specialOffer .special .topBox .more image {  
110 - width: 22rpx;  
111 - height: 22rpx;  
112 -}  
113 -.specialOffer .special .shop {  
114 - width: 654rpx;  
115 - height: 508rpx;  
116 - overflow: hidden;  
117 -}  
118 -.recom {  
119 - color: #323233ff;  
120 - font-size: 30rpx;  
121 - font-weight: 700;  
122 - line-height: 44rpx;  
123 - margin: 40rpx 40rpx 16rpx;  
124 -}  
125 -.recom image {  
126 - width: 32rpx;  
127 - height: 32rpx;  
128 - margin-right: 8rpx;  
129 -}  
130 -.recom text {  
131 - margin-left: 8rpx;  
132 - color: #969799ff;  
133 - font-size: 22rpx;  
134 - margin-top: 10rpx;  
135 -}  
136 -.recomBox {  
137 - width: 100%;  
138 - padding: 0 24rpx;  
139 - box-sizing: border-box;  
140 - background: #f8f8fa;  
141 -}  
  1 +.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}
  1 +"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(_);
  1 +{
  2 + "navigationStyle": "custom",
  3 + "usingComponents": {
  4 + "u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar",
  5 + "u-parse": "../../uni_modules/uview-plus/components/u-parse/u-parse"
  6 + }
  7 +}
  1 +<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>
  1 +.u-content.data-v-aed5e3af{padding:24rpx}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - _easycom_u_navbar2();  
8 -}  
9 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
10 -if (!Math) {  
11 - (_easycom_u_navbar + search + shops)();  
12 -}  
13 -const search = () => "../../componets/searchBox.js";  
14 -const shops = () => "../../componets/shops.js";  
15 -const _sfc_main = {  
16 - setup(__props) {  
17 - let keyWord = common_vendor.ref("");  
18 - let historyrecord = common_vendor.ref([]);  
19 - let shopList = common_vendor.ref([]);  
20 - let searchRes = common_vendor.ref(false);  
21 - common_vendor.ref("");  
22 - common_vendor.ref(1);  
23 - common_vendor.ref(1);  
24 - common_vendor.onLoad(() => {  
25 - getRecords();  
26 - });  
27 - const serachHistroy = (item) => {  
28 - keyWord.value = item;  
29 - getSearchs(item);  
30 - };  
31 - const clearHistory = () => {  
32 - common_vendor.index.showModal({  
33 - title: "\u63D0\u793A",  
34 - content: "\u662F\u5426\u6E05\u7A7A\u5386\u53F2\u8BB0\u5F55",  
35 - success: function(res) {  
36 - if (res.confirm) {  
37 - getDelRecords();  
38 - common_vendor.index.showToast({ title: "\u6E05\u7A7A\u6210\u529F" });  
39 - common_vendor.index.removeStorage({  
40 - key: "searchRecords"  
41 - });  
42 - } else if (res.cancel) {  
43 - console.log("\u7528\u6237\u70B9\u51FB\u53D6\u6D88");  
44 - }  
45 - }  
46 - });  
47 - };  
48 - const doSearchs = (keyword) => {  
49 - if (keyword.trim() != "") {  
50 - getSearchs(keyword);  
51 - }  
52 - };  
53 - const input = (data) => {  
54 - searchRes.value = false;  
55 - shopList.value = [];  
56 - };  
57 - const getSearchs = async (keyWord2) => {  
58 - try {  
59 - const res = await api_index.getSearch(keyWord2);  
60 - shopList.value = res.goods.concat(res.tjgoods);  
61 - searchRes.value = shopList.value.length == 0 ? true : false;  
62 - getRecords();  
63 - console.log("getSearch", res);  
64 - } catch (err) {  
65 - console.log("getSearch", err);  
66 - }  
67 - };  
68 - const getRecords = async () => {  
69 - try {  
70 - const res = await api_index.getRecord();  
71 - historyrecord.value = res;  
72 - console.log("getRecord", res);  
73 - } catch (err) {  
74 - common_vendor.index.showToast({ title: err, icon: "none" });  
75 - console.log("getRecord", err);  
76 - }  
77 - };  
78 - const getDelRecords = async () => {  
79 - try {  
80 - const res = await api_index.getDelRecord();  
81 - getRecords();  
82 - console.log("getDelRecord", res);  
83 - } catch (err) {  
84 - common_vendor.index.showToast({ title: err, icon: "none" });  
85 - console.log("getDelRecord", err);  
86 - }  
87 - };  
88 - common_vendor.onReachBottom(() => {  
89 - if (this.page != this.lastPage) {  
90 - this.page = this.page + 1;  
91 - this.getSearch(1);  
92 - } else {  
93 - common_vendor.index.showToast({  
94 - title: "\u6682\u65E0\u66F4\u591A\u5546\u54C1~",  
95 - icon: "none"  
96 - });  
97 - }  
98 - });  
99 - return (_ctx, _cache) => {  
100 - return common_vendor.e({  
101 - a: common_vendor.p({  
102 - bgColor: "#F6F8FA",  
103 - title: "\u641C\u7D22",  
104 - placeholder: true,  
105 - autoBack: true  
106 - }),  
107 - b: common_vendor.o(doSearchs),  
108 - c: common_vendor.o(input),  
109 - d: common_vendor.p({  
110 - keyWord: common_vendor.unref(keyWord),  
111 - disabled: false  
112 - }),  
113 - e: !common_vendor.unref(shopList).length && !common_vendor.unref(searchRes)  
114 - }, !common_vendor.unref(shopList).length && !common_vendor.unref(searchRes) ? {  
115 - f: common_vendor.o(clearHistory),  
116 - g: common_vendor.f(common_vendor.unref(historyrecord), (item, index, i0) => {  
117 - return {  
118 - a: common_vendor.t(item),  
119 - b: index,  
120 - c: common_vendor.o(($event) => serachHistroy(item))  
121 - };  
122 - })  
123 - } : {}, {  
124 - h: _ctx.index,  
125 - i: common_vendor.p({  
126 - list: common_vendor.unref(shopList),  
127 - shopWidth: 344,  
128 - shopHeight: 344  
129 - }),  
130 - j: common_vendor.unref(searchRes)  
131 - }, common_vendor.unref(searchRes) ? {} : {});  
132 - };  
133 - }  
134 -};  
135 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/search.vue"]]);  
136 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -page {  
28 - background: #F6F8FA;  
29 -}  
30 -.mineBox {  
31 - padding: 24rpx 32rpx 0;  
32 -}  
33 -.mineBox .titleBox {  
34 - margin-bottom: 24rpx;  
35 - color: rgba(0, 0, 0, 0.9);  
36 - font-size: 28rpx;  
37 - font-weight: 700;  
38 -}  
39 -.mineBox .titleBox image {  
40 - width: 32rpx;  
41 - height: 32rpx;  
42 -}  
43 -.mineBox .recordBox {  
44 - display: flex;  
45 - flex-wrap: wrap;  
46 - width: 100%;  
47 - height: 132rpx;  
48 - margin-bottom: 36rpx;  
49 - overflow: hidden;  
50 -}  
51 -.mineBox .recordBox .record {  
52 - padding: 0 24rpx;  
53 - height: 56rpx;  
54 - box-sizing: border-box;  
55 - margin: 0 16rpx 16rpx 0;  
56 - border-radius: 8rpx;  
57 - color: #000000e6;  
58 - font-size: 26rpx;  
59 - background: #fff;  
60 -}  
61 -.searchNull {  
62 - display: flex;  
63 - flex-direction: column;  
64 - align-items: center;  
65 - margin-top: 180rpx;  
66 -}  
67 -.searchNull image {  
68 - margin-bottom: 32rpx;  
69 - width: 320rpx;  
70 - height: 320rpx;  
71 -}  
72 -.searchNull text {  
73 - color: #323233ff;  
74 - font-size: 28rpx;  
75 -}  
76 -.searchNull .tips {  
77 - margin-top: 16rpx;  
78 - color: #969799ff;  
79 - font-size: 24rpx;  
80 -}  
81 -.searchResult {  
82 - width: 100%;  
83 - padding: 20rpx 24rpx;  
84 - box-sizing: border-box;  
85 - display: flex;  
86 - flex-wrap: wrap;  
87 - justify-content: space-between;  
88 -}  
  1 +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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - const _easycom_u_swiper2 = common_vendor.resolveComponent("u-swiper");  
8 - const _easycom_u_badge2 = common_vendor.resolveComponent("u-badge");  
9 - (_easycom_u_navbar2 + _easycom_u_swiper2 + _easycom_u_badge2)();  
10 -}  
11 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
12 -const _easycom_u_swiper = () => "../../uni_modules/uview-plus/components/u-swiper/u-swiper.js";  
13 -const _easycom_u_badge = () => "../../uni_modules/uview-plus/components/u-badge/u-badge.js";  
14 -if (!Math) {  
15 - (_easycom_u_navbar + _easycom_u_swiper + shopInfo + comment + _easycom_u_badge + popPay)();  
16 -}  
17 -const shopInfo = () => "../../componets/shopInfo.js";  
18 -const comment = () => "../../componets/comment.js";  
19 -const popPay = () => "../../componets/popPay.js";  
20 -const _sfc_main = {  
21 - setup(__props) {  
22 - common_vendor.onLoad((e) => {  
23 - console.log("\u5546\u54C1id", e.id);  
24 - getShopDetailes(e.id);  
25 - });  
26 - common_vendor.onHide(() => {  
27 - payPopShow.value = false;  
28 - });  
29 - const currentNum = common_vendor.ref(0);  
30 - 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"]);  
31 - const icList = common_vendor.reactive([  
32 - { id: 1, name: "\u5E97\u94FA", icon: "/static/indexIc/shopIc.png" },  
33 - { id: 2, name: "\u5BA2\u670D", icon: "/static/indexIc/service.png" },  
34 - { id: 3, name: "\u8D2D\u7269\u8F66", icon: "/static/tabbarsIc/shopCar.png" }  
35 - ]);  
36 - const value = common_vendor.ref("1");  
37 - const seeAll = () => {  
38 - common_vendor.index.navigateTo({ url: `/pages/index/allComment?allCommentList=${allCommentList.value}` });  
39 - };  
40 - let btnType = common_vendor.ref(0);  
41 - let payPopShow = common_vendor.ref(false);  
42 - const toOrder = (type) => {  
43 - btnType.value = type;  
44 - payPopShow.value = true;  
45 - };  
46 - const btns = (index) => {  
47 - switch (index) {  
48 - case 0:  
49 - console.log("\u5E97\u94FA");  
50 - common_vendor.index.switchTab({ url: "/pages/index/index" });  
51 - break;  
52 - case 2:  
53 - console.log("\u8D2D\u7269\u8F66");  
54 - common_vendor.index.switchTab({ url: "/pages/shopCar/shopCar" });  
55 - break;  
56 - }  
57 - };  
58 - let detaileList = common_vendor.ref({});  
59 - let specList = common_vendor.ref({});  
60 - let swiperList = common_vendor.ref([]);  
61 - let commentList = common_vendor.ref([]);  
62 - let moreSpec = common_vendor.ref({});  
63 - let shopType = common_vendor.ref(1);  
64 - const allCommentList = common_vendor.ref("");  
65 - const getShopDetailes = async (id) => {  
66 - try {  
67 - const res = await api_index.getShopDetaile(id);  
68 - detaileList.value = res.detail;  
69 - specList.value = res.detail.spec[0];  
70 - swiperList.value = res.detail.images;  
71 - allCommentList.value = JSON.stringify(res.pinglun);  
72 - commentList.value = res.pinglun.splice(0, 1);  
73 - moreSpec.value = res.specData;  
74 - shopType.value = res.detail.goodstatus;  
75 - value.value = res.cartNum;  
76 - } catch (err) {  
77 - common_vendor.index.showToast({ title: err, icon: "none" });  
78 - console.log("", err);  
79 - }  
80 - };  
81 - return (_ctx, _cache) => {  
82 - return common_vendor.e({  
83 - a: common_vendor.p({  
84 - bgColor: "transparent",  
85 - autoBack: true  
86 - }),  
87 - b: common_vendor.unref(shopType) != 3  
88 - }, common_vendor.unref(shopType) != 3 ? {  
89 - c: common_vendor.t(currentNum.value + 1),  
90 - d: common_vendor.t(common_vendor.unref(swiperList).length)  
91 - } : {}, {  
92 - e: common_vendor.o((e) => currentNum.value = e.current),  
93 - f: common_vendor.p({  
94 - height: "375",  
95 - list: common_vendor.unref(swiperList),  
96 - autoplay: false,  
97 - indicatorStyle: "right: 20px"  
98 - }),  
99 - g: common_vendor.p({  
100 - info: common_vendor.unref(detaileList)  
101 - }),  
102 - h: common_vendor.unref(shopType) == 1  
103 - }, common_vendor.unref(shopType) == 1 ? common_vendor.e({  
104 - i: common_vendor.t(common_vendor.unref(commentList).length),  
105 - j: common_vendor.unref(commentList).length > 0  
106 - }, common_vendor.unref(commentList).length > 0 ? {  
107 - k: common_vendor.o(seeAll)  
108 - } : {}, {  
109 - l: common_vendor.unref(commentList).length  
110 - }, common_vendor.unref(commentList).length ? {  
111 - m: common_vendor.p({  
112 - commentList: common_vendor.unref(commentList)  
113 - })  
114 - } : {}) : {}, {  
115 - n: common_vendor.unref(shopType) !== 3  
116 - }, common_vendor.unref(shopType) !== 3 ? {  
117 - o: common_vendor.unref(detaileList).content  
118 - } : {}, {  
119 - p: common_vendor.unref(shopType) == 3  
120 - }, common_vendor.unref(shopType) == 3 ? {} : {}, {  
121 - q: common_vendor.f(common_vendor.unref(icList), (item, index, i0) => {  
122 - return common_vendor.e({  
123 - a: item.icon,  
124 - b: index == 2  
125 - }, index == 2 ? {  
126 - c: "1a35f0c9-4-" + i0,  
127 - d: common_vendor.p({  
128 - absolute: true,  
129 - offset: [-6, -6],  
130 - color: "#fff",  
131 - bgColor: "#F63D3A",  
132 - max: "99",  
133 - value: value.value  
134 - })  
135 - } : {}, {  
136 - e: common_vendor.t(item.name),  
137 - f: index === 1  
138 - }, index === 1 ? {} : {}, {  
139 - g: item.id,  
140 - h: common_vendor.o(($event) => btns(index), item.id)  
141 - });  
142 - }),  
143 - r: common_vendor.unref(shopType) != 3  
144 - }, common_vendor.unref(shopType) != 3 ? {  
145 - s: common_vendor.o(($event) => toOrder(0)),  
146 - t: common_vendor.o(($event) => toOrder(1))  
147 - } : {  
148 - v: common_vendor.o(($event) => toOrder(3))  
149 - }, {  
150 - w: common_vendor.o(($event) => common_vendor.isRef(payPopShow) ? payPopShow.value = false : payPopShow = false),  
151 - x: common_vendor.p({  
152 - moreSpec: common_vendor.unref(moreSpec),  
153 - shopDetail: common_vendor.unref(detaileList),  
154 - shopType: common_vendor.unref(shopType),  
155 - btnType: common_vendor.unref(btnType),  
156 - payPopShow: common_vendor.unref(payPopShow)  
157 - })  
158 - });  
159 - };  
160 - }  
161 -};  
162 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/index/shopDetaile.vue"]]);  
163 -wx.createPage(MiniProgramPage); 1 +"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 @@ @@ -3,6 +3,7 @@
3 "usingComponents": { 3 "usingComponents": {
4 "u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar", 4 "u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar",
5 "u-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper", 5 "u-swiper": "../../uni_modules/uview-plus/components/u-swiper/u-swiper",
  6 + "u-parse": "../../uni_modules/uview-plus/components/u-parse/u-parse",
6 "u-badge": "../../uni_modules/uview-plus/components/u-badge/u-badge", 7 "u-badge": "../../uni_modules/uview-plus/components/u-badge/u-badge",
7 "shop-info": "../../componets/shopInfo", 8 "shop-info": "../../componets/shopInfo",
8 "comment": "../../componets/comment", 9 "comment": "../../componets/comment",
1 -<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>  
  1 +<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>
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.u-nav-slot image {  
28 - width: 48rpx;  
29 - height: 48rpx;  
30 -}  
31 -.indicator-num {  
32 - padding: 2px 0;  
33 - background-color: rgba(0, 0, 0, 0.35);  
34 - border-radius: 100px;  
35 - width: 35px;  
36 - display: flex;  
37 - flex-direction: row;  
38 - justify-content: center;  
39 -}  
40 -.indicator-num__text {  
41 - color: #ffffff;  
42 - font-size: 12px;  
43 -}  
44 -.swiperBox {  
45 - margin-bottom: 32rpx;  
46 -}  
47 -.info {  
48 - width: 702rpx;  
49 - margin: 0 auto;  
50 -}  
51 -.line {  
52 - width: 100%;  
53 - height: 6rpx;  
54 - opacity: 1;  
55 - background: #f7f8faff;  
56 - margin: 32rpx 0;  
57 -}  
58 -.mainBox {  
59 - padding: 0 24rpx;  
60 -}  
61 -.mainBox .commentNmu {  
62 - margin-bottom: 40rpx;  
63 -}  
64 -.mainBox .commentNmu text {  
65 - color: #1a1a1aff;  
66 - font-size: 28rpx;  
67 - font-weight: 700;  
68 -}  
69 -.mainBox .commentNmu .see {  
70 - color: #ff7534ff;  
71 - font-size: 24rpx;  
72 -}  
73 -.mainBox .commentNmu .see image {  
74 - margin-left: 2rpx;  
75 - width: 24rpx;  
76 - height: 24rpx;  
77 -}  
78 -.mainBox .commentNull {  
79 - color: #00000066;  
80 - font-size: 26rpx;  
81 - margin-bottom: 212rpx;  
82 -}  
83 -.mainBox .commentNull image {  
84 - width: 348rpx;  
85 - height: 240rpx;  
86 - margin-bottom: 16rpx;  
87 -}  
88 -.titles {  
89 - color: #1a1a1aff;  
90 - font-size: 28rpx;  
91 - font-weight: 700;  
92 -}  
93 -.lineBox {  
94 - margin: 24rpx 0 30rpx;  
95 -}  
96 -.lineBox .lines {  
97 - width: 149rpx;  
98 - height: 1rpx;  
99 - opacity: 1;  
100 - border: 0 solid #979797ff;  
101 - background: #dcdee0ff;  
102 -}  
103 -.lineBox text {  
104 - margin: 0 24rpx;  
105 - color: #969799ff;  
106 - font-size: 24rpx;  
107 -}  
108 -.btnBox {  
109 - position: fixed;  
110 - left: 0;  
111 - bottom: 0;  
112 - width: 100%;  
113 - height: 120rpx;  
114 - background: #ffffffff;  
115 -}  
116 -.btnBox .left {  
117 - margin-left: 32rpx;  
118 -}  
119 -.btnBox .left .leftIc {  
120 - margin-right: 34rpx;  
121 - position: relative;  
122 -}  
123 -.btnBox .left .leftIc .images {  
124 - position: relative;  
125 - width: 48rpx;  
126 - height: 48rpx;  
127 - margin-bottom: 8rpx;  
128 -}  
129 -.btnBox .left .leftIc .images image {  
130 - width: 48rpx;  
131 - height: 48rpx;  
132 -}  
133 -.btnBox .left .leftIc text {  
134 - color: #323233ff;  
135 - font-size: 20rpx;  
136 -}  
137 -.btnBox .left .leftIc button {  
138 - position: absolute;  
139 - bottom: 0;  
140 - left: 0;  
141 - top: 0;  
142 - right: 0;  
143 - background: transparent;  
144 - /* width: 48rpx;  
145 - height: 48rpx; */  
146 - font-size: 20rpx;  
147 - border: none !important;  
148 - padding: 0 !important;  
149 - line-height: 28rpx;  
150 -}  
151 -.btnBox .left .leftIc button::after {  
152 - border: none;  
153 -}  
154 -.btnBox .buy {  
155 - margin-right: 32rpx;  
156 - width: 200rpx;  
157 - height: 80rpx;  
158 - border-radius: 80rpx;  
159 - color: #ffffffff;  
160 - font-size: 24rpx;  
161 - font-weight: 700;  
162 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
163 -}  
164 -.btnBox .add {  
165 - margin-right: 14rpx;  
166 - width: 200rpx;  
167 - height: 80rpx;  
168 - border-radius: 80rpx;  
169 - color: #ffffffff;  
170 - font-size: 24rpx;  
171 - font-weight: 700;  
172 - background: linear-gradient(139deg, #ffac0bff 0%, #ffc24aff 100%);  
173 -}  
174 -.btnBox .exchange {  
175 - margin-right: 32rpx;  
176 - width: 358rpx;  
177 - height: 80rpx;  
178 - border-radius: 80rpx;  
179 - color: #ffffffff;  
180 - font-size: 30rpx;  
181 - font-weight: 700;  
182 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
183 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -const _sfc_main = {  
6 - setup(__props) {  
7 - const agreeStatus = common_vendor.ref(false);  
8 - const code = common_vendor.ref("");  
9 - common_vendor.onLoad(() => {  
10 - if (common_vendor.index.getStorageSync("token")) {  
11 - common_vendor.index.reLaunch({  
12 - url: "/pages/index/index"  
13 - });  
14 - }  
15 - });  
16 - common_vendor.onShow(() => {  
17 - getCode();  
18 - });  
19 - const login = () => {  
20 - if (!agreeStatus.value)  
21 - return common_vendor.index.showToast({  
22 - title: "\u8BF7\u52FE\u9009\u534F\u8BAE",  
23 - icon: "none"  
24 - });  
25 - };  
26 - const getphonenumber = (e) => {  
27 - if (e.detail.errMsg == "getPhoneNumber:fail user deny") {  
28 - common_vendor.index.showToast({  
29 - title: "\u60A8\u5DF2\u53D6\u6D88\u6388\u6743",  
30 - icon: "none"  
31 - });  
32 - } else {  
33 - getLogins(e.detail.encryptedData, e.detail.iv);  
34 - }  
35 - };  
36 - const getCode = () => {  
37 - common_vendor.index.login({  
38 - provider: "weixin",  
39 - success: function(loginRes) {  
40 - console.log(loginRes);  
41 - code.value = loginRes.code;  
42 - }  
43 - });  
44 - };  
45 - const getLogins = async (data, iv) => {  
46 - try {  
47 - let params = {  
48 - code: code.value,  
49 - encryptedData: data,  
50 - iv  
51 - };  
52 - const res = await api_index.getLogin(params);  
53 - common_vendor.index.setStorageSync("token", res.token);  
54 - common_vendor.index.setStorageSync("userInfo", res);  
55 - common_vendor.index.reLaunch({ url: "/pages/index/index" });  
56 - console.log("getLogin", res);  
57 - } catch (err) {  
58 - console.log("getLogin", err);  
59 - }  
60 - };  
61 - const toRichText = (e) => {  
62 - common_vendor.index.navigateTo({  
63 - url: `/pages/richText/richText?type=${e}`  
64 - });  
65 - };  
66 - const agree = () => {  
67 - agreeStatus.value = !agreeStatus.value;  
68 - };  
69 - return (_ctx, _cache) => {  
70 - return common_vendor.e({  
71 - a: !agreeStatus.value  
72 - }, !agreeStatus.value ? {  
73 - b: common_vendor.o(login)  
74 - } : {  
75 - c: common_vendor.o(getphonenumber)  
76 - }, {  
77 - d: !agreeStatus.value  
78 - }, !agreeStatus.value ? {} : {}, {  
79 - e: common_vendor.o(agree),  
80 - f: common_vendor.o(($event) => toRichText(4)),  
81 - g: common_vendor.o(($event) => toRichText(5))  
82 - });  
83 - };  
84 - }  
85 -};  
86 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/login/login.vue"]]);  
87 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -.bgBox {  
28 - position: fixed;  
29 - left: 0;  
30 - top: 0;  
31 - width: 100%;  
32 - height: 100vh;  
33 - z-index: -1;  
34 -}  
35 -.bgBox image {  
36 - width: 100%;  
37 - height: 100vh;  
38 -}  
39 -.logo {  
40 - width: 100%;  
41 - height: 158rpx;  
42 - margin-top: 480rpx;  
43 -}  
44 -.logo image {  
45 - width: 156rpx;  
46 - height: 158rpx;  
47 -}  
48 -.btnBox {  
49 - margin: 292rpx auto 60rpx;  
50 - width: 646rpx;  
51 - height: 88rpx;  
52 - border-radius: 44rpx;  
53 - opacity: 1;  
54 - background: #fff;  
55 - color: #fd7452ff;  
56 - font-size: 32rpx;  
57 - font-weight: 700;  
58 - position: relative;  
59 -}  
60 -.btnBox image {  
61 - margin-right: 12rpx;  
62 - width: 48rpx;  
63 - height: 38rpx;  
64 -}  
65 -.btnBox button {  
66 - position: absolute;  
67 - background: transparent;  
68 - width: 100%;  
69 - height: 100%;  
70 - color: #fd7452ff;  
71 - font-size: 32rpx;  
72 - font-weight: 700;  
73 -}  
74 -.btnBox button::after {  
75 - border: none;  
76 -}  
77 -.agreeBox {  
78 - margin-top: 502rpx;  
79 -}  
80 -.agreeBox .checkImage {  
81 - margin: 8rpx 8rpx 0 0;  
82 -}  
83 -.agreeBox .checkImage image {  
84 - width: 28rpx;  
85 - height: 28rpx;  
86 -}  
87 -.agreeBox .agree {  
88 - color: #fff;  
89 - font-size: 24rpx;  
90 -}  
  1 +.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}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - const _easycom_u_rate2 = common_vendor.resolveComponent("u-rate");  
8 - (_easycom_u_navbar2 + _easycom_u_rate2)();  
9 -}  
10 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
11 -const _easycom_u_rate = () => "../../uni_modules/uview-plus/components/u-rate/u-rate.js";  
12 -if (!Math) {  
13 - (_easycom_u_navbar + _easycom_u_rate)();  
14 -}  
15 -const _sfc_main = {  
16 - setup(__props) {  
17 - const count = common_vendor.ref(5);  
18 - const value = common_vendor.ref(0);  
19 - let photoList = common_vendor.reactive([]);  
20 - const imgList = common_vendor.ref([]);  
21 - let desc = common_vendor.ref("");  
22 - const { proxy } = common_vendor.getCurrentInstance();  
23 - const submit = () => {  
24 - getComments();  
25 - };  
26 - const evaluateOrderId = common_vendor.ref(0);  
27 - common_vendor.onLoad((e) => {  
28 - evaluateOrderId.value = e.id;  
29 - });  
30 - const addPhoto = () => proxy.$methods.upload("http://health.shs.broing.cn/api/common/upload", (imgUrl) => {  
31 - console.log("\u8FD4\u56DE\u56FE\u7247", imgUrl);  
32 - imgList.value.push(imgUrl.upImg);  
33 - photoList.push(imgUrl.avatar);  
34 - });  
35 - const delPhoto = (index) => {  
36 - imgList.value.splice(index, 1);  
37 - photoList.splice(index, 1);  
38 - };  
39 - const getComments = async () => {  
40 - try {  
41 - let params = {  
42 - id: evaluateOrderId.value,  
43 - image: imgList.value.join(","),  
44 - content: desc.value  
45 - };  
46 - const res = await api_index.getComment(params);  
47 - common_vendor.index.showToast({ title: "\u611F\u8C22\u60A8\u7684\u8BC4\u8BBA~", icon: "none" });  
48 - setTimeout(() => {  
49 - common_vendor.index.navigateBack();  
50 - }, 1e3);  
51 - console.log("getComment", res);  
52 - } catch (err) {  
53 - common_vendor.index.showToast({ title: err, icon: "none" });  
54 - console.log("getComment", err);  
55 - }  
56 - };  
57 - return (_ctx, _cache) => {  
58 - return {  
59 - a: common_vendor.p({  
60 - placeholder: true,  
61 - title: "\u8BC4\u4EF7",  
62 - bgColor: "transparent",  
63 - autoBack: true  
64 - }),  
65 - b: common_vendor.f(common_vendor.unref(photoList), (item, index, i0) => {  
66 - return {  
67 - a: item,  
68 - b: common_vendor.o(($event) => delPhoto(index)),  
69 - c: index  
70 - };  
71 - }),  
72 - c: common_vendor.t(5 - common_vendor.unref(photoList).length),  
73 - d: common_vendor.o(addPhoto),  
74 - e: common_vendor.unref(desc),  
75 - f: common_vendor.o(($event) => common_vendor.isRef(desc) ? desc.value = $event.detail.value : desc = $event.detail.value),  
76 - g: common_vendor.o(($event) => value.value = $event),  
77 - h: common_vendor.p({  
78 - activeColor: "#FEA302",  
79 - count: count.value,  
80 - modelValue: value.value  
81 - }),  
82 - i: common_vendor.o(submit)  
83 - };  
84 - };  
85 - }  
86 -};  
87 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/mine/evaluate.vue"]]);  
88 -wx.createPage(MiniProgramPage); 1 +"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);
1 -/**  
2 - * 这里是uni-app内置的常用样式变量  
3 - *  
4 - * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量  
5 - * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App  
6 - *  
7 - */  
8 -/**  
9 - * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能  
10 - *  
11 - * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件  
12 - */  
13 -/* uni.scss */  
14 -/* 颜色变量 */  
15 -/* 行为相关颜色 */  
16 -/* 文字基本颜色 */  
17 -/* 背景颜色 */  
18 -/* 边框颜色 */  
19 -/* 尺寸变量 */  
20 -/* 文字尺寸 */  
21 -/* 图片尺寸 */  
22 -/* Border Radius */  
23 -/* 水平间距 */  
24 -/* 垂直间距 */  
25 -/* 透明度 */  
26 -/* 文章场景相关 */  
27 -page {  
28 - background: #f0f2f5ff;  
29 -}  
30 -.boxs {  
31 - width: 702rpx;  
32 - margin: 34rpx auto;  
33 - border-radius: 16rpx;  
34 - background: #ffffffff;  
35 - padding: 24rpx;  
36 - box-sizing: border-box;  
37 -}  
38 -.boxs .title {  
39 - color: #000000ff;  
40 - font-size: 26rpx;  
41 - margin-bottom: 24rpx;  
42 -}  
43 -.boxs .photoBox {  
44 - display: flex;  
45 - flex-wrap: wrap;  
46 -}  
47 -.boxs .photoBox .itemPhoto {  
48 - position: relative;  
49 - width: 160rpx;  
50 - height: 160rpx;  
51 - border-radius: 12rpx;  
52 - margin-right: 24rpx;  
53 -}  
54 -.boxs .photoBox .itemPhoto .photo {  
55 - width: 160rpx;  
56 - height: 160rpx;  
57 - border-radius: 12rpx;  
58 -}  
59 -.boxs .photoBox .itemPhoto .delBox {  
60 - position: absolute;  
61 - right: 0;  
62 - top: 0;  
63 - width: 24rpx;  
64 - height: 24rpx;  
65 - background: #484b46;  
66 - border-radius: 0 8rpx 0 8rpx;  
67 -}  
68 -.boxs .photoBox .itemPhoto .delBox .del {  
69 - width: 24rpx;  
70 - height: 24rpx;  
71 -}  
72 -.boxs .photoBox .addPhoto {  
73 - width: 160rpx;  
74 - height: 160rpx;  
75 - border-radius: 12rpx;  
76 - background: #f7f8faff;  
77 - color: #afafafff;  
78 - font-size: 22rpx;  
79 -}  
80 -.boxs .photoBox .addPhoto image {  
81 - width: 34rpx;  
82 - height: 34rpx;  
83 - margin-bottom: 12rpx;  
84 -}  
85 -.boxs .desc {  
86 - margin-top: 24rpx;  
87 - padding: 24rpx 20rpx;  
88 - background: #f7f8faff;  
89 -}  
90 -.boxs .desc .pls {  
91 - color: #afafafff;  
92 - font-size: 22rpx;  
93 -}  
94 -.boxs .desc textarea {  
95 - color: #454545ff;  
96 - font-size: 24rpx;  
97 -}  
98 -.boxs .startBox {  
99 - margin-top: 24rpx;  
100 -}  
101 -.boxs .startBox text {  
102 - color: #000000ff;  
103 - font-size: 26rpx;  
104 - font-weight: 700;  
105 - margin-right: 20rpx;  
106 -}  
107 -.btnBox {  
108 - position: fixed;  
109 - left: 0;  
110 - bottom: 0;  
111 - width: 100%;  
112 -}  
113 -.btnBox .btn {  
114 - margin: 0 auto;  
115 - width: 686rpx;  
116 - height: 88rpx;  
117 - border-radius: 12rpx;  
118 - color: #ffffffff;  
119 - font-size: 32rpx;  
120 - font-weight: 700;  
121 - background: linear-gradient(139deg, #fb753cff 0%, #fb3e3cff 100%);  
122 -}  
  1 +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%)}
1 -"use strict";  
2 -var common_vendor = require("../../common/vendor.js");  
3 -var api_index = require("../../api/index.js");  
4 -require("../../utils/request.js");  
5 -if (!Array) {  
6 - const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");  
7 - const _easycom_u_badge2 = common_vendor.resolveComponent("u-badge");  
8 - (_easycom_u_navbar2 + _easycom_u_badge2)();  
9 -}  
10 -const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";  
11 -const _easycom_u_badge = () => "../../uni_modules/uview-plus/components/u-badge/u-badge.js";  
12 -if (!Math) {  
13 - (_easycom_u_navbar + _easycom_u_badge)();  
14 -}  
15 -const _sfc_main = {  
16 - setup(__props) {  
17 - const userInfo = common_vendor.ref({});  
18 - common_vendor.onShow(() => {  
19 - getMines();  
20 - });  
21 - let classList = common_vendor.reactive([  
22 - { id: 1, name: "\u5F85\u4ED8\u6B3E", num: 0, ic: "/static/mineIc/obligation.png" },  
23 - { id: 2, name: "\u5F85\u53D1\u8D27", num: 0, ic: "/static/mineIc/shipped.png" },  
24 - { id: 3, name: "\u5F85\u6536\u8D27", num: 0, ic: "/static/mineIc/received.png" },  
25 - { id: 4, name: "\u5F85\u8BC4\u4EF7", num: 0, ic: "/static/mineIc/evaluated.png" },  
26 - { id: 5, name: "\u552E\u540E", num: 0, ic: "/static/mineIc/afterSales.png" }  
27 - ]);  
28 - let functionList = common_vendor.reactive([  
29 - { id: 1, name: "\u6211\u7684\u4F59\u989D", ic: "/static/mineIc/balance.png" },  
30 - { id: 2, name: "\u6211\u7684\u79EF\u5206", ic: "/static/mineIc/collect.png" },  
31 - { id: 3, name: "\u6211\u7684\u5730\u5740", ic: "/static/mineIc/addressBlack.png" }  
32 - ]);  
33 - common_vendor.ref({});  
34 - const orderStatus = (index) => {  
35 - common_vendor.index.navigateTo({  
36 - url: `/pages/mine/myOrder?status=${index == 5 ? 0 : Number(index) + 1}`  
37 - });  
38 - };  
39 - const functionC = (index) => {  
40 - if (index < 2) {  
41 - common_vendor.index.navigateTo({  
42 - url: `/pages/mine/myPoints?type=${index}`  
43 - });  
44 - } else {  
45 - common_vendor.index.navigateTo({  
46 - url: "/pages/mine/myAddress"  
47 - });  
48 - }  
49 - };  
50 - const toRecharg = () => {  
51 - common_vendor.index.navigateTo({ url: "/pages/mine/recharge" });  
52 - };  
53 - const getMines = async () => {  
54 - try {  
55 - const res = await api_index.getMine();  
56 - classList[0].num = res.dfk;  
57 - classList[1].num = res.dfh;  
58 - classList[2].num = res.dsh;  
59 - classList[3].num = res.dpj;  
60 - classList[4].num = res.yth;  
61 - userInfo.value = res.userInfo;  
62 - userInfo.value.avatar = res.avatar;  
63 - console.log("getMine", res);  
64 - } catch (err) {  
65 - common_vendor.index.showToast({ title: err, icon: "none" });  
66 - console.log("getMine", err);  
67 - }  
68 - };  
69 - return (_ctx, _cache) => {  
70 - return {  
71 - a: common_vendor.p({  
72 - title: "\u6211\u7684",  
73 - bgColor: "transparent"  
74 - }),  
75 - b: userInfo.value.avatar,  
76 - c: common_vendor.t(userInfo.value.nickname),  
77 - d: common_vendor.o(toRecharg),  
78 - e: common_vendor.o(($event) => orderStatus(5)),  
79 - f: common_vendor.f(common_vendor.unref(classList), (item, index, i0) => {  
80 - return {  
81 - a: "6cbe0492-1-" + i0,  
82 - b: common_vendor.p({  
83 - absolute: true,  
84 - offset: [-4, -10],  
85 - color: "#FFFFFF",  
86 - bgColor: "#F74637",  
87 - max: "99",  
88 - value: item.num  
89 - }),  
90 - c: item.ic,  
91 - d: common_vendor.t(item.name),  
92 - e: item.id,  
93 - f: common_vendor.o(($event) => orderStatus(index), item.id)  
94 - };  
95 - }),  
96 - g: common_vendor.f(common_vendor.unref(functionList), (item, index, i0) => {  
97 - return {  
98 - a: item.ic,  
99 - b: common_vendor.t(item.name),  
100 - c: item.id,  
101 - d: common_vendor.o(($event) => functionC(index), item.id)  
102 - };  
103 - })  
104 - };  
105 - };  
106 - }  
107 -};  
108 -var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/vue/\u5927\u5065\u5EB7\u5546\u57CE/healthMall/pages/mine/mine.vue"]]);  
109 -wx.createPage(MiniProgramPage); 1 +"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);
1 -<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>  
  1 +<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>