反馈修改完成-1128

master
Lee 2022-11-28 15:21:53 +08:00
parent 29f49ab4d7
commit c9594b5184
58 changed files with 1144 additions and 623 deletions

View File

@ -3,7 +3,7 @@
<view class="item background-white radius20 mar-s20" @tap.top="goDetail(item.id)" v-for="(item,index) in goodsList" :key="index"> <view class="item background-white radius20 mar-s20" @tap.top="goDetail(item.id)" v-for="(item,index) in goodsList" :key="index">
<view class="cover radius20"> <view class="cover radius20">
<image class="img" :src="item.cover" mode="widthFix"></image> <image class="img" :src="item.cover" mode="widthFix"></image>
<view v-if="isOperate" class="hide-btn font24 color-ff radius20 flex" :class="item.status==1?'background-8c':'background-blue'" @tap.stop="changeStateEv(item.id,index)">{{item.status==1?'':''}}</view> <view v-if="isOperate" class="hide-btn font24 color-ff radius20 flex" :class="item.status==1?'background-8c':'background-blue'" @tap.stop="changeStateEv(item.id,index)">{{item.status==1?'':''}}</view>
</view> </view>
<text class="name font28 clips1">{{item.name}}</text> <text class="name font28 clips1">{{item.name}}</text>
<view class="price flex"> <view class="price flex">

View File

