|
@@ -157,12 +157,13 @@ var render = function () {
|
|
|
var _c = _vm._self._c || _h
|
|
|
var l0 = _vm.goodinfo.images ? _vm.goodinfo.images.split(",") : null
|
|
|
var g0 =
|
|
|
- _vm.goodinfo.is_discount == 0
|
|
|
+ _vm.goodinfo.discount_price && _vm.goodinfo.is_discount == 0
|
|
|
? _vm.goodinfo.discount_price.slice(0, -3)
|
|
|
: null
|
|
|
- var g1 = !(_vm.goodinfo.is_discount == 0)
|
|
|
- ? _vm.goodinfo.price.slice(0, -3)
|
|
|
- : null
|
|
|
+ var g1 =
|
|
|
+ _vm.goodinfo.discount_price && !(_vm.goodinfo.is_discount == 0)
|
|
|
+ ? _vm.goodinfo.price.slice(0, -3)
|
|
|
+ : null
|
|
|
var g2 =
|
|
|
_vm.goodinfo.is_discount == 0 ? _vm.goodinfo.discount_price.slice(-3) : null
|
|
|
var g3 = !(_vm.goodinfo.is_discount == 0)
|
|
@@ -839,7 +840,7 @@ var _default = {
|
|
|
}
|
|
|
},
|
|
|
onLoad: function onLoad(options) {
|
|
|
- if (options.q) {
|
|
|
+ if (options.q && options.q != "undefined") {
|
|
|
// 获取到二维码原始链接内容
|
|
|
var qrUrl = decodeURIComponent(options.q);
|
|
|
console.log(qrUrl);
|
|
@@ -908,7 +909,6 @@ var _default = {
|
|
|
//保存到手机相册
|
|
|
saveImage: function saveImage() {
|
|
|
var that = this;
|
|
|
- console.log('this.picture2.slice,-1)', this.picture2.slice(23));
|
|
|
var fileManager = uni.getFileSystemManager();
|
|
|
fileManager.writeFile({
|
|
|
filePath: wx.env.USER_DATA_PATH + '/img.jpg',
|