工作代码提交
This commit is contained in:
parent
ef19e7cb72
commit
17b259fd3a
|
@ -6,9 +6,9 @@ const config = {
|
||||||
// host: 'h5api',
|
// host: 'h5api',
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
// host: 'http://91f.xyz:8080',
|
host: 'http://91f.xyz:8080',
|
||||||
// host: 'http://liuyd.cpolar.top',
|
// host: 'http://liuyd.cpolar.top',
|
||||||
host: 'http://5vpc5z.natappfree.cc',
|
// host: 'http://5vpc5z.natappfree.cc',
|
||||||
// #endif
|
// #endif
|
||||||
// 是否vivo显示
|
// 是否vivo显示
|
||||||
showVivo: true,
|
showVivo: true,
|
||||||
|
|
|
@ -362,6 +362,10 @@
|
||||||
<view class="content mt30">
|
<view class="content mt30">
|
||||||
<!-- <rich-text :nodes="infoRichText" v-if="infoRichText" /> -->
|
<!-- <rich-text :nodes="infoRichText" v-if="infoRichText" /> -->
|
||||||
<parseRichText :imageProp="{'mode': 'widthFix',}" :content="infoRichText" v-if="infoRichText" />
|
<parseRichText :imageProp="{'mode': 'widthFix',}" :content="infoRichText" v-if="infoRichText" />
|
||||||
|
|
||||||
|
<template v-if="giftPack">
|
||||||
|
<text class="f28 mt10 cFF4242">礼包商品不支持售后</text>
|
||||||
|
</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "九亿",
|
"name" : "九亿",
|
||||||
"appid" : "__UNI__08B31BC",
|
"appid" : "__UNI__08B31BC",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.17",
|
"versionName" : "1.0.18",
|
||||||
"versionCode" : 1017,
|
"versionCode" : 1018,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
// 分类下标
|
// 分类下标
|
||||||
const categoryIndex = ref('')
|
const categoryIndex = ref('')
|
||||||
// 当前选择的分类
|
// 当前选择的分类
|
||||||
const cateCurrent = computed(() => category[categoryIndex.value] || {categoryCode: ''})
|
const cateCurrent = computed(() => category[categoryIndex.value] || {
|
||||||
|
categoryCode: ''
|
||||||
|
})
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
if (option.id) {
|
if (option.id) {
|
||||||
|
@ -184,9 +186,14 @@
|
||||||
let index = ev.detail.value
|
let index = ev.detail.value
|
||||||
if (index === categoryIndex.value) return
|
if (index === categoryIndex.value) return
|
||||||
categoryIndex.value = index
|
categoryIndex.value = index
|
||||||
form.categoryId = category[categoryIndex.value].id
|
// 当前分类项
|
||||||
|
const cateItem = category[categoryIndex.value]
|
||||||
|
form.categoryId = cateItem.id
|
||||||
// 如果是礼包商品
|
// 如果是礼包商品
|
||||||
if(category[categoryIndex.value].categoryCode !== 'GIFT_PACK') form.price = category[categoryIndex.value].offeringPrice
|
if (cateItem.categoryCode !== 'GIFT_PACK') {
|
||||||
|
form.price = cateItem.offeringPrice
|
||||||
|
form.commission = form.commission = cateItem.sharePrice
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发布商品
|
// 发布商品
|
||||||
|
@ -214,7 +221,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果不是礼包商品
|
// 如果不是礼包商品
|
||||||
if (!cateCurrent.categoryCode.startsWith('GIFT_PACK')) {
|
if (!cateCurrent.value.categoryCode.startsWith('GIFT_PACK')) {
|
||||||
if (!data.cost) {
|
if (!data.cost) {
|
||||||
util.alert('商品成本价不能为空')
|
util.alert('商品成本价不能为空')
|
||||||
return
|
return
|
||||||
|
@ -348,8 +355,8 @@
|
||||||
<view class="line rows ptb20">
|
<view class="line rows ptb20">
|
||||||
<view class="title w150">商品价格</view>
|
<view class="title w150">商品价格</view>
|
||||||
<view class="col f1">
|
<view class="col f1">
|
||||||
<input type="text" v-model="form.price" placeholder="输入价格"
|
<input type="text" v-model="form.price" placeholder="输入价格" placeholder-class="placeholderStyle"
|
||||||
placeholder-class="placeholderStyle" :disabled="cateCurrent.categoryCode.startsWith('GIFT_PACK')" />
|
:disabled="cateCurrent.categoryCode.startsWith('GIFT_PACK')" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -361,6 +368,7 @@
|
||||||
placeholder-class="placeholderStyle" />
|
placeholder-class="placeholderStyle" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="line rows ptb20">
|
<view class="line rows ptb20">
|
||||||
<view class="title w150">出让佣金</view>
|
<view class="title w150">出让佣金</view>
|
||||||
<view class="col f1">
|
<view class="col f1">
|
||||||
|
|
|
@ -93,14 +93,13 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
|
|
||||||
<!-- 公告 -->
|
<!-- 公告 -->
|
||||||
<swiper class="notice c333 f28" vertical="true">
|
<!-- <swiper class="notice c333 f28" vertical="true">
|
||||||
<swiper-item class="item bsb rows plr20" v-for="(item, index) in 2" :key="index">
|
<swiper-item class="item bsb rows plr20" v-for="(item, index) in 2" :key="index">
|
||||||
<image class="icon" src="/static/notice.png" mode="aspectFit" />
|
<image class="icon" src="/static/notice.png" mode="aspectFit" />
|
||||||
<view class="f1 mlr20">九亿商城上线啦~</view>
|
<view class="f1 mlr20">九亿商城上线啦~</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper> -->
|
||||||
|
|
||||||
<!-- 礼包专区 -->
|
<!-- 礼包专区 -->
|
||||||
<view class="tab bfff">
|
<view class="tab bfff">
|
||||||
|
|
|
@ -122,12 +122,22 @@
|
||||||
// 重载列表
|
// 重载列表
|
||||||
proxy.$refs.product.refreshList()
|
proxy.$refs.product.refreshList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新
|
||||||
|
* @param {Object} item
|
||||||
|
*/
|
||||||
|
function handleGiftCate(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/shop/gift'
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="appbw">
|
<view class="appbw">
|
||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<swiper class="banner oh" autoplay="true">
|
<!-- <swiper class="banner oh" autoplay="true">
|
||||||
<swiper-item v-for="(item, index) in 3" :key="index">
|
<swiper-item v-for="(item, index) in 3" :key="index">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<image class="poster"
|
<image class="poster"
|
||||||
|
@ -135,10 +145,10 @@
|
||||||
mode="aspectFill" />
|
mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper> -->
|
||||||
|
|
||||||
<view class="gift mtb30">
|
<view class="gift mtb30">
|
||||||
<view class="item fdc fmid" v-for="(item,index) in giftCateList" :key="index">
|
<view class="item fdc fmid" v-for="(item,index) in giftCateList" :key="index" @click="handleGiftCate(item)">
|
||||||
<image class="icon" :src="item.image" mode="aspectFill" />
|
<image class="icon" :src="item.image" mode="aspectFill" />
|
||||||
<view class="mt10 c333 f28">{{item.name}}</view>
|
<view class="mt10 c333 f28">{{item.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -3,9 +3,9 @@ import {
|
||||||
} from 'vite';
|
} from 'vite';
|
||||||
import uni from '@dcloudio/vite-plugin-uni';
|
import uni from '@dcloudio/vite-plugin-uni';
|
||||||
|
|
||||||
// let target = 'http://91f.xyz:8080'
|
let target = 'http://91f.xyz:8080'
|
||||||
// let target = 'http://liuyd.cpolar.top'
|
// let target = 'http://liuyd.cpolar.top'
|
||||||
let target = 'http://5vpc5z.natappfree.cc'
|
// let target = 'http://7vs3pa.natappfree.cc'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [uni()],
|
plugins: [uni()],
|
||||||
|
|
Loading…
Reference in New Issue