@ -0,0 +1,57 @@
<template>
<view class="release-btn background-blue color-ff radius100 flex" @tap="goRelease">
<image class="img" src="/static/icon-release.png" mode="widthFix"></image>
</view>
</template>
<script>
import { mapState } from 'vuex'; //mapState
export default {
name:'release-btn',
data() {
return {
};
},
mounted() {
},
methods:{
//
goRelease(){
if(this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url:'/pages/release/release',
})
}
},
}
}
</script>
<style scoped>
.release-btn{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
animation: scale_name 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img{
width: 48rpx;
height: 48rpx;
}
@keyframes scale_name {
from {
transform: scale(.9);
}
to {
transform: scale(1.1);
}
}
</style>

View File

@ -5,10 +5,6 @@
<view class="icon flex"><image class="img" :style="{width:[41,38][index]+'rpx',height:[41,40][index]+'rpx'}" :src="item.iconPath" mode="widthFix"></image></view> <view class="icon flex"><image class="img" :style="{width:[41,38][index]+'rpx',height:[41,40][index]+'rpx'}" :src="item.iconPath" mode="widthFix"></image></view>
<view class="title font26">{{item.title}}</view> <view class="title font26">{{item.title}}</view>
</view> </view>
<!-- 发布按钮 -->
<view class="release-btn background-blue color-ff radius100 flex" @tap="goRelease">
<image class="img" src="/static/icon-release.png" mode="widthFix"></image>
</view>
</view> </view>
</template> </template>
<script> <script>
@ -52,15 +48,6 @@
break; break;
} }
}, },
//
goRelease(){
if(this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url:'/pages/idle/release',
})
}
},
} }
} }
</script> </script>
@ -102,30 +89,4 @@
.tabbar-item.active .icon .img{ .tabbar-item.active .icon .img{
filter: grayscale(0); filter: grayscale(0);
} }
/* 发布按钮 */
.release-btn{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
animation: scale_name 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img{
width: 48rpx;
height: 48rpx;
}
@keyframes scale_name {
from {
transform: scale(.9);
}
to {
transform: scale(1.1);
}
}
</style> </style>

View File

@ -7,13 +7,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ //
"path": "pages/idle/release",
"style": {
"navigationBarTitleText": "商品发布",
"enablePullDownRefresh": false
}
},
{ // { //
"path": "pages/my/my", "path": "pages/my/my",
"style": { "style": {
@ -42,6 +35,13 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ //
"path": "pages/release/release",
"style": {
"navigationBarTitleText": "商品发布",
"enablePullDownRefresh": false
}
},
{ // { //
"path" : "pages/login/login", "path" : "pages/login/login",
"style" : { "style" : {

View File

@ -17,7 +17,7 @@
</view> </view>
<view class="item font28 flex"> <view class="item font28 flex">
<view class="title color-8c">商品原价</view> <view class="title color-8c">商品原价</view>
<view class="msg color-8c" style="text-decoration: line-through;">{{goodsDetail.original_price}}</view> <view class="msg color-8c" style="text-decoration: line-through;">{{goodsDetail.original_price!==''?goodsDetail.original_price:'未填写'}}</view>
</view> </view>
<view class="item font28 flex"> <view class="item font28 flex">
<view class="title color-8c">商品售价</view> <view class="title color-8c">商品售价</view>
@ -39,7 +39,9 @@
</view> </view>
</view> </view>
<view class="detail-btns background-white border-box flex" v-if="type=='release'"> <view class="detail-btns background-white border-box flex" v-if="type=='release'">
<view class="btn background-orange font30 color-ff radius35 flex" @tap="delEv(goodsDetail.id)"></view> <view class="btn font30 color-ff radius35 flex" :class="goodsDetail.status==0?'background-orange':'background-8c'" @tap="changeStateEv(goodsDetail.id)">
{{goodsDetail.status==0?'下架':'展示'}}
</view>
<view class="btn background-blue font30 color-ff radius35 flex" @tap="editEv(goodsDetail.id)"></view> <view class="btn background-blue font30 color-ff radius35 flex" @tap="editEv(goodsDetail.id)"></view>
</view> </view>
</view> </view>
@ -106,7 +108,8 @@
price:res.data.price, price:res.data.price,
phone:res.data.phone, phone:res.data.phone,
images:res.data.images, images:res.data.images,
msg:res.data.content msg:res.data.content,
status:res.data.status
}; };
// //
this.goodsImg = this.goodsDetail.images; this.goodsImg = this.goodsDetail.images;
@ -123,6 +126,28 @@
}) })
}, },
//
changeStateEv(id){
if(this.flag){
this.flag =false;
this.$requst.post('/api/v1/goods/set-status',{id:id,status:this.goodsDetail.status}).then(res=>{
if(res.code == 0){
console.log(res,'改变状态');
if(this.goodsDetail.status==0){
this.goodsDetail.status = 1;
this.$toolAll.tools.showToast('已下架');
}else{
this.goodsDetail.status = 0;
this.$toolAll.tools.showToast('已展示');
}
}
})
setTimeout(()=>{
this.flag = true;
},500)
}
},
// //
delEv(id){ delEv(id){
this.$requst.post('/api/v1/goods/del',{id:id}).then(res=>{ this.$requst.post('/api/v1/goods/del',{id:id}).then(res=>{

View File

@ -6,12 +6,16 @@
<goods-list :goodsList="goodsList" :isOperate="true" @changeStateEv="changeStateEv"></goods-list> <goods-list :goodsList="goodsList" :isOperate="true" @changeStateEv="changeStateEv"></goods-list>
<!-- 没有更多 --> <!-- 没有更多 -->
<view class="no-more mar-s20 font24 color-99">没有更多数据了</view> <view class="no-more mar-s20 font24 color-99">没有更多数据了</view>
<!-- 发布按钮 -->
<release-btn></release-btn>
</view> </view>
</template> </template>
<script> <script>
import releaseBtn from '@/components/release-btn/release-btn.vue';
import goodsList from '@/components/goods-list/goods-list.vue'; import goodsList from '@/components/goods-list/goods-list.vue';
export default { export default {
components:{ components:{
releaseBtn,
goodsList goodsList
}, },
data() { data() {
@ -79,7 +83,7 @@
console.log(res,'改变状态'); console.log(res,'改变状态');
if(this.goodsList[index].status==0){ if(this.goodsList[index].status==0){
this.goodsList[index].status = 1; this.goodsList[index].status = 1;
this.$toolAll.tools.showToast('已隐藏'); this.$toolAll.tools.showToast('已下架');
}else{ }else{
this.goodsList[index].status = 0; this.goodsList[index].status = 0;
this.$toolAll.tools.showToast('已展示'); this.$toolAll.tools.showToast('已展示');

View File

@ -6,16 +6,20 @@
<goods-list :goodsList="goodsList"></goods-list> <goods-list :goodsList="goodsList"></goods-list>
<!-- 没有更多 --> <!-- 没有更多 -->
<view class="no-more mar-s20 font24 color-99" v-if="goodsList.length==total"></view> <view class="no-more mar-s20 font24 color-99" v-if="goodsList.length==total"></view>
<!-- 发布按钮 -->
<release-btn></release-btn>
<!-- 尾部 --> <!-- 尾部 -->
<tabbar></tabbar> <tabbar></tabbar>
</view> </view>
</template> </template>
<script> <script>
import goodsList from '@/components/goods-list/goods-list.vue'; import goodsList from '@/components/goods-list/goods-list.vue';
import releaseBtn from '@/components/release-btn/release-btn.vue';
import tabbar from '@/components/tabbar/tabbar'; import tabbar from '@/components/tabbar/tabbar';
export default { export default {
components:{ components:{
goodsList, goodsList,
releaseBtn,
tabbar tabbar
}, },
data() { data() {
@ -110,4 +114,30 @@
text-align: center; text-align: center;
line-height: 2; line-height: 2;
} }
/* 发布按钮 */
.release-btn{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
animation: scale_name 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img{
width: 48rpx;
height: 48rpx;
}
@keyframes scale_name {
from {
transform: scale(.9);
}
to {
transform: scale(1.1);
}
}
</style> </style>

View File

@ -26,17 +26,21 @@
<button class="get-phone-btn" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber" v-if="index==0&&mobile==''"></button> <button class="get-phone-btn" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber" v-if="index==0&&mobile==''"></button>
</view> </view>
</view> </view>
<!-- 发布按钮 -->
<release-btn></release-btn>
<!-- 底部tab --> <!-- 底部tab -->
<tabbar current="1"></tabbar> <tabbar current="1"></tabbar>
</view> </view>
</template> </template>
<script> <script>
import releaseBtn from '@/components/release-btn/release-btn.vue';
import tabbar from '@/components/tabbar/tabbar.vue'; import tabbar from '@/components/tabbar/tabbar.vue';
import {mapState} from 'vuex'//mapState import {mapState} from 'vuex'//mapState
export default { export default {
components:{ components:{
tabbar, releaseBtn,
tabbar
}, },
data() { data() {
return { return {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
{ {
"pages": [ "pages": [
"pages/idle/idle", "pages/idle/idle",
"pages/idle/release",
"pages/my/my", "pages/my/my",
"pages/my/ucenter", "pages/my/ucenter",
"pages/goods/goods", "pages/goods/goods",
"pages/goods/detail", "pages/goods/detail",
"pages/release/release",
"pages/login/login", "pages/login/login",
"pages/login/disclaimers", "pages/login/disclaimers",
"pages/estate/estate" "pages/estate/estate"

View File

@ -105,11 +105,11 @@
/******/ /******/
/******/ /******/
/******/ // mini-css-extract-plugin CSS loading /******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/tabbar/tabbar":1,"components/goods-list/goods-list":1}; /******/ var cssChunks = {"components/nothing/nothing-page":1,"components/status-nav/status-nav":1,"components/release-btn/release-btn":1,"components/tabbar/tabbar":1,"components/goods-list/goods-list":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]); /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) { /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) { /******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/tabbar/tabbar":"components/tabbar/tabbar","components/goods-list/goods-list":"components/goods-list/goods-list"}[chunkId]||chunkId) + ".wxss"; /******/ var href = "" + ({"components/nothing/nothing-page":"components/nothing/nothing-page","components/status-nav/status-nav":"components/status-nav/status-nav","components/release-btn/release-btn":"components/release-btn/release-btn","components/tabbar/tabbar":"components/tabbar/tabbar","components/goods-list/goods-list":"components/goods-list/goods-list"}[chunkId]||chunkId) + ".wxss";
/******/ var fullhref = __webpack_require__.p + href; /******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link"); /******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) { /******/ for(var i = 0; i < existingLinkTags.length; i++) {

View File

@ -766,8 +766,8 @@ function populateParameters(result) {var _result$brand =
appVersion: "1.0.0", appVersion: "1.0.0",
appVersionCode: "100", appVersionCode: "100",
appLanguage: getAppLanguage(hostLanguage), appLanguage: getAppLanguage(hostLanguage),
uniCompileVersion: "3.6.4", uniCompileVersion: "3.6.5",
uniRuntimeVersion: "3.6.4", uniRuntimeVersion: "3.6.5",
uniPlatform: undefined || "mp-weixin", uniPlatform: undefined || "mp-weixin",
deviceBrand: deviceBrand, deviceBrand: deviceBrand,
deviceModel: model, deviceModel: model,
@ -2370,7 +2370,9 @@ function parseBasePage(vuePageOptions, _ref6)
this.$vm.$mp.query = query; // 兼容 mpvue this.$vm.$mp.query = query; // 兼容 mpvue
this.$vm.__call_hook('onLoad', query); this.$vm.__call_hook('onLoad', query);
}; };
{
initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']); initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
}
return pageOptions; return pageOptions;
} }

View File

@ -1 +1 @@
<view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.status==1?'已隐藏':'已展示'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.original_price!==''}}"><text class="text color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view> <view class="goods-list flex data-v-108270a4"><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['goodsList','',index,'id']]]]]]]}}" class="item background-white radius20 mar-s20 data-v-108270a4" bindtap="__e"><view class="cover radius20 data-v-108270a4"><image class="img data-v-108270a4" src="{{item.cover}}" mode="widthFix"></image><block wx:if="{{isOperate}}"><view data-event-opts="{{[['tap',[['changeStateEv',['$0',index],[[['goodsList','',index,'id']]]]]]]}}" class="{{['hide-btn','font24','color-ff','radius20','flex','data-v-108270a4',item.status==1?'background-8c':'background-blue']}}" catchtap="__e">{{item.status==1?'已下架':'已展示'}}</view></block></view><text class="name font28 clips1 data-v-108270a4">{{item.name}}</text><view class="price flex data-v-108270a4"><block wx:if="{{item.original_price!==''}}"><text class="text color-8c font24 data-v-108270a4">{{"¥"+item.original_price}}</text></block><text class="text color-red font28 data-v-108270a4">{{"¥"+item.price}}</text></view></view></block></view>

View File

@ -0,0 +1,186 @@
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/release-btn/release-btn"],{
/***/ 132:
/*!******************************************************************!*\
!*** D:/Lee/leave-unused/components/release-btn/release-btn.vue ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./release-btn.vue?vue&type=template&id=691baa9c&scoped=true& */ 133);
/* harmony import */ var _release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./release-btn.vue?vue&type=script&lang=js& */ 135);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./release-btn.vue?vue&type=style&index=0&id=691baa9c&scoped=true&lang=css& */ 137);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
var renderjs
/* normalize component */
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"691baa9c",
null,
false,
_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "components/release-btn/release-btn.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 133:
/*!*************************************************************************************************************!*\
!*** D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=template&id=691baa9c&scoped=true& ***!
\*************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release-btn.vue?vue&type=template&id=691baa9c&scoped=true& */ 134);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_template_id_691baa9c_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 134:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=template&id=691baa9c&scoped=true& ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 135:
/*!*******************************************************************************************!*\
!*** D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release-btn.vue?vue&type=script&lang=js& */ 136);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 136:
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _vuex = __webpack_require__(/*! vuex */ 13); //
//
//
//
//
//引入mapState
var _default = { name: 'release-btn', data: function data() {return {};
},
mounted: function mounted() {
},
methods: {
// 发布商品
goRelease: function goRelease() {
if (this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url: '/pages/release/release' });
}
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
/***/ 137:
/*!***************************************************************************************************************************!*\
!*** D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=style&index=0&id=691baa9c&scoped=true&lang=css& ***!
\***************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release-btn.vue?vue&type=style&index=0&id=691baa9c&scoped=true&lang=css& */ 138);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_btn_vue_vue_type_style_index_0_id_691baa9c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 138:
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/components/release-btn/release-btn.vue?vue&type=style&index=0&id=691baa9c&scoped=true&lang=css& ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/release-btn/release-btn.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/release-btn/release-btn-create-component',
{
'components/release-btn/release-btn-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('1')['createComponent'](__webpack_require__(132))
})
},
[['components/release-btn/release-btn-create-component']]
]);

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

View File

@ -0,0 +1 @@
<view data-event-opts="{{[['tap',[['goRelease',['$event']]]]]}}" class="release-btn background-blue color-ff radius100 flex data-v-691baa9c" bindtap="__e"><image class="img data-v-691baa9c" src="/static/icon-release.png" mode="widthFix"></image></view>

View File

@ -0,0 +1,40 @@
.release-btn.data-v-691baa9c{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
-webkit-animation: scale_name-data-v-691baa9c 1s linear alternate infinite;
animation: scale_name-data-v-691baa9c 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img.data-v-691baa9c{
width: 48rpx;
height: 48rpx;
}
@-webkit-keyframes scale_name-data-v-691baa9c {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}
@keyframes scale_name-data-v-691baa9c {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}

View File

@ -124,10 +124,6 @@ __webpack_require__.r(__webpack_exports__);
var _vuex = __webpack_require__(/*! vuex */ 13); // var _vuex = __webpack_require__(/*! vuex */ 13); //
// //
// //
@ -137,13 +133,13 @@ var _vuex = __webpack_require__(/*! vuex */ 13); //
// //
// //
// //
//
//
//
//
//引入mapState //引入mapState
var _default = { name: 'tabbar', props: { // 当前选中项 var _default = { name: 'tabbar', props: { // 当前选中项
current: { type: Number, default: 0 } }, data: function data() {return { footBarList: [{ iconPath: '/static/icon-idle.png', title: '闲置' }, { iconPath: '/static/icon-my.png', title: '我的' }] //底部列表 current: { type: Number, default: 0 } }, data: function data() {return {
footBarList: [
{ iconPath: '/static/icon-idle.png', title: '闲置' },
{ iconPath: '/static/icon-my.png', title: '我的' }]
//底部列表
}; };
}, },
mounted: function mounted() { mounted: function mounted() {
@ -167,15 +163,6 @@ var _default = { name: 'tabbar', props: { // 当前选中项
} }
break;} break;}
},
// 发布商品
goRelease: function goRelease() {
if (this.$toolAll.tools.judgeAuth()) {
uni.navigateTo({
url: '/pages/idle/release' });
}
} } };exports.default = _default; } } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

