소스 검색

fix:修改部分代码错误以及文案错误问题

徐志豪 5 년 전
부모
커밋
b2dfab2fe2

+ 2 - 2
admins/fd-mall-backstage/WEB-INF/classes/platform.properties

@@ -10,9 +10,9 @@ jdbc.idleConnectionTestPeriod=100
 
 
 #小程序ID
-wx.appId=wx0e75c90d9db2047b
+wx.appId=wx0509bd21546d1597
 #小程序密钥
-wx.secret=4ed1a08f0674a71b4e96573e0d8cbb19
+wx.secret=eeb67f6ccad20ae72b94cc4b7ffae6fc
 #商户号
 wx.mchId=1501483501
 #支付签名

+ 1 - 1
admins/fd-mall-backstage/WEB-INF/page/shop/specification.html

@@ -11,7 +11,7 @@
             <div class="search-group">
                 <i-col span="8">
                     <div style="display: inline-block;">
-                        <i-input v-model="q.name" @on-enter="query" placeholder="规格名称"/>
+                        <i-input v-model="q.name" @on-enter="query" placeholder="商品名称"/>
                     </div>
                     <div style="display: inline-block;">
                         <i-button @click="query">查询</i-button>

+ 8 - 6
admins/fd-mall-backstage/js/shop/goods.js

@@ -525,7 +525,7 @@ var vm = new Vue({
             vm.goods['ggContent'] = JSON.stringify(vm.ggContent)
             // 修改市场价和零售价,库存
             vm.goods.goodsNumber = 0
-            vm.goods['productList'].forEach((item, index) => {
+            vm.goods['productList'].forEach(function (item, index) {
                 vm.goods.goodsNumber += Number(item.goodsNumber)
                 if (index === 0) {
                     vm.goods.retailPrice = item.retailPrice
@@ -649,12 +649,14 @@ var vm = new Vue({
 
             });
         },
-        countProductSort(uuidLink) {
-            if (!uuidLink) return;
+        countProductSort: function(uuidLink) {
+            if (!uuidLink) {
+                return
+            }
             var sort = uuidLink.split('_')
             var length = sort.length
             var val = 0
-            sort.forEach((item, index) => {
+            sort.forEach(function (item, index) {
                 var arr = item.split('-')
                 val += arr[1] * Math.pow(10, length - index)
             })
@@ -765,10 +767,10 @@ var vm = new Vue({
         handleSubmit: function (name) {
             vm.validateData(name, vm.saveOrUpdate)
         },
-        validateData (name, cb) {
+        validateData: function (name, cb) {
             handleSubmitValidate(vm, name, function () {
                 var pass = true
-                vm.guigeArr.forEach(item => {
+                vm.guigeArr.forEach(function(item) {
                     if (!item.name) {
                         pass = false
                         alert('商品规格请填写完整')

+ 1 - 1
admins/zl-mall-backstage/WEB-INF/page/shop/specification.html

@@ -11,7 +11,7 @@
             <div class="search-group">
                 <i-col span="8">
                     <div style="display: inline-block;">
-                        <i-input v-model="q.name" @on-enter="query" placeholder="规格名称"/>
+                        <i-input v-model="q.name" @on-enter="query" placeholder="商品名称"/>
                     </div>
                     <div style="display: inline-block;">
                         <i-button @click="query">查询</i-button>

+ 8 - 6
admins/zl-mall-backstage/js/shop/goods.js

@@ -525,7 +525,7 @@ var vm = new Vue({
             vm.goods['ggContent'] = JSON.stringify(vm.ggContent)
             // 修改市场价和零售价,库存
             vm.goods.goodsNumber = 0
-            vm.goods['productList'].forEach((item, index) => {
+            vm.goods['productList'].forEach(function (item, index) {
                 vm.goods.goodsNumber += Number(item.goodsNumber)
                 if (index === 0) {
                     vm.goods.retailPrice = item.retailPrice
@@ -649,12 +649,14 @@ var vm = new Vue({
 
             });
         },
-        countProductSort(uuidLink) {
-            if (!uuidLink) return;
+        countProductSort: function(uuidLink) {
+            if (!uuidLink) {
+                return
+            }
             var sort = uuidLink.split('_')
             var length = sort.length
             var val = 0
-            sort.forEach((item, index) => {
+            sort.forEach(function (item, index) {
                 var arr = item.split('-')
                 val += arr[1] * Math.pow(10, length - index)
             })
@@ -765,10 +767,10 @@ var vm = new Vue({
         handleSubmit: function (name) {
             vm.validateData(name, vm.saveOrUpdate)
         },
-        validateData (name, cb) {
+        validateData: function (name, cb) {
             handleSubmitValidate(vm, name, function () {
                 var pass = true
-                vm.guigeArr.forEach(item => {
+                vm.guigeArr.forEach(function(item) {
                     if (!item.name) {
                         pass = false
                         alert('商品规格请填写完整')

BIN
admins/zl-mall-backstage/statics/img/login_bg.jpg


BIN
admins/zl-mall-backstage/statics/img/logo.png


+ 8 - 6
js/shop/goods.js

@@ -525,7 +525,7 @@ var vm = new Vue({
             vm.goods['ggContent'] = JSON.stringify(vm.ggContent)
             // 修改市场价和零售价,库存
             vm.goods.goodsNumber = 0
-            vm.goods['productList'].forEach((item, index) => {
+            vm.goods['productList'].forEach(function (item, index) {
                 vm.goods.goodsNumber += Number(item.goodsNumber)
                 if (index === 0) {
                     vm.goods.retailPrice = item.retailPrice
@@ -649,12 +649,14 @@ var vm = new Vue({
 
             });
         },
-        countProductSort(uuidLink) {
-            if (!uuidLink) return;
+        countProductSort: function(uuidLink) {
+            if (!uuidLink) {
+                return
+            }
             var sort = uuidLink.split('_')
             var length = sort.length
             var val = 0
-            sort.forEach((item, index) => {
+            sort.forEach(function (item, index) {
                 var arr = item.split('-')
                 val += arr[1] * Math.pow(10, length - index)
             })
@@ -765,10 +767,10 @@ var vm = new Vue({
         handleSubmit: function (name) {
             vm.validateData(name, vm.saveOrUpdate)
         },
-        validateData (name, cb) {
+        validateData: function (name, cb) {
             handleSubmitValidate(vm, name, function () {
                 var pass = true
-                vm.guigeArr.forEach(item => {
+                vm.guigeArr.forEach(function(item) {
                     if (!item.name) {
                         pass = false
                         alert('商品规格请填写完整')