完善功能

This commit is contained in:
2025-05-06 17:33:45 +08:00
parent 889f2b8fca
commit 6b5c475dd1
283 changed files with 6420 additions and 3694 deletions

View File

@ -101,22 +101,22 @@ var components
try {
components = {
uSwiper: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-swiper/u-swiper */ "components/uview-ui/components/u-swiper/u-swiper").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-swiper/u-swiper.vue */ 324))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-swiper/u-swiper */ "components/uview-ui/components/u-swiper/u-swiper").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-swiper/u-swiper.vue */ 333))
},
priceFormat: function () {
return __webpack_require__.e(/*! import() | components/price-format/price-format */ "components/price-format/price-format").then(__webpack_require__.bind(null, /*! @/components/price-format/price-format.vue */ 357))
return __webpack_require__.e(/*! import() | components/price-format/price-format */ "components/price-format/price-format").then(__webpack_require__.bind(null, /*! @/components/price-format/price-format.vue */ 366))
},
uLine: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-line/u-line */ "components/uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-line/u-line.vue */ 376))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-line/u-line */ "components/uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-line/u-line.vue */ 385))
},
uButton: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 317))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-button/u-button */ "components/uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-button/u-button.vue */ 326))
},
uImage: function () {
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 331))
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-image/u-image */ "components/uview-ui/components/u-image/u-image").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-image/u-image.vue */ 340))
},
shopSpec: function () {
return __webpack_require__.e(/*! import() | components/shop-spec/shop-spec */ "components/shop-spec/shop-spec").then(__webpack_require__.bind(null, /*! @/components/shop-spec/shop-spec.vue */ 474))
return __webpack_require__.e(/*! import() | components/shop-spec/shop-spec */ "components/shop-spec/shop-spec").then(__webpack_require__.bind(null, /*! @/components/shop-spec/shop-spec.vue */ 483))
},
}
} catch (e) {
@ -178,12 +178,16 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 26));
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 28));
var _store = __webpack_require__(/*! @/api/store */ 36);
//
//
//
@ -278,16 +282,61 @@ var _default = {
image: "http://jianbing-media.stnav.com/frontend/img/banner.png",
title: "身无彩凤双飞翼,心有灵犀一点通"
}],
showSpec: false
id: 0,
showSpec: false,
goods: []
};
},
onLoad: function onLoad(options) {
this.id = options.id;
},
onShow: function onShow() {
this.getGoodsDetailFun();
},
methods: {
// 获取商品详情
getGoodsDetailFun: function getGoodsDetailFun() {
var _this = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
var _yield$getGoodsDetail, data, code;
return _regenerator.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return (0, _store.getGoodsDetail)({
id: _this.id
});
case 2:
_yield$getGoodsDetail = _context.sent;
data = _yield$getGoodsDetail.data;
code = _yield$getGoodsDetail.code;
if (code == 1) {
_this.goods = data;
console.log(_this.goods.goods_image);
}
case 6:
case "end":
return _context.stop();
}
}
}, _callee);
}))();
},
chooseSpec: function chooseSpec() {
this.showSpec = true;
},
// 购买商品
onBuy: function onBuy() {
console.log(this.isLogin);
uni.navigateTo({
url: "/pages/order_now/order_now"
});
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-alipay/dist/index.js */ 1)["default"]))
/***/ }),