View File

@ -1 +1 @@
<view class="tabbar-list border-box pad-sx40 background-white pad-zy20 flex data-v-8ad7aaf8"><block wx:for="{{footBarList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['chooseFootTab',[index]]]]]}}" class="{{['tabbar-item','color-88','flex','data-v-8ad7aaf8',current==index?'active':'']}}" bindtap="__e"><view class="icon flex data-v-8ad7aaf8"><image class="img data-v-8ad7aaf8" style="{{'width:'+([41,38][index]+'rpx')+';'+('height:'+([41,40][index]+'rpx')+';')}}" src="{{item.iconPath}}" mode="widthFix"></image></view><view class="title font26 data-v-8ad7aaf8">{{item.title}}</view></view></block><view data-event-opts="{{[['tap',[['goRelease',['$event']]]]]}}" class="release-btn background-blue color-ff radius100 flex data-v-8ad7aaf8" bindtap="__e"><image class="img data-v-8ad7aaf8" src="/static/icon-release.png" mode="widthFix"></image></view></view> <view class="tabbar-list border-box pad-sx40 background-white pad-zy20 flex data-v-8ad7aaf8"><block wx:for="{{footBarList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['chooseFootTab',[index]]]]]}}" class="{{['tabbar-item','color-88','flex','data-v-8ad7aaf8',current==index?'active':'']}}" bindtap="__e"><view class="icon flex data-v-8ad7aaf8"><image class="img data-v-8ad7aaf8" style="{{'width:'+([41,38][index]+'rpx')+';'+('height:'+([41,40][index]+'rpx')+';')}}" src="{{item.iconPath}}" mode="widthFix"></image></view><view class="title font26 data-v-8ad7aaf8">{{item.title}}</view></view></block></view>

View File

@ -37,43 +37,4 @@
-webkit-filter: grayscale(0); -webkit-filter: grayscale(0);
filter: grayscale(0); filter: grayscale(0);
} }
/* 发布按钮 */
.release-btn.data-v-8ad7aaf8{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
-webkit-animation: scale_name-data-v-8ad7aaf8 1s linear alternate infinite;
animation: scale_name-data-v-8ad7aaf8 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img.data-v-8ad7aaf8{
width: 48rpx;
height: 48rpx;
}
@-webkit-keyframes scale_name-data-v-8ad7aaf8 {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}
@keyframes scale_name-data-v-8ad7aaf8 {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}

View File

@ -210,6 +210,8 @@ __webpack_require__.r(__webpack_exports__);
// //
// //
// //
//
//
var _default = var _default =
{ {
data: function data() { data: function data() {
@ -272,7 +274,8 @@ var _default =
price: res.data.price, price: res.data.price,
phone: res.data.phone, phone: res.data.phone,
images: res.data.images, images: res.data.images,
msg: res.data.content }; msg: res.data.content,
status: res.data.status };
// 获取图片 // 获取图片
_this.goodsImg = _this.goodsDetail.images; _this.goodsImg = _this.goodsDetail.images;
@ -289,11 +292,33 @@ var _default =
}, },
// 更改显示状态
changeStateEv: function changeStateEv(id) {var _this2 = this;
if (this.flag) {
this.flag = false;
this.$requst.post('/api/v1/goods/set-status', { id: id, status: this.goodsDetail.status }).then(function (res) {
if (res.code == 0) {
console.log(res, '改变状态');
if (_this2.goodsDetail.status == 0) {
_this2.goodsDetail.status = 1;
_this2.$toolAll.tools.showToast('已下架');
} else {
_this2.goodsDetail.status = 0;
_this2.$toolAll.tools.showToast('已展示');
}
}
});
setTimeout(function () {
_this2.flag = true;
}, 500);
}
},
// 删除 // 删除
delEv: function delEv(id) {var _this2 = this; delEv: function delEv(id) {var _this3 = this;
this.$requst.post('/api/v1/goods/del', { id: id }).then(function (res) { this.$requst.post('/api/v1/goods/del', { id: id }).then(function (res) {
if (res.code == 0) { if (res.code == 0) {
_this2.$toolAll.tools.showToast('删除成功'); _this3.$toolAll.tools.showToast('删除成功');
setTimeout(function () { setTimeout(function () {
uni.navigateTo({ uni.navigateTo({
url: "/pages/goods/goods" }); url: "/pages/goods/goods" });

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品原价</view><view class="msg color-8c data-v-f0a9f5ba" style="text-decoration:line-through;">{{"¥"+goodsDetail.original_price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['delEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-orange font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">删除</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block> <block wx:if="{{isLoading}}"><view class="{{['data-v-f0a9f5ba',type==''?'':'pad-x120']}}"><status-nav vue-id="6db62043-1" ifReturn="{{true}}" navBarTitle="商品详情" class="data-v-f0a9f5ba" bind:__l="__l"></status-nav><view class="notice-tips color-orange font26 border-box pad-all20 flex data-v-f0a9f5ba"><image src="/static/icon-notice.png" mode="widthFix" class="data-v-f0a9f5ba"></image>交易前请务必核实对方的身份及信息!</view><view class="goods-detail data-v-f0a9f5ba"><view class="goods-info background-white pad-zy20 border-box data-v-f0a9f5ba"><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品名称</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品分类</view><view class="msg data-v-f0a9f5ba">{{goodsDetail.category_name}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品原价</view><view class="msg color-8c data-v-f0a9f5ba" style="text-decoration:line-through;">{{"¥"+(goodsDetail.original_price!==''?goodsDetail.original_price:'未填写')}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">商品售价</view><view class="msg data-v-f0a9f5ba">{{"¥"+goodsDetail.price}}</view></view><view class="item font28 flex data-v-f0a9f5ba"><view class="title color-8c data-v-f0a9f5ba">联系方式</view><block wx:if="{{showPhone}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="msg data-v-f0a9f5ba" bindtap="__e">{{goodsDetail.phone}}</view></block><block wx:else><view class="msg data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="see-phone color-ff font24 background-blue radius20 flex data-v-f0a9f5ba" bindtap="__e">查看联系方式</view></view></block></view></view><view class="goods-content background-white pad-all20 mar-s20 font28 border-box data-v-f0a9f5ba"><view class="goods-describe color-8c data-v-f0a9f5ba">{{goodsDetail.msg}}</view><view class="goods-img data-v-f0a9f5ba"><block wx:for="{{goodsImg}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image src="{{item}}" mode="widthFix" class="data-v-f0a9f5ba"></image></block></view></view></view><block wx:if="{{type=='release'}}"><view class="detail-btns background-white border-box flex data-v-f0a9f5ba"><view data-event-opts="{{[['tap',[['changeStateEv',['$0'],['goodsDetail.id']]]]]}}" class="{{['btn','font30','color-ff','radius35','flex','data-v-f0a9f5ba',goodsDetail.status==0?'background-orange':'background-8c']}}" bindtap="__e">{{''+(goodsDetail.status==0?'下架':'展示')+''}}</view><view data-event-opts="{{[['tap',[['editEv',['$0'],['goodsDetail.id']]]]]}}" class="btn background-blue font30 color-ff radius35 flex data-v-f0a9f5ba" bindtap="__e">编辑</view></view></block></view></block>

View File

@ -102,6 +102,9 @@ try {
}, },
goodsList: function() { goodsList: function() {
return __webpack_require__.e(/*! import() | components/goods-list/goods-list */ "components/goods-list/goods-list").then(__webpack_require__.bind(null, /*! @/components/goods-list/goods-list.vue */ 104)) return __webpack_require__.e(/*! import() | components/goods-list/goods-list */ "components/goods-list/goods-list").then(__webpack_require__.bind(null, /*! @/components/goods-list/goods-list.vue */ 104))
},
releaseBtn: function() {
return Promise.all(/*! import() | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then(__webpack_require__.bind(null, /*! @/components/release-btn/release-btn.vue */ 132))
} }
} }
} catch (e) { } catch (e) {
@ -158,7 +161,10 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var releaseBtn = function releaseBtn() {Promise.all(/*! require.ensure | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then((function () {return resolve(__webpack_require__(/*! @/components/release-btn/release-btn.vue */ 132));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
@ -172,6 +178,7 @@ __webpack_require__.r(__webpack_exports__);
{ {
components: { components: {
releaseBtn: releaseBtn,
goodsList: goodsList }, goodsList: goodsList },
data: function data() { data: function data() {
@ -239,7 +246,7 @@ __webpack_require__.r(__webpack_exports__);
console.log(res, '改变状态'); console.log(res, '改变状态');
if (_this2.goodsList[index].status == 0) { if (_this2.goodsList[index].status == 0) {
_this2.goodsList[index].status = 1; _this2.goodsList[index].status = 1;
_this2.$toolAll.tools.showToast('已隐藏'); _this2.$toolAll.tools.showToast('已下架');
} else { } else {
_this2.goodsList[index].status = 0; _this2.goodsList[index].status = 0;
_this2.$toolAll.tools.showToast('已展示'); _this2.$toolAll.tools.showToast('已展示');

View File

@ -3,6 +3,7 @@
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"usingComponents": { "usingComponents": {
"status-nav": "/components/status-nav/status-nav", "status-nav": "/components/status-nav/status-nav",
"goods-list": "/components/goods-list/goods-list" "goods-list": "/components/goods-list/goods-list",
"release-btn": "/components/release-btn/release-btn"
} }
} }

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="pad-x20 data-v-5566b618"><status-nav vue-id="576f0adc-1" ifReturn="{{true}}" navBarTitle="我的发布" class="data-v-5566b618" bind:__l="__l"></status-nav><goods-list vue-id="576f0adc-2" goodsList="{{goodsList}}" isOperate="{{true}}" data-event-opts="{{[['^changeStateEv',[['changeStateEv']]]]}}" bind:changeStateEv="__e" class="data-v-5566b618" bind:__l="__l"></goods-list><view class="no-more mar-s20 font24 color-99 data-v-5566b618">没有更多数据了</view></view></block> <block wx:if="{{isLoading}}"><view class="pad-x20 data-v-5566b618"><status-nav vue-id="576f0adc-1" ifReturn="{{true}}" navBarTitle="我的发布" class="data-v-5566b618" bind:__l="__l"></status-nav><goods-list vue-id="576f0adc-2" goodsList="{{goodsList}}" isOperate="{{true}}" data-event-opts="{{[['^changeStateEv',[['changeStateEv']]]]}}" bind:changeStateEv="__e" class="data-v-5566b618" bind:__l="__l"></goods-list><view class="no-more mar-s20 font24 color-99 data-v-5566b618">没有更多数据了</view><release-btn vue-id="576f0adc-3" class="data-v-5566b618" bind:__l="__l"></release-btn></view></block>

View File

@ -103,6 +103,9 @@ try {
goodsList: function() { goodsList: function() {
return __webpack_require__.e(/*! import() | components/goods-list/goods-list */ "components/goods-list/goods-list").then(__webpack_require__.bind(null, /*! @/components/goods-list/goods-list.vue */ 104)) return __webpack_require__.e(/*! import() | components/goods-list/goods-list */ "components/goods-list/goods-list").then(__webpack_require__.bind(null, /*! @/components/goods-list/goods-list.vue */ 104))
}, },
releaseBtn: function() {
return Promise.all(/*! import() | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then(__webpack_require__.bind(null, /*! @/components/release-btn/release-btn.vue */ 132))
},
tabbar: function() { tabbar: function() {
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 111)) return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 111))
} }
@ -161,7 +164,10 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var goodsList = function goodsList() {__webpack_require__.e(/*! require.ensure | components/goods-list/goods-list */ "components/goods-list/goods-list").then((function () {return resolve(__webpack_require__(/*! @/components/goods-list/goods-list.vue */ 104));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var releaseBtn = function releaseBtn() {Promise.all(/*! require.ensure | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then((function () {return resolve(__webpack_require__(/*! @/components/release-btn/release-btn.vue */ 132));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
@ -179,6 +185,7 @@ __webpack_require__.r(__webpack_exports__);
{ {
components: { components: {
goodsList: goodsList, goodsList: goodsList,
releaseBtn: releaseBtn,
tabbar: tabbar }, tabbar: tabbar },
data: function data() { data: function data() {

View File

@ -4,6 +4,7 @@
"usingComponents": { "usingComponents": {
"status-nav": "/components/status-nav/status-nav", "status-nav": "/components/status-nav/status-nav",
"goods-list": "/components/goods-list/goods-list", "goods-list": "/components/goods-list/goods-list",
"release-btn": "/components/release-btn/release-btn",
"tabbar": "/components/tabbar/tabbar" "tabbar": "/components/tabbar/tabbar"
} }
} }

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-48338cf4"><status-nav vue-id="be3d0f80-1" ifReturn="{{false}}" navBarTitle="{{pageTitle}}" estate="{{1}}" ifCenter="{{false}}" class="data-v-48338cf4" bind:__l="__l"></status-nav><goods-list vue-id="be3d0f80-2" goodsList="{{goodsList}}" class="data-v-48338cf4" bind:__l="__l"></goods-list><block wx:if="{{goodsList.length==total}}"><view class="no-more mar-s20 font24 color-99 data-v-48338cf4">没有更多数据了</view></block><tabbar vue-id="be3d0f80-3" class="data-v-48338cf4" bind:__l="__l"></tabbar></view></block> <block wx:if="{{isLoading}}"><view class="pad-x120 data-v-48338cf4"><status-nav vue-id="be3d0f80-1" ifReturn="{{false}}" navBarTitle="{{pageTitle}}" estate="{{1}}" ifCenter="{{false}}" class="data-v-48338cf4" bind:__l="__l"></status-nav><goods-list vue-id="be3d0f80-2" goodsList="{{goodsList}}" class="data-v-48338cf4" bind:__l="__l"></goods-list><block wx:if="{{goodsList.length==total}}"><view class="no-more mar-s20 font24 color-99 data-v-48338cf4">没有更多数据了</view></block><release-btn vue-id="be3d0f80-3" class="data-v-48338cf4" bind:__l="__l"></release-btn><tabbar vue-id="be3d0f80-4" class="data-v-48338cf4" bind:__l="__l"></tabbar></view></block>

View File

@ -3,4 +3,43 @@
text-align: center; text-align: center;
line-height: 2; line-height: 2;
} }
/* 发布按钮 */
.release-btn.data-v-48338cf4{
justify-content: center;
align-items: center;
width: 90rpx;
height: 90rpx;
font-size: 50rpx;
line-height: 80rpx;
-webkit-animation: scale_name-data-v-48338cf4 1s linear alternate infinite;
animation: scale_name-data-v-48338cf4 1s linear alternate infinite;
position: fixed;
right: 20rpx;
bottom: 120rpx;
z-index: 99;
}
.release-btn .img.data-v-48338cf4{
width: 48rpx;
height: 48rpx;
}
@-webkit-keyframes scale_name-data-v-48338cf4 {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}
@keyframes scale_name-data-v-48338cf4 {
from {
-webkit-transform: scale(.9);
transform: scale(.9);
}
to {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}

View File

@ -1,476 +1 @@
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/idle/release"],{ Component({})
/***/ 26:
/*!*********************************************************************!*\
!*** D:/Lee/leave-unused/main.js?{"page":"pages%2Fidle%2Frelease"} ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
var _release = _interopRequireDefault(__webpack_require__(/*! ./pages/idle/release.vue */ 27));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_release.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
/***/ 27:
/*!**************************************************!*\
!*** D:/Lee/leave-unused/pages/idle/release.vue ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./release.vue?vue&type=template&id=becb4076&scoped=true& */ 28);
/* harmony import */ var _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./release.vue?vue&type=script&lang=js& */ 30);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./release.vue?vue&type=style&index=0&id=becb4076&scoped=true&lang=css& */ 32);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
var renderjs
/* normalize component */
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"becb4076",
null,
false,
_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pages/idle/release.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 28:
/*!*********************************************************************************************!*\
!*** D:/Lee/leave-unused/pages/idle/release.vue?vue&type=template&id=becb4076&scoped=true& ***!
\*********************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=template&id=becb4076&scoped=true& */ 29);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_becb4076_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 29:
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/idle/release.vue?vue&type=template&id=becb4076&scoped=true& ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
statusNav: function() {
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 97))
}
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
_vm.cover = ""
}
}
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 30:
/*!***************************************************************************!*\
!*** D:/Lee/leave-unused/pages/idle/release.vue?vue&type=script&lang=js& ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=script&lang=js& */ 31);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 31:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/idle/release.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default =
{
data: function data() {
return {
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
pageTitle: '', //页面名称
estateList: [], //小区列表
estateIndex: 0, //小区选择
cateList: [], //分类列表
cateIndex: 0, //分类选择
goodsDetail: {}, //商品详情
cover: '', //封面图
goodsImg: [], //商品图片
phone: '', //联系电话
isEdit: false, //是否编辑进入
isLoading: false, //是否记载完成
page: 1, //页数
size: 100, //条数
StagingImg: '', //暂存img
goods_id: -1 //商品id
};
},
onLoad: function onLoad(op) {
if (op.id) {
// 判断是否是编辑进入
this.isEdit = true;
this.pageTitle = '编辑商品';
// 获取商品id
this.goods_id = op.id;
} else {
this.pageTitle = '新增商品';
// 获取用户信息
this.getUserInfo();
}
// 查询小区列表
this.getEstateList();
},
methods: {
// 获取用户信息
getUserInfo: function getUserInfo() {var _this = this;
this.$requst.get('/api/v1/user/info').then(function (res) {
console.log(res, '用户信息');
if (res.code == 0) {
_this.phone = res.data.mobile;
}
});
},
// 查询小区列表
getEstateList: function getEstateList() {var _this2 = this;
this.$requst.get('/api/v1/goods/area').then(function (res) {
if (res.code == 0) {
console.log(res, '小区列表');
var estateArr = [];
res.data.list.forEach(function (item) {
var obj = {
id: item.id,
name: item.title };
estateArr.push(obj);
});
_this2.estateList = _this2.estateList.concat(estateArr);
_this2.estateIndex = _this2.estateList.findIndex(function (item) {return item.id === uni.getStorageSync('area_id');});
// 查询分类
_this2.getCateList();
}
});
},
// 查询分类
getCateList: function getCateList() {var _this3 = this;
if (this.page == 1) this.goodsList = [];
this.$requst.get('/api/v1/goods/category').then(function (res) {
if (res.code == 0) {
console.log(res, '物品分类列表');
var cateArr = [];
res.data.forEach(function (item) {
var obj = {
id: item.id,
name: item.title };
cateArr.push(obj);
});
_this3.cateList = cateArr;
if (_this3.isEdit) {
// 查询商品详情
_this3.getGoodsDetail(_this3.goods_id);
} else {
_this3.isLoading = true;
}
}
});
},
// 查询商品详情
getGoodsDetail: function getGoodsDetail(id) {var _this4 = this;
this.$requst.get('/api/v1/goods/detail', { id: id }).then(function (res) {
if (res.code == 0) {
console.log(res, '闲置商品详情');
// 获取图片
_this4.goodsImg = res.data.images;
// 获取电话
_this4.phone = res.data.phone;
// 获取封面图
_this4.cover = res.data.cover;
// 获取当前分类
_this4.cateIndex = _this4.cateList.findIndex(function (item) {return item.name === res.data.category_name;});
// 获取当前小区
_this4.estateIndex = _this4.estateList.findIndex(function (item) {return item.name === res.data.area_name;});
// 获取商品详情
_this4.goodsDetail = {
id: res.data.id,
name: res.data.title,
original_price: parseFloat(res.data.original_price),
price: parseFloat(res.data.price),
msg: res.data.content };
}
_this4.isLoading = true;
});
},
// 新增or编辑闲置商品
addGoodsEv: function addGoodsEv() {var _this5 = this;
var params = {
id: this.goods_id !== -1 ? this.goods_id : '',
title: this.goodsDetail.name,
cover: this.cover,
category_id: this.cateList[this.cateIndex].id,
area_id: this.estateList[this.estateIndex].id,
phone: this.phone,
original_price: this.goodsDetail.original_price,
price: this.goodsDetail.price,
images: this.goodsImg.join(','),
content: this.goodsDetail.msg };
this.$requst.post(this.isEdit ? '/api/v1/goods/edit' : '/api/v1/goods/add', params).then(function (res) {
if (res.code == 0) {
if (_this5.isEdit) {
_this5.$toolAll.tools.showToast('修改成功');
setTimeout(function () {
uni.navigateBack({
delta: 1,
fail: function fail() {
uni.reLaunch({
url: '/pages/idle/idle' });
} });
}, 500);
} else {
_this5.$toolAll.tools.showToast('添加成功');
setTimeout(function () {
uni.reLaunch({
url: '/pages/idle/idle' });
}, 500);
}
} else {
_this5.$toolAll.tools.showToast(res.msg);
}
});
},
// 选择分类
choiceCate: function choiceCate(e) {
this.cateIndex = e.detail.value;
},
// 选择小区
choiceEstate: function choiceEstate(e) {
this.estateIndex = e.detail.value;
},
// 选择图片
changeImg: function changeImg(type) {var _this6 = this;
if (type == 'cover') this.cover = '';
uni.chooseImage({
count: 1, //默认9
sourceType: ['album', 'camera'], //从相册选择
success: function success(res) {
_this6.StagingImg = res.tempFilePaths[0];
// 上传图片
_this6.uploadImg(type);
} });
},
// 上传图片
uploadImg: function uploadImg(type) {var _this7 = this;
uni.showLoading({
title: '上传中' });
this.$requst.upload('/api/v1/file/upload/image', { path: this.StagingImg }).then(function (res) {
if (res.code == 0) {
if (type == 'cover') {
_this7.cover = _this7.$hostHttp + res.data.src;
}
if (type == 'img') {
_this7.goodsImg.push(_this7.$hostHttp + res.data.src);
}
}
uni.hideLoading();
});
},
// 删除图片
delImg: function delImg(index) {
this.goodsImg.splice(index, 1);
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
/***/ 32:
/*!***********************************************************************************************************!*\
!*** D:/Lee/leave-unused/pages/idle/release.vue?vue&type=style&index=0&id=becb4076&scoped=true&lang=css& ***!
\***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=style&index=0&id=becb4076&scoped=true&lang=css& */ 33);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_becb4076_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 33:
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/idle/release.vue?vue&type=style&index=0&id=becb4076&scoped=true&lang=css& ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
},[[26,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/idle/release.js.map

View File

@ -97,6 +97,9 @@ __webpack_require__.r(__webpack_exports__);
var components var components
try { try {
components = { components = {
releaseBtn: function() {
return Promise.all(/*! import() | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then(__webpack_require__.bind(null, /*! @/components/release-btn/release-btn.vue */ 132))
},
tabbar: function() { tabbar: function() {
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 111)) return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 111))
} }
@ -190,9 +193,13 @@ __webpack_require__.r(__webpack_exports__);
var _vuex = __webpack_require__(/*! vuex */ 13);var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar.vue */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
var _vuex = __webpack_require__(/*! vuex */ 13);var releaseBtn = function releaseBtn() {Promise.all(/*! require.ensure | components/release-btn/release-btn */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/release-btn/release-btn")]).then((function () {return resolve(__webpack_require__(/*! @/components/release-btn/release-btn.vue */ 132));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar.vue */ 111));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);}; //引入mapState
var _default = { var _default = {
components: { components: {
releaseBtn: releaseBtn,
tabbar: tabbar }, tabbar: tabbar },
data: function data() { data: function data() {

View File

@ -2,6 +2,7 @@
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"usingComponents": { "usingComponents": {
"release-btn": "/components/release-btn/release-btn",
"tabbar": "/components/tabbar/tabbar" "tabbar": "/components/tabbar/tabbar"
} }
} }

View File

@ -1 +1 @@
<block wx:if="{{isLoading}}"><view class="pad-x120 data-v-0be17cc6"><view class="my-herder border-box data-v-0be17cc6" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><view class="my-portrait radius100 data-v-0be17cc6"><image src="{{headPortrait}}" mode="widthFix" class="data-v-0be17cc6"></image></view><view class="my-nickname mar-s10 color-ff font36 flex data-v-0be17cc6"><text class="data-v-0be17cc6">{{nickName}}</text></view></view><view class="my-content background-white radius10 border-box data-v-0be17cc6"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goPage',[index]]]]]}}" class="item flex data-v-0be17cc6" catchtap="__e"><view class="title flex data-v-0be17cc6"><view class="img flex data-v-0be17cc6"><image style="{{'width:'+(item.iconWidth+'rpx')+';'+('height:'+(item.iconHeight+'rpx')+';')}}" src="{{item.imgSrc}}" mode="widthFix" class="data-v-0be17cc6"></image></view><view class="title font28 data-v-0be17cc6">{{item.titele}}</view></view><view class="more data-v-0be17cc6"><image style="width:14rpx;height:26rpx;" src="/static/icon-join.png" mode="widthFix" class="data-v-0be17cc6"></image></view><block wx:if="{{index==0&&mobile==''}}"><button class="get-phone-btn data-v-0be17cc6" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"></button></block></view></block></view><tabbar vue-id="704e9d00-1" current="1" class="data-v-0be17cc6" bind:__l="__l"></tabbar></view></block> <block wx:if="{{isLoading}}"><view class="pad-x120 data-v-0be17cc6"><view class="my-herder border-box data-v-0be17cc6" style="{{'padding-top:'+(statusHeight+50+'px')+';'}}"><view class="my-portrait radius100 data-v-0be17cc6"><image src="{{headPortrait}}" mode="widthFix" class="data-v-0be17cc6"></image></view><view class="my-nickname mar-s10 color-ff font36 flex data-v-0be17cc6"><text class="data-v-0be17cc6">{{nickName}}</text></view></view><view class="my-content background-white radius10 border-box data-v-0be17cc6"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goPage',[index]]]]]}}" class="item flex data-v-0be17cc6" catchtap="__e"><view class="title flex data-v-0be17cc6"><view class="img flex data-v-0be17cc6"><image style="{{'width:'+(item.iconWidth+'rpx')+';'+('height:'+(item.iconHeight+'rpx')+';')}}" src="{{item.imgSrc}}" mode="widthFix" class="data-v-0be17cc6"></image></view><view class="title font28 data-v-0be17cc6">{{item.titele}}</view></view><view class="more data-v-0be17cc6"><image style="width:14rpx;height:26rpx;" src="/static/icon-join.png" mode="widthFix" class="data-v-0be17cc6"></image></view><block wx:if="{{index==0&&mobile==''}}"><button class="get-phone-btn data-v-0be17cc6" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"></button></block></view></block></view><release-btn vue-id="704e9d00-1" class="data-v-0be17cc6" bind:__l="__l"></release-btn><tabbar vue-id="704e9d00-2" current="1" class="data-v-0be17cc6" bind:__l="__l"></tabbar></view></block>

View File

@ -0,0 +1,476 @@
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/release/release"],{
/***/ 26:
/*!************************************************************************!*\
!*** D:/Lee/leave-unused/main.js?{"page":"pages%2Frelease%2Frelease"} ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
var _release = _interopRequireDefault(__webpack_require__(/*! ./pages/release/release.vue */ 27));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_release.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
/***/ 27:
/*!*****************************************************!*\
!*** D:/Lee/leave-unused/pages/release/release.vue ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./release.vue?vue&type=template&id=0766b1d4&scoped=true& */ 28);
/* harmony import */ var _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./release.vue?vue&type=script&lang=js& */ 30);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./release.vue?vue&type=style&index=0&id=0766b1d4&scoped=true&lang=css& */ 32);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
var renderjs
/* normalize component */
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"0766b1d4",
null,
false,
_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pages/release/release.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 28:
/*!************************************************************************************************!*\
!*** D:/Lee/leave-unused/pages/release/release.vue?vue&type=template&id=0766b1d4&scoped=true& ***!
\************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=template&id=0766b1d4&scoped=true& */ 29);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_template_id_0766b1d4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 29:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/release/release.vue?vue&type=template&id=0766b1d4&scoped=true& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
statusNav: function() {
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 97))
}
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
if (!_vm._isMounted) {
_vm.e0 = function($event) {
_vm.cover = ""
}
}
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 30:
/*!******************************************************************************!*\
!*** D:/Lee/leave-unused/pages/release/release.vue?vue&type=script&lang=js& ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=script&lang=js& */ 31);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 31:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/release/release.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default =
{
data: function data() {
return {
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
pageTitle: '', //页面名称
estateList: [], //小区列表
estateIndex: 0, //小区选择
cateList: [], //分类列表
cateIndex: 0, //分类选择
goodsDetail: {}, //商品详情
cover: '', //封面图
goodsImg: [], //商品图片
phone: '', //联系电话
isEdit: false, //是否编辑进入
isLoading: false, //是否记载完成
page: 1, //页数
size: 100, //条数
StagingImg: '', //暂存img
goods_id: -1 //商品id
};
},
onLoad: function onLoad(op) {
if (op.id) {
// 判断是否是编辑进入
this.isEdit = true;
this.pageTitle = '编辑商品';
// 获取商品id
this.goods_id = op.id;
} else {
this.pageTitle = '新增商品';
// 获取用户信息
this.getUserInfo();
}
// 查询小区列表
this.getEstateList();
},
methods: {
// 获取用户信息
getUserInfo: function getUserInfo() {var _this = this;
this.$requst.get('/api/v1/user/info').then(function (res) {
console.log(res, '用户信息');
if (res.code == 0) {
_this.phone = res.data.mobile;
}
});
},
// 查询小区列表
getEstateList: function getEstateList() {var _this2 = this;
this.$requst.get('/api/v1/goods/area').then(function (res) {
if (res.code == 0) {
console.log(res, '小区列表');
var estateArr = [];
res.data.list.forEach(function (item) {
var obj = {
id: item.id,
name: item.title };
estateArr.push(obj);
});
_this2.estateList = _this2.estateList.concat(estateArr);
_this2.estateIndex = _this2.estateList.findIndex(function (item) {return item.id === uni.getStorageSync('area_id');});
// 查询分类
_this2.getCateList();
}
});
},
// 查询分类
getCateList: function getCateList() {var _this3 = this;
if (this.page == 1) this.goodsList = [];
this.$requst.get('/api/v1/goods/category').then(function (res) {
if (res.code == 0) {
console.log(res, '物品分类列表');
var cateArr = [];
res.data.forEach(function (item) {
var obj = {
id: item.id,
name: item.title };
cateArr.push(obj);
});
_this3.cateList = cateArr;
if (_this3.isEdit) {
// 查询商品详情
_this3.getGoodsDetail(_this3.goods_id);
} else {
_this3.isLoading = true;
}
}
});
},
// 查询商品详情
getGoodsDetail: function getGoodsDetail(id) {var _this4 = this;
this.$requst.get('/api/v1/goods/detail', { id: id }).then(function (res) {
if (res.code == 0) {
console.log(res, '闲置商品详情');
// 获取图片
_this4.goodsImg = res.data.images;
// 获取电话
_this4.phone = res.data.phone;
// 获取封面图
_this4.cover = res.data.cover;
// 获取当前分类
_this4.cateIndex = _this4.cateList.findIndex(function (item) {return item.name === res.data.category_name;});
// 获取当前小区
_this4.estateIndex = _this4.estateList.findIndex(function (item) {return item.name === res.data.area_name;});
// 获取商品详情
_this4.goodsDetail = {
id: res.data.id,
name: res.data.title,
original_price: parseFloat(res.data.original_price),
price: parseFloat(res.data.price),
msg: res.data.content };
}
_this4.isLoading = true;
});
},
// 新增or编辑闲置商品
addGoodsEv: function addGoodsEv() {var _this5 = this;
var params = {
id: this.goods_id !== -1 ? this.goods_id : '',
title: this.goodsDetail.name,
cover: this.cover,
category_id: this.cateList[this.cateIndex].id,
area_id: this.estateList[this.estateIndex].id,
phone: this.phone,
original_price: this.goodsDetail.original_price,
price: this.goodsDetail.price,
images: this.goodsImg.join(','),
content: this.goodsDetail.msg };
this.$requst.post(this.isEdit ? '/api/v1/goods/edit' : '/api/v1/goods/add', params).then(function (res) {
if (res.code == 0) {
if (_this5.isEdit) {
_this5.$toolAll.tools.showToast('修改成功');
setTimeout(function () {
uni.navigateBack({
delta: 1,
fail: function fail() {
uni.reLaunch({
url: '/pages/idle/idle' });
} });
}, 500);
} else {
_this5.$toolAll.tools.showToast('添加成功');
setTimeout(function () {
uni.reLaunch({
url: '/pages/idle/idle' });
}, 500);
}
} else {
_this5.$toolAll.tools.showToast(res.msg);
}
});
},
// 选择分类
choiceCate: function choiceCate(e) {
this.cateIndex = e.detail.value;
},
// 选择小区
choiceEstate: function choiceEstate(e) {
this.estateIndex = e.detail.value;
},
// 选择图片
changeImg: function changeImg(type) {var _this6 = this;
if (type == 'cover') this.cover = '';
uni.chooseImage({
count: 1, //默认9
sourceType: ['album', 'camera'], //从相册选择
success: function success(res) {
_this6.StagingImg = res.tempFilePaths[0];
// 上传图片
_this6.uploadImg(type);
} });
},
// 上传图片
uploadImg: function uploadImg(type) {var _this7 = this;
uni.showLoading({
title: '上传中' });
this.$requst.upload('/api/v1/file/upload/image', { path: this.StagingImg }).then(function (res) {
if (res.code == 0) {
if (type == 'cover') {
_this7.cover = _this7.$hostHttp + res.data.src;
}
if (type == 'img') {
_this7.goodsImg.push(_this7.$hostHttp + res.data.src);
}
}
uni.hideLoading();
});
},
// 删除图片
delImg: function delImg(index) {
this.goodsImg.splice(index, 1);
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
/***/ 32:
/*!**************************************************************************************************************!*\
!*** D:/Lee/leave-unused/pages/release/release.vue?vue&type=style&index=0&id=0766b1d4&scoped=true&lang=css& ***!
\**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./release.vue?vue&type=style&index=0&id=0766b1d4&scoped=true&lang=css& */ 33);
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_release_vue_vue_type_style_index_0_id_0766b1d4_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 33:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/leave-unused/pages/release/release.vue?vue&type=style&index=0&id=0766b1d4&scoped=true&lang=css& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
},[[26,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/release/release.js.map

View File

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "商品发布",
"enablePullDownRefresh": false,
"usingComponents": {
"status-nav": "/components/status-nav/status-nav"
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,123 @@
.notice-tips.data-v-0766b1d4{
align-items: center;
background-color: rgba(255,133,0,.2);
height: 70rpx;
line-height: 36rpx;
}
.notice-tips>image.data-v-0766b1d4{
width: 40rpx;
height: 40rpx;
margin-right: 8rpx;
-webkit-animation: opacity_name-data-v-0766b1d4 0.8s linear alternate infinite;
animation: opacity_name-data-v-0766b1d4 0.8s linear alternate infinite;
}
@-webkit-keyframes opacity_name-data-v-0766b1d4 {
from {
opacity: .1;
-webkit-transform: scale(.8);
transform: scale(.8);
}
to {
opacity: 1;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
}
@keyframes opacity_name-data-v-0766b1d4 {
from {
opacity: .1;
-webkit-transform: scale(.8);
transform: scale(.8);
}
to {
opacity: 1;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
}
.release-form.data-v-0766b1d4{
padding: 20rpx;
}
.release-form .item.data-v-0766b1d4{
align-items: center;
}
.release-form .item.data-v-0766b1d4:last-child{
margin-bottom: 0;
}
.release-form .item>.title.data-v-0766b1d4{
width: 140rpx;
}
.release-form .item>picker.data-v-0766b1d4,
.release-form .item>input.data-v-0766b1d4,
.release-form .item>textarea.data-v-0766b1d4{
box-sizing: border-box;
width: calc(100% - 140rpx);
height: 80rpx;
padding: 0 10rpx;
border: 2rpx solid #f4f5f6;
border-radius: 5rpx;
}
.release-form .item>textarea.data-v-0766b1d4{
padding: 10rpx;
height: 200rpx;
line-height: 1.5;
}
.release-form .item .cate-name.data-v-0766b1d4{
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: 76rpx;
}
.release-form .item image.data-v-0766b1d4{
width: 28rpx;
height: 16rpx;
}
.release-form .item>.upload-box.data-v-0766b1d4{
flex-wrap: wrap;
box-sizing: border-box;
width: calc(100% - 140rpx);
}
.release-form .item .img.data-v-0766b1d4,
.release-form .item .upload-btn.data-v-0766b1d4{
position: relative;
width: 132rpx;
height: 132rpx;
margin: 10rpx 10rpx 0 0;
overflow: hidden;
}
.release-form .item>.img.data-v-0766b1d4:nth-of-type(4n){
margin-right: 0;
}
.release-form .item .img>image.data-v-0766b1d4:first-child{
width: 100%;
min-height: 100%;
}
.release-form .item .img>.del-btn.data-v-0766b1d4{
width: 30rpx;
height: 30rpx;
position: absolute;
right: 2rpx;
top: 2rpx;
}
.release-form .item .upload-btn.data-v-0766b1d4{
justify-content: center;
align-items: center;
margin-right: 0;
background-color: #ccc;
}
.release-form .item .upload-btn>image.data-v-0766b1d4{
width: 48rpx;
height: 48rpx;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
.release-btn.data-v-0766b1d4{
justify-content: center;
align-items: center;
width: 80%;
height: 90rpx;
margin: 40rpx auto 0;
}

View File

@ -21,7 +21,31 @@
"libVersion": "", "libVersion": "",
"appid": "wxf6f7c457ee92d2ac", "appid": "wxf6f7c457ee92d2ac",
"projectname": "小区闲置", "projectname": "小区闲置",
"condition": {}, "condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": 0,
"list": [
{
"name": "",
"path": "",
"query": "",
"id": 0
}
]
}
},
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2

View File

@ -1,4 +1,17 @@
{ {
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"libVersion": "2.25.4" "libVersion": "2.25.4",
"condition": {
"miniprogram": {
"list": [
{
"name": "",
"pathName": "pages/goods/detail",
"query": "id=6&type=release",
"launchMode": "default",
"scene": null
}
]
}
